/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
    /* Colores principales - Basados en el logo (Verde agua dominante) */
    --primary-color: #6db5a8;
    --primary-dark: #4a8d82;
    --primary-light: #8ec5c1;
    --secondary-color: #b8e0d8;
    --accent-color: #5ca899;
    --accent-gold: #7ec3b8;
    --accent-orange: #ff7c3f;
    
    /* Colores neutrales */
    --text-dark: #2c3836;
    --text-light: #5d6b68;
    --text-white: #ffffff;
    --bg-light: #f0f9f7;
    --bg-white: #ffffff;
    
    /* Gradientes - Verde agua como protagonista */
    --gradient-primary: linear-gradient(135deg, #6db5a8 0%, #8ec5c1 50%, #b8e0d8 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(109, 181, 168, 0.95), rgba(142, 197, 193, 0.85));
    --gradient-accent: linear-gradient(45deg, #5ca899, #7ec3b8);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 36, 32, 0.12);
    --shadow-lg: 0 10px 40px rgba(44, 36, 32, 0.15);
    --shadow-xl: 0 20px 60px rgba(44, 36, 32, 0.2);
    
    /* Tipografía */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Cormorant Garamond', serif;
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===================================
   BOTONES
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-accent);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* ===================================
   NAVEGACIÓN
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-white);
    position: relative;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
    background: var(--primary-color);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6db5a8 0%, #8ec5c1 25%, #b8e0d8 50%, #7ec3b8 75%, #6db5a8 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></linearGradient></defs><path fill="url(%23grad1)" d="M0,300 Q300,100 600,250 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(109, 181, 168, 0.3), rgba(184, 224, 216, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0.95;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 72px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-description {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-mp {
    display: inline-block;
    margin-top: 10px;
    font-size: 16px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.scroll-indicator span {
    width: 3px;
    height: 15px;
    background: var(--text-white);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ===================================
   SECCIÓN COMÚN
   =================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===================================
   SOBRE MÍ
   =================================== */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-border {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-text h3 {
    font-family: var(--font-secondary);
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text .lead {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.credential-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.credential-item i {
    font-size: 32px;
    color: var(--primary-color);
    min-width: 40px;
}

.credential-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.credential-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ===================================
   TRATAMIENTOS
   =================================== */
.treatments-section {
    background: var(--bg-white);
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.treatment-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.treatment-card:hover::before {
    opacity: 0.05;
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.treatment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.treatment-icon i {
    font-size: 36px;
    color: var(--text-white);
}

.treatment-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.treatment-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.treatment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.treatment-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.treatment-card {
    cursor: pointer;
}

/* ===================================
   CONTACTO
   =================================== */
.contact-section {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-secondary);
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: var(--text-white);
}

.contact-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    font-size: 16px;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.cta-buttons {
    margin-top: 40px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.1));
}

.footer-logo h3 {
    font-family: var(--font-secondary);
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-social i {
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   WHATSAPP FLOAT BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-bounce);
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #ff7c3f, #7c4d9e, #e89c3f) 1;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 32px;
    color: var(--text-white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        color: var(--text-dark);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 52px;
    }

    .section-title {
        font-size: 38px;
    }

    .treatments-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 32px;
    }

    .about-text h3 {
        font-size: 26px;
    }

    .treatments-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .treatment-card {
        padding: 30px 20px;
    }

    .treatment-card h3 {
        font-size: 19px;
    }

    .treatment-card p {
        font-size: 14px;
    }

    .treatment-icon {
        width: 70px;
        height: 70px;
    }

    .treatment-icon i {
        font-size: 32px;
    }
}

/* ===================================
   TREATMENT MODAL
   =================================== */
.treatment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.treatment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 30px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    line-height: 1;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 60px 50px;
}

@media (max-width: 992px) {
    .modal-body {
        padding: 50px 35px;
    }
    
    .modal-content {
        margin: 20px 0;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 48px;
    color: var(--text-white);
}

.modal-header h2 {
    font-family: var(--font-secondary);
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
}

.modal-benefits {
    margin-bottom: 40px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
}

.modal-benefits h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.modal-benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.modal-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: var(--text-light);
}

.modal-benefits li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.modal-gallery {
    margin-bottom: 40px;
}

.modal-gallery h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-family: var(--font-secondary);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.before-after-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.before-after-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.before-after-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(109, 181, 168, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.before-after-item:hover::after {
    opacity: 1;
}

.before-after-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.before-after-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .treatment-modal.active {
        padding: 20px 15px;
        align-items: flex-start;
    }

    .modal-content {
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body {
        padding: 50px 25px 30px;
    }

    .modal-header h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .modal-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .modal-benefits {
        padding: 25px 20px;
    }

    .modal-benefits h3 {
        font-size: 20px;
    }

    .modal-benefits ul {
        grid-template-columns: 1fr;
    }

    .modal-benefits li {
        font-size: 14px;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .before-after-item img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .treatment-modal.active {
        padding: 10px;
    }

    .modal-content {
        border-radius: 15px;
        max-height: 95vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 35px;
        height: 35px;
        background: var(--bg-white);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
    }

    .modal-body {
        padding: 45px 15px 25px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .modal-description {
        font-size: 14px;
    }

    .modal-benefits {
        padding: 20px 15px;
    }

    .modal-benefits h3,
    .modal-gallery h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .modal-benefits li {
        font-size: 13px;
    }

    .before-after-item img {
        height: 200px;
    }

    .modal-footer {
        padding-top: 20px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 15px;
        width: 100%;
    }
}

/* ===================================
   IMAGE CAROUSEL / LIGHTBOX
   =================================== */
.image-carousel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 11000;
    animation: fadeIn 0.3s ease;
}

.image-carousel.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 11002;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.carousel-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    gap: 30px;
}

.carousel-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
    animation: zoomIn 0.3s ease;
}

.carousel-counter {
    margin-top: 20px;
    background: rgba(109, 181, 168, 0.9);
    color: var(--text-white);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.carousel-prev,
.carousel-next {
    background: rgba(109, 181, 168, 0.9);
    border: none;
    color: var(--text-white);
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

/* Icono de zoom en las imágenes */
.before-after-item {
    position: relative;
    cursor: pointer;
}

.image-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(109, 181, 168, 0.9);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.before-after-item:hover .image-zoom-icon {
    opacity: 1;
}

.before-after-item:hover {
    transform: translateY(-5px);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-close {
        top: 15px;
        right: 15px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }

    .carousel-content {
        gap: 15px;
        padding: 10px;
    }

    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .carousel-image-container img {
        max-height: 70vh;
    }

    .carousel-counter {
        font-size: 16px;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    .carousel-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
        width: 35px;
        height: 35px;
        background: rgba(109, 181, 168, 0.9);
        border-radius: 50%;
    }

    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .carousel-content {
        gap: 10px;
    }

    .carousel-image-container {
        max-width: 100%;
    }

    .carousel-image-container img {
        max-height: 60vh;
        border-radius: 10px;
    }

    .carousel-counter {
        font-size: 14px;
        padding: 6px 15px;
    }

    .image-zoom-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
