/* ==========================================================
   Dr. Danny Pazos - Hoja de estilos
   Paleta de marca: Navy #101F37, Deep Blue #0B1A33, Gold #D8B477,
   White #FFFFFF, Soft Gray #D9D9D9
   Concepto: azul quirúrgico profundo, filos dorados finos, aire generoso.
   ========================================================== */

:root {
  --navy: #101F37;
  --deep: #0B1A33;
  --gold: #D8B477;
  --white: #FFFFFF;
  --gray: #D9D9D9;

  --navy-2: #16294A;                      /* superficie elevada sobre navy */
  --gold-ink: #8A6A2C;                    /* dorado oscuro para texto sobre blanco */
  --line: rgba(216, 180, 119, .28);       /* línea fina dorada */
  --line-strong: rgba(216, 180, 119, .6);
  --soft: rgba(255, 255, 255, .8);        /* texto secundario sobre oscuro */
  --ink: #1B2A41;                         /* texto sobre fondos claros */
  --ink-soft: #46546A;
  --wa: #25D366;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --hh: 72px;                             /* alto del header */
  --radius: 16px;
  --radius-sm: 12px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 8px);
  -webkit-text-size-adjust: 100%;
}
html.lock { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container.narrow { max-width: 860px; }
.center { display: flex; justify-content: center; margin-top: 48px; }

.ic { width: 22px; height: 22px; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--sans); font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  line-height: 1.3; text-align: center;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn .ic { width: 18px; height: 18px; }
.btn-lg { padding: 15px 28px; font-size: .95rem; }
.btn-gold { background: var(--gold); color: var(--deep); box-shadow: 0 6px 24px rgba(216, 180, 119, .22); }
.btn-gold:hover { background: #E6C58E; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(216, 180, 119, .32); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--gold); border-color: var(--line-strong); }
.btn-navy:hover { background: var(--deep); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--hh);
  background: var(--deep);
  border-bottom: 1px solid var(--line-strong);
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.header-inner {
  height: 100%; max-width: 1400px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; flex: none; }
.brand-name { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; font-weight: 500; letter-spacing: .04em; }
.brand-role { font-size: .6rem; letter-spacing: .3em; color: var(--soft); margin-top: 3px; }

.main-nav {
  position: fixed; top: var(--hh); left: 0; right: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px max(var(--gutter), env(safe-area-inset-right, 0px)) 22px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--deep);
  border-bottom: 1px solid var(--line-strong);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.main-nav a:not(.btn) { padding: 13px 4px; font-size: .95rem; font-weight: 500; color: var(--soft); border-bottom: 1px solid rgba(216, 180, 119, .12); }
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { color: var(--gold); }
.nav-cta { margin-top: 16px; }

.header-tools { display: flex; align-items: center; gap: 14px; }
.header-cta { display: none; font-size: .8rem; padding: 10px 18px; white-space: nowrap; }
.social { display: none; align-items: center; gap: 4px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; color: var(--soft); border-radius: 50%; transition: color .2s, background .2s; }
.social a:hover { color: var(--gold); background: rgba(216, 180, 119, .1); }
.social .ic { width: 19px; height: 19px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .45); }
.lang button { background: none; border: 0; padding: 6px 2px; color: rgba(255, 255, 255, .6); letter-spacing: .08em; }
.lang button.is-active { color: var(--gold); }

.menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: 12px; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--gold); transition: transform .25s, opacity .25s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.500px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.500px) rotate(-45deg); }

@media (min-width: 1180px) {
  .menu-toggle, .nav-cta { display: none; }
  .main-nav {
    position: static; flex-direction: row; align-items: center; gap: 24px;
    padding: 0; background: none; border: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .main-nav a:not(.btn) { padding: 6px 0; font-size: .82rem; border: 0; position: relative; }
  .main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
  .main-nav a:not(.btn):hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1440px) { .social { display: flex; } }

/* ---------- Secciones ---------- */
main { padding-top: var(--hh); }
.section { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); position: relative; overflow-x: clip; }
.section-deep { background: var(--deep); }
.section-navy { background: var(--navy); }
.section-light { background: linear-gradient(180deg, #FFFFFF 0%, #ECECEC 100%); color: var(--ink); border-top-color: rgba(216, 180, 119, .6); }

.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); display: grid; justify-items: center; gap: 14px; }
.section-head h2, .about-copy h2, .contact-info h2 {
  font-family: var(--serif); font-weight: 500; line-height: 1.15;
  font-size: clamp(1.9rem, 4vw, 3rem); text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head p { color: var(--soft); max-width: 56ch; }
.gold-rule { display: block; width: 72px; height: 1px; background: var(--gold); margin-top: 6px; }
.section-light .section-head h2 { color: var(--navy); }
.section-light .section-head h2 em { color: var(--gold-ink); }
.section-light .section-head p { color: var(--ink-soft); }
.section-light .gold-rule { background: var(--gold-ink); }

.eyebrow { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lead { font-size: 1.05rem; color: var(--soft); max-width: 54ch; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.checks li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checks .ic { color: var(--gold); width: 20px; height: 20px; }
.checks-col { flex-direction: column; gap: 12px; }
.checks-col li { align-items: flex-start; color: var(--soft); }
.checks-col .ic { margin-top: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
}
.hero-curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero-photo, .about-photo { position: relative; max-width: 300px; width: 100%; margin-inline: auto; }
@media (min-width: 640px) { .hero-photo, .about-photo { max-width: 440px; } }
.hero-photo img, .about-photo img {
  position: relative; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 66%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 66%, transparent 100%);
          mask-composite: intersect;
}
.halo {
  position: absolute; inset: -6% -10% -2% -10%;
  background: radial-gradient(closest-side, rgba(216, 180, 119, .42), rgba(216, 180, 119, .12) 55%, transparent 75%);
  filter: blur(8px);
}
.hero-copy { display: grid; gap: 22px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; line-height: 1.1;
  font-size: clamp(2.2rem, 5.2vw, 3.7rem); text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--line);
}
.stats dt { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--gold); min-height: 1.7rem; display: flex; align-items: center; }
.stats dt .ic { width: 28px; height: 28px; }
.stats dd { margin-top: 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); line-height: 1.4; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; }
  .hero-photo { max-width: 520px; }
}

/* ---------- Antes / Después ---------- */
.ba-grid { display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ba-grid { grid-template-columns: repeat(3, 1fr); } }

.ba-card figcaption { padding: 16px 4px 0; display: grid; gap: 4px; }
.ba-card figcaption strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--white); }
.ba-card figcaption span { color: var(--soft); font-size: .92rem; }

.ba {
  --p: 50%;
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--navy);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }

.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px; color: var(--soft);
  font-size: .85rem; letter-spacing: .06em;
}
.ph::after { content: ""; position: absolute; inset: 16px; border: 1px dashed rgba(216, 180, 119, .4); border-radius: 10px; pointer-events: none; }
.ph .ic { width: 56px; height: 56px; color: var(--gold); opacity: .75; }
.ph-before { background: linear-gradient(160deg, #1A2F52 0%, #0B1A33 75%); padding-right: 54%; }
.ph-after { background: linear-gradient(160deg, #23406E 0%, #5A5A4A 70%, #9A8050 130%); padding-left: 54%; }
.ph span { max-width: 100%; }

.ba-tag {
  position: absolute; top: 12px; z-index: 3; pointer-events: none;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(11, 26, 51, .78); border: 1px solid var(--line-strong);
  font-size: .66rem; font-weight: 600; letter-spacing: .18em; color: var(--white);
}
.ba-tag-l { left: 12px; } .ba-tag-r { right: 12px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, var(--white), var(--gold) 50%, var(--white));
  box-shadow: 0 0 12px rgba(0, 0, 0, .5);
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--deep); border: 2px solid var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  transition: transform .2s;
}
.ba-knob .ic { width: 26px; height: 26px; }
.ba:hover .ba-knob, .ba.is-drag .ba-knob { transform: scale(1.1); }
.ba:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }

/* ---------- ¿Cuál es tu caso? ---------- */
.case-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .case-grid { grid-template-columns: repeat(4, 1fr); } }
.case-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 26px 22px 22px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s, background .25s;
}
.case-card:hover { border-color: var(--gold); background: rgba(216, 180, 119, .07); transform: translateY(-4px); }
.case-ic { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold); }
.case-card h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.case-to { font-size: .86rem; color: var(--soft); }
.case-to strong { color: var(--gold); font-weight: 600; }
.case-go { margin-top: auto; align-self: flex-end; color: var(--gold); }

/* ---------- Procedimientos ---------- */
.proc-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .proc-grid { grid-template-columns: repeat(3, 1fr); } }
.proc-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0;
  padding: 28px 26px 26px; background: var(--white);
  border: 1px solid rgba(216, 180, 119, .55); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 31, 55, .07);
  transition: transform .3s, box-shadow .3s;
}
.proc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 31, 55, .14); }
.proc-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: var(--gold); }
.proc-ic .ic { width: 26px; height: 26px; }
.proc-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--navy); line-height: 1.25; }
.proc-card p { color: var(--ink-soft); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proc-card .btn { margin-top: auto; padding: 11px 18px; font-size: .84rem; }

/* ---------- Cómo funciona ---------- */
.steps { position: relative; display: grid; gap: 34px; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--line-strong); }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; row-gap: 6px; align-items: start; }
.step-n {
  grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; z-index: 1;
  border: 1px solid var(--gold); border-radius: 50%; background: var(--deep);
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold);
}
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; padding-top: 12px; }
.steps p { color: var(--soft); max-width: 40ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps::before { left: 12.5%; right: 12.5%; top: 28px; bottom: auto; width: auto; height: 1px; }
  .steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 14px; }
  .step-n { grid-row: auto; }
  .steps h3 { padding-top: 0; }
}

/* ---------- Sobre el Dr. Pazos ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-copy { display: grid; gap: 20px; }
.about-copy h2 em { color: var(--gold); font-style: italic; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------- Reseñas ---------- */
.carousel { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.car-viewport { min-width: 0; }
.car-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: 4px;
}
.car-track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 100%; scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column; gap: 16px; padding: 30px 28px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: var(--radius);
}
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars .ic { width: 18px; height: 18px; }
.review blockquote { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.6; color: var(--white); flex: 1; }
.review figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.review figcaption span { color: var(--gold); font-size: .84rem; }
.car-btn { display: none; width: 46px; height: 46px; place-items: center; background: none; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold); transition: background .2s; }
.car-btn:hover { background: rgba(216, 180, 119, .12); }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .25s, background .25s; }
.car-dots button.is-active { width: 24px; background: var(--gold); }
@media (min-width: 720px) { .review { flex-basis: calc((100% - 22px) / 2); } .carousel { grid-template-columns: auto 1fr auto; } .car-btn { display: grid; } }
@media (min-width: 1020px) { .review { flex-basis: calc((100% - 44px) / 3); } }

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--white); border: 1px solid rgba(216, 180, 119, .55); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 31, 55, .07); color: var(--ink);
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 31, 55, .14); }
.blog-thumb, .sheet-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #101F37 0%, #23406E 60%, #B79456 150%); }
.blog-thumb { aspect-ratio: 16 / 10; }
.blog-thumb img, .sheet-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-thumb::after, .sheet-hero::after { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(216, 180, 119, .35); border-radius: 8px; pointer-events: none; opacity: 0; }
.blog-thumb.no-img::after, .sheet-hero.no-img::after { opacity: 1; }
.blog-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-size: .78rem; }
.blog-meta time { color: var(--ink-soft); }
.chip { padding: 4px 11px; border-radius: 99px; background: var(--navy); color: var(--gold); font-weight: 600; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.blog-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.3; color: var(--navy); }
.blog-card p { color: var(--ink-soft); font-size: .92rem; }
.more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-ink); font-weight: 600; font-size: .86rem; }
.more .ic { width: 17px; height: 17px; transition: transform .25s; }
.blog-card:hover .more .ic { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-family: var(--serif); font-size: 1.25rem; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; font-weight: 300; color: var(--gold); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary, .faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 4px 24px; color: var(--soft); max-width: 66ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-info { display: grid; gap: 22px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .ic { color: var(--gold); }
.contact-list a:hover { color: var(--gold); }
.social-lg { display: flex; margin-left: -8px; }
.contact-form { display: grid; gap: 8px; padding: clamp(22px, 4vw, 36px); background: rgba(255, 255, 255, .035); border: 1px solid var(--line-strong); border-radius: 20px; }
.contact-form label { margin-top: 10px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--white);
  background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.contact-form select option { background: var(--deep); color: var(--white); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 119, .2); }
.contact-form .btn { margin-top: 18px; }
.form-status { min-height: 1.4em; font-size: .9rem; color: var(--soft); }
.form-status.is-error { color: #F2B8A6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line-strong); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .85rem; color: var(--soft); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-note { color: rgba(255, 255, 255, .55); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 70;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wa); color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  transition: transform .25s;
}
.wa-float .ic { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.2s ease-out infinite; }
.wa-float:hover { transform: scale(1.07); }
.wa-tip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(6px);
  padding: 9px 14px; white-space: nowrap; font-size: .82rem; font-weight: 600; color: var(--white);
  background: var(--deep); border: 1px solid var(--line-strong); border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translateY(-50%); }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Hoja de detalle ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); animation: fade .25s ease; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 26, .82); backdrop-filter: blur(4px); }
.sheet-panel {
  position: relative; width: min(780px, 100%); max-height: 100%; overflow-y: auto;
  padding: clamp(24px, 5vw, 52px);
  background: var(--navy); border: 1px solid var(--line-strong); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: rise .35s ease;
}
.sheet-panel:focus { outline: none; }
.sheet-close { position: sticky; top: 0; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin: 0 0 -42px auto; background: var(--deep); border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold); }
.sheet-body { display: grid; gap: 20px; }
.sheet-body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; padding-right: 48px; text-wrap: balance; }
.sheet-body section { display: grid; gap: 6px; }
.sheet-body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--gold); }
.sheet-body p { color: var(--soft); }
.sheet-body .btn { justify-self: start; margin-top: 8px; }
.sheet-note { font-size: .8rem; color: rgba(255, 255, 255, .55) !important; }
.sheet-hero { aspect-ratio: 16 / 8; border-radius: 12px; }
.sheet-nav { display: flex; justify-content: space-between; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
.sheet-nav a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); min-width: 0; }
.sheet-nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-nav .ic { width: 18px; height: 18px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 420px) {
  .brand-name { font-size: 1.12rem; }
  .brand-role { letter-spacing: .22em; }
  .hero-actions .btn { width: 100%; }
  .stats dd { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.form-status a { color: var(--gold); font-weight: 600; text-decoration: underline; }

/* ---------- Submenú de Procedimientos ---------- */
.main-nav { max-height: calc(100dvh - var(--hh)); overflow-y: auto; }
.nav-item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(216, 180, 119, .12); }
.main-nav .nav-item > a:not(.btn) { flex: 1; border-bottom: 0; }
.sub-toggle { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; color: var(--gold); }
.sub-toggle .ic { width: 20px; height: 20px; transition: transform .25s; }
.nav-item.is-open .sub-toggle .ic { transform: rotate(180deg); }
.submenu { display: none; flex-basis: 100%; padding: 0 0 10px 14px; }
.nav-item.is-open .submenu { display: block; }
.main-nav .submenu a:not(.btn) { display: block; padding: 9px 6px; font-size: .88rem; border: 0; color: var(--soft); }

@media (min-width: 1180px) {
  .main-nav { max-height: none; overflow: visible; }
  .nav-item { position: relative; flex-wrap: nowrap; gap: 2px; border: 0; padding-block: 18px; margin-block: -18px; }
  .main-nav .nav-item > a:not(.btn) { flex: none; }
  .sub-toggle { width: 22px; height: 28px; }
  .sub-toggle .ic { width: 15px; height: 15px; }
  .nav-item:hover .sub-toggle .ic, .nav-item:focus-within .sub-toggle .ic { transform: rotate(180deg); }
  .submenu {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px;
    position: absolute; top: 100%; left: -18px; width: 560px; padding: 12px;
    background: var(--deep); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
  .main-nav .submenu a:not(.btn) { padding: 9px 12px; font-size: .84rem; border-radius: 8px; }
  .main-nav .submenu a:not(.btn)::after { display: none; }
  .main-nav .submenu a:not(.btn):hover { background: rgba(216, 180, 119, .1); color: var(--gold); }
}
