/* ====== Variables y Configuración Global ====== */
:root {
    /* Colores */
    --color-primary: #bc9bff;        /* Acentos y formas orgánicas */
    --color-primary-light: #d4c2ff;  /* Tono más claro para hover */
    --color-primary-dark: #9e7ae5;   /* Tono más oscuro para efectos */
    --color-text: #272425;           /* Texto principal */
    --color-text-light: #5a5a5a;     /* Texto secundario */
    --color-bg: #f2f2f2;             /* Fondo principal */
    --color-white: #ffffff;          /* Fondo de tarjetas y elementos */
    --color-border: #e0e0e0;         /* Bordes sutiles */
    --color-success: #4caf50;        /* Mensajes de éxito */
    --color-error: #f44336;          /* Mensajes de error */
    
    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 5px 15px rgba(188, 155, 255, 0.3);
    
    /* Bordes redondeados */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Espaciados */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;
    
    /* Tipografía */
    --font-heading: 'Hatton', serif;
    --font-body: 'Glacier Indifference', sans-serif;
}

/* ====== Navbar ====== */
.navbar {
    position: fixed;
    inset: 0 auto auto;
    width: 100%;
    height: 92px;
    padding: 0 1.5rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    transition: var(--transition);
    border-bottom: 1px solid rgba(39, 36, 37, 0.08);
    box-shadow: 0 12px 35px rgba(39, 36, 37, 0.08);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(39, 36, 37, 0.12);
    box-shadow: 0 10px 30px rgba(39, 36, 37, 0.12);
    backdrop-filter: blur(14px);
}

.nav-container {
    width: min(1200px, 100%);
    display: flex;
    justify-content: flex-start;                 /* inicia los elementos desde la izquierda */
    align-items: center;                        /* alinea verticalmente logo y botones */
    gap: 2.5rem;
    padding: 0 var(--space-md);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
}

.logo a,
.logo {
    color: inherit;
}

.logo {
    position: absolute;
    left: var(--space-md);
    justify-content: center;

}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 2.30rem; /* baja el contenido dentro del height definido */
    line-height: 1.2;
    margin-left: auto;                           /* empuja los enlaces hacia el borde derecho */
    order: 2;                                    /* mantiene los links después del botón en flujo visual */
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    padding-bottom: 0.2rem;
    transition: var(--transition);
    
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    margin-right: 1rem;     /* mantiene el botón cerca del borde derecho */
    margin-left: auto;       /* empuja el botón hacia el borde derecho */
    order: 3;                /* asegura que el botón quede al final del eje horizontal */
}

.menu-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-icon span {
    width: 26px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 992px) {
    .nav-container {
        justify-content: space-between;         /* separa logo y botón en móvil */
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        transition: right 0.35s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1100;
        margin-left: 0;                            /* elimina el desplazamiento al abrir el menú móvil */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .navbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
}
/* ====== Estilos Base ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5efff 70%, #ece3ff 100%);
    z-index: -2;
}

.page-wrapper {
    background: transparent;
}

.section + .section {
    margin-top: var(--space-xl);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
}

.section {
    padding: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    margin: 0 auto 1.5rem;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--color-primary-light);
    right: -40px;
    top: 0;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    position: relative;
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
}

/* identificador único para estilos sobre mi */
.about-section--signature {
    background: linear-gradient(180deg, rgba(188,155,255,0.08), rgba(255,255,255,0));
    border-radius: var(--radius-xl);
    margin: var(--space-xl) 0;
    padding: calc(var(--space-xxl) + 1rem);
    box-shadow: var(--shadow-lg);
}

/* fondo lateral lavanda muy suave */
.about-section::before {
    content: '';
    position: absolute;
    top: 6rem;
    right: 0;
    width: 45%;
    height: 70%;
    background: linear-gradient(135deg, rgba(188,155,255,0.16), rgba(188,155,255,0));
    filter: blur(3px);
    z-index: -1;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.75rem;
    max-width: 640px;
}

/* ====== Intro autoridad: Enfoque en la belleza natural ====== */
.intro-authority-layout {
    display: grid;
    grid-template-columns: 3fr 2fr; /* columna izquierda más ancha */
    gap: 3rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.intro-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.intro-main p {
    font-size: 1.08rem;
    line-height: 2;
}

.intro-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.intro-stats li {
    min-width: 150px;
}

.intro-stats .stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.intro-stats .stat-label {
    display: block;
    font-size: 0.98rem;
    color: var(--color-text-light);
}

.intro-principios {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    align-self: flex-start;
    margin-top: -0.75rem; /* flota un poco para asimetría editorial */
}

@media (max-width: 768px) {
    .about-section--signature {
        padding: var(--space-lg) var(--space-md);
        border-radius: var(--radius-lg);
    }
    .about-text {
        text-align: center;
        margin: 0 auto;
    }
    .about-text p {
        max-width: 90vw;
    }
    .intro-authority-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .intro-main {
        align-items: center;
    }
    .intro-stats {
        justify-content: center;
    }
    .intro-stats li {
        text-align: center;
    }
    .intro-principios {
        align-self: center;
        margin-top: 0;
    }
    .intro-principios .mini-card-principio {
        max-width: 320px;
        margin: 0 auto;
        text-align: left;
    }
}

.treatment-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.07);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
}

.treatments-grid--table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    margin-top: 2.5rem;
}

.treatments-grid--table .treatment-cell {
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(120, 115, 109, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.85);
}

.treatments-carousel-wrapper {
    position: relative;
    margin-top: 1rem;
    padding-bottom: 1rem;
    overflow: hidden;
    width: 100%;
    justify-content: center;
}

.treatments-carousel {
    display: grid;
    grid-auto-columns: minmax(300px, 360px);
    grid-auto-flow: column;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 1.5rem 1.5rem;
    justify-items: center;
    align-items: stretch;
    scroll-padding: 0 1.5rem;
}

.treatments-carousel .treatment-cell {
    width: min(320px, 90vw);
    min-height: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    padding: 2.4rem;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(188, 155, 255, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    scroll-snap-align: center;
    justify-content: space-between;
}

.treatments-carousel::-webkit-scrollbar {
    height: 6px;
}

.treatments-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 99px;
}

.treatment-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.treatment-carousel-controls button {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.treatment-carousel-indicators {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.treatment-carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(39, 36, 37, 0.2);
    transition: background 0.3s ease;
}

.treatment-carousel-indicators button.active {
    background: var(--color-primary);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 9rem 0.5rem 0.8rem;
        padding-left: 0;
        align-items: flex-start;
        display: flex;
        text-align: left;
    }

    .hero-content,
    .hero-text,
    .hero-text h1,
    .hero-text .subtitle {
        text-align: left !important;
        align-items: flex-start !important;
        width: 100%;
    }

    .hero-buttons {
        justify-content: flex-start !important;
        width: 100%;
    }

    .contact-content {
        gap: 1rem;
    }

    .contact-cta {
        text-align: center;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2100;
}

.modal-overlay.is-open {
    display: flex;
}

/* Página de contacto */
.contact-body {
    background: linear-gradient(160deg, #f5f3ff 0%, #f8f5ff 45%, #fdfbff 100%);
    min-height: 100vh;
    color: var(--color-text);
}

.contact-header {
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 15px 35px rgba(39, 36, 37, 0.12);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.contact-page {
    padding: 4rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-hero {
    background: #fff;
    border-radius: 48px;
    padding: 2.5rem;
    box-shadow: 0 35px 80px rgba(39, 36, 37, 0.12);
    position: relative;
    overflow: hidden;
}

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(188, 155, 255, 0.25), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    align-items: center;
}

.contact-hero-text h1 {
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    color: #271a22;
    margin-bottom: 1rem;
}

.contact-hero-description {
    color: rgba(39, 36, 37, 0.8);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-hero-card {
    background: var(--color-primary);
    color: #fff;
    border-radius: 32px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 35px 60px rgba(19, 10, 30, 0.35);
}

.contact-hero-image img {
    width: 100%;
    border-radius: 28px;
    object-fit: cover;
    display: block;
}

.contact-hero-meta {
    display: grid;
    gap: 0.6rem;
}

.contact-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
}

.contact-meta-value {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(39, 36, 37, 0.15);
    border: 1px solid rgba(123, 93, 205, 0.1);
}

.contact-card-label {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: rgba(39, 36, 37, 0.6);
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin: 0 0 1rem;
    color: rgba(39, 36, 37, 0.7);
    line-height: 1.6;
}

.contact-card-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-map-card {
    background: #fff;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 25px 65px rgba(39, 36, 37, 0.15);
}

.contact-map-heading h3 {
    margin: 0.25rem 0 1rem;
}

.contact-map-frame iframe {
    width: 100%;
    border: 0;
    border-radius: 24px;
    min-height: 320px;
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.contact-social-link {
    flex: 1;
    max-width: 220px;
    text-decoration: none;
    background: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    border: 1px solid rgba(123, 93, 205, 0.25);
    box-shadow: 0 12px 30px rgba(39, 36, 37, 0.15);
}

.contact-hero-buttons .btn {
    flex: 1 1 100%;
    max-width: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0.9rem 1.8rem;
}

@media (max-width: 768px) {
    .contact-page {
        padding: 30rem 1rem 2rem;
    }
    .contact-hero {
        padding: 1.75rem;
    }
    .contact-hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .contact-hero-buttons .btn {
        width: auto;
        flex: 0 1 auto;
    }
    .contact-social-link {
        max-width: none;
    }
}

/* Página de enlaces rápidos tipo Linktree */
.linktree-body {
    background: radial-gradient(circle at top, rgba(188, 155, 255, 0.35), transparent 60%), #f8f5ff;
    min-height: 100vh;
    color: var(--color-text);
}

.linktree-header {
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 12px 35px rgba(39, 36, 37, 0.08);
    padding: 0.8rem 0;
}

.linktree-page {
    padding: 3.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.linktree-hero h1 {
    font-family: var(--font-heading);
    color: #271a22;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin: 0 0 0.5rem;
}

.linktree-hero .linktree-description {
    max-width: 640px;
    color: rgba(39, 36, 37, 0.7);
    line-height: 1.6;
}

.linktree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.linktree-card {
    background: #fff;
    border-radius: 32px;
    padding: 1.5rem;
    border: 1px solid rgba(123, 93, 205, 0.2);
    box-shadow: 0 25px 60px rgba(39, 36, 37, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}

.linktree-card.primary {
    border-color: rgba(188, 155, 255, 0.8);
    box-shadow: 0 30px 60px rgba(188, 155, 255, 0.3);
}

.linktree-card i {
    font-size: 1.75rem;
    color: var(--color-primary);
}

.linktree-card h3 {
    margin: 0 0 0.25rem;
}

.linktree-card p {
    margin: 0;
    color: rgba(39, 36, 37, 0.6);
    line-height: 1.4;
}

.linktree-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 70px rgba(39, 36, 37, 0.2);
}

.linktree-grid a:first-child {
    grid-column: 1 / -1;
}

.linktree-grid .btn-outline {
    justify-content: center;
}

.contact-page + .linktree-page {
    margin-top: 0;
}

/* Linktree panel estilo mockup */
.linktree-page {
    background: radial-gradient(circle at top, rgba(188,155,255,0.15), transparent 47%), #f4f3f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.linktree-panel {
    width: min(360px, 90%);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,244,255,0.95));
    border-radius: 32px;
    padding: 2rem 2.2rem;
    box-shadow: 0 40px 80px rgba(33, 20, 42, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.linktree-icon-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 6px 18px rgba(33, 20, 42, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linktree-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #c49bf8;
    padding: 4px;
    background: white;
    box-shadow: 0 18px 45px rgba(33, 20, 42, 0.25);
}

.linktree-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.linktree-username {
    font-family: var(--font-heading);
    text-transform: none;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 0.05em;
}

.linktree-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.linktree-list-item {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: 0 8px 20px rgba(33, 20, 42, 0.08);
    text-decoration: none;
    transition: var(--transition);
}

.linktree-list-item i {
    color: rgba(33, 20, 42, 0.45);
}

.linktree-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(33, 20, 42, 0.1);
}

.linktree-cta {
    margin-top: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 2.8rem;
    background: white;
    color: var(--color-text);
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(33, 20, 42, 0.15);
    cursor: pointer;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.linktree-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(188,155,255,0.3), transparent 60%);
    z-index: -1;
}

@media (max-width: 600px) {
    .linktree-panel {
        padding: 1.5rem;
    }
    .linktree-icon-btn {
        top: 12px;
        right: 12px;
    }
}

.modal-card {
    background: #fff;
    border-radius: 30px;
    max-width: 540px;
    width: 100%;
    padding: 2.5rem;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #222;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.14);
}

.modal-header .modal-label {
    letter-spacing: 0.4em;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.9rem;
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.whatsapp-modal {
    flex: 1;
    min-width: 200px;
    text-align: center;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 0.95rem 1.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 18px 30px rgba(37, 211, 102, 0.35);
}

.whatsapp-modal:hover,
.whatsapp-modal:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px rgba(37, 211, 102, 0.45);
}

.modal-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin: 0;
}

.footer-panel {
    background: linear-gradient(135deg, rgba(123,93,205,0.9), rgba(188,155,255,0.85));
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    border-radius: 40px;
    box-shadow: 0 35px 80px rgba(39, 36, 37, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.footer-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 55%);

        .modal-close:hover {
            background: rgba(0, 0, 0, 0.14);
        }

        .modal-header .modal-label {
            letter-spacing: 0.4em;
            font-size: 0.65rem;
            text-transform: uppercase;
            color: var(--color-text-light);
        }
    flex-wrap: wrap;
    gap: 0.8rem;
}

.whatsapp-modal {
    flex: 1;
    min-width: 200px;
    text-align: center;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.35);
}

.whatsapp-modal:hover,
.whatsapp-modal:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(37, 211, 102, 0.45);
}

.modal-description {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-top: 1.35rem;
}

.btn.btn-secondary.modal-dismiss {
    border-radius: 999px;
    display: block;
    object-fit: contain;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (min-width: 1024px) {
    .treatments-grid--table {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.treatment-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(167, 123, 77, 0.12);
    color: #a77b4d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(167, 123, 77, 0.18);
}

.treatment-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.55rem;
    margin: 0;
    letter-spacing: 0.02em;
    color: #272425;
}

.treatment-card p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12);
}

.treatment-view-more {
    align-self: center;
    padding: 0.9rem 2.6rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #bc9bff, #9264ff);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 30px rgba(39, 36, 37, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 48px;
}

.treatment-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(167, 123, 77, 0.45);
}

.mini-card-principio {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.7rem;
    background: linear-gradient(145deg, #ffffff 0%, #fbf9ff 100%);
    border-radius: 18px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08); /* sombra larga y suave */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(188,155,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.mini-card-icon i {
    font-size: 1.05rem;
}

.mini-card-content h4 {
    font-size: 1.12rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em; /* sensación editorial */
}

.mini-card-content p {
    font-size: 0.98rem;
    margin-bottom: 0;
}

.mini-card-principio:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.mini-card-principio:hover .mini-card-icon {
    transform: scale(1.03);
}

/* Animación scroll fade + slide */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-up.is-visible {
opacity: 1;
transform: translateY(0);
}

.hero-buttons .btn {
padding: 0.9rem 2.5rem;
font-size: 0.95rem;
min-width: 180px;
border-radius: var(--radius-full);
text-transform: none;
letter-spacing: 0.02em;
}

.hero-buttons .btn-primary {
background: var(--color-primary);
color: #fff;
box-shadow: 0 25px 55px rgba(123, 93, 205, 0.25);
}

.hero-buttons .btn-secondary {
border-radius: var(--radius-full);
border: 1px solid rgba(39, 36, 37, 0.15);
color: var(--color-text);
box-shadow: inset 0 0 0 1px transparent;
background: #fff;
}

.hero-buttons .btn-secondary:hover {
color: #fff;
background: var(--color-primary-dark);
border-color: var(--color-primary-dark);
}

.btn i {
margin-right: 0.5rem;
font-size: 1.1rem;
}

.btn-primary {
background: var(--color-primary);
color: white;
box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
background: var(--color-primary-dark);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(188, 155, 255, 0.4);
}

.btn-secondary {
background: transparent;
color: var(--color-primary);
border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
background: var(--color-primary);
color: white;
transform: translateY(-2px);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}
.hero {
    min-height: calc(100vh - 92px);            /* altura original con navbar fijo */
    padding: var(--space-lg) var(--space-md) 0; /* elimina margen superior innecesario */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 3rem;
    background: radial-gradient(circle at 20% 20%, rgba(188,155,255,0.35), transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(123,93,205,0.22), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(236,227,255,0.94));
}

.hero-buttons {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    min-width: 180px;
}

.hero-buttons .btn-secondary {
    align-self: center;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 12rem var(--space-sm);
    }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.5rem;
        text-align: left;
        padding-inline: 1rem;
    }
    .hero-text {
        width: 100%;
        padding: 0;
        text-align: left;
    }
    .hero-text h1,
    .hero-text .subtitle {
        transform: none;
        text-align: left;
    }
    .hero-buttons {
        justify-content: flex-start;
        gap: 0.75rem;
        flex-wrap: wrap;
        width: 100%;
    }
    .hero-buttons .btn {
        flex: 0 1 auto;
        max-width: none;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0.9rem 1.8rem;
        min-width: 0;
        width: auto;
    }
    .hero-buttons .btn-primary {
        margin-top: 0.4rem;
    }
    .hero-image {
        padding-right: 0;
        justify-content: center;
        margin-inline: auto;
    }
    .hero-image .image-container {
        width: min(260px, 70vw);
        min-height: 220px;
        transform: none;
        margin: 0;
        padding: 0.5rem;
    }
}

.hero::after {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 60%;
    right: 0;
    background: rgba(188, 155, 255, 0.18);
    border-radius: 48px 0 0 48px;
    pointer-events: none;
}

.hero::after {
    width: 44%;
    right: auto;
    left: calc(58% + 1.5rem);
    background: rgba(188, 155, 255, 0.2);
    filter: blur(4px);
    border-radius: 28px;
    transform: translate(8%, 4%);
    transition: transform 0.9s ease;
}

.hero-content {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 2.5rem; /* reduce espacio para achicar */
    transition: transform 0.8s ease, filter 0.8s ease;
}

.image-container {
    width: min(320px, 28vw);
    min-height: 280px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 55px 120px rgba(39, 36, 37, 0.3);
    z-index: 2;
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

.hero-image .image-container {
    transform: rotate(-2deg) translateX(30px);
    transform-origin: top right;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    margin-left: 2rem;
}

.hero-image .shape-overlay {
    top: -40px;
    right: -30px;
    width: 120%;
    height: 120%;
    filter: blur(14px);
}

.hero-image .image-container img {
    border-radius: 34px;
}

.doctor-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.location-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), #f5f3ff);
}

.location-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(188,155,255,0.15), rgba(255,255,255,0.8));
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(39, 36, 37, 0.08);
}

.location-info h2 {
    font-size: 2.25rem;
}

.location-info .address {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 1rem;
}

.location-info .address h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.location-info .address p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
}

.location-info .btn {
    width: fit-content;
    align-self: flex-start;
    padding: 0.9rem 2.4rem;
}

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 360px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .location-info {
        padding: 2rem;
    }

    .map-container {
        height: 260px;
    }
}

/* ===== Antes y Después ===== */
.before-after-section {
    background: #fdfdff;
    padding: var(--space-xxl) 0 calc(var(--space-xxl) + var(--space-lg));
    margin-top: var(--space-xl);
    position: relative;                        /* crea contexto para el overlay decorativo */
    border-radius: var(--radius-xl);            /* suaviza los bordes del bloque */
    border: 1px solid rgba(188, 155, 255, 0.3);/* da un contorno violeta sutil */
    overflow: hidden;                           /* oculta el glow exterior */
    box-shadow: 0 25px 65px rgba(39, 36, 37, 0.12); /* levanta visualmente la sección */
}

.before-after-section .section-header {
    margin-top: var(--space-lg);
}

.gallery-container {
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: minmax(420px, auto);
    gap: 1.75rem;
    justify-items: stretch;
    padding-top: 1.5rem;
}

.before-after-section::before {
    content: '';
    position: absolute;
    inset: 20% 5% 5% auto;                     /* pone glow en la esquina superior derecha */
    width: 45%;
    height: 65%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(188, 155, 255, 0.35), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

.gallery-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 65px rgba(39, 36, 37, 0.1);
    border: 1px solid rgba(39, 36, 37, 0.05);
    min-height: 500px;
    display: block;
}

.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(188,155,255,0.12), transparent 60%);
    pointer-events: none;
}

.gallery-card iframe {
    width: 100%;
    height: 100%;
    min-height: 510px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .before-after-mobile {
        background: #ffffff;                    /* fondo más limpio para móviles */
        border-radius: var(--radius-lg);        /* bordes algo menos pronunciados */
        padding: var(--space-lg) 0 calc(var(--space-lg) + var(--space-md));
        border: 1px solid rgba(188, 155, 255, 0.25);
        box-shadow: 0 12px 36px rgba(39, 36, 37, 0.08);
    }

    .before-after-mobile .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        grid-auto-rows: minmax(320px, auto);
        gap: 1rem;
    }

    .before-after-mobile .gallery-card {
        min-height: 360px;
    }

    .before-after-mobile::before {
        inset: 35% 15% 10% auto;                /* ajusta glow para móviles */
        width: 65%;
        height: 60%;
        filter: blur(20px);
    }
}

@media (max-width: 768px) {
    .gallery-card iframe {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-section {
        height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero-section::before {
        background: linear-gradient(
            180deg,
            #f2f2f2 0%,
            #f2f2f2 40%,
            #e9e3ff 40%,
            #e9e3ff 100%
        );
    }

    .hero-section .hero-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        min-height: 0;
    }

    .hero-section .hero-text {
        padding-right: 0;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .hero-section .hero-image {
        width: 100%;
        margin-top: 1.5rem;
        justify-content: center;
        align-items: flex-end;
        height: auto;
    }

    .hero-section .image-container {
        width: 85%;
        max-width: 360px;
        aspect-ratio: 3/4;
        height: auto;
        transform: rotate(0deg);
    }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(188, 155, 255, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-6px);
}
