/* =========================================================
   Dr. Marco Albán — Premium redesign
   Palette preserved: navy #0f2b5c · cyan #00b0ff · light #f8fafc
   ========================================================= */

:root {
    --navy: #0f2b5c;
    --navy-deep: #0a1f44;
    --navy-ink: #071733;
    --cyan: #00b0ff;
    --cyan-soft: rgba(0, 176, 255, 0.12);
    --gradient: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: rgba(15, 43, 92, 0.08);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 8px rgba(15, 43, 92, 0.06);
    --shadow-md: 0 12px 32px -8px rgba(15, 43, 92, 0.12);
    --shadow-lg: 0 32px 64px -16px rgba(15, 43, 92, 0.18);
    --radius: 20px;
    --radius-lg: 28px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }

/* Grain overlay */
.grain {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ===== Typography helpers ===== */
.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 18px;
}
.eyebrow.center { text-align: center; }
.eyebrow.light { color: rgba(255, 255, 255, 0.75); }

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.15;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.section-title em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title.center { text-align: center; }

.section-head { max-width: 780px; margin: 0 auto 64px; }
.section-sub { color: var(--muted); margin-top: 22px; font-size: 1.05rem; }
.section-sub.small { font-size: 0.92rem; margin-top: 12px; opacity: 0.85; }
.section-sub.center { text-align: center; }
.section-paragraph { color: var(--muted); margin: 26px 0 30px; font-size: 1.02rem; }
.section-paragraph strong { color: var(--navy); font-weight: 700; }

/* ===== Reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700; font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 999px;
    box-shadow: 0 12px 28px -8px rgba(0, 176, 255, 0.5);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -8px rgba(0, 176, 255, 0.6); }
.btn-primary svg { transition: transform 0.35s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary.full { width: 100%; justify-content: center; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }

.btn-ghost {
    display: inline-flex; align-items: center;
    padding: 16px 32px;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 176, 255, 0.45);
    color: var(--cyan);
    font-weight: 700; font-size: 0.95rem;
    transition: all 0.35s var(--ease);
    background: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: var(--cyan-soft); border-color: var(--cyan); transform: translateY(-3px); }

.btn-light {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 30px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff; font-weight: 700; font-size: 0.9rem;
    backdrop-filter: blur(8px);
    transition: all 0.35s var(--ease);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-3px); }

.text-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--cyan); font-weight: 700; font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: gap 0.3s var(--ease);
}
.text-link:hover { gap: 14px; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: all 0.4s var(--ease);
    padding: 18px 0;
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    max-width: 1240px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px;
}
.logo-img { height: 52px; width: auto; transition: height 0.4s var(--ease); }
.navbar.scrolled .logo-img { height: 44px; }

.nav-menu { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
    position: relative;
    padding: 10px 14px;
    font-size: 0.86rem; font-weight: 600;
    color: var(--text);
    border-radius: 999px;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 2px; border-radius: 2px;
    background: var(--gradient);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.btn-reservar {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    font-weight: 700; font-size: 0.83rem;
    letter-spacing: 0.04em; text-transform: uppercase;
    transition: all 0.35s var(--ease);
    white-space: nowrap;
}
.btn-reservar:hover { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s var(--ease); }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 150px 0 80px;
    overflow: hidden;
}
.hero-mesh {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(0, 176, 255, 0.14), transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 85%, rgba(15, 43, 92, 0.08), transparent 60%),
        radial-gradient(ellipse 40% 40% at 60% 60%, rgba(0, 176, 255, 0.06), transparent 55%),
        var(--bg);
}
.hero-rings {
    position: absolute; z-index: -1;
    top: 50%; right: -180px; transform: translateY(-50%);
    width: 720px; height: 720px;
    border-radius: 50%;
    border: 1px solid rgba(0, 176, 255, 0.18);
    animation: ringPulse 8s ease-in-out infinite;
}
.hero-rings::before, .hero-rings::after {
    content: ''; position: absolute; border-radius: 50%;
    border: 1px solid rgba(0, 176, 255, 0.12);
}
.hero-rings::before { inset: 70px; }
.hero-rings::after { inset: 150px; border-color: rgba(15, 43, 92, 0.1); }
@keyframes ringPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.04); opacity: 0.7; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3rem, 6.5vw, 5.2rem);
    line-height: 1.02;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.hero-title em {
    font-style: italic; font-weight: 400;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 1.18rem; font-weight: 600;
    color: var(--navy);
    max-width: 480px;
    margin-bottom: 18px;
}
.hero-desc { color: var(--muted); max-width: 500px; margin-bottom: 38px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 42px; }

.hero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.stars-inline { color: #fbbf24; letter-spacing: 2px; font-size: 0.85rem; }
.meta-divider { width: 1px; height: 20px; background: var(--border); }

/* Hero visual */
.hero-visual { position: relative; }
.portrait-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}
.portrait-frame::before {
    content: '';
    position: absolute; inset: -14px -14px auto auto;
    width: 55%; height: 55%;
    border-radius: var(--radius-lg);
    background: var(--gradient);
    opacity: 0.12;
    z-index: -1;
    transform: translate(16px, -16px);
}
.portrait-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    object-position: 78% 22%;
    aspect-ratio: 4/3.1;
}
.portrait-card {
    position: absolute;
    left: -24px; bottom: 28px;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 22px;
    border-radius: 16px;
    animation: floatCard 5s ease-in-out infinite;
}
.portrait-card strong { display: block; font-size: 0.88rem; color: var(--navy); }
.portrait-card small { font-size: 0.75rem; color: var(--muted); }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
.pulse-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.glass {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-md);
}

.hero-bottom-fade {
    position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

/* ===== Bariatric ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefit-stack { display: flex; flex-direction: column; gap: 18px; }
.benefit-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    align-items: center;
    padding: 26px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
    overflow: hidden;
}
.benefit-card:nth-child(2) { transform: translateX(26px); }
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 176, 255, 0.3); }
.benefit-card:nth-child(2):hover { transform: translateX(26px) translateY(-4px); }
.benefit-card.featured {
    background: linear-gradient(135deg, var(--navy) 0%, #14418a 60%, #0c6dbd 100%);
    border-color: transparent;
}
.benefit-card.featured h3 { color: #fff; }
.benefit-card.featured p { color: rgba(255, 255, 255, 0.72); }
.benefit-card.featured .benefit-icon { background: rgba(255, 255, 255, 0.14); color: #6fd4ff; }
.benefit-card.featured .benefit-num { color: rgba(255, 255, 255, 0.16); }

.benefit-num {
    position: absolute; top: 12px; right: 20px;
    font-family: var(--font-display);
    font-size: 2.6rem; font-weight: 300;
    color: rgba(15, 43, 92, 0.09);
    line-height: 1;
}
.benefit-icon {
    grid-row: span 2;
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: var(--cyan-soft);
    color: var(--cyan);
}
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); align-self: end; }
.benefit-card p { font-size: 0.86rem; color: var(--muted); align-self: start; margin-top: 3px; }

/* ===== IMC ===== */
.imc { background: linear-gradient(180deg, var(--bg) 0%, #eef4fa 50%, var(--bg) 100%); }
.imc-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: start;
}

.imc-card {
    border-radius: var(--radius-lg);
    padding: 40px;
    position: sticky; top: 110px;
}

.unit-toggle {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    background: rgba(15, 43, 92, 0.06);
    border-radius: 999px;
    padding: 5px;
    margin-bottom: 30px;
}
.unit-btn {
    position: relative; z-index: 1;
    padding: 10px;
    border-radius: 999px;
    font-weight: 700; font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.3s;
}
.unit-btn.active { color: #fff; }
.unit-slider {
    position: absolute; top: 5px; bottom: 5px; left: 5px;
    width: calc(50% - 5px);
    border-radius: 999px;
    background: var(--gradient);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 4px 12px rgba(0, 176, 255, 0.35);
}
.unit-toggle.imperial .unit-slider { transform: translateX(100%); }

.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 8px;
}
.input-group input {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-family: inherit; font-size: 1.05rem; font-weight: 600;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.input-group input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(0, 176, 255, 0.14);
}

.imc-result {
    margin-top: 26px;
    text-align: center;
    padding: 24px;
    border-radius: 18px;
    background: rgba(15, 43, 92, 0.04);
    border: 1px dashed rgba(15, 43, 92, 0.15);
    transition: all 0.4s var(--ease);
}
.imc-result.has-value { background: var(--cyan-soft); border-color: rgba(0, 176, 255, 0.4); border-style: solid; }
.result-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem; font-weight: 400;
    color: var(--navy);
    line-height: 1.1;
}
.result-category { font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.imc-ranges { display: flex; flex-direction: column; gap: 12px; }
.range-item {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s var(--ease);
}
.range-item.active {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(0, 176, 255, 0.12), var(--shadow-md);
    transform: scale(1.02);
}
.range-badge {
    min-width: 82px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem; font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    border-radius: 999px;
    border: 1px solid transparent;
}
.range-badge.teal { background: #ccfbf1; color: #0f766e; border-color: rgba(15, 118, 110, 0.15); }
.range-badge.green { background: #dcfce7; color: #15803d; border-color: rgba(21, 128, 61, 0.15); }
.range-badge.yellow { background: #fef9c3; color: #a16207; border-color: rgba(161, 98, 7, 0.15); }
.range-badge.orange { background: #ffedd5; color: #c2410c; border-color: rgba(194, 65, 12, 0.15); }
.range-badge.coral { background: #ffe4e6; color: #be123c; border-color: rgba(190, 18, 60, 0.15); }
.range-badge.red { background: #fee2e2; color: #b91c1c; border-color: rgba(185, 28, 28, 0.15); }
.range-item h4 { font-size: 0.94rem; font-weight: 700; color: var(--navy); }
.range-item p { font-size: 0.84rem; color: var(--muted); }

/* ===== Testimonials ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 42px 32px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    display: flex; flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote-mark {
    position: absolute; top: 6px; left: 24px;
    font-family: var(--font-display);
    font-size: 5rem; line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.25;
}
.testimonial-card blockquote {
    font-size: 0.94rem;
    color: var(--text);
    flex: 1;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-card figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); padding-top: 18px; }
.testimonial-card figcaption strong { color: var(--navy); font-size: 0.95rem; }
.testimonial-card figcaption span { font-size: 0.8rem; color: var(--muted); }
.testimonial-card .stars { color: #fbbf24; letter-spacing: 3px; font-size: 0.85rem; margin-top: 4px; }

.doctoralia-card {
    background: linear-gradient(160deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid rgba(0, 176, 255, 0.2);
    border-radius: var(--radius);
    padding: 32px;
    display: flex; flex-direction: column; gap: 20px;
    box-shadow: var(--shadow-sm);
    grid-column: 2;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.doctoralia-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.doc-head { display: flex; gap: 16px; align-items: center; }
.doc-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover; object-position: 75% 20%;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}
.doc-head h4 { color: var(--navy); font-size: 1rem; }
.doc-head p { font-size: 0.82rem; color: var(--muted); }
.doc-rating { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.stars-green { color: #00c3a5; letter-spacing: 2px; }
.btn-doctoralia {
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    background: #00c3a5;
    color: #fff; font-weight: 700; font-size: 0.9rem;
    transition: all 0.3s var(--ease);
}
.btn-doctoralia:hover { background: #00a98f; transform: translateY(-2px); }
.doctoralia-brand { text-align: center; font-weight: 800; color: #00c3a5; font-size: 0.95rem; }
.doctoralia-brand span { margin-right: 4px; }

/* ===== News ===== */
.news { background: linear-gradient(180deg, var(--bg) 0%, #eef4fa 100%); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-media { overflow: hidden; aspect-ratio: 700/540; }
.news-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.news-card:hover .news-media img { transform: scale(1.06); }
.news-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 {
    font-size: 1.02rem; font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 12px;
}
.news-body p { font-size: 0.88rem; color: var(--muted); flex: 1; margin-bottom: 18px; }
.read-more {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--cyan); font-weight: 700; font-size: 0.88rem;
    transition: gap 0.3s var(--ease);
}
.news-card:hover .read-more { gap: 12px; }

/* ===== Fonasa ===== */
.fonasa {
    background: linear-gradient(135deg, var(--navy-ink) 0%, var(--navy) 55%, #0c4a8a 100%);
    color: #fff;
    overflow: hidden;
}
.fonasa-glow {
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 176, 255, 0.22), transparent 65%);
    pointer-events: none;
}
.fonasa-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 0.85fr;
    gap: 56px;
    position: relative;
}
.fonasa-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 28px;
}
.fonasa-title em { font-style: italic; color: #6fd4ff; }
.fonasa-badges { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.fonasa-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 800; font-size: 1.3rem;
}
.pad-badge {
    padding: 6px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 800; letter-spacing: 0.1em;
}
.fonasa-desc { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

.fonasa-reqs h3 {
    font-family: var(--font-display);
    font-weight: 400; font-size: 1.5rem;
    margin-bottom: 24px;
}
.fonasa-reqs ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.fonasa-reqs li { display: flex; gap: 14px; align-items: flex-start; }
.fonasa-reqs .bullet {
    width: 9px; height: 9px; flex-shrink: 0;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.8);
}
.fonasa-reqs p { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }

.fonasa-prices { display: flex; flex-direction: column; gap: 18px; }
.price-card {
    padding: 28px 30px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease);
}
.price-card:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }
.price-card.highlight { border-color: rgba(0, 176, 255, 0.55); background: rgba(0, 176, 255, 0.12); }
.price-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.price-card .price {
    font-family: var(--font-display);
    font-size: 2.1rem; font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
}
.price-card p { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

/* ===== Footer ===== */
.footer {
    position: relative;
    background: var(--bg);
    padding: 110px 0 40px;
    text-align: center;
}
.footer-cta h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    color: var(--navy);
    max-width: 640px; margin: 0 auto 18px;
    line-height: 1.2;
}
.footer-cta h2 em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-cta p { color: var(--muted); max-width: 460px; margin: 0 auto 34px; }
.footer-bottom {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.footer-logo { height: 44px; opacity: 0.85; }
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

.scroll-top {
    position: fixed;
    bottom: 104px; right: 28px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--navy);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: all 0.4s var(--ease);
    z-index: 900;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--navy); color: #fff; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d058, #25d366);
    color: #fff;
    box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.55);
    z-index: 950;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.whatsapp-float::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-3px); box-shadow: 0 16px 34px -6px rgba(37, 211, 102, 0.7); }
.wa-tooltip {
    position: absolute; right: 72px;
    padding: 8px 16px;
    background: var(--navy);
    color: #fff;
    font-size: 0.8rem; font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0; visibility: hidden;
    transform: translateX(8px);
    transition: all 0.3s var(--ease);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; visibility: visible; transform: translateX(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero { min-height: auto; }
    .hero-visual { max-width: 560px; }
    .grid-2 { grid-template-columns: 1fr; gap: 52px; }
    .benefit-card:nth-child(2) { transform: none; }
    .benefit-card:nth-child(2):hover { transform: translateY(-4px); }
    .imc-grid { grid-template-columns: 1fr; }
    .imc-card { position: static; }
    .testimonial-grid { grid-template-columns: 1fr 1fr; }
    .doctoralia-card { grid-column: auto; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .fonasa-grid { grid-template-columns: 1fr; gap: 44px; }
    .mobile-toggle { display: flex; margin-left: auto; }
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(320px, 84vw);
        flex-direction: column;
        gap: 6px;
        background: rgba(248, 250, 252, 0.97);
        backdrop-filter: blur(20px);
        padding: 110px 32px 32px;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.45s var(--ease), visibility 0s 0.45s;
        z-index: -1;
    }
    .nav-menu.open { transform: translateX(0); visibility: visible; transition: transform 0.45s var(--ease); }
    .nav-link { font-size: 1.05rem; padding: 12px 0; }
    .nav-link::after { left: 0; right: auto; width: 32px; }
}

@media (max-width: 720px) {
    .section { padding: 76px 0; }
    .navbar-inner { gap: 14px; }
    .btn-reservar { display: none; }
    .hero { padding-top: 120px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-ghost { justify-content: center; text-align: center; }
    .portrait-card { left: 12px; bottom: 14px; padding: 12px 16px; }
    .testimonial-grid, .news-grid { grid-template-columns: 1fr; }
    .imc-card { padding: 28px 22px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
    .scroll-top { bottom: 88px; right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
