/* Layout: premium clinic site in the doctor's navy. Split navy hero with portrait and floating stats,
   generous white sections on a 1200px grid, rounded photography, champagne accents for actions and details. */
:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --tint: #edf1f5;
  --ink: #0e1b28;
  --muted: #566577;
  --line: #dde4eb;
  --navy: #0f2234;
  --navy-2: #173149;
  --on-navy: #f2f5f8;
  --on-navy-muted: #a7b5c4;
  --accent: #c4a46c;
  --accent-strong: #a8864c;
  --accent-ink: #13202d;
  --ph-bg: #f6ecd8;
  --ph-ink: #6e4f12;
  --img-ph: #e3e8ee;
  --shadow: 0 18px 40px -18px rgba(15, 34, 52, 0.28);
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step--1: 0.85rem;
  --step-0: 1rem;
  --step-1: 1.3rem;
  --step-2: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --step-3: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem);
  --radius: 20px;
  --radius-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a131c; --surface: #101c28; --tint: #0d1822; --ink: #e8edf2; --muted: #9babbb; --line: #213242;
    --navy: #07111a; --navy-2: #102233; --accent: #d4b77f; --accent-strong: #e0c591; --accent-ink: #0d1822;
    --ph-bg: #3b2f17; --ph-ink: #f0d39a; --img-ph: #1a2836; --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a131c; --surface: #101c28; --tint: #0d1822; --ink: #e8edf2; --muted: #9babbb; --line: #213242;
  --navy: #07111a; --navy-2: #102233; --accent: #d4b77f; --accent-strong: #e0c591; --accent-ink: #0d1822;
  --ph-bg: #3b2f17; --ph-ink: #f0d39a; --img-ph: #1a2836; --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap {
  max-width: 1200px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 860px; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-strong); }
.label.on-dark, .dark .label, .page-hero .label { color: var(--accent); }
.rule { display: block; width: 48px; height: 2px; border-radius: 2px; background: var(--accent); margin-block: 1rem; }
.intro { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.small { color: var(--muted); font-size: var(--step--1); margin-top: 1.25rem; max-width: 72ch; }
.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 0.3em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.text-link { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link.light { color: var(--accent); }

/* Images */
.img-ph { display: grid; place-items: center; background: var(--img-ph); color: var(--muted); font-size: 0.72rem; text-align: center; padding: 0.5rem; max-width: 100%; border-radius: var(--radius-sm); }
img.tall, img.sq, img.portrait, img.avatar, img.g-img, img.feat-img, img.bio-photo, img.hero-photo, img.exp-img { object-fit: cover; width: 100%; }
.tall { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); }
.sq { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); object-position: center 30%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font: 700 0.92rem var(--font-body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.btn svg .dot { fill: currentColor; stroke: none; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgba(196, 164, 108, 0.9); }
.btn.primary:hover { background: var(--accent-strong); color: #fff; }
.btn.outline-light { border-color: rgba(255, 255, 255, 0.35); color: var(--on-navy); }
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--on-navy); }
.btn.ghost-dark { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn.ghost-dark:hover { border-color: var(--accent); }
.btn.small { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.monogram {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--accent); font: 600 1.15rem var(--font-display); letter-spacing: 0.04em;
}
.logo-img { width: 56px; height: 48px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; font: 600 1.25rem/1.1 var(--font-display); white-space: nowrap; }
.brand-name small { font: 700 0.62rem var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-strong); margin-top: 0.2rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav .lang-switch { font-size: 0.78rem; letter-spacing: 0.1em; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.65rem; color: var(--ink); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.nav-toggle span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-block: 0.5rem 1.25rem; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding-block: 0.8rem; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .site-nav .lang-switch { align-self: flex-start; margin-top: 0.9rem; border-bottom: 1px solid var(--line) !important; padding: 0.35rem 0.8rem !important; }
  .site-nav .nav-cta { margin-top: 0.9rem; }
}

/* Hero */
.hero { background: radial-gradient(120% 80% at 85% 10%, var(--navy-2) 0%, var(--navy) 55%); color: var(--on-navy); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.hero h1 { max-width: 16ch; }
.hero-sub { color: var(--on-navy-muted); font-size: 1.12rem; max-width: 52ch; }
.hero .actions { margin-top: 0.4rem; }
.trust { list-style: none; padding: 1.4rem 0 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: var(--on-navy-muted); }
.trust li { display: flex; align-items: center; gap: 0.5rem; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-media { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.hero-photo { aspect-ratio: 4 / 5; border-radius: 28px; object-position: center 25%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.hero-media::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(196, 164, 108, 0.45); border-radius: 32px; z-index: 0; }
.hero-media > * { position: relative; z-index: 1; }
.stats { position: absolute; left: -2.5rem; bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.stat { display: flex; align-items: center; gap: 0.8rem; background: var(--surface); color: var(--ink); padding: 0.7rem 1.1rem 0.7rem 0.8rem; border-radius: 14px; box-shadow: var(--shadow); }
.stat strong { font: 600 1.9rem/1 var(--font-display); color: var(--accent-strong); min-width: 2.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.8rem; font-weight: 600; line-height: 1.3; max-width: 11ch; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
  .hero-media { animation-delay: 0.15s; }
  .stat { animation: rise 0.7s 0.5s cubic-bezier(.2, .7, .2, 1) both; }
  .stat:nth-child(2) { animation-delay: 0.62s; }
  .stat:nth-child(3) { animation-delay: 0.74s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes reveal { from { transform: translateY(18px); } to { transform: none; } }
  }
}

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section.tint { background: var(--tint); }
.section.dark { background: var(--navy); color: var(--on-navy); }
.section.dark .intro, .section.dark .small, .section.dark p { color: var(--on-navy-muted); }
.section.dark h2, .section.dark h3 { color: var(--on-navy); }
.sec-head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.sec-head.center { align-items: center; text-align: center; margin-inline: auto; }
.sec-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; max-width: none; gap: 1.5rem; }
.sec-head.row .sec-head { margin-bottom: 0; }
.prose { display: flex; flex-direction: column; gap: 1.1rem; max-width: 64ch; min-width: 0; }
.sub-label { margin: 3rem 0 1.25rem; }

/* Treatments */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.feat-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-img { aspect-ratio: 4 / 3; border-radius: 0; }
.feat-card .img-ph { border-radius: 0; aspect-ratio: 4 / 3; }
.feat-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
.feat-body h3 { font: 600 1.6rem/1.15 var(--font-display); }
.feat-body p { color: var(--muted); font-size: 0.95rem; }
.treat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.treat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.treat::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; margin-bottom: 0.35rem; }
.treat p { color: var(--muted); font-size: 0.93rem; }
.treat .rule { display: none; }
.tint .treat { background: var(--surface); }
.treat-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.treat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.on-dark .treat { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.on-dark .treat h3 { color: var(--on-navy); }

/* Results */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.case-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.7rem 1.2rem; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(15, 34, 52, 0.45); }
.case-img { display: block; border-radius: calc(var(--radius) - 6px); overflow: hidden; background: #000; }
.case-img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.case-card figcaption { padding: 1rem 0.5rem 0; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.case-n { display: block; font: 600 1.35rem/1.2 var(--font-display); color: var(--ink); margin-bottom: 0.25rem; font-variant-numeric: lining-nums; }
.results-row { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.video-card { margin: 0; }
.video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.video-card figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; }
.case-study { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1rem !important; gap: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.case-study h3 { font: 600 1.8rem/1.15 var(--font-display); margin-top: 0.6rem; }

/* Credentials / definition lists */
.creds { margin: 0.5rem 0 0; display: grid; gap: 0.9rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.creds div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 1rem; }
.creds dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-strong); padding-top: 0.25rem; }
.creds dd { margin: 0; font-size: 0.95rem; }
.case-study .creds { border-top: 0; padding-top: 0; margin: 0; }

/* Doctor */
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.bio-media { position: relative; }
.bio-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); object-position: 30% center; }
.bio-quote { margin: -3rem 1.5rem 0 auto; position: relative; max-width: 340px; background: var(--navy); color: var(--on-navy); padding: 1.3rem 1.5rem; border-radius: var(--radius-sm); font: italic 500 1.2rem/1.4 var(--font-display); box-shadow: var(--shadow); }
.bio .prose h2 { margin-bottom: 0.2rem; }

/* Timeline */
.timeline { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--line); }
.timeline li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 0.6rem; }
.timeline li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent-strong); font: 600 1.25rem var(--font-display);
  margin-bottom: 0.6rem; position: relative;
}
.timeline p { color: var(--muted); font-size: 0.9rem; }

/* Tech */
.tech-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius); overflow: hidden; }
.tech-grid li { background: var(--navy); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.tech-grid h3 { color: var(--on-navy); }
.section:not(.dark) .tech-grid { background: var(--line); }
.section:not(.dark) .tech-grid li { background: var(--surface); }
.section:not(.dark) .tech-grid h3 { color: var(--ink); }
.section:not(.dark) .tech-grid p { color: var(--muted); }

/* Experience */
.exp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.exp-img { aspect-ratio: auto; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.facts { list-style: none; padding: 1.25rem 0 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 0.2rem; }
.facts strong { font: 600 2rem/1 var(--font-display); color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.85rem; color: var(--muted); }

/* Gallery */
.gallery-grid { columns: 3 240px; column-gap: 1rem; }
.gallery-grid > * { display: block; width: 100%; height: auto; margin: 0 0 1rem; border-radius: var(--radius-sm); break-inside: avoid; box-shadow: var(--shadow); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2rem; }

/* Social */
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: inherit; }
.social:hover { border-color: var(--accent); color: var(--accent); }
.social svg, .wa-float svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.social svg .dot, .wa-float svg .dot { fill: currentColor; stroke: none; }
.btn.ghost-dark svg { width: 18px; height: 18px; }

/* Tables */
.table-wrap { overflow-x: auto; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.price { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
.price th, .price td { text-align: left; padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price thead th { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); background: var(--tint); }
.price tbody tr:last-child th, .price tbody tr:last-child td { border-bottom: 0; }
.price tbody th { font-weight: 600; }
.price td.co { font-weight: 700; color: var(--accent-strong); }
.price.time { min-width: 460px; }

/* Steps (inner pages) */
.trip-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.h-sub { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 1.4rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; }
.steps li::before { content: counter(step); grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent-strong); font: 600 1.15rem var(--font-display); }
.steps p { color: var(--muted); font-size: 0.94rem; }

/* FAQ */
.faq-home { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.qa summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--accent-strong); font: 400 1.2rem/1 var(--font-body); transition: transform 0.25s, background 0.25s;
}
.qa[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.answer { padding-bottom: 1.4rem; max-width: 68ch; color: var(--muted); font-size: 0.96rem; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-toc { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; }
.faq-toc ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
.faq-toc a { text-decoration: none; font-weight: 600; }
.faq-toc a:hover { color: var(--accent-strong); }
.faq-toc span { color: var(--muted); font-size: 0.8rem; }
.faq-groups { display: flex; flex-direction: column; gap: 3rem; min-width: 0; }
.faq-group h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin-bottom: 1rem; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; width: 100%; text-align: left; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 0.8rem; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform 0.25s, box-shadow 0.25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card h3 { font: 600 1.55rem/1.15 var(--font-display); }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p:not(.label) { color: var(--muted); font-size: 0.93rem; flex: 1; }
.post-card .label { font-size: 0.66rem; }
.prose.long { max-width: 68ch; gap: 1.15rem; font-size: 1.04rem; }
.prose.long h2 { margin-top: 1.6rem; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
.prose.long h2 + .rule { margin-block: 0; }
.post h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.lede { font: italic 500 1.45rem/1.4 var(--font-display); color: var(--ink); }
.author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.1rem; align-items: center; margin-top: 2rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 0.9rem; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-position: center 25%; }
.author-name { font: 600 1.3rem var(--font-display); }

/* Inner pages */
.page-hero { background: radial-gradient(100% 120% at 90% 0%, var(--navy-2) 0%, var(--navy) 60%); color: var(--on-navy); padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-hero h1 { max-width: 22ch; margin-top: 1rem; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.page-hero .hero-sub { margin-top: 1rem; }
.crumbs { font-size: 0.8rem; color: var(--on-navy-muted); display: flex; flex-wrap: wrap; gap: 0.45rem; }
.crumbs a { color: var(--on-navy-muted); }
.crumbs [aria-current] { color: var(--on-navy); }
.bio.top { align-items: start; }
.sticky-col { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 1.5rem; }
.num-list { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.num-list li::marker { color: var(--accent-strong); font-weight: 700; }
.dash-list, .check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.dash-list li, .check-list li { position: relative; padding-left: 1.7rem; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.9rem; height: 2px; background: var(--accent); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; }
.pull { margin: 2.5rem 0 0; padding: 2rem; border-radius: var(--radius); background: var(--navy); color: var(--on-navy); }
.pull p { font: italic 500 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.4 var(--font-display); }
.pull footer { margin-top: 0.9rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.two-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.creds.travel div { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
.intro-photo { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.intro-photo .tall { max-width: 360px; justify-self: end; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.section .sec-head + .table-wrap { margin-top: 0; }
.section.dark .treat-grid.four .treat p { color: var(--on-navy-muted); }
.small.light, .intro.light { color: var(--on-navy-muted); }

/* CTA band */
.cta-band { background: var(--navy); color: var(--on-navy); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-inner p { color: var(--on-navy-muted); margin-top: 0.5rem; }

/* Contact */
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); padding: 0; max-width: 1160px; }
.contact-info { background: var(--navy); color: var(--on-navy); padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info > p { color: var(--on-navy-muted); }
.contact-list { margin: 0.4rem 0 0; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-list dt { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.contact-list dd { margin: 0.15rem 0 0; font-size: 0.95rem; }
.contact-info .ph { background: rgba(255, 255, 255, 0.1); color: var(--on-navy); }
.lead-form { background: var(--surface); padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8rem; font-weight: 700; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem; width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(196, 164, 108, 0.25); }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-note.error { color: var(--ph-ink); }

/* Footer */
.site-foot { background: var(--navy); color: var(--on-navy); padding-block: clamp(3.5rem, 7vw, 5rem) 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; font-size: 0.92rem; color: var(--on-navy-muted); }
.foot-brand { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.foot-name { font: 600 2rem/1.1 var(--font-display); color: var(--on-navy); }
.foot-kicker { margin-bottom: 0.6rem; }
.foot-h { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 0.9rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.foot-links a, .foot-top a:not(.btn) { text-decoration: none; color: var(--on-navy); }
.foot-links a:hover { color: var(--accent); }
.foot-top p + p { margin-top: 0.5rem; }
.foot-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; color: var(--on-navy-muted); }

.wa-float {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.15rem; border-radius: 999px;
  background: #1f8f4e; color: #ffffff; text-decoration: none; font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.wa-float svg { width: 20px; height: 20px; }

/* Splash */
body:has(.splash) { background: var(--navy); }
.splash { background: radial-gradient(120% 90% at 80% 0%, var(--navy-2) 0%, var(--navy) 60%); color: var(--on-navy); display: grid; place-items: center; padding-block: clamp(3rem, 10vh, 6rem); min-height: 100%; }
.splash-inner { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.name-stack { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.name-stack > span:first-child { font: 600 clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem) var(--font-display); }
.kicker { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }
.splash-h { font-size: var(--step-2); margin-top: 1.5rem; }
.splash-h span { display: block; font-style: italic; color: var(--on-navy-muted); }
.lang-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 100%; margin-top: 1.5rem; }
.lang-card { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 2.2rem 1.6rem; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.03); color: var(--on-navy); text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.lang-card:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--accent); transform: translateY(-3px); }
.lang-card.suggested { border-color: var(--accent); }
.lang-card strong { font: 600 var(--step-2) var(--font-display); }
.lang-card > span:not(.lc-code) { color: var(--on-navy-muted); font-size: 0.92rem; }
.lc-code { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3em; color: var(--accent); }
.lc-hint { font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.splash-foot { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-navy-muted); margin-top: 1.5rem; }

@media (max-width: 1000px) {
  .hero-grid, .bio, .exp, .trip-grid, .two-text, .faq-layout, .faq-home, .contact-card, .case-study, .results-row { grid-template-columns: minmax(0, 1fr); }
  .hero-media { justify-self: center; max-width: 420px; }
  .stats { left: -0.75rem; }
  .feat-grid, .post-grid, .treat-grid, .treat-grid.four, .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .timeline::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1.1rem; }
  .timeline li::before { grid-row: span 2; margin: 0; }
  .video-card { max-width: 340px; }
  .case-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .sticky-col, .faq-toc { position: static; }
  .sticky-col .portrait { max-width: 340px; }
  .bio-media { max-width: 460px; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-photo { grid-template-columns: minmax(0, 1fr); }
  .intro-photo .tall { justify-self: start; }
}
@media (max-width: 640px) {
  .feat-grid, .post-grid, .treat-grid, .treat-grid.two, .treat-grid.four, .tech-grid, .lang-cards, .facts, .foot-top { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { columns: 2; column-gap: 0.75rem; }
  .creds div, .creds.travel div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-name small { font-size: 0.55rem; }
  .stats { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 1rem; }
  .stat { flex: 1 1 140px; }
  .hero-media::before { display: none; }
  .bio-quote { margin: -2rem 0.75rem 0; }
  .wa-float span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
h1, h2, .stat strong, .facts strong, .timeline li::before, .steps li::before, .feat-body h3, .post-card h3 { font-variant-numeric: lining-nums; }
@media (max-width: 1000px) { .exp-img { max-width: 480px; } }
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--accent); }
.prose.legal h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-top: 1.2rem; }

/* Portada con imagen de fondo */
.hero.has-cover { position: relative; isolation: isolate; background: #06111c; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.hero.has-cover::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 17, 28, 0.94) 0%, rgba(6, 17, 28, 0.86) 38%, rgba(6, 17, 28, 0.35) 66%, rgba(6, 17, 28, 0.05) 100%),
              linear-gradient(0deg, rgba(6, 17, 28, 0.7) 0%, rgba(6, 17, 28, 0) 35%); }
.hero.has-cover .hero-grid { grid-template-columns: minmax(0, 1fr); width: 100%; }
.hero.has-cover .hero-copy { max-width: 600px; }
.hero.has-cover h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.hero.has-cover .hero-sub { color: rgba(255, 255, 255, 0.82); }
.hero.has-cover .stats { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero.has-cover .stat { background: rgba(255, 255, 255, 0.07); color: var(--on-navy); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; }
.hero.has-cover .stat strong { color: var(--accent); }
@media (max-width: 900px) {
  .hero.has-cover { min-height: 0; align-items: flex-end; }
  .hero-bg { height: 380px; object-position: 80% 20%; }
  .hero.has-cover::before { background: linear-gradient(180deg, rgba(6, 17, 28, 0.1) 0%, rgba(6, 17, 28, 0.25) 160px, #06111c 380px); }
  .hero.has-cover .hero-grid { padding-top: 15rem; }
}

.splash { position: relative; isolation: isolate; background: #06111c; }
.splash-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.splash::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 80% at 50% 50%, rgba(6, 17, 28, 0.88) 0%, rgba(6, 17, 28, 0.7) 60%, rgba(6, 17, 28, 0.55) 100%); }
.splash .lang-card { background: rgba(6, 17, 28, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.splash .lang-card:hover { background: rgba(6, 17, 28, 0.65); }
