/* ==========================================================================
   hiperhidrosis.cl — design system v2
   Derivado de la maqueta Claude Design (_design/hiperhidrosis-home-v2.html).
   Marca: azul marino (#15224A / #1E2E5E) + teal (#2C8C9E) · Figtree.
   ========================================================================== */

:root {
  --navy: #15224A;
  --navy-2: #1E2E5E;
  --teal: #2C8C9E;
  --teal-bright: #7FD0DC;
  --teal-soft: #EAF4F4;
  --teal-footer: #2C8AA4;
  --ink-soft: #44516E;
  --ink-mute: #5E6B86;
  --radius-card: 18px;
  --radius-panel: 28px;
  --shadow-card: 0 24px 50px -28px rgba(20,33,63,.45);
}

/* ---- Base ------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: Figtree, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--teal); color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---- Botones ------------------------------------------------------------ */
.cta-btn { transition: transform .2s ease, box-shadow .2s ease; }
.cta-btn:hover { transform: translateY(-2px); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 21px;
  background: var(--teal);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  box-shadow: 0 8px 20px -7px rgba(44,140,158,.55);
}
.btn-pill .arrow, .btn-navy .arrow { font-size: 16px; }
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--navy-2);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 14px 32px -12px rgba(30,46,94,.55);
  white-space: nowrap;
}

/* ---- Nav ---------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 40px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
}
.site-nav__logo { display: flex; align-items: center; gap: 11px; padding: 3px 0; }
.site-nav__logo img { height: 80px; width: auto; }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
}
.navlink-d { opacity: .85; transition: opacity .2s ease; }
.navlink-d:hover { opacity: 1 !important; }

/* Dropdown "Tratamientos" (desktop): hover, focus-within o .open (tap/click) */
.nav-drop { position: relative; }
.nav-drop__btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-drop__caret { font-size: 10px; line-height: 1; transition: transform .2s ease; }
.nav-drop.open .nav-drop__caret { transform: rotate(180deg); }
.nav-drop__menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  background: #fff;
  border: 1px solid rgba(30,46,94,.12);
  border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(20,33,63,.35);
  padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.nav-drop__menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop__menu,
.nav-drop.open .nav-drop__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop__menu a {
  display: block; padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  white-space: nowrap;
}
.nav-drop__menu a:hover, .nav-drop__menu a:focus-visible { background: var(--teal-soft); color: var(--teal); }

/* Hamburguesa + panel móvil */
.nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: 10px 6px;
}
.nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid rgba(30,46,94,.08);
  border-bottom: 1px solid rgba(30,46,94,.08);
  padding: 8px 20px 18px;
  flex-direction: column; gap: 2px;
}
.mobile-nav > a, .mnav-drop__btn {
  display: block; width: 100%; text-align: left;
  padding: 12px 6px;
  font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--navy);
  background: none; border: none; cursor: pointer; border-radius: 8px;
}
.mnav-drop__btn { display: inline-flex; align-items: center; gap: 6px; }
.mnav-drop__btn.open .nav-drop__caret { transform: rotate(180deg); }
.mnav-drop__menu { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.mnav-drop__menu a { display: block; padding: 10px 6px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); border-radius: 8px; }
.mnav-drop__menu a:hover { color: var(--teal); }
.mobile-nav > a.mobile-nav__cta {
  display: inline-flex; width: auto; align-self: flex-start;
  margin-top: 10px; padding: 11px 21px;
  background: var(--teal); color: #fff;
}
@media (max-width: 920px) {
  .nav-burger { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: flex; }
}

.navlink { position: relative; transition: color .2s; }
.navlink:hover { color: var(--teal); }
.navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--teal);
  transition: right .25s ease;
}
.navlink:hover::after { right: 0; }

/* ---- Hero home (slideshow full-bleed 1a) -------------------------------- */
.hero-full { min-height: 660px; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.hero-full__stage { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 20% center;
  transition: opacity 1.2s ease;
  opacity: 0;
}
.hero-slides img.is-active { opacity: 1; }
.hero-dots { position: absolute; z-index: 3; right: 40px; bottom: 26px; display: flex; gap: 8px; align-items: center; }
.hero-dots button {
  height: 9px; width: 9px; padding: 0;
  border: none; border-radius: 100px;
  cursor: pointer; transition: all .4s ease;
  background: rgba(30,46,94,.3);
}
.hero-dots button.is-active { width: 26px; background: var(--teal); }
.hero-content {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center;
  max-width: 1300px; margin: 0 auto; width: 100%;
  padding: 20px 40px 64px;
}
.hero-copy { max-width: 660px; position: relative; }
.hero-copy__glow {
  position: absolute; z-index: -1;
  inset: -80px -110px -70px -140px;
  background: radial-gradient(ellipse at 45% 50%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.68) 45%, rgba(255,255,255,0) 74%);
}
.hero-copy h1 {
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 22px 0 0;
}
.hero-copy h1 em { font-style: italic; color: var(--teal); }
.hero-copy h1 em span { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.02em; font-weight: 900; }
.hero-copy > p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 44ch; margin: 20px 0 0; }
.hero-copy__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-copy__actions .cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px;
  background: var(--teal); color: #fff;
  border-radius: 100px; font-weight: 600; font-size: 15.5px;
  box-shadow: 0 12px 30px -10px rgba(44,140,158,.5);
}
.hero-copy__actions .cta-btn .arrow { font-size: 17px; }

/* Hero home en móvil: apilado (banner arriba, texto debajo), no superpuesto.
   Solo ≤768px — en desktop el overlay con glow se mantiene intacto. */
@media (max-width: 768px) {
  .hero-full__stage { --hero-banner-h: 40vh; display: block; flex: none; }
  .hero-slides { position: relative; height: var(--hero-banner-h); }
  .hero-slides img { object-position: center; }
  .hero-dots { top: calc(var(--hero-banner-h) - 30px); bottom: auto; right: 16px; }
  .hero-content { position: static; display: block; padding: 24px 20px 38px; }
  .hero-copy { max-width: none; }
  .hero-copy__glow { display: none; }
  .hero-copy h1 { font-size: 29px; line-height: 1.08; margin: 0; }
  .hero-copy h1 em span { font-size: 29px; }
  .hero-copy > p { font-size: 15.5px; margin: 12px 0 0; }
  .hero-copy__actions { margin-top: 18px; }
}

/* ---- Hero subpágina ------------------------------------------------------ */
.page-hero { background: var(--teal-soft); padding: 46px 28px 42px; }
.page-hero__inner { max-width: 1240px; margin: 0 auto; }
.page-hero h1 {
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--navy);
  margin: 12px 0 0;
}
.page-hero .lede { font-size: 17.5px; line-height: 1.65; color: var(--ink-soft); max-width: 72ch; margin: 16px 0 0; }
.page-hero .meta { font-size: 14px; color: var(--ink-mute); margin: 14px 0 0; }

/* ---- Secciones / ¿Qué es? (home) ----------------------------------------- */
.quees-section { padding: 62px 28px 8px; }
.quees {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 54px; align-items: center;
}
/* Box clicable completo (stretched link accesible) */
.quees-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(30,46,94,.1);
  border-radius: var(--radius-panel);
  padding: 36px 40px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quees-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -26px rgba(20,33,63,.4);
  border-color: rgba(44,140,158,.45);
}
.quees-card:focus-within {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  box-shadow: 0 26px 50px -26px rgba(20,33,63,.4);
}
.stretched-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretched-link:focus { outline: none; }
.quees-card__cta { margin-top: 26px; }
.quees-card:hover .quees-card__cta { transform: translateY(-2px); }

.quees__media { position: relative; }
.quees__media::before {
  content: "";
  position: absolute; inset: auto auto -16px -16px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, #2C8C9E1f, transparent 70%);
  border-radius: 50%;
}
.quees__media img {
  width: 100%;
  aspect-ratio: 5 / 4.3;
  object-fit: cover;
  border-radius: 22px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.quees h2, .section-title {
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 14px 0 0;
  color: var(--navy);
}
.quees p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 18px 0 0; }
.quees p + p { margin-top: 14px; }
.quees p strong { color: var(--navy-2); }
.quees__facts { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.fact-card { flex: 1; min-width: 170px; padding: 17px 19px; background: var(--teal-soft); border-radius: 14px; }
.fact-card__title { font-size: 23px; color: var(--navy-2); }
.fact-card__body { font-size: 13px; line-height: 1.5; color: var(--ink-mute); margin-top: 5px; }

/* ---- Banda test ----------------------------------------------------------- */
.test-section { padding: 48px 28px 8px; }
.test-band {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px; flex-wrap: wrap;
  background: var(--teal-soft);
  border-radius: 24px;
  padding: 40px 44px;
}
.test-band__copy { max-width: 60ch; }
.test-band__copy h2 { font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; margin: 10px 0 0; color: var(--navy); }
.test-band__copy p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 10px 0 0; }

/* ---- Panel navy (tratamientos / contacto) --------------------------------- */
.navy-section { padding: 30px 28px 62px; }
.navy-panel {
  max-width: 1240px; margin: 0 auto;
  background: var(--navy-2);
  border-radius: var(--radius-panel);
  padding: 54px 48px;
  position: relative;
  overflow: hidden;
}
.navy-panel::before {
  content: "";
  position: absolute; inset: auto -80px -120px auto;
  width: 340px; height: 340px;
  background: radial-gradient(circle, #2C8C9E55, transparent 65%);
  border-radius: 50%;
}
.navy-panel__head { position: relative; max-width: 560px; }
.navy-panel__head .eyebrow { color: var(--teal-bright); }
.navy-panel__head h2 { font-weight: 500; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; margin: 12px 0 0; color: #fff; }
.navy-panel__head p { font-size: 16px; line-height: 1.65; color: #C3CCE6; margin: 14px 0 0; }

.sev-list { position: relative; display: flex; flex-direction: column; gap: 20px; margin-top: 38px; }
.sev-row { display: grid; grid-template-columns: 230px 24px 1fr; gap: 20px; align-items: stretch; }
.sev-label { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; }
.sev-label__kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-bright); }
.sev-label__level { font-size: 30px; color: #fff; line-height: 1.15; }
.sev-brace { width: 22px; height: auto; align-self: stretch; display: block; }
.sev-items { display: grid; gap: 14px; }
.trat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trat {
  padding: 20px 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  transition: transform .22s ease, background .22s ease;
}
.trat:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.trat h3 { font-size: 17px; font-weight: 700; color: #fff; margin: 0; }
.trat p { font-size: 13.5px; line-height: 1.55; color: #AEB9D8; margin: 8px 0 0; }
.trat-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 22px 26px;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 16px;
  margin-top: 6px;
}
.trat-cta p { color: #EAF7F9; }
.trat-cta__go { font-weight: 700; color: #fff; font-size: 14px; white-space: nowrap; }

/* ---- Bloque de contacto estándar de la red (#contacto) --------------------
   Estructura idéntica a dist/rats/ y dist/cirugiatoracica/, con la paleta y
   tipografía de hiperhidrosis (navy #1E2E5E → teal #2C8C9E, Figtree). */
.cta-unified {
  background: linear-gradient(135deg, var(--navy-2) 0%, #26718B 60%, var(--teal) 100%);
  padding: 5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-unified::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(127,208,220,0.1), transparent 70%);
  pointer-events: none;
}
.cta-unified > * { position: relative; z-index: 2; }
.cta-unified .cta-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-bright); margin: 0 0 0.75rem; }
.cta-unified .cta-title { font-family: Figtree, Arial, sans-serif; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0 0 2rem; }
.cta-unified .cta-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 980px; margin: 0 auto; align-items: stretch; }
.cta-unified .contact-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 1.5rem; text-align: left; transition: background 0.2s; }
.cta-unified .contact-card:hover { background: rgba(255,255,255,0.11); }
.cta-unified .contact-card h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-bright); margin: 0 0 0.75rem; }
.cta-unified .ccontact-links { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.5rem; }
.cta-unified .ccontact-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; padding: 0.6rem 0.75rem; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); transition: background 0.2s, border-color 0.2s; }
.cta-unified .ccontact-link:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.cta-unified .ccontact-ico { font-size: 1.1rem; flex-shrink: 0; }
.cta-unified .ccontact-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.cta-unified .ccontact-val { display: block; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-top: 0.1rem; }

/* ---- Prose (contenido de subpáginas) -------------------------------------- */
.prose-section { padding: 54px 28px 10px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose--wide { max-width: 1000px; }
.prose h2 { font-weight: 600; font-size: clamp(24px, 2.6vw, 33px); line-height: 1.15; letter-spacing: -.01em; color: var(--navy); margin: 44px 0 0; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 19px; color: var(--navy-2); margin: 30px 0 0; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 16px 0 0; }
.prose strong { color: var(--navy-2); }
.prose ul { margin: 14px 0 0; padding-left: 24px; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--teal); }
.prose a:not(.btn-pill):not(.btn-navy) { color: var(--teal); font-weight: 600; }
.prose a:not(.btn-pill):not(.btn-navy):hover { text-decoration: underline; }
.prose blockquote {
  margin: 22px 0 0;
  padding: 18px 24px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 14px 14px 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose .img-card { margin: 26px 0 0; }
.img-card img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.img-card figcaption { font-size: 13px; color: var(--ink-mute); margin-top: 10px; text-align: center; }
figure.img-card { margin-left: 0; margin-right: 0; }

/* Imagen a media columna en paralelo al texto (prose) */
.media-split { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 26px; align-items: start; margin-top: 22px; }
.media-split .img-card.media-split__media { margin: 0; }
.media-split__body p:first-child { margin-top: 0; }
.media-split + p { margin-top: 30px; }
.media-split--img-right { grid-template-columns: 1fr minmax(0, 360px); }
.media-split__media--tall img { object-fit: contain; }
@media (max-width: 768px) {
  .media-split__media--tall { display: flex; justify-content: center; }
  .media-split__media--tall img { width: auto; max-width: 100%; max-height: 480px; }
}
.media-split__media--prod {
  background: #fff;
  border: 1px solid rgba(30,46,94,.1);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex; align-items: center; justify-content: center;
  align-self: start;
}
.media-split__media--prod img {
  width: auto; max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 768px) {
  .media-split { grid-template-columns: 1fr; }
}

.img-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 0; }
.img-row--2 { grid-template-columns: repeat(2, 1fr); }
.img-row .prod {
  background: #fff;
  border: 1px solid rgba(30,46,94,.1);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-row .prod img { max-height: 240px; width: auto; object-fit: contain; }

/* ---- Cards de artículos ---------------------------------------------------- */
.blog-section { padding: 8px 28px 62px; }
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.blog-head h2 { font-weight: 500; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; margin: 12px 0 0; color: var(--navy); }
.blog-head__all { font-weight: 600; color: var(--teal); font-size: 15px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  display: block;
  background: #fff;
  border: 1px solid rgba(30,46,94,.1);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(20,33,63,.4); }
.post__imgwrap { overflow: hidden; }
.post .pimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.post:hover .pimg { transform: scale(1.05); }
.post__body { padding: 20px 22px; }
.post__cat { font-size: 12px; font-weight: 600; color: var(--teal); }
.post__title { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 8px 0 0; }
.post__date { font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; }

/* ---- Quiz (test de severidad) ---------------------------------------------- */
.quiz { max-width: 820px; margin: 0 auto; }
.quiz-q {
  background: #fff;
  border: 1px solid rgba(30,46,94,.12);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  margin-top: 16px;
}
.quiz-q legend, .quiz-q .q-title { font-size: 16.5px; font-weight: 700; color: var(--navy); line-height: 1.4; padding: 0; }
.quiz-q fieldset { border: none; margin: 0; padding: 0; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.quiz-opt { position: relative; }
.quiz-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.quiz-opt span {
  display: inline-block;
  padding: 9px 18px;
  border: 1.5px solid rgba(30,46,94,.25);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .18s ease;
}
.quiz-opt input:hover + span { border-color: var(--teal); color: var(--teal); }
.quiz-opt input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.quiz-opt input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.quiz-actions { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz-error { color: #B4351F; font-size: 14.5px; font-weight: 600; display: none; }
.quiz-result {
  display: none;
  margin-top: 26px;
  border-radius: var(--radius-panel);
  padding: 40px 44px;
  background: var(--navy-2);
  color: #fff;
}
.quiz-result .qr-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-bright); }
.quiz-result h2 { font-weight: 500; font-size: clamp(26px, 3vw, 38px); margin: 10px 0 0; color: #fff; }
.quiz-result p { font-size: 16px; line-height: 1.65; color: #C3CCE6; margin: 14px 0 0; max-width: 62ch; }
.quiz-result .qr-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.quiz-result .btn-pill { box-shadow: none; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { background: var(--teal-footer); color: #E9F6F9; padding: 48px 28px 30px; }
.footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer__logo { height: 74px; width: auto; }
.site-footer__blurb { font-size: 14px; line-height: 1.6; color: #DFF0F4; margin: 16px 0 0; max-width: 40ch; }
.footer-col__title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 14px; }
.footer-col__links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.flink { color: rgba(255,255,255,.82); transition: color .2s, padding .2s; }
.flink:hover { color: #fff; padding-left: 4px; }
.site-footer__legal {
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
}
.site-footer__legal a { color: rgba(255,255,255,.9); font-weight: 600; }
.site-footer__legal a:hover { color: #fff; }

/* ---- Responsive (mobile-first overrides del layout desktop) ------------------- */
@media (max-width: 920px) {
  .site-nav { padding: 8px 20px; }
  .site-nav__logo img { height: 56px; }
  .desk-nav { display: none !important; }
  .hero-full { min-height: 0 !important; }
  .hero-content { padding: 20px 24px 56px; }
  .quees { grid-template-columns: 1fr !important; gap: 30px; }
  .quees-card { padding: 24px 20px; }
  .page-hero { padding: 34px 20px 32px; }
  .prose-section { padding: 40px 20px 6px; }
  .navy-panel { padding: 38px 26px; }
  .test-band { padding: 30px 26px; }
  .trat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sev-row { grid-template-columns: 1fr !important; }
  .sev-brace { display: none !important; }
  .sev-label { align-items: flex-start !important; text-align: left !important; }
  .cta-unified { padding: 3.5rem 1.25rem; }
  .cta-unified .cta-contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .img-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .trat-grid { grid-template-columns: 1fr !important; }
  .img-row, .img-row--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .quiz-result { padding: 30px 24px; }
}
