/* DS 8.0 · Azul eléctrico — ajustes sobre look/cálido 6.x (radio 0, peso 400 en serif, ORCA neutro) */
h1,h2,h3,.t-display,.t-h2,.t-h3,
[data-ds="home"] .hero h1,
[data-ds="legal"] h1,[data-ds="legal"] h3,[data-ds="legal"] .hero h1,
[data-ds="sistema"] h1,
[data-ds="quiz"] .result-title,
[data-ds="quiz"] h1,[data-ds="agendar"] h1,
.bib h1,.bib h2,.item h3,
[data-ds="home"] .case-results b,[data-ds="home"] .case-results .big{
  font-weight:400;
}
.btn,.btn--web,button.btn,a.btn{
  border-radius:var(--radius-control);
}
[data-ds="home"] .phases,
[data-ds="home"] #resultados,
.site-orca,.band-orca{
  background:var(--orca-section-bg);
  color:var(--orca-ink);
}
[data-ds="home"] .phase,
.site-orca .phase,.band-orca .phase{
  background:var(--orca-card-bg);
  border-color:var(--orca-card-border);
  border-radius:var(--radius-control);
}
[data-ds="home"] .phase-letter,
.site-orca .phase-letter{
  background:var(--phase-o);
  color:var(--phase-o-on);
  border-radius:var(--radius-control);
}

/* DM Serif Display no tiene eje de peso: forzar 400 también cuando un shorthand de .bib h1 falla */
.bib h1,.bib h2,.item h3,.hero-mini h1,.mini h3,
h1,h2,h3,.t-display,.t-h2,.t-h3{
  font-weight:400 !important;
}

/* ==========================================================================
   DS 8.0 · Hero de la home: foto de la oficina de fondo, texto encima, velo navy.
   Recupera el patrón de 354dac7 (30-11-2026, t176u). En celular el texto también
   va sobre la foto (se revierte el display:none de d196dc5 / t177u).
   El bloque anterior «titular arriba, foto a sangre debajo» no se aplica al Hero.
   ========================================================================== */
:root{
  --hero-night:#051C2C;
  --hero-text:#FFFFFF;
  --hero-text-2:#E1E3E5;
  --hero-accent:#00A9F4;
  --hero-fill:#2251FF;
  --hero-fill-hover:#153BD1;
  --hero-veil-strong:rgba(5,28,44,.78);
  --hero-veil-mid:rgba(5,28,44,.35);
}
[data-ds="home"] .hero{
  position:relative;
  isolation:isolate;
  display:flex!important;
  flex-direction:column;
  justify-content:flex-start;
  min-height:clamp(780px,62vw,980px)!important;
  background:var(--hero-night);
  color:var(--hero-text);
}
[data-ds="home"] .hero .hero-stage{
  position:absolute!important;
  inset:0!important;
  order:0;
  z-index:0;
  width:auto!important;
}
[data-ds="home"] .hero .hero-stage .hero-photo{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%;
  height:100%!important;
  aspect-ratio:auto!important;
  order:0;
  margin:0;
  overflow:hidden;
  background:var(--hero-night);
}
[data-ds="home"] .hero .hero-stage .hero-photo img{
  position:absolute!important;
  inset:0;
  width:100%!important;
  height:100%!important;
  object-fit:cover;
  object-position:30% 62%!important;
  filter:var(--photo-filter);
  border-radius:0;
}
/* Velo navy: más denso del lado del texto (~0,70), se abre hacia las personas (~0,35) */
[data-ds="home"] .hero .hero-stage .hero-photo::after{
  display:block!important;
  content:""!important;
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,var(--hero-veil-mid) 0%,var(--hero-veil-mid) 36%,rgba(5,28,44,.55) 50%,var(--hero-veil-strong) 64%,var(--hero-veil-strong) 100%),
    linear-gradient(180deg,rgba(5,28,44,.28) 0%,rgba(5,28,44,.08) 42%,rgba(5,28,44,0) 100%);
}
[data-ds="home"] .hero > .wrap{
  position:relative;
  z-index:1;
  order:0;
  flex:0 0 auto;
  min-height:0!important;
  align-content:start!important;
  align-items:start;
  padding-block:56px 140px!important;
  gap:0!important;
}
[data-ds="home"] .hero-grid{display:block!important}
[data-ds="home"] .hero-title,[data-ds="home"] .hero-side{max-width:none}
[data-ds="home"] .hero .eyebrow{color:var(--hero-accent)!important;margin-bottom:18px}
[data-ds="home"] .hero h1{color:var(--hero-text);font-size:clamp(38px,10.4vw,44px)!important;line-height:1.02!important;max-width:none;font-weight:400}
[data-ds="home"] .hero h1 em{color:var(--hero-accent);font-style:italic;font-weight:400}
[data-ds="home"] .hero-side{margin-top:22px;gap:22px!important}
[data-ds="home"] .hero-side p,[data-ds="home"] .hero .lead{color:var(--hero-text)!important;font-size:18px!important;line-height:1.5!important;max-width:34ch}
[data-ds="home"] .hero .btn-sand{background:var(--hero-fill)!important;color:#fff!important}
@media (hover:hover) and (pointer:fine){
  [data-ds="home"] .hero .btn-sand:hover{background:var(--hero-fill-hover)!important}
}
[data-ds="home"] .link-light,[data-ds="home"] .hero .link-light{color:var(--hero-text)}
[data-ds="home"] .hero .link-light small{color:var(--hero-text-2)}
[data-ds="home"] .hero-links{gap:6px 28px!important}

/* Escritorio amplio: el texto queda a la derecha, sin tapar a las personas ni el logo del mesón */
@media (min-width:1001px){
  [data-ds="home"] .hero{min-height:clamp(780px,62vw,980px)!important}
  [data-ds="home"] .hero .hero-stage .hero-photo img{object-position:30% 62%!important}
  [data-ds="home"] .hero > .wrap{padding-block:56px 130px!important}
  [data-ds="home"] .hero-grid{margin-left:calc(41vw - (100vw - 100%)/2);max-width:min(41vw,660px)}
  [data-ds="home"] .hero h1{font-size:clamp(42px,3.9vw,64px)!important;line-height:1.02!important}
  [data-ds="home"] .hero-side p,[data-ds="home"] .hero .lead{font-size:clamp(17px,1.35vw,20px)!important}
  [data-ds="home"] .hero .hero-stage .hero-photo::after{
    background:
      radial-gradient(ellipse 48% 58% at 68% 28%,var(--hero-veil-strong) 0%,var(--hero-veil-strong) 62%,rgba(5,28,44,.50) 78%,rgba(5,28,44,0) 100%),
      linear-gradient(90deg,var(--hero-veil-mid) 0%,var(--hero-veil-mid) 38%,rgba(5,28,44,.20) 58%,rgba(5,28,44,0) 100%),
      linear-gradient(180deg,rgba(5,28,44,.28) 0%,rgba(5,28,44,.06) 50%,rgba(5,28,44,0) 100%);
  }
}

/* Tableta: texto arriba a la izquierda; velo más denso arriba, se abre hacia las personas */
@media (min-width:768px) and (max-width:1000px){
  [data-ds="home"] .hero{min-height:clamp(700px,90vw,880px)!important}
  [data-ds="home"] .hero .hero-stage .hero-photo img{object-position:28% 50%!important}
  [data-ds="home"] .hero .hero-stage .hero-photo::after{
    background:linear-gradient(180deg,var(--hero-veil-strong) 0%,var(--hero-veil-strong) 42%,rgba(5,28,44,.50) 58%,var(--hero-veil-mid) 76%,rgba(5,28,44,.28) 100%);
  }
  [data-ds="home"] .hero > .wrap{padding-block:44px 150px!important}
}

/* Celular: el texto también va sobre la foto, con velo; las caras quedan en la mitad inferior */
@media (max-width:767px){
  [data-ds="home"] .lead-full{display:none}
  [data-ds="home"] .lead-short{display:inline}
  [data-ds="home"] .hero{
    display:flex!important;
    min-height:min(100svh,760px)!important;
    background:var(--hero-night);
    color:var(--hero-text);
    isolation:isolate;
  }
  [data-ds="home"] .hero .hero-stage{
    position:absolute!important;
    inset:0!important;
    order:0;
    width:auto!important;
  }
  [data-ds="home"] .hero .hero-stage .hero-photo{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    height:100%!important;
    aspect-ratio:auto!important;
  }
  [data-ds="home"] .hero .hero-stage .hero-photo img{object-position:26% 42%!important}
  [data-ds="home"] .hero .hero-stage .hero-photo::after{
    background:linear-gradient(180deg,rgba(5,28,44,.88) 0%,rgba(5,28,44,.82) 52%,rgba(5,28,44,.70) 68%,rgba(5,28,44,.45) 80%,var(--hero-veil-mid) 90%,rgba(5,28,44,.28) 100%);
  }
  [data-ds="home"] .hero > .wrap{padding-block:28px 132px!important}
  [data-ds="home"] .hero .eyebrow{color:var(--hero-accent)!important;margin-bottom:16px}
  [data-ds="home"] .hero h1{color:var(--hero-text);font-size:clamp(32px,9vw,40px)!important;line-height:1.05!important}
  [data-ds="home"] .hero h1 em{color:var(--hero-accent)}
  [data-ds="home"] .hero-side{margin-top:18px}
  [data-ds="home"] .hero-side p,[data-ds="home"] .hero .lead{color:var(--hero-text)!important;font-size:17px!important;line-height:1.45!important;max-width:32ch}
  [data-ds="home"] .hero-links{display:flex;flex-direction:column;align-items:stretch!important;justify-self:stretch;width:100%;gap:8px!important;margin-top:22px}
  [data-ds="home"] .hero-links .btn-sand{width:100%;max-width:none;justify-content:center;min-height:52px;background:var(--hero-fill)!important;color:#fff!important}
  [data-ds="home"] .hero-links .link{margin:0!important;padding:0!important;align-self:flex-start;justify-content:flex-start;flex-direction:row;align-items:center}
  [data-ds="home"] .link-light,[data-ds="home"] .hero .link-light{color:var(--hero-text);display:inline-flex;align-items:center;min-height:44px}
  [data-ds="home"] .hero .link-light small{display:inline;color:var(--hero-text-2)}
  /* Franja de vidrio otra vez sobre la foto, al pie */
  [data-ds="home"] .hero-stage .hero-facts{
    position:absolute;
    left:0;right:0;bottom:0;z-index:2;
    background:var(--hero-glass-bg)!important;
    color:var(--hero-glass-text);
    -webkit-backdrop-filter:var(--hero-glass-filter);
    backdrop-filter:var(--hero-glass-filter);
    border-top:1px solid var(--hero-glass-edge);
    border-bottom:0;
  }
  [data-ds="home"] .hero-stage .hero-facts .wrap{padding-block:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  [data-ds="home"] .hero-stage .hero-facts .fact,
  [data-ds="home"] .hero-stage .hero-facts .fact:nth-child(n){min-height:42px;padding:6px 10px;gap:8px;border-color:var(--hero-glass-sep)!important}
  [data-ds="home"] .hero-stage .hero-facts .fact:nth-child(odd){padding-left:0;border-left:0!important}
  [data-ds="home"] .hero-stage .hero-facts .fact:nth-child(even){border-left:1px solid var(--hero-glass-sep)!important}
  [data-ds="home"] .hero-stage .hero-facts .fact:nth-child(n+3){border-top:1px solid var(--hero-glass-sep)!important}
  [data-ds="home"] .hero-stage .hero-facts .fact::before{display:block;width:8px;height:8px;background:var(--hero-glass-dot)}
  [data-ds="home"] .hero-stage .hero-facts .fact b{color:var(--hero-glass-text)!important;font:500 13.5px/1.2 var(--font-text)!important}
}

@media (prefers-contrast:more){
  :root{--hero-veil-strong:rgba(5,28,44,.88);--hero-veil-mid:rgba(5,28,44,.55)}
}
@media (prefers-reduced-transparency:reduce){
  [data-ds="home"] .hero-stage .hero-facts{
    background:var(--hero-glass-fallback)!important;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}
@media (prefers-reduced-motion:reduce){
  [data-ds="home"] .hero .rise{animation:none!important}
}

/* ==========================================================================
   Auditoría 03-12-2026 · radio 0 en navegación, resultados y barra de avance;
   separadores sin restos del 7.0 (marfil/beige).
   ========================================================================== */
[data-ds="home"] .nav,
[data-ds="home"] .case-results li,
.progress-shell,.progress{border-radius:0!important}
.calendar-head{border-bottom-color:var(--color-separator,#D9DDE0)!important}
.pill{border-radius:var(--radius-capsule,999px)}

/* DS 8.0 · auditoría 03-12: la insignia numerada de los casos es cuadrada como las cajas de etapa (radio 0; la cápsula/círculo solo en pastillas y puntos de estado) */
[data-ds="home"] .case-head .n{border-radius:0}

/* ===== DS 8.0 · Hero de cualquier web o minisitio sobre foto: .site-hero--over (03-12, pedido de Manuel) =====
   La foto va a sangre detrás (object-fit: cover), con velo navy #051C2C: ~.78 del lado del texto y ~.30 al otro lado;
   el título, la bajada y los botones van encima en blanco; eyebrow y cursiva en Cyan; CTA Electric.
   Escritorio y celular: la foto nunca se oculta. Sin foto no hay hero sobre foto: no se inventa una.
   Variante --col: tarjeta en columna (agendar, test); el velo es vertical (abierto arriba, denso donde empieza el texto). */
[data-ds] .site-hero--over{
  --hero-clear:72px;
  position:relative!important;isolation:isolate;overflow:hidden!important;
  background:#051C2C!important;color:#fff!important;
  border:0!important;border-radius:0!important;
}
[data-ds] .site-hero--over>.site-hero__photo{position:absolute;inset:0;z-index:-2;margin:0;padding:0;background:#051C2C}
[data-ds] .site-hero--over>.site-hero__photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 38%;border-radius:0!important;filter:none}
[data-ds] .site-hero--over::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(5,28,44,.30) 0,rgba(5,28,44,.30) var(--hero-clear),rgba(5,28,44,.80) calc(var(--hero-clear) + 120px),rgba(5,28,44,.88) 100%)}
[data-ds] .site-hero--over h1,[data-ds] .site-hero--over h2{color:#fff!important}
[data-ds] .site-hero--over h1 em,[data-ds] .site-hero--over .intro-title em{color:#00A9F4!important;font-style:italic}
[data-ds] .site-hero--over p.eyebrow{color:#00A9F4!important}
[data-ds] .site-hero--over .lead,[data-ds] .site-hero--over .context-copy,[data-ds] .site-hero--over .context-meta,
[data-ds] .site-hero--over .facts strong,[data-ds] .site-hero--over p{color:#fff!important}
[data-ds] .site-hero--over .facts{border-top-color:rgba(255,255,255,.35)!important}
[data-ds] .site-hero--over .facts li{border-color:rgba(255,255,255,.35)!important}
[data-ds] .site-hero--over .facts span{color:#00A9F4!important}
[data-ds] .site-hero--over .context-meta{border-color:rgba(255,255,255,.35)!important}
/* agendar: tarjeta de la izquierda; el texto empieza bajo la franja abierta de la foto */
[data-ds="agendar"] .intro.site-hero--over{padding:calc(var(--hero-clear) + 128px) clamp(28px,4vw,48px) clamp(28px,4vw,48px)!important}
/* test: el texto de la tarjeta también va debajo de la franja abierta */
[data-ds="quiz"] .context.site-hero--over{padding:calc(var(--hero-clear) + 128px) 48px 40px!important}
@media(max-width:900px){
  [data-ds] .site-hero--over{--hero-clear:56px}
  [data-ds] .site-hero--over>.site-hero__photo img{object-position:50% 38%}
  [data-ds="agendar"] .intro.site-hero--over{padding:calc(var(--hero-clear) + 112px) 24px 28px!important}
}
@media(max-width:850px){
  /* test en celular: el título y la foto se ven (antes h1 y copy iban display:none y la foto se ocultaba al empezar) */
  [data-ds="quiz"] .context.site-hero--over{padding:calc(var(--hero-clear) + 112px) 20px 20px!important}
  [data-ds="quiz"] .context.site-hero--over h1{display:block!important;font-size:34px;line-height:38px}
  [data-ds="quiz"] .shell.is-quiz .context.site-hero--over{--hero-clear:0px;padding:16px 20px 12px!important}
  [data-ds="quiz"] .shell.is-quiz .context.site-hero--over h1,[data-ds="quiz"] .shell.is-quiz .context.site-hero--over .context-copy{display:none!important}
  [data-ds="quiz"] .shell.is-quiz .context.site-hero--over::after{background:rgba(5,28,44,.80)}
}
