/* =============================================================
   Dr. Jorge Barbachano Torres — drjorgebarbachano.com

   Implementación de `drjorgebarbachano.com.dc.html` (Claude Design,
   proyecto 90838b01), sobre el SER Design System.

   Desviación deliberada de Jorge respecto del núcleo S·E·R:
   fondo carbón #26272a en lugar del navy #071e30, y oro champagne
   #d9bd7a en lugar del ámbar. El teal #00a8a8 se conserva intacto:
   es lo que dice "esto pertenece a S·E·R".
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root {
  /* Carbón — el fondo firma de Jorge */
  --jb-carbon:    #26272a;
  --jb-carbon-2:  #2f3033;   /* tarjeta sobre oscuro */
  --jb-carbon-3:  #3c3e42;   /* tarjeta elevada sobre oscuro */

  /* Oro champagne — acento personal */
  --jb-oro:       #d9bd7a;
  --jb-oro-ink:   #6b5410;   /* texto de acento sobre claro — 7.13:1 sobre blanco */
  --jb-oro-deep:  #4e3d0b;   /* hover de link */

  /* Pertenencia al ecosistema */
  --ser-teal:      #00a8a8;
  --ser-teal-soft: #7fe3e3;  /* teal legible sobre carbón */

  /* Grounds cálidos */
  --jb-arena:  #efe7d8;
  --jb-crema:  #f7f2e8;
  --white:     #ffffff;

  /* Texto */
  --txt:            #2a2b2e;
  --txt-muted:      #55575c;
  --on-dark:        #e4e5e7;
  --on-dark-body:   #cfd0d2;
  --on-dark-soft:   #d6d7d9;
  --on-dark-muted:  #a7a9ad;

  --wa: #25D366;
  --error: #c0392b;

  /* Tipografía — serif de display + sans humanista */
  --f-serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --f-sans:  'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-hero:    clamp(2.25rem, 6vw, 4.5rem);
  --fs-h2:      clamp(1.8rem, 3.5vw, 2.6rem);
  --fs-h2-lg:   clamp(1.9rem, 4vw, 2.9rem);
  --fs-h3:      1.4rem;
  --fs-lede:    clamp(1.05rem, 1.8vw, 1.35rem);
  --fs-quote:   clamp(1.3rem, 2.4vw, 1.9rem);
  --fs-stat:    clamp(2.25rem, 4.5vw, 3.6rem);
  --fs-eyebrow: .72rem;
  --fs-small:   .875rem;

  /* Espaciado */
  --sp-1:4px;  --sp-2:8px;  --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-7:32px; --sp-8:40px; --sp-9:56px; --sp-10:72px;

  /* Forma */
  --r-md: 16px; --r-lg: 20px; --r-pill: 999px;

  /* Motion — respiración, no rebote */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 160ms; --dur-base: 280ms; --dur-slow: 520ms;

  /* Layout */
  --max-w: 1200px; --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 10vw, 128px);
  --nav-h: 72px;
}

/* -------------------------------------------------------------
   2. Reset y base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: var(--jb-oro-ink); text-underline-offset: .2em; }
a:hover { color: var(--jb-oro-deep); }

/* El serif es la voz de display de todo el ecosistema. */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h3, h4 { font-weight: 600; line-height: 1.15; }
p { text-wrap: pretty; }

/* La cursiva dorada es la firma tipográfica de S·E·R ("Vive mejor."). */
.gold-em { font-style: italic; font-weight: 600; color: var(--jb-oro); }
.gold-em--light { color: var(--jb-oro-ink); }

::selection { background: var(--jb-oro); color: var(--jb-carbon); }

:focus-visible {
  outline: 3px solid var(--ser-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--jb-carbon); color: #fff;
  padding: var(--sp-3) var(--sp-6); border-radius: 8px; font-weight: 700;
  text-decoration: none; transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------- */
.section { padding: var(--section-y) var(--gutter); }
.wrap { max-width: var(--max-w); margin-inline: auto; }
.stack { display: grid; gap: var(--sp-9); }

.section--white  { background: var(--white); }
.section--arena  { background: var(--jb-arena); }
.section--crema  { background: var(--jb-crema); }
.section--carbon { background: var(--jb-carbon); color: var(--on-dark-body); }
.section--carbon h2, .section--carbon h3 { color: var(--white); }

.eyebrow {
  display: block;
  font-weight: 700; font-size: var(--fs-eyebrow);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--jb-oro-ink);
}
.section--carbon .eyebrow { color: var(--ser-teal); }

.head { display: grid; gap: 18px; max-width: 68ch; }
.head p { margin: 0; color: var(--txt-muted); }
.section--carbon .head p { color: var(--on-dark-body); }
.head h2 { font-size: var(--fs-h2); margin: 0; }

.lede { font-size: var(--fs-lede); line-height: 1.5; }

/* -------------------------------------------------------------
   4. Botones
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-weight: 700; font-size: .95rem;
  min-height: 48px; padding: 17px 32px;
  border-radius: var(--r-pill); text-decoration: none; text-align: center;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease),
              background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform var(--dur-base) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--gold { background: var(--jb-oro); color: var(--jb-carbon); }
.btn--gold:hover { box-shadow: 0 8px 28px rgba(217,189,122,.26); color: var(--jb-carbon); }

.btn--dark { background: var(--jb-carbon); color: var(--white); }
.btn--dark:hover { color: var(--white); box-shadow: 0 8px 28px rgba(38,39,42,.22); }

/* Secundario sobre carbón */
.btn--outline-light {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35); padding: 16px 30px;
}
.btn--outline-light:hover { border-color: var(--jb-oro); color: var(--white); }

/* Secundario sobre claro */
.btn--outline-dark {
  background: transparent; color: var(--jb-carbon);
  border: 1.5px solid rgba(38,39,42,.35); padding: 16px 30px;
}
.btn--outline-dark:hover { border-color: var(--jb-carbon); color: var(--jb-carbon); }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { color: #fff; box-shadow: 0 8px 28px rgba(37,211,102,.3); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.note { font-size: var(--fs-small); color: var(--txt-muted); }
.section--carbon .note, .hero .note { color: var(--on-dark-muted); }

/* En teléfono el CTA lleva precio y flecha: a ancho completo, y en bloque para
   que la flecha fluya detrás de la última palabra en vez de quedar suelta. */
@media (max-width: 560px) {
  .btn { display: block; width: 100%; padding: 17px 22px; }
  .btn .arrow { display: inline; margin-left: .4em; }
  .btn-row { gap: var(--sp-3); }
  .menu .btn { display: inline-flex; }
}

/* -------------------------------------------------------------
   5. Navegación
   ------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(38,39,42,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,189,122,.18);
}
.nav__inner {
  max-width: var(--max-w); margin-inline: auto;
  padding: 0 var(--gutter); height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
}
.brand {
  font-family: var(--f-serif); font-weight: 700; font-size: 1.15rem;
  color: var(--white); text-decoration: none; line-height: 1.15;
}
.brand:hover { color: var(--white); }
.brand small {
  display: block; font-family: var(--f-sans); font-weight: 400;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ser-teal-soft);
}

.nav__links { display: none; align-items: center; gap: 28px; }
.nav__links a { font-size: .95rem; color: var(--on-dark-soft); text-decoration: none; }
.nav__links a:hover { color: var(--jb-oro); }
.nav__cta { display: none; padding: 12px 22px; min-height: 44px; font-size: .9rem; }
@media (min-width: 901px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 16px; gap: var(--sp-2);
  font-weight: 700; font-size: .9rem; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--r-pill);
}
@media (min-width: 901px) { .nav__toggle { display: none; } }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 60;
  background: var(--jb-carbon);
  padding: var(--sp-7) var(--gutter) var(--sp-8);
  display: grid; gap: var(--sp-2); align-content: start;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base) var(--ease);
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--f-serif); font-size: 1.6rem; color: var(--white);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.menu a:hover { color: var(--jb-oro); }
.menu .btn { margin-top: var(--sp-5); border-bottom: 0; font-family: var(--f-sans); font-size: .95rem; }

/* -------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--jb-carbon);
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 104px)) var(--gutter) clamp(72px, 12vw, 128px);
  overflow: hidden;
}
/* Retrato al costado: en el diseño el hero es carbón sólido, pero la fotografía
   real es parte de la marca. Va como capa de fondo a la derecha, muy velada,
   para no competir con el H1 ni mover el LCP. */
.hero__bg {
  position: absolute; inset: 0 0 0 auto;
  width: 58%; height: 100%; object-fit: cover; object-position: center 22%;
  opacity: .38;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    #26272a 0%, rgba(38,39,42,.97) 34%, rgba(38,39,42,.72) 62%, rgba(38,39,42,.5) 100%);
}
@media (max-width: 900px) {
  .hero__bg { width: 100%; opacity: .26; }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(38,39,42,.94) 0%, rgba(38,39,42,.88) 45%, rgba(38,39,42,.97) 100%);
  }
}

.hero__inner { position: relative; z-index: 2; max-width: var(--max-w); margin-inline: auto; display: grid; gap: 28px; }
.hero .eyebrow { color: var(--ser-teal); }
.hero h1 {
  font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -.01em;
  color: var(--white); margin: 0; max-width: 20ch;
}
.hero__lede {
  font-size: var(--fs-lede); line-height: 1.5;
  color: var(--on-dark-body); margin: 0; max-width: 46ch;
}
.hero .btn-row { margin-top: var(--sp-2); }

.hero-badge {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  margin-top: var(--sp-4); justify-self: start;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-pill); padding: 14px 26px;
}
.hero-badge span { font-size: .95rem; color: var(--on-dark); }
.hero-badge a { font-weight: 700; font-size: .95rem; color: var(--ser-teal-soft); text-decoration: none; }
.hero-badge a:hover { color: var(--white); }

/* -------------------------------------------------------------
   7. Cifras
   ------------------------------------------------------------- */
.stats {
  display: grid; gap: var(--sp-7);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.stat { display: grid; gap: var(--sp-2); padding-left: var(--sp-6); border-left: 1px solid rgba(38,39,42,.2); }
.stat__n {
  font-family: var(--f-serif); font-weight: 700;
  font-size: var(--fs-stat); line-height: 1; color: var(--jb-oro-ink);
}
.stat__l { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; color: var(--txt-muted); }

/* -------------------------------------------------------------
   8. Quién soy
   ------------------------------------------------------------- */
.split {
  display: grid; gap: clamp(32px, 5vw, 72px); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.col { display: grid; gap: var(--sp-5); align-content: start; }

.quote {
  font-family: var(--f-serif); font-style: italic; font-weight: 600;
  font-size: var(--fs-quote); line-height: 1.3;
  color: var(--jb-oro-ink);
  border-left: 3px solid var(--jb-oro);
  padding-left: var(--sp-6);
  margin: var(--sp-2) 0 0;
  max-width: 24ch;
}

.prose { display: grid; gap: var(--sp-5); max-width: 68ch; }
.prose p { margin: 0; }

.portrait { position: relative; margin-top: var(--sp-2); }
.portrait img {
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%;
}
.portrait figcaption {
  position: absolute; left: var(--sp-6); bottom: var(--sp-6);
  background: var(--jb-oro); color: var(--jb-carbon);
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); max-width: 62%;
}
.portrait b { display: block; font-family: var(--f-serif); font-weight: 700; font-size: 2rem; line-height: 1; }
.portrait span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.35; margin-top: var(--sp-1); }

/* Credenciales — obligatorias en un sitio médico (cédulas, consejo, sede). */
.creds { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-6); border-top: 1px solid rgba(38,39,42,.14); }
.creds li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: .97rem; }
.creds li::before {
  content: ''; flex: 0 0 auto; width: 6px; height: 6px;
  margin-top: .62em; border-radius: 50%; background: var(--ser-teal);
}
.creds .cedula { color: var(--txt-muted); }

/* -------------------------------------------------------------
   9. Tarjetas
   ------------------------------------------------------------- */
.grid-auto {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.grid-auto--narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-auto--services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Pilar del enfoque */
.pillar {
  background: var(--white); border-left: 3px solid var(--jb-oro);
  border-radius: var(--r-md); padding: 36px;
  display: grid; gap: 14px; align-content: start;
}
.pillar h3 { font-size: var(--fs-h3); margin: 0; }
.pillar p { margin: 0; font-size: .98rem; color: var(--txt-muted); }

/* Tarjeta de servicio sobre carbón */
.svc {
  background: var(--jb-carbon-2); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 36px;
  display: grid; gap: 14px; align-content: start;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: rgba(217,189,122,.4); }
.svc__n { font-family: var(--f-serif); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--jb-oro); opacity: .5; }
.svc h3 { font-size: var(--fs-h3); margin: 0; color: var(--white); }
.svc p, .svc li { margin: 0; font-size: .98rem; color: var(--on-dark-body); }
.svc ul { padding-left: 18px; display: grid; gap: 6px; font-size: .95rem; list-style: disc; }
.svc__price { font-weight: 700; font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--jb-oro); }
.svc__link { font-weight: 700; font-size: .95rem; color: var(--jb-oro); text-decoration: none; justify-self: start; display: inline-flex; gap: var(--sp-2); }
.svc__link:hover { color: var(--jb-oro); }
.svc__link .arrow { transition: transform var(--dur-base) var(--ease); }
.svc__link:hover .arrow { transform: translateX(4px); }

/* Servicio estrella */
.svc--star { background: var(--jb-carbon-3); border: 1px solid rgba(217,189,122,.45); padding: 40px; }
.svc--star h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.svc--star p { color: var(--on-dark-soft); max-width: 60ch; }
.svc--star .svc__n { font-size: 2rem; opacity: .55; }
.svc--star .svc__link { color: var(--white); border-bottom: 1px solid rgba(217,189,122,.6); padding-bottom: 3px; }

/* ORL general: ancla legal y formal, el de menor peso visual. */
.svc--quiet { background: transparent; border: 1px solid rgba(255,255,255,.16); }
.svc--quiet .svc__n { color: var(--on-dark-muted); }
.svc--quiet h3 { font-size: 1.3rem; }
.svc--quiet .svc__link { color: var(--ser-teal-soft); }

/* Paso del programa internacional */
.step { background: var(--white); border-radius: var(--r-lg); padding: 36px; display: grid; gap: 14px; align-content: start; }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1.5px solid var(--jb-oro);
  font-family: var(--f-serif); font-weight: 700; font-size: 1.15rem; color: var(--jb-oro-ink);
}
.step h3 { font-size: 1.35rem; margin: 0; }
.step p { margin: 0; font-size: .98rem; color: var(--txt-muted); }
.step .price { font-weight: 700; color: var(--jb-oro-ink); }

/* Tarjeta de ecosistema */
.eco {
  background: var(--jb-carbon-2); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 36px;
  display: grid; gap: var(--sp-3); align-content: start;
  transition: transform var(--dur-base) var(--ease);
}
.eco:hover { transform: translateY(-4px); }
.eco h3 { font-size: 1.35rem; margin: 0; color: var(--white); }
.eco p { margin: 0; font-size: .98rem; color: var(--on-dark-body); }
.eco a { font-weight: 700; font-size: .95rem; color: var(--jb-oro); text-decoration: none; justify-self: start; }

/* Panel del Protocolo SER */
.panel { background: var(--jb-carbon-3); border-radius: var(--r-lg); padding: 40px; display: grid; gap: var(--sp-4); max-width: 900px; }
.panel .eyebrow { color: var(--jb-oro); }
.panel p { margin: 0; color: var(--on-dark); max-width: 68ch; }

/* -------------------------------------------------------------
   10. Rueda de los 10 Pilares
   ------------------------------------------------------------- */
.wheel-block { display: grid; gap: 28px; justify-items: center; }
.wheel-block .eyebrow { justify-self: start; }

.wheel { position: relative; width: min(760px, 100%); aspect-ratio: 1; }
.wheel__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30%; display: grid; gap: 6px; text-align: center;
}
.wheel__core b { font-family: var(--f-serif); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--white); }
.wheel__core small { font-size: .8rem; color: var(--on-dark-muted); }

.wheel__node {
  position: absolute; transform: translate(-50%, -50%);
  width: 27%; aspect-ratio: 1; border-radius: var(--r-pill);
  background: rgba(217,189,122,.10); border: 1px solid rgba(217,189,122,.3);
  display: grid; place-content: center; gap: var(--sp-1);
  text-align: center; padding: 12px;
  transition: background-color var(--dur-base) var(--ease);
}
.wheel__node:hover { background: rgba(217,189,122,.2); }
.wheel__node b { font-family: var(--f-serif); font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--jb-oro); }
.wheel__node span { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }

/* Bajo 900px la rueda no cabe: los mismos diez pilares como chips. */
.wheel-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wheel-chips li {
  display: inline-flex; align-items: baseline; gap: var(--sp-2);
  background: rgba(217,189,122,.1); border: 1px solid rgba(217,189,122,.3);
  border-radius: var(--r-pill); padding: 12px 18px;
}
.wheel-chips b { font-family: var(--f-serif); font-weight: 700; font-size: .95rem; color: var(--jb-oro); }
.wheel-chips span { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); }

.wheel { display: none; }
.wheel-chips { display: flex; }
@media (min-width: 901px) {
  .wheel { display: block; }
  .wheel-chips { display: none; }
}

/* -------------------------------------------------------------
   11. FAQ
   ------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  background: var(--white); border: 1px solid rgba(38,39,42,.14);
  border-radius: var(--r-md); padding: var(--sp-6) var(--sp-7);
  transition: border-color var(--dur-base) var(--ease);
}
.faq details[open] { border-color: rgba(217,189,122,.6); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; gap: var(--sp-4); align-items: flex-start; justify-content: space-between;
  font-family: var(--f-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: 0 0 auto; font-size: 1.5rem; line-height: 1;
  color: var(--jb-oro-ink); transition: transform var(--dur-base) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-top: var(--sp-4); }
.faq p { margin: 0; color: var(--txt-muted); max-width: 68ch; }

/* -------------------------------------------------------------
   12. Contacto
   ------------------------------------------------------------- */
.datacard { background: var(--white); border-radius: var(--r-lg); padding: 40px; display: grid; gap: 18px; align-content: start; }
.datacard li { display: grid; gap: var(--sp-1); padding-bottom: var(--sp-4); border-bottom: 1px solid rgba(38,39,42,.12); }
.datacard li:last-child { padding-bottom: 0; border-bottom: 0; }
.datacard dt, .datacard .label {
  font-weight: 700; font-size: var(--fs-eyebrow);
  letter-spacing: .12em; text-transform: uppercase; color: var(--jb-oro-ink);
}
.datacard .value { font-size: .98rem; }
.datacard a { text-decoration: underline; }

/* Calendly embebido: sube la conversión, pero pesa. Se inyecta al acercarse
   al viewport; el botón de arriba queda como respaldo. */
.calendly-shell { background: var(--white); border-radius: var(--r-lg); overflow: hidden; min-height: 640px; }
.calendly-inline-widget { min-width: 280px; height: 660px; }
.calendly-fallback { padding: var(--sp-9); text-align: center; display: grid; gap: var(--sp-4); justify-items: center; }

/* -------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------- */
.footer { background: var(--jb-carbon); padding: clamp(56px, 8vw, 96px) var(--gutter); }
.footer__inner { max-width: var(--max-w); margin-inline: auto; display: grid; gap: var(--sp-8); }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-7); }
.footer__brand { display: grid; gap: var(--sp-3); max-width: 40ch; }
.footer__brand b { font-family: var(--f-serif); font-weight: 700; font-size: 1.4rem; color: var(--white); }
.footer__brand p { margin: 0; font-size: .95rem; color: var(--on-dark-body); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 {
  font-family: var(--f-sans); font-weight: 700; font-size: var(--fs-eyebrow);
  letter-spacing: .12em; text-transform: uppercase; color: var(--jb-oro);
}
.footer__col a, .footer__col span { font-size: .95rem; color: var(--on-dark-body); text-decoration: none; }
.footer__col a:hover { color: var(--jb-oro); }
.footer__col a.is-teal { color: var(--ser-teal-soft); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: var(--sp-5);
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: var(--fs-small); color: var(--on-dark-muted);
}
.footer__legal a { color: var(--on-dark-muted); }
.footer__legal a:hover { color: var(--jb-oro); }

/* -------------------------------------------------------------
   14. WhatsApp flotante
   ------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease),
              visibility var(--dur-base) var(--ease);
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float svg { width: 30px; height: 30px; }

/* -------------------------------------------------------------
   15. Páginas de documento (legal)
   ------------------------------------------------------------- */
.doc { padding: calc(var(--nav-h) + var(--sp-9)) var(--gutter) var(--section-y); }
.doc__inner { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: var(--fs-h2-lg); margin-bottom: var(--sp-5); }
.doc h2 { font-size: 1.35rem; margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.doc > .doc__inner > * + * { margin-top: var(--sp-4); }
.doc ul { list-style: disc; padding-left: 1.2em; display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.doc p, .doc li { max-width: 68ch; }

/* -------------------------------------------------------------
   16. Área táctil
   El sistema pide 44×44 mínimo. Los links de texto dentro de
   tarjetas y footer medían ~25px de alto; en puntero grueso se
   les da altura sin cambiar el aspecto visual.
   ------------------------------------------------------------- */
@media (pointer: coarse) {
  .svc__link, .eco a, .footer__col a, .hero-badge a, .datacard a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .nav__links a, .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .brand { flex-direction: column; align-items: flex-start; justify-content: center; }
}

/* -------------------------------------------------------------
   17. Motion
   ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
