/* ============================================================
   Dr. David E. Vera — Cirurgia Plástica
   Design system: elegante, médico, premium
   ============================================================ */

:root {
  /* Tema escuro — fundo preto com acentos dourados */
  --ink: #f2efe9;            /* texto principal (claro) */
  --ink-soft: #a29d94;       /* texto secundário */
  --on-gold: #0b0b0c;        /* texto sobre superfícies douradas */
  --teal: #2b8a97;
  --teal-dark: #071f24;   /* faixas quase pretas com leve tom petróleo */
  --gold: #c2a05a;
  --gold-soft: #e6d5b0;
  --bg: #000000;             /* fundo preto */
  --surface: #0e0e10;        /* faixas alternadas */
  --card: #141416;           /* cartões elevados */
  --deep: #08080a;           /* rodapé e faixas escuras */
  --line: #2a2a2e;
  --placeholder: linear-gradient(135deg, #1a1a1d, #232327);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .5);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .72);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;               /* clip, não hidden: preserva position:sticky */
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--gold-soft); color: var(--on-gold); }

/* ---------- Transición de página (fade) ---------- */
body { opacity: 0; transition: opacity .45s var(--ease); }
body.is-loaded { opacity: 1; }
body.is-leaving { opacity: 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .72rem;
  font-weight: 400;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--gold); }

.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--ink); margin: .35em 0 .45em; }
.section-lead { max-width: 640px; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Layout ---------- */
.wrap { width: min(1180px, 92%); margin-inline: auto; }
section { padding: clamp(70px, 9vw, 120px) 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 130;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header.solid,
.site-header.always-solid {
  background: rgba(8, 8, 10, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  height: 70px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 40px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: .02em; }
.brand-sub { font-size: .62rem; text-transform: uppercase; letter-spacing: .26em; color: var(--ink-soft); }

/* Sobre el hero (header transparente) el texto va claro */
.site-header.on-hero:not(.solid) .brand-name,
.site-header.on-hero:not(.solid) .nav-list > li > a { color: #fff; }
.site-header.on-hero:not(.solid) .brand-sub { color: rgba(255,255,255,.75); }

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-block; padding: 10px 14px;
  font-size: .82rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .14em;
  position: relative;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }

/* Dropdown */
.has-drop > a .caret { display: inline-block; margin-left: 6px; font-size: .6rem; transition: transform .3s; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  translate: -50% 8px;
  min-width: 240px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), translate .3s var(--ease), visibility .3s;
}
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown { opacity: 1; visibility: visible; translate: -50% 0; }
.has-drop:hover .caret { transform: rotate(180deg); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: .86rem; color: var(--ink);
  transition: background .25s, color .25s, padding-left .25s;
}
.dropdown a:hover { background: rgba(194,160,90,.12); color: var(--gold-soft); padding-left: 20px; }

/* CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
}
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 24px rgba(194, 160, 90, .3); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(194, 160, 90, .45); background: #b08f47; }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-gold); transform: translateY(-3px); }
.btn-light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--on-gold); transform: translateY(-3px); }
.header-cta { white-space: nowrap; padding: 11px 24px; }

/* Burger */
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 130;
}
.burger span {
  display: block; width: 26px; height: 2px; margin: 6px auto;
  background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s;
}
.site-header.on-hero:not(.solid) .burger { color: #fff; }
body.menu-open .burger { color: var(--ink) !important; }
body.menu-open .site-header { background: transparent; box-shadow: none; }
body.menu-open .site-header .brand-name { color: var(--ink) !important; }
body.menu-open .site-header .brand-sub { color: var(--ink-soft) !important; }
body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menú móvil */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0, 0, 0, .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.7rem; padding: 8px 20px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav a.sub { font-family: var(--font-body); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 5px 20px; }
body.menu-open .mobile-nav a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-nav a:nth-child(1) { transition-delay: .05s; }
body.menu-open .mobile-nav a:nth-child(2) { transition-delay: .1s; }
body.menu-open .mobile-nav a:nth-child(3) { transition-delay: .15s; }
body.menu-open .mobile-nav a:nth-child(4) { transition-delay: .2s; }
body.menu-open .mobile-nav a:nth-child(5) { transition-delay: .25s; }
body.menu-open .mobile-nav a:nth-child(6) { transition-delay: .3s; }
body.menu-open .mobile-nav a:nth-child(7) { transition-delay: .35s; }
body.menu-open .mobile-nav a:nth-child(8) { transition-delay: .4s; }
body.menu-open .mobile-nav a:nth-child(9) { transition-delay: .45s; }
body.menu-open .mobile-nav a:nth-child(10) { transition-delay: .5s; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden; padding: 0;
  background: linear-gradient(115deg, #050506 0%, #0c2f36 60%, #123f48 100%);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease);
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-slide.active { opacity: 1; animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 26, 32, .88) 8%, rgba(9, 26, 32, .55) 46%, rgba(9, 26, 32, .18) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 120px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 13ch; margin: .3em 0 .35em; font-weight: 500;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p { max-width: 520px; font-size: 1.08rem; color: rgba(255,255,255,.85); margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,.8), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Credenciales bajo hero */
.cred-strip { background: var(--teal-dark); color: #fff; padding: 26px 0; }
.cred-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px; }
.cred-item { display: flex; align-items: center; gap: 12px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.cred-item strong { color: var(--gold-soft); font-weight: 500; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-46px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(46px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
[data-delay="4"] { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-slide.active { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sobre el doctor ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(300px, 460px) 1fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.portrait-frame { position: relative; }
.portrait-frame::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px;
  border: 1px solid var(--gold); border-radius: var(--radius); z-index: 0;
  transition: inset .5s var(--ease);
}
.portrait-frame:hover::before { inset: 16px -16px -16px 16px; }
.portrait-frame img {
  position: relative; z-index: 1; width: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 414 / 487; object-fit: cover;
  background: var(--placeholder);
}
.about-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .35em 0 .5em; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1em; max-width: 56ch; }
.cred-list { margin: 26px 0 34px; display: grid; gap: 12px; }
.cred-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.cred-list li::before {
  content: "✦"; color: var(--gold); font-size: .8rem; margin-top: .35em; flex: none;
}
.cred-list strong { color: var(--ink); font-weight: 500; }

/* ---------- Tratamientos (cards) ---------- */
.treatments { background: linear-gradient(to bottom, var(--bg), var(--surface)); }
.cards-grid {
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: center;
  margin-top: 54px;
}
.cards-grid > .t-card { flex: 1 1 290px; max-width: 372px; }
.t-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  display: flex; flex-direction: column;
}
.t-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: rgba(194,160,90,.4); }
.t-card-img {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--placeholder);
}
.t-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.t-card:hover .t-card-img img { transform: scale(1.08); }
.t-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 59, 67, .5), transparent 55%);
  opacity: 0; transition: opacity .5s;
}
.t-card:hover .t-card-img::after { opacity: 1; }
.t-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.t-card h3 { font-size: 1.5rem; }
.t-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.t-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--gold); margin-top: 6px;
}
.t-link .arrow { transition: transform .35s var(--ease); }
.t-card:hover .t-link .arrow, .t-link:hover .arrow { transform: translateX(8px); }

/* ---------- Porque operar (home resumen) ---------- */
.why { background: var(--teal-dark); color: #fff; position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; top: -140px; right: -140px; width: 480px; height: 480px;
  border-radius: 50%; border: 1px solid rgba(194,160,90,.35);
}
.why::after {
  content: ""; position: absolute; bottom: -180px; left: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
}
.why .section-title, .why h3 { color: #fff; }
.why .section-lead { color: rgba(255,255,255,.78); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 54px; position: relative; z-index: 1; }
.why-card {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 30px 26px; background: rgba(255,255,255,.04);
  transition: background .4s, transform .5s var(--ease), border-color .4s;
}
.why-card:hover { background: rgba(255,255,255,.09); transform: translateY(-6px); border-color: rgba(194,160,90,.5); }
.why-card .num { font-family: var(--font-display); font-size: 2rem; color: var(--gold); display: block; margin-bottom: 10px; }
.why-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why-card p { font-size: .92rem; color: rgba(255,255,255,.75); }
.why .btn-row { margin-top: 46px; text-align: center; position: relative; z-index: 1; }

/* ---------- CTA banda ---------- */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; background: var(--deep); }
.cta-band .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  opacity: .35; transform: scale(1.05);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 22ch; margin: 0 auto .4em; color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 36px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: .3em 0 .5em; }
.contact-list { display: grid; gap: 18px; margin-top: 30px; }
.contact-list a { transition: color .3s; }
.contact-list a:hover { color: var(--gold); }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--gold); font-size: 1.1rem;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.contact-item:hover .ico { transform: translateY(-4px); background: var(--teal); color: #fff; }
.contact-item .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-soft); }
.contact-item .val { font-size: 1.02rem; }

.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 46px);
}
.contact-card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.contact-card > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 24px; }
.form-grid { display: grid; gap: 16px; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-grid input:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--gold); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(194,160,90,.18);
}
.form-grid textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.72); border-top: 1px solid var(--line); padding: 70px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .24em; margin-bottom: 18px; }
.site-footer a { transition: color .3s, padding-left .3s; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links a { display: inline-block; padding: 4px 0; }
.footer-brand .brand-name { color: #fff; font-size: 1.35rem; }
.footer-brand p { font-size: .9rem; margin-top: 14px; max-width: 34ch; }
.footer-bottom {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.5);
}
.disclaimer { font-size: .78rem; color: rgba(255,255,255,.45); margin-top: 20px; max-width: 70ch; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .4s var(--ease), box-shadow .4s;
  animation: waIn 1s var(--ease) 1.6s backwards;
}
.wa-float:hover { transform: scale(1.12) translateY(-3px); box-shadow: 0 16px 40px rgba(37, 211, 102, .55); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes waIn { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Página interior: hero pequeño ---------- */
.page-hero {
  position: relative; color: #fff;
  padding: calc(var(--header-h) + clamp(60px, 9vw, 110px)) 0 clamp(60px, 8vw, 96px);
  background: linear-gradient(115deg, #050506 0%, #0c2f36 62%, #14525d 100%);
  overflow: hidden;
}
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgba(194,160,90,.3);
}
.page-hero::before { width: 380px; height: 380px; top: -160px; right: -80px; }
.page-hero::after { width: 260px; height: 260px; bottom: -120px; right: 220px; border-color: rgba(255,255,255,.1); }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-top: .3em; max-width: 18ch; }
.page-hero p { max-width: 560px; color: rgba(255,255,255,.82); margin-top: 18px; font-size: 1.05rem; }

/* ---------- Procedimientos (páginas de tratamiento) ---------- */
.proc-nav {
  position: sticky; top: 70px; z-index: 60;
  background: rgba(0,0,0,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.proc-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.proc-nav .wrap::-webkit-scrollbar { display: none; }
.proc-nav a {
  flex: none; padding: 9px 18px; border-radius: 999px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); transition: background .3s, color .3s;
}
.proc-nav a:hover, .proc-nav a.active { background: var(--gold); color: var(--on-gold); }

.procedure { border-bottom: 1px solid var(--line); }
.procedure:last-of-type { border-bottom: 0; }
.proc-grid {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(36px, 5vw, 70px); align-items: start;
}
.proc-media { position: sticky; top: 140px; }
.proc-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--placeholder);
}
.proc-media .tag {
  display: inline-block; margin-top: 18px; padding: 8px 18px; border-radius: 999px;
  background: var(--gold-soft); color: var(--on-gold); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .2em;
}
.proc-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 10px; }
.proc-copy .intro { color: var(--ink-soft); margin-bottom: 28px; max-width: 60ch; }

/* Acordeón */
.acc { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .4s; }
.acc[open] { box-shadow: var(--shadow-md); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; font-weight: 500; font-size: 1.02rem;
  transition: color .3s, background .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--gold-soft); background: rgba(194,160,90,.07); }
.acc summary .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .9rem; color: var(--gold); transition: transform .4s var(--ease), background .3s, color .3s; }
.acc[open] summary .plus { transform: rotate(45deg); background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.acc-body { padding: 4px 24px 22px; color: var(--ink-soft); }
.acc-body p { margin-bottom: .8em; }
.acc-body ul { display: grid; gap: 8px; margin: .4em 0 .8em; }
.acc-body li { padding-left: 22px; position: relative; }
.acc-body li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 1px; background: var(--gold); }
.acc-body strong { color: var(--ink); font-weight: 500; }

.proc-cta {
  margin-top: 30px; padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.proc-cta p { max-width: 46ch; font-size: .98rem; color: rgba(255,255,255,.88); }

/* ---------- Página Porque Operar ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 50px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.pillar h3 { font-size: 1.35rem; margin: 14px 0 10px; }
.pillar p { color: var(--ink-soft); font-size: .95rem; }
.pillar .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); line-height: 1; }

.mentors { background: var(--teal-dark); color: #fff; }
.mentors .section-title { color: #fff; }
.mentors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 46px; }
.mentor-card { border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 30px; background: rgba(255,255,255,.05); transition: background .4s, transform .5s var(--ease); }
.mentor-card:hover { background: rgba(255,255,255,.1); transform: translateY(-6px); }
.mentor-card h3 { font-size: 1.3rem; color: var(--gold-soft); }
.mentor-card p { color: rgba(255,255,255,.78); font-size: .93rem; margin-top: 8px; }

/* ---------- Agendamiento ---------- */
.sched-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.sched-card {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--card); border: 1px solid var(--line);
}
.sched-card iframe { display: block; width: 100%; height: 340px; border: 0; }
.sched-card .pad { padding: 30px; }
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 36px; }
.step { position: relative; padding: 0 0 34px 66px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-display); font-size: 1.3rem;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 22px; top: 48px; bottom: 6px; width: 1px;
  background: var(--line);
}
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .95rem; max-width: 52ch; }

/* ---------- Página legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.legal p, .legal li { color: var(--ink-soft); font-size: .96rem; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: .6em 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .proc-media { position: static; }
}
@media (max-width: 880px) {
  .desktop-nav, .header-cta { display: none; }
  .burger { display: block; }
  .site-header .wrap { gap: 10px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand img { height: 34px; }
  .brand-name { font-size: 1.02rem; white-space: nowrap; }
  .brand-sub { font-size: .55rem; letter-spacing: .16em; }
  .about-grid, .contact-grid, .sched-grid, .proc-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 420px; margin-inline: auto; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .brand-name { font-size: .98rem; }
  .wa-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
  .proc-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Ajustes finos do tema escuro ---------- */
.sched-card iframe { filter: invert(.92) hue-rotate(180deg) saturate(.7) contrast(.9); }
.contact-card { border-color: var(--line); }
.why { background: var(--teal-dark); }
.hero::after {
  background: linear-gradient(100deg, rgba(0,0,0,.92) 6%, rgba(0,0,0,.62) 46%, rgba(0,0,0,.25) 100%);
}
.cred-strip { border-block: 1px solid var(--line); }
.legal h2 { color: var(--ink); }
.mentors { border-block: 1px solid var(--line); }
