/**
* Central de Análisis Clínicos — Nueva Italia de Ruiz, Michoacán
* Hoja de estilos principal (sin framework)
*
* Identidad tomada del logotipo (sello circular, 2026) y de la fachada del laboratorio:
* - Azul del aro del sello (#0056a6) y verde de las hojas del árbol (#4cb944).
* - Títulos en Archivo condensada, como el rótulo pintado a mano de la fachada.
* - La hoja del árbol es el motivo gráfico que se repite; el sello (aro azul con
*   filete verde) enmarca la foto de la fachada.
*/

/*--------------------------------------------------------------
# 1. Tokens de diseño
--------------------------------------------------------------*/
:root {
  /* Hoja — verde del árbol y del filete del sello */
  --leaf-50: #f1f9ee;
  --leaf-100: #e0f2d9;
  --leaf-200: #c2e5b3;
  --leaf-300: #98d37f;
  --leaf-400: #6cc24f;
  --leaf-500: #4cb944;
  --leaf-600: #3a9a35;
  --leaf-700: #2d7a2a;
  --leaf-800: #276625;
  --leaf-900: #1f501f;

  /* Azul — aro y letras del sello */
  --blue-50: #eef5fc;
  --blue-100: #d9e8f7;
  --blue-200: #b3d0ee;
  --blue-300: #7eaede;
  --blue-400: #3f84c8;
  --blue-500: #0d67b8;
  --blue-600: #0056a6;
  --blue-700: #004a8f;
  --blue-800: #053a73;
  --blue-900: #062f5c;
  --blue-950: #041f40;

  /* Ámbar — solo para estados «en proceso» */
  --amber-100: #fdf0d5;
  --amber-700: #875a0e;

  /* Neutros */
  --paper: #f7fafc;
  --text: #2f3a4a;
  --muted: #5a6878;
  --line: #dde5ec;
  --line-strong: #c7d3de;
  --grid: rgba(0, 86, 166, 0.07);

  /* Roles */
  --color-heading: var(--blue-800);
  --color-link: var(--blue-600);
  --color-success: #276625;
  --whatsapp: #167a3e;
  --whatsapp-hover: #11632f;
  --color-danger: #b3261e;

  /* Tipografía */
  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.76rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.15rem;
  --text-xl: clamp(1.2rem, 0.5vw + 1.05rem, 1.4rem);
  --text-2xl: clamp(2rem, 2.6vw + 1.1rem, 3.25rem);
  --text-hero: clamp(2.6rem, 5vw + 0.4rem, 5.2rem);

  /* Medidas */
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1180px;
  --space-section: clamp(4rem, 8vw, 6.5rem);
  --radius: 4px;
  --radius-md: 8px;
  --ficha-overlap: 3.25rem;
  --header-h: 76px;

  /* Hoja del árbol del sello: dos esquinas redondeadas y dos en punta */
  --leaf-shape: inset(0 round 0 50% 0 50%);
  --leaf-soft: inset(0 round 0 12px 0 12px);

  --shadow-sm: 0 1px 2px rgba(4, 31, 64, 0.06), 0 2px 8px rgba(4, 31, 64, 0.05);
  --shadow: 0 10px 30px -12px rgba(4, 31, 64, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(4, 31, 64, 0.55);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*--------------------------------------------------------------
# 2. Base
--------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-800);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--leaf-400);
  outline-offset: 2px;
}

::selection {
  background: var(--leaf-200);
  color: var(--blue-900);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--blue-800);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/*--------------------------------------------------------------
# 3. Botones y rótulos
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.95rem 1.45rem;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn-leaf {
  background: var(--leaf-500);
  color: var(--blue-900);
  box-shadow: inset 0 -3px 0 rgba(4, 31, 64, 0.18);
}

.btn-leaf:hover {
  background: var(--leaf-400);
  color: var(--blue-950);
}

.btn-outline {
  border-color: var(--blue-800);
  color: var(--blue-800);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-800);
  color: #fff;
}

.btn-blue {
  background: var(--blue-800);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue-600);
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-700);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 18px;
  height: 12px;
  background: var(--leaf-500);
  clip-path: var(--leaf-shape);
}

.eyebrow-num {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--blue-800);
  font-variant-numeric: tabular-nums;
}

.eyebrow-num::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow--light {
  color: var(--leaf-300);
}

.eyebrow--light .eyebrow-num {
  color: #fff;
}

/*--------------------------------------------------------------
# 4. Barra superior
--------------------------------------------------------------*/
#topbar {
  background: var(--blue-950);
  color: var(--blue-100);
  font-size: 0.86rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}

.open-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.open-status strong {
  color: #fff;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-300);
  flex: none;
}

.open-status[data-state="open"] .status-dot {
  background: var(--leaf-300);
  box-shadow: 0 0 0 4px rgba(152, 211, 127, 0.25);
}

.open-status[data-state="closed"] .status-dot {
  background: #e8b04a;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue-100);
  text-decoration: none;
}

.topbar-links a:hover {
  color: #fff;
}

.topbar-links i {
  color: var(--leaf-300);
}

@media (max-width: 899px) {
  .topbar-email {
    display: none !important;
  }
}

@media (max-width: 559px) {
  #topbar {
    font-size: 0.8rem;
  }

  .topbar-links {
    gap: 0.9rem;
  }

  .topbar-links a[href^="tel"] span {
    display: none;
  }
}

@media (max-width: 419px) {
  .topbar-wa span {
    display: none;
  }
}

/*--------------------------------------------------------------
# 5. Cabecera y navegación
--------------------------------------------------------------*/
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 252, 0.94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

@supports (backdrop-filter: blur(8px)) {
  #header {
    background: rgba(247, 250, 252, 0.82);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

#header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(4, 31, 64, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--blue-800);
}

.brand-sub {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-700);
}

#navbar ul {
  list-style: none;
}

#navbar a {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--blue-800);
}

.nav-toggle {
  display: none;
}

/* Escritorio */
@media (min-width: 1140px) {
  #navbar ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  #navbar ul a {
    position: relative;
    display: block;
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
    font-stretch: 92%;
  }

  #navbar ul a::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.15rem;
    height: 5px;
    background: var(--leaf-500);
    clip-path: var(--leaf-soft);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
  }

  #navbar ul a:hover::after,
  #navbar ul a.active::after {
    transform: scaleX(1);
  }

  #navbar .nav-catalog {
    margin-left: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
  }

  #navbar .nav-catalog::after {
    display: none;
  }

  #navbar .nav-catalog:hover {
    border-color: var(--blue-800);
  }

  .nav-cta-mobile {
    display: none !important;
  }
}

/* Móvil y tableta */
@media (max-width: 1139px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--blue-800);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    flex: none;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before {
    top: -6px;
  }

  .nav-toggle-bars::after {
    top: 6px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  #navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 4px solid var(--leaf-500);
    box-shadow: 0 24px 40px -20px rgba(4, 31, 64, 0.45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }

  #navbar.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s, transform 0.22s var(--ease);
  }

  #navbar ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 0.25rem;
    font-size: 1.15rem;
    font-stretch: 85%;
    border-bottom: 1px solid var(--line);
  }

  #navbar ul a::after {
    content: "\f285";
    font-family: "bootstrap-icons";
    font-size: 0.9rem;
    color: var(--leaf-600);
  }

  .nav-cta-mobile {
    width: 100%;
    margin-top: 1.25rem;
  }
}

@media (max-width: 639px) {
  :root {
    --header-h: 66px;
  }

  .header-cta {
    display: none !important;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-sub {
    font-size: 0.66rem;
  }
}

@media (max-width: 359px) {
  .brand-sub {
    display: none;
  }
}

/*--------------------------------------------------------------
# 6. Héroe
--------------------------------------------------------------*/
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  /* clip y no hidden: la ficha técnica debe poder sobresalir por abajo */
  overflow-x: clip;
}

/* Papel cuadriculado de bitácora de laboratorio */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow--plain::before {
  display: none;
}

.hero-copy .eyebrow {
  padding: 0.35rem 0.75rem;
  background: var(--leaf-100);
  border-radius: var(--radius);
  width: fit-content;
  letter-spacing: 0.1em;
}

.hero h1 {
  margin-bottom: 1.4rem;
  font-size: var(--text-hero);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.hero-accent {
  color: var(--leaf-600);
}

.hero-lede {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: var(--text-lg);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-address {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero-address i {
  margin-right: 0.35rem;
  color: var(--leaf-600);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
}

/* Fachada dentro del sello: aro azul con filete verde, como el logotipo */
.hero-plate {
  position: relative;
  margin: 0;
  padding: 18px;
  background: var(--blue-600);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.hero-plate::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--leaf-500);
  border-radius: 50%;
}

.hero-plate img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid var(--leaf-500);
  border-radius: 50%;
}

.hero-stamp {
  position: absolute;
  top: -18px;
  right: -14px;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 124px;
  height: 124px;
  background: var(--paper);
  border: 3px solid var(--blue-800);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--blue-800), var(--shadow);
  color: var(--blue-800);
  transform: rotate(-12deg);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
}

.stamp-top,
.stamp-bottom {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.stamp-year {
  margin: 0.2rem 0 0.25rem;
  font-size: 2.1rem;
  font-weight: 800;
  font-stretch: 75%;
  color: var(--leaf-700);
}

/* Ficha técnica */
.ficha {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2.5rem, 5vw, 4rem) 0 calc(var(--ficha-overlap) * -1);
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ficha-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.35rem 1.25rem;
  background: #fff;
}

.ficha dt {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ficha dd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0;
}

.ficha-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2vw + 1.2rem, 2.6rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--blue-800);
  font-variant-numeric: tabular-nums;
}

.ficha-note {
  font-size: var(--text-sm);
  color: var(--muted);
}

@media (max-width: 999px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(100%, 360px);
  }

  .ficha {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ficha-cell:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .hero-actions .btn {
    width: 100%;
  }

  .hero-stamp {
    width: 100px;
    height: 100px;
    right: -4px;
  }

  .stamp-year {
    font-size: 1.7rem;
  }

  .stamp-top,
  .stamp-bottom {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .ficha-cell {
    padding: 1rem;
  }
}

/*--------------------------------------------------------------
# 7. Secciones
--------------------------------------------------------------*/
.section {
  padding-block: var(--space-section);
}

.section--tint {
  background: var(--leaf-50);
  border-block: 1px solid var(--line);
}

.section--blue {
  background: var(--blue-900);
  color: var(--blue-100);
  /* El aro decorativo detrás del reporte no debe provocar scroll horizontal */
  overflow-x: clip;
}

.section--blue h2,
.section--blue h3 {
  color: #fff;
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-head h2,
.promos-head h2,
.results-copy h2 {
  margin-bottom: 1rem;
  font-size: var(--text-2xl);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.005em;
}

.lead {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--muted);
}

.section--blue .lead {
  color: var(--blue-200);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem 3rem;
  max-width: none;
}

.section-head--split h2 {
  margin-bottom: 0;
}

@media (max-width: 799px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# 8. Promociones
--------------------------------------------------------------*/
.promos {
  padding-block: calc(var(--ficha-overlap) + clamp(3rem, 6vw, 4.5rem)) clamp(3rem, 6vw, 4.5rem);
  background: var(--blue-900);
  color: var(--blue-100);
}

.promos-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  align-items: center;
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
}

.promos-head h2 {
  margin: 0;
  color: #fff;
}

.promo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.promo {
  padding: 0.25rem 1.5rem;
  border-left: 1px dashed rgba(179, 208, 238, 0.3);
}

.promo p {
  margin: 0;
}

.promo-when {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  text-transform: uppercase;
  color: var(--leaf-300);
}

.promo-who {
  margin-top: 0.2rem !important;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-200);
}

.promo-value {
  margin-top: 1.1rem !important;
  color: #fff;
  font-weight: 600;
}

.promo-value strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
}

.promo-desc {
  margin-top: 0.4rem !important;
  font-size: var(--text-sm);
  color: var(--blue-200);
}

.promo-desc a {
  color: var(--leaf-300);
  font-weight: 600;
}

.promo-desc a:hover {
  color: #fff;
}

@media (max-width: 999px) {
  .promos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .promo-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .promo {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.25rem;
    padding: 0 0 1.5rem;
    border-left: 0;
    border-bottom: 1px dashed rgba(179, 208, 238, 0.3);
  }

  .promo:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .promo-when,
  .promo-who {
    grid-column: 1 / -1;
  }

  .promo-value {
    grid-column: 1;
  }

  .promo-desc {
    grid-column: 2;
    align-self: end;
  }
}

/*--------------------------------------------------------------
# 9. Nosotros
--------------------------------------------------------------*/
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.story-text p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.has-dropcap::first-letter {
  float: left;
  margin: 0.3rem 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: 4.3em;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.78;
  color: var(--leaf-600);
}

.story-quote {
  margin: 2rem 0 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--leaf-500);
}

.story-quote p {
  margin: 0;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--blue-800);
}

.timeline {
  position: relative;
  list-style: none;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  column-gap: 1.1rem;
  padding-bottom: 1.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

/* Línea que une las marcas */
.timeline li::before {
  content: "";
  position: absolute;
  top: 1.9rem;
  bottom: 0.3rem;
  left: 2.8rem;
  border-left: 2px dotted var(--leaf-300);
}

.timeline li:last-child::before {
  display: none;
}

.timeline-mark {
  grid-row: span 2;
  align-self: start;
  padding: 0.4rem 0.3rem 0.45rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue-800);
  clip-path: var(--leaf-soft);
}

.timeline li:first-child .timeline-mark {
  background: var(--leaf-500);
  color: var(--blue-900);
}

.timeline h3 {
  font-size: 1.1rem;
  font-weight: 700;
  font-stretch: 90%;
}

.timeline p {
  margin: 0.2rem 0 0;
  font-size: 0.97rem;
  color: var(--muted);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.mv-card {
  position: relative;
  padding: 1.75rem 2rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
}

.mv-card p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.mv-card .mv-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-700);
}

@media (max-width: 899px) {
  .story-grid,
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 419px) {
  .timeline {
    padding: 1.25rem;
  }

  .timeline li {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    column-gap: 0.85rem;
  }

  .timeline li::before {
    left: 2.3rem;
  }
}

/*--------------------------------------------------------------
# 10. Servicios
--------------------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.service {
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.service:hover {
  transform: translateY(-3px);
  border-color: var(--leaf-300);
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 48px;
  margin-bottom: 1.35rem;
  padding-bottom: 4px;
  background: var(--blue-800);
  color: var(--leaf-300);
  font-size: 1.35rem;
  clip-path: var(--leaf-shape);
}

.service h3 {
  margin-bottom: 0.6rem;
  font-size: 1.22rem;
  font-weight: 800;
  font-stretch: 85%;
}

.service p {
  margin: 0;
  color: var(--muted);
}

.catalog-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.35rem 1.75rem;
  color: #fff;
  text-decoration: none;
  background: var(--blue-800);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.catalog-link:hover {
  color: #fff;
  background: var(--blue-600);
}

.catalog-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 44px;
  padding-bottom: 3px;
  background: var(--leaf-500);
  color: var(--blue-900);
  font-size: 1.3rem;
  clip-path: var(--leaf-shape);
}

.catalog-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.catalog-text strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 85%;
}

.catalog-text span {
  color: var(--blue-200);
}

.catalog-arrow {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--leaf-300);
  transition: transform 0.25s var(--ease);
}

.catalog-link:hover .catalog-arrow {
  transform: translateX(4px);
}

@media (max-width: 1099px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .catalog-link {
    flex-wrap: wrap;
    padding: 1.25rem;
  }

  .catalog-arrow {
    display: none;
  }
}

/*--------------------------------------------------------------
# 11. Paquetes (orden de estudios)
--------------------------------------------------------------*/
.orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.order {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}

.order::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--leaf-500);
}

.order:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.order-head {
  position: relative;
  padding: 1.4rem 1.5rem 1.1rem;
  background: var(--leaf-50);
  border-bottom: 1px dashed var(--line-strong);
}

.order-code {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-700);
}

.order-head h3 {
  padding-right: 5.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.05;
}

.order-count {
  position: absolute;
  top: 1.35rem;
  right: 1.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: var(--radius);
}

.order-list {
  list-style: none;
  padding: 0.75rem 1.5rem 1.25rem;
}

.order-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--line-strong);
  line-height: 1.4;
}

.order-list li:last-child {
  border-bottom: 0;
}

/* Casilla marcada, como en la solicitud de estudios */
.order-list li::before {
  content: "\f272";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  font-family: "bootstrap-icons";
  font-size: 0.8rem;
  line-height: 1;
  color: var(--blue-800);
  background: var(--leaf-100);
  border: 1.5px solid var(--blue-700);
  border-radius: 3px;
}

.order-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: auto 1.5rem 0;
  padding: 0.9rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--whatsapp);
  text-decoration: none;
  border-top: 1px dashed var(--line-strong);
}

.order-foot i {
  font-size: 1.05rem;
}

.order-foot:hover {
  color: var(--whatsapp-hover);
  text-decoration: underline;
}

@media (max-width: 999px) {
  .orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .orders-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# 12. Resultados en línea
--------------------------------------------------------------*/
.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.results-copy .lead {
  margin-bottom: 2rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin-bottom: 2rem;
}

.steps li {
  position: relative;
  padding: 0 0 1.35rem 4.1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.2rem;
  padding-bottom: 2px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-900);
  background: var(--leaf-500);
  clip-path: var(--leaf-shape);
}

.steps h3 {
  margin-bottom: 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-stretch: 90%;
}

.steps p {
  margin: 0;
  color: var(--blue-200);
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.results-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--blue-200);
}

.report-stage {
  position: relative;
  padding: 2rem 1.5rem 2rem 2.5rem;
}

/* Aro del sello detrás del reporte */
.report-stage::before {
  content: "";
  position: absolute;
  top: -4%;
  right: -6%;
  width: 70%;
  aspect-ratio: 1;
  border: 22px solid var(--leaf-500);
  border-radius: 50%;
  opacity: 0.85;
}

.report {
  position: relative;
  padding: 1.5rem;
  color: var(--text);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.report-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--blue-800);
}

.report-head img {
  width: 48px;
  height: 48px;
}

.report-head div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.report-head strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--blue-800);
}

.report-head span {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
}

.report-title {
  margin: 1.1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-700);
}

.report-rows {
  list-style: none;
}

.report-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.report-rows em {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  border-radius: var(--radius);
}

.report-rows .is-ready {
  color: var(--leaf-800);
  background: var(--leaf-100);
}

.report-rows .is-pending {
  color: var(--amber-700);
  background: var(--amber-100);
}

.report-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue-800);
  border-radius: var(--radius);
}

.report-btn--ghost {
  color: var(--blue-800);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

@media (max-width: 899px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .report-stage {
    max-width: 480px;
    padding: 1.5rem 0.75rem 1.5rem 1.25rem;
  }
}

/*--------------------------------------------------------------
# 13. Equipo
--------------------------------------------------------------*/
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.member {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 64px;
  padding-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.04em;
  color: var(--leaf-300);
  background: var(--blue-800);
  clip-path: var(--leaf-shape);
}

.member--group .member-mono {
  color: var(--blue-900);
  background: var(--leaf-500);
}

.member p {
  margin: 0;
}

.member-role {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-700);
}

.member h3 {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 82%;
}

.member-cred {
  font-size: 0.95rem;
  color: var(--muted);
}

.member-ced {
  margin-top: 0.3rem !important;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--blue-700);
}

@media (max-width: 999px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/*--------------------------------------------------------------
# 14. Contacto
--------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.branch {
  padding: 1.1rem 1.25rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--leaf-500);
  border-radius: var(--radius);
}

.branch:first-child {
  border-top-color: var(--blue-800);
}

.branch p {
  margin: 0;
}

.branch .branch-tag {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-700);
}

.branch h3 {
  font-size: 1.4rem;
  font-weight: 800;
  font-stretch: 78%;
}

.branch p:not(.branch-tag) {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.branch a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.contact-list li {
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}

.contact-list .contact-wide {
  grid-column: 1 / -1;
}

.contact-list i {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 34px;
  padding-bottom: 2px;
  color: var(--leaf-700);
  background: var(--leaf-100);
  clip-path: var(--leaf-shape);
}

.contact-list div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.contact-list strong {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list span {
  font-weight: 600;
  color: var(--blue-800);
  overflow-wrap: anywhere;
}

.hours {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hours h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  font-weight: 800;
  font-stretch: 85%;
}

.hours h3 i {
  color: var(--leaf-600);
}

.hours table {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 0.55rem 0.6rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.hours th {
  font-weight: 600;
  text-align: left;
  color: var(--blue-800);
}

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours tr.is-today th,
.hours tr.is-today td {
  background: var(--leaf-50);
}

.today-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-900);
  background: var(--leaf-300);
  border-radius: var(--radius);
  vertical-align: 0.1em;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--leaf-100);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 1.9rem;
  font-weight: 800;
  font-stretch: 78%;
}

.form-intro {
  margin: 0.35rem 0 1.5rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue-800);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: #fbfdfe;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--leaf-200);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.form-status.is-visible {
  display: block;
}

.form-status.loading {
  color: var(--blue-700);
  background: var(--blue-50);
}

.form-status.sent {
  color: var(--color-success);
  background: var(--leaf-100);
}

.form-status.error {
  color: var(--color-danger);
  background: #fdecea;
}

.form-note {
  margin: 1rem 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

@media (max-width: 999px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 559px) {
  .branches,
  .contact-list,
  .field-row {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# 15. Pie de página
--------------------------------------------------------------*/
#footer {
  background: var(--blue-950);
  color: var(--blue-200);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.2fr);
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-seal {
  flex: none;
  display: block;
  width: 96px;
  height: 96px;
}

.footer-name {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}

.footer-motto {
  margin: 0;
  font-style: italic;
  color: var(--leaf-300);
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-300);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--blue-100);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  line-height: 1.45;
}

.footer-contact i {
  color: var(--leaf-300);
}

.footer-contact strong {
  font-weight: 600;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(179, 208, 238, 0.14);
  font-size: 0.86rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #fff;
}

@media (max-width: 999px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Deja libre la esquina de los botones flotantes */
@media (max-width: 699px) {
  .footer-bottom-inner {
    padding-right: calc(var(--gutter) + 64px);
  }
}

/*--------------------------------------------------------------
# 16. WhatsApp flotante y volver arriba
--------------------------------------------------------------*/
.fab-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 91;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 52px;
  padding: 0 1.15rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--whatsapp);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.fab-wa i {
  font-size: 1.35rem;
}

.fab-wa:hover {
  color: #fff;
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

@media (max-width: 699px) {
  .fab-wa {
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .fab-wa span {
    display: none;
  }

  .fab-wa i {
    font-size: 1.55rem;
  }
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + 52px + 0.6rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 1.2rem;
  color: var(--leaf-300);
  background: var(--blue-800);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s, background-color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s, transform 0.25s var(--ease), background-color 0.2s;
}

.to-top:hover {
  background: var(--blue-600);
}

/*--------------------------------------------------------------
# 17. Catálogo de exámenes
--------------------------------------------------------------*/
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  color: var(--blue-100);
  background: var(--blue-900);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 340px;
  aspect-ratio: 1;
  border: 30px solid var(--leaf-500);
  border-radius: 50%;
  opacity: 0.2;
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-bottom: 1rem;
  font-size: var(--text-sm);
}

.breadcrumb-nav li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--blue-300);
}

.breadcrumb-nav a {
  color: var(--leaf-300);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.3rem, 4vw + 1rem, 3.8rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}

.page-hero p {
  max-width: 40rem;
  margin: 0;
  font-size: var(--text-lg);
  color: var(--blue-200);
}

html:not(.js) .exam-tools {
  display: none;
}

.exam-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding-block: 1rem;
  background: rgba(247, 250, 252, 0.96);
  border-bottom: 1px solid var(--line);
}

.exam-search {
  position: relative;
  margin-bottom: 0.75rem;
}

.exam-search i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--leaf-700);
  pointer-events: none;
}

.exam-search input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
}

.exam-search input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--leaf-200);
}

.letter-filter {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.letter-filter button {
  flex: none;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-800);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.letter-filter button:hover {
  border-color: var(--blue-800);
}

.letter-filter button[aria-pressed="true"] {
  color: var(--blue-900);
  background: var(--leaf-500);
  border-color: var(--leaf-500);
}

.letter-filter button:disabled {
  opacity: 0.35;
  cursor: default;
}

.exam-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 1rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.exam-meta p {
  margin: 0;
}

.exam-meta strong {
  color: var(--blue-800);
}

.exam-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.exam {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf-500);
  border-radius: var(--radius);
}

.exam h2 {
  font-size: 1.12rem;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.exam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.exam-tags div {
  display: flex;
  gap: 0.35rem;
}

.exam-tags dt {
  color: var(--muted);
}

.exam-tags dd {
  margin: 0;
  font-weight: 600;
  color: var(--blue-800);
}

.exam details {
  margin-top: 0.6rem;
}

.exam summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--leaf-700);
  cursor: pointer;
  list-style: none;
}

.exam summary::-webkit-details-marker {
  display: none;
}

.exam summary::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.exam details[open] summary::after {
  transform: rotate(180deg);
}

.exam-req {
  margin: 0.6rem 0 0;
  padding: 0.8rem 1rem;
  font-size: 0.94rem;
  line-height: 1.6;
  white-space: pre-line;
  background: var(--leaf-50);
  border-radius: var(--radius);
}

.exam-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.exam-more {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.catalog-note {
  display: flex;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  background: var(--leaf-50);
  border: 1px solid var(--leaf-200);
  border-radius: var(--radius);
}

.catalog-note i {
  color: var(--leaf-700);
}

/*--------------------------------------------------------------
# 18. Revelado al hacer scroll
--------------------------------------------------------------*/
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.js [data-reveal-stagger] > *:nth-child(2) { transition-delay: 80ms; }
.js [data-reveal-stagger] > *:nth-child(3) { transition-delay: 160ms; }
.js [data-reveal-stagger] > *:nth-child(4) { transition-delay: 240ms; }
.js [data-reveal-stagger] > *:nth-child(5) { transition-delay: 320ms; }
.js [data-reveal-stagger] > *:nth-child(6) { transition-delay: 400ms; }

.js [data-reveal].is-revealed,
.js [data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

/* Una vez visibles, el hover no debe heredar el retraso escalonado */
.js [data-reveal-stagger].is-revealed > *:hover {
  transition-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

/*--------------------------------------------------------------
# 19. Impresión
--------------------------------------------------------------*/
@media print {
  #topbar,
  #header,
  .to-top,
  .fab-wa,
  .map-frame,
  .contact-form,
  .exam-tools {
    display: none !important;
  }

  .section--blue,
  .promos,
  .page-hero,
  #footer {
    color: #000;
    background: none;
  }

  .js [data-reveal],
  .js [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }
}
