/* ================================================
   DR. OULKADI - MEDICINA ESTÉTICA EN MARBELLA
   Warm Teal Design System
   ================================================ */

/* === DESIGN TOKENS === */
:root {
    /* Greyscale palette */
    --grey-950: #0a0a0a;
    --grey-900: #171717;
    --grey-800: #262626;
    --grey-700: #404040;
    --grey-600: #525252;
    --grey-500: #737373;
    --grey-400: #a3a3a3;
    --grey-300: #d4d4d4;
    --grey-200: #e5e5e5;
    --grey-100: #f5f5f5;
    --grey-50: #f7f1e8;
    --white: #FAF6F0;

    /* Brand colors */
    --color-primary: #2A6F80;
    --color-primary-dark: #1F5563;
    --color-primary-light: #3A9BB0;
    --color-primary-muted: #3D6B75;
    --color-secondary: var(--grey-900);
    --color-accent: #2A6F80;
    --bg-dark: var(--grey-900);
    --bg-light: var(--grey-50);
    --text-dark: var(--grey-900);
    --text-light: #ffffff;
    --text-muted: var(--grey-500);
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1da851;

    /* Functional */
    --bg-body: #F2EADF;
    --bg-section-alt: #EBE1D4;
    --text-heading: var(--grey-900);
    --text-body: var(--grey-600);
    --text-subtle: var(--grey-400);
    --border-light: var(--grey-200);
    --border-subtle: var(--grey-100);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --section-pad: clamp(4rem, 8vw, 7rem);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.35s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);

    /* Layout */
    --max-width: 1200px;
    --topbar-height: 32px;
    --nav-height: 64px;
}


/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-height) + var(--topbar-height));
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-body);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: rgba(42, 111, 128, 0.18); color: var(--grey-900); }


/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.15;
    font-weight: 700;
    font-style: normal;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--grey-400);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--text-heading);
    margin-bottom: var(--space-md);
    max-width: 680px;
    font-style: normal;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    font-family: var(--font-body);
    color: var(--text-body);
    max-width: 560px;
    line-height: 1.75;
}

.section-subtitle em {
    font-style: normal;
    color: var(--grey-500);
}


/* ================================================
   TOP BAR — Credenciales
   ================================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    z-index: 1001;
    background: var(--grey-900);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.topbar__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.topbar__item svg {
    color: rgba(255, 255, 255, 0.45);
}

.topbar__sep {
    color: rgba(255, 255, 255, 0.25);
}


/* ================================================
   NAVIGATION
   ================================================ */
.nav {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--grey-200);
    box-shadow: var(--shadow-xs);
}

.nav__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.nav__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex-shrink: 0;
}

.nav__name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey-900);
    letter-spacing: -0.01em;
}

.nav__tagline {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-light);
    font-weight: 500;
}

/* Trust bar removed from nav — now in .topbar */

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav__link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-muted);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-primary-dark);
    background: rgba(42, 111, 128, 0.07);
}

.nav__link--cta {
    background: var(--color-primary);
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

.nav__link--cta:hover {
    background: var(--color-primary-dark) !important;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--grey-700);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}


/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: calc(var(--nav-height) + var(--topbar-height));
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-menu__links a {
    display: block;
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--grey-700);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--grey-100);
    transition: color var(--transition-fast);
}

.mobile-menu__links a:hover { color: var(--grey-900); }

.mobile-menu__cta {
    display: inline-block;
    background: var(--color-primary) !important;
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-full) !important;
    text-align: center;
    margin-top: var(--space-md);
    font-size: 1rem !important;
    border-bottom: none !important;
}

.mobile-menu__trust {
    font-size: 0.78rem;
    color: var(--grey-400);
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--grey-100);
}


/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.2;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--white);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--grey-700);
    border-color: var(--grey-300);
}
.btn--ghost:hover {
    border-color: var(--grey-500);
    color: var(--grey-900);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--whatsapp {
    background: var(--color-whatsapp);
    color: var(--white);
    border-color: var(--color-whatsapp);
}
.btn--whatsapp:hover {
    background: var(--color-whatsapp-dark);
    border-color: var(--color-whatsapp-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

.btn--full { width: 100%; }

.btn svg { flex-shrink: 0; }


/* ================================================
   HERO
   ================================================ */
.hero {
    padding-top: calc(var(--nav-height) + var(--topbar-height) + var(--space-3xl));
    padding-bottom: var(--space-4xl);
    background: var(--white);
    overflow: hidden;
}

.hero__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero__proof-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero__proof-badge {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--grey-600);
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.hero__proof-badge svg {
    color: #f59e0b;
}

.hero__proof-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--grey-300);
    flex-shrink: 0;
}

.hero__title {
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    color: var(--grey-900);
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.025em;
    font-style: normal;
}

.hero__title em,
.hero__title-accent {
    font-style: normal;
    color: var(--color-primary);
    background-image: linear-gradient(to top, rgba(42, 111, 128, 0.12) 0%, rgba(42, 111, 128, 0.12) 35%, transparent 35%);
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 0.15em;
}

.hero__text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--grey-500);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

/* Legacy proof items removed — replaced by .hero__proof-bar */

/* Hero visual / image */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__image-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--grey-100);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(30%);
    transition: filter 0.6s var(--ease-out);
}

.hero__image-wrap:hover .hero__image {
    filter: grayscale(0%);
}

/* Float card removed — data consolidated into .hero__proof-bar */


/* ================================================
   DIAGNOSTIC SELECTOR
   ================================================ */
.diagnostic {
    padding: var(--section-pad) 0;
    background: var(--grey-50);
}

.diagnostic__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.diagnostic__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.diagnostic__header .section-title,
.diagnostic__header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Zone cards */
.diagnostic__zones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.zone-card {
    background: var(--white);
    border: 2px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.zone-card:hover {
    border-color: var(--grey-400);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.zone-card[aria-pressed="true"],
.zone-card.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--white);
}

.zone-card[aria-pressed="true"] .zone-card__icon,
.zone-card.active .zone-card__icon { color: var(--white); }

.zone-card[aria-pressed="true"] .zone-card__title,
.zone-card.active .zone-card__title { color: var(--white); }

.zone-card[aria-pressed="true"] .zone-card__desc,
.zone-card.active .zone-card__desc { color: rgba(255,255,255,0.7); }

.zone-card__icon {
    color: var(--grey-500);
    transition: color var(--transition-fast);
}

.zone-card__title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    font-style: normal;
    color: var(--grey-900);
}

.zone-card__desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--grey-500);
    line-height: 1.5;
}

/* Problems step */
.diagnostic__problems {
    max-width: 800px;
    margin: var(--space-2xl) auto 0;
    animation: fadeUp 0.4s var(--ease-out);
}

.diagnostic__question {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 500;
    color: var(--grey-700);
    margin-bottom: var(--space-lg);
}

.diagnostic__problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.problem-btn {
    background: var(--white);
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey-700);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.problem-btn:hover {
    border-color: var(--grey-400);
    background: var(--grey-50);
}

.problem-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--white);
}

/* Recommendation */
.diagnostic__result {
    max-width: 640px;
    margin: var(--space-2xl) auto 0;
    animation: fadeUp 0.4s var(--ease-out);
}

.recommendation {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.recommendation__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-500);
    background: var(--grey-100);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.recommendation__title {
    font-size: 1.75rem;
    font-style: normal;
    color: var(--grey-900);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.recommendation__text {
    font-family: var(--font-body);
    color: var(--grey-500);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

.recommendation__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.recommendation__reset {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--grey-400);
    transition: color var(--transition-fast);
    padding: var(--space-sm);
}

.recommendation__reset:hover {
    color: var(--grey-700);
}


/* ================================================
   DOCTOR
   ================================================ */
.doctor {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.doctor__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.doctor__image-col {
    position: sticky;
    top: calc(var(--nav-height) + var(--topbar-height) + var(--space-xl));
}

.doctor__portrait {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--grey-100);
    margin-bottom: var(--space-lg);
}

.doctor__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    transition: filter 0.6s var(--ease-out);
}

.doctor__portrait:hover .doctor__photo {
    filter: grayscale(50%);
}

.doctor__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.doctor__gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    filter: grayscale(100%);
    transition: filter 0.6s var(--ease-out);
}

.doctor__gallery-img:hover {
    filter: grayscale(50%);
}

.doctor__credentials-card {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.doctor__credential {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doctor__credential-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey-400);
}

.doctor__credential-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--grey-900);
}

.doctor__content .section-title {
    max-width: 500px;
}

.doctor__intro p {
    font-family: var(--font-body);
    color: var(--grey-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    font-size: 1.02rem;
}

.doctor__intro p strong {
    color: var(--grey-900);
    font-weight: 600;
}

.doctor__affiliations {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}

.affiliation {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey-500);
    background: var(--grey-100);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
}


/* ================================================
   BOOK — Authority section
   ================================================ */
.book {
    padding: var(--section-pad) 0;
    background: var(--bg-section-alt);
}

.book__header {
    max-width: var(--max-width);
    margin: 0 auto var(--space-2xl);
    padding: 0 var(--space-xl);
    text-align: center;
}

.book__header .section-title,
.book__header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.book__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.book__card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.book__card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.book__cover {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.book__cover-visual {
    position: relative;
    width: 180px;
    filter: drop-shadow(6px 10px 20px rgba(0,0,0,0.18));
    transition: transform 0.4s var(--ease-out);
}

.book__card:hover .book__cover-visual {
    transform: rotate(-2deg) scale(1.03);
}

.book__cover-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.book__card-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.book__card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: normal;
    color: var(--grey-900);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.book__card-edition {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.book__card-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--grey-500);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 380px;
}

.book__card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: var(--space-lg);
}

.book__card-meta span {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--grey-400);
}


/* ================================================
   RESULTS
   ================================================ */
.results {
    padding: var(--section-pad) 0;
    background: var(--grey-50);
}

.results__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.results__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.results__header .section-title,
.results__header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.results__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--grey-200);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--grey-100);
}

.result-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.result-card:hover .result-card__image img {
    transform: scale(1.03);
}

.result-card__info {
    padding: var(--space-lg);
}

.result-card__info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: normal;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.3rem;
}

.result-card__info p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--grey-500);
}

.results__cta {
    text-align: center;
    margin-top: var(--space-2xl);
}


/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.testimonials__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.testimonials__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.testimonials__header .section-title {
    margin-left: auto;
    margin-right: auto;
}

.testimonials__google {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.88rem;
    color: var(--grey-500);
    margin-top: var(--space-md);
}

.testimonials__google strong {
    color: var(--grey-900);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--grey-50);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
    font-size: 0.95rem;
    color: var(--grey-600);
    letter-spacing: 2px;
}

.testimonial-card__text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--grey-600);
    line-height: 1.75;
    flex: 1;
    border: none;
    padding: 0;
    margin: 0;
    quotes: none;
    font-style: normal;
}

.testimonial-card__text strong {
    color: var(--grey-900);
    font-weight: 600;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--grey-200);
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grey-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--grey-600);
    flex-shrink: 0;
}

.testimonial-card__name {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--grey-800);
}

.testimonial-card__treatment {
    display: block;
    font-size: 0.78rem;
    color: var(--grey-400);
}

.testimonials__links {
    text-align: center;
    margin-top: var(--space-xl);
}

.testimonials__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey-500);
    transition: color var(--transition-fast);
}

.testimonials__link:hover {
    color: var(--grey-900);
}


/* ================================================
   CONTACT
   ================================================ */
.contact {
    padding: var(--section-pad) 0;
    background: var(--grey-50);
}

.contact__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact__text {
    font-family: var(--font-body);
    color: var(--grey-500);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    font-size: 1.02rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact__detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact__detail svg {
    flex-shrink: 0;
    color: var(--grey-400);
    margin-top: 2px;
}

.contact__detail strong {
    display: block;
    color: var(--grey-900);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.contact__detail span,
.contact__detail a {
    font-size: 0.88rem;
    color: var(--grey-500);
    line-height: 1.5;
}

.contact__detail a:hover { color: var(--grey-900); }

.contact__buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Form */
.form {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
}

.form__header {
    margin-bottom: var(--space-xl);
}

.form__header h3 {
    font-size: 1.5rem;
    font-style: normal;
    color: var(--grey-900);
    margin-bottom: 0.3rem;
}

.form__header p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--grey-500);
}

.form__group {
    margin-bottom: var(--space-lg);
}

.form__group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: var(--space-sm);
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--grey-900);
    font-size: 0.92rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: var(--grey-400);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: var(--grey-500);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form__group textarea {
    resize: vertical;
    min-height: 90px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form__checkbox {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.form__checkbox label {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--grey-500);
    line-height: 1.5;
    margin-bottom: 0;
}

.form__checkbox label a {
    color: var(--grey-700);
    text-decoration: underline;
    text-decoration-color: var(--grey-300);
}

.form__checkbox label a:hover {
    color: var(--grey-900);
}


/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--grey-900);
    color: rgba(255,255,255,0.7);
    padding-top: var(--space-4xl);
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand .nav__name { color: var(--white); }
.footer__brand .nav__tagline { color: rgba(255,255,255,0.4); }

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: var(--space-lg);
    color: rgba(255,255,255,0.5);
}

.footer-credentials {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-top: var(--space-md);
    line-height: 1.7;
}

.footer__social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer__col h4 {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--space-lg);
}

.footer__col ul { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer__col li,
.footer__col a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}

.footer__col a:hover { color: var(--white); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    color: rgba(255,255,255,0.4);
    transition: color var(--transition-fast);
}

.footer__legal a:hover { color: rgba(255,255,255,0.8); }


/* ================================================
   WHATSAPP FLOAT
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.whatsapp-float__tooltip {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--grey-600);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
}

.whatsapp-float__tooltip span:first-child {
    font-weight: 600;
    color: var(--grey-900);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-float__icon {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}


/* ================================================
   SUCCESS MODAL
   ================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal__content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__icon {
    color: var(--grey-600);
    margin-bottom: var(--space-lg);
}

.modal__content h3 {
    font-size: 1.5rem;
    font-style: normal;
    color: var(--grey-900);
    margin-bottom: var(--space-sm);
}

.modal__content p {
    color: var(--grey-500);
    font-size: 0.92rem;
    margin-bottom: var(--space-xl);
}


/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-right"] { transform: translateX(-30px); }

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .topbar { display: none; }
    :root { --topbar-height: 0px; }
    .nav { top: 0; }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero__text { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__proof-bar { justify-content: center; }

    .hero__visual { order: -1; }
    .hero__image-wrap { max-width: 280px; }

    .doctor__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .doctor__image-col { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
    .doctor__portrait { margin-bottom: 0; }
    .doctor__gallery { grid-column: 1 / -1; }
    .doctor__credentials-card { grid-column: 1 / -1; }

    .book__grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }

    .contact__container { grid-template-columns: 1fr; }

    .results__grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials__grid { grid-template-columns: repeat(2, 1fr); }

    .footer__main { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .footer__columns { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .nav__links { display: none; }
    .nav__toggle { display: flex; }

    .hero { padding-top: calc(var(--nav-height) + var(--topbar-height) + var(--space-2xl)); padding-bottom: var(--space-3xl); }

    .hero__title { font-size: clamp(2rem, 7vw, 2.6rem); }
    .hero__image-wrap { max-width: 220px; }

    .diagnostic__zones { grid-template-columns: 1fr; max-width: 360px; }
    .diagnostic__problem-grid { grid-template-columns: 1fr 1fr; }

    .doctor__image-col { grid-template-columns: 1fr; }

    .results__grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

    .testimonials__grid { grid-template-columns: 1fr; }

    .contact__container { gap: var(--space-2xl); }
    .form { padding: var(--space-xl); }
    .form__row { grid-template-columns: 1fr; }

    .footer__columns { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__legal { justify-content: center; }

    .whatsapp-float__tooltip { display: none; }
    .whatsapp-float { bottom: var(--space-lg); right: var(--space-lg); }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__image-wrap { max-width: 180px; }

    .contact__buttons { flex-direction: column; }
    .contact__buttons .btn { width: 100%; }

    .footer__columns { grid-template-columns: 1fr; }
}
