/* AIGOS: lenguaje visual de las páginas públicas (aigos.html y conector.html).
   Dirección: «libro mayor vivo». Bosque hondo con renglones de libro contable,
   papel de la marca para leer, latón de sello para lo que importa.
   Bricolage Grotesque en títulos (ancho y peso variables), Instrument Sans en texto. */

:root {
  --bosque: #2D4420;      /* verde de la marca */
  --hondo: #15210F;       /* negro verdoso profundo */
  --hondo-2: #1E2D16;     /* superficie elevada sobre lo hondo */
  --hondo-3: #2A3B20;     /* bordes sobre lo hondo */
  --papel: #E6E1D6;       /* papel de la marca */
  --papel-2: #EFEBE2;     /* superficie elevada sobre el papel */
  --papel-3: #DAD3C3;     /* superficie hundida */
  --tinta: #18220F;       /* texto sobre papel */
  --suave: #4A5641;       /* texto secundario sobre papel (AA) */
  --linea: #C3BBA8;
  --laton: #D4B35E;       /* latón de sello, solo sobre fondo oscuro */
  --laton-tinta: #6B5212; /* latón legible sobre papel */
  --brote: #B7CC98;       /* verde claro para texto secundario sobre lo hondo */
  --sobre-hondo: #C9C7B6; /* texto de apoyo sobre lo hondo (AA) */
  --f-titulo: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-texto: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --curva: cubic-bezier(.2, .7, .2, 1);
  --marco: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--f-texto);
  font-stretch: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-titulo); margin: 0; font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--bosque); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--laton-tinta); outline-offset: 3px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }
.salto { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--papel); color: var(--tinta); padding: .6rem 1rem; border-radius: 8px; }
.salto:focus { left: 8px; }
.marco { max-width: var(--marco); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.ico { width: 1.6rem; height: 1.6rem; flex: none; }
.ico-mini { width: 1em; height: 1em; flex: none; vertical-align: -.15em; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--f-texto); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--curva), background-color .2s, border-color .2s;
}
.boton:active { transform: translateY(1px); }
.boton-laton { background: var(--laton); color: var(--hondo); }
.boton-laton:hover { background: #E2C474; }
.boton-fantasma { color: var(--papel); border-color: rgba(230, 225, 214, .35); }
.boton-fantasma:hover { border-color: var(--papel); }
.boton-bosque { background: var(--bosque); color: var(--papel); }
.boton-bosque:hover { background: #3A5729; }
.boton-chico { min-height: 40px; padding: .5rem 1.05rem; font-size: .95rem; background: var(--papel); color: var(--hondo); }
.boton-chico:hover { background: #fff; }
.botones { display: flex; flex-wrap: wrap; gap: .75rem; }
.fondo-hondo :focus-visible, .heroe :focus-visible, .barra :focus-visible, .seguridad :focus-visible, .circuito :focus-visible, .cierre :focus-visible, .pie :focus-visible { outline-color: var(--laton); }

/* ── Barra superior ──────────────────────────────────────────────────────── */
.barra {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 33, 15, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 225, 214, .08);
}
.barra-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.logotipo {
  font: 800 1.35rem/1 var(--f-titulo); font-stretch: 75%;
  letter-spacing: .14em; color: var(--papel); text-decoration: none;
}
.barra-enlaces { display: flex; gap: 1.75rem; margin-left: auto; }
.barra-enlaces a { color: var(--sobre-hondo); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4rem 0; }
.barra-enlaces a:hover { color: var(--papel); }
.barra .boton-chico { margin-left: 0; }
@media (max-width: 720px) {
  .barra-enlaces { display: none; }
  .barra .boton-chico { margin-left: auto; }
}

/* ── Héroe ───────────────────────────────────────────────────────────────── */
.heroe {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hondo); color: var(--papel);
}
/* Renglones de libro contable y doble margen de columna, muy tenues */
.heroe::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, transparent calc(8% - 1px), rgba(212, 179, 94, .16) calc(8% - 1px), rgba(212, 179, 94, .16) 8%, transparent 8%, transparent calc(8% + 5px), rgba(212, 179, 94, .1) calc(8% + 5px), rgba(212, 179, 94, .1) calc(8% + 6px), transparent calc(8% + 6px)),
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(230, 225, 214, .045) 39px 40px);
}
.heroe::after {
  content: ""; position: absolute; z-index: -1;
  width: 60rem; height: 60rem; right: -18rem; top: -12rem;
  background: radial-gradient(closest-side, rgba(45, 68, 32, .95), rgba(45, 68, 32, 0));
}
.heroe-in {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-top: clamp(3rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.heroe h1 {
  font-size: clamp(3rem, 8.4vw, 7.25rem); line-height: .9;
  font-weight: 750; font-stretch: 78%; letter-spacing: -.025em;
  color: var(--papel); max-width: 9ch;
}
.heroe-baja { margin: 1.75rem 0 2.25rem; max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--sobre-hondo); }

/* Conversación simulada */
.charla { margin: 0; min-width: 0; }
.charla-ventana {
  position: relative;
  background: linear-gradient(180deg, #213219, var(--hondo-2) 30%);
  border: 1px solid var(--hondo-3); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(230, 225, 214, .08) inset, 0 50px 90px -30px rgba(0, 0, 0, .75), 0 18px 40px -20px rgba(0, 0, 0, .6);
  transform: rotate(.6deg);
}
.charla-cabeza { display: flex; align-items: center; gap: .4rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--hondo-3); }
.punto { width: .6rem; height: .6rem; border-radius: 50%; background: var(--hondo-3); }
.charla-titulo { margin-left: .6rem; font-size: .85rem; color: var(--brote); }
.charla-cuerpo { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.25rem 1.25rem 1.4rem; }
.msj { max-width: 88%; font-size: .97rem; line-height: 1.5; }
.msj-persona { align-self: flex-end; background: var(--papel); color: var(--tinta); padding: .6rem .95rem; border-radius: 16px 16px 4px 16px; font-weight: 500; }
.msj-ia { color: var(--papel); }
.msj-ia-pila { display: grid; }
.msj-ia-pila > * { grid-area: 1 / 1; }
.escribiendo { display: none; gap: .3rem; align-items: center; height: 1.5rem; }
.escribiendo i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--brote); }

.factura {
  align-self: flex-start; width: min(100%, 17.5rem);
  background: var(--papel-2); color: var(--tinta);
  border-radius: 6px; padding: .8rem 1rem .7rem;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7);
  transform: rotate(-1.8deg);
  /* borde dentado de tirilla */
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
  padding-bottom: 1.1rem;
}
.factura-cab { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: .85rem; padding-bottom: .45rem; border-bottom: 1px dashed var(--linea); }
.factura-cifras { margin: .45rem 0 0; font-size: .88rem; }
.factura-cifras div { display: flex; justify-content: space-between; gap: 1rem; padding: .1rem 0; }
.factura-cifras dt { color: var(--suave); }
.factura-cifras dd { margin: 0; }
.factura-cifras .total { font-weight: 700; border-top: 1px solid var(--linea); margin-top: .25rem; padding-top: .3rem; }
.factura-cifras .total dt { color: var(--tinta); }
.flecha { align-self: flex-start; margin-left: 7rem; width: 1.5rem; color: var(--laton); line-height: 0; }

.asiento {
  width: 100%; border-collapse: collapse; font-size: .86rem;
  background: rgba(230, 225, 214, .04); border: 1px solid var(--hondo-3); border-radius: 10px;
  overflow: hidden; color: var(--papel);
}
.asiento caption { text-align: left; font: 600 .82rem var(--f-texto); color: var(--brote); padding-bottom: .4rem; }
.asiento th, .asiento td { padding: .42rem .6rem; text-align: right; white-space: nowrap; }
.asiento th[scope="row"], .asiento thead th:first-child { text-align: left; font-weight: 500; white-space: normal; }
.asiento thead th { font-weight: 600; font-size: .78rem; color: var(--sobre-hondo); border-bottom: 1px solid var(--hondo-3); }
.asiento tbody tr + tr { border-top: 1px solid rgba(230, 225, 214, .06); }
.asiento tbody tr:nth-child(3) th { padding-left: 1.6rem; } /* el crédito va con sangría, como en el libro */
.asiento tfoot th, .asiento tfoot td { border-top: 1.5px solid var(--laton); font-weight: 700; color: var(--laton); }
.puc { display: inline-block; min-width: 2.6rem; color: var(--laton); font-variant-numeric: tabular-nums; font-weight: 600; }

.factura-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sello {
  flex: none; margin-right: 1.25rem;
  display: grid; place-items: center; width: 5.4rem; height: 5.4rem; border-radius: 50%;
  border: 2.5px solid var(--laton); color: var(--laton);
  font: 800 1.05rem var(--f-titulo); font-stretch: 75%; letter-spacing: .06em;
  transform: rotate(-14deg);
  box-shadow: 0 0 0 4px var(--hondo-2), 0 0 0 5.5px rgba(212, 179, 94, .55);
  background: rgba(21, 33, 15, .85);
  pointer-events: none;
}
.charla figcaption { margin-top: 1rem; font-size: .85rem; color: var(--sobre-hondo); text-align: right; }

/* Secuencia de entrada: un solo momento orquestado */
@media (prefers-reduced-motion: no-preference) {
  .charla-ventana { animation: entra-ventana 1s var(--curva) both; }
  .t1, .t2 .msj-ia, .t3, .t4, .t5 caption, .t5 thead, .t5 tfoot, .t7, .t8 { opacity: 0; animation: aparece .6s var(--curva) forwards; }
  .t5 .r1, .t5 .r2, .t5 .r3 { opacity: 0; animation: renglon .5s var(--curva) forwards; }
  .t2 .escribiendo { display: flex; opacity: 0; animation: escribe 1.3s ease forwards; animation-delay: 1s; }
  .t2 .escribiendo i { animation: rebota .9s ease-in-out infinite; }
  .t2 .escribiendo i:nth-child(2) { animation-delay: .15s; }
  .t2 .escribiendo i:nth-child(3) { animation-delay: .3s; }
  .t1 { animation-delay: .5s; }
  .t2 .msj-ia { animation-delay: 2.25s; }
  .t3 { animation-name: cae-factura; animation-duration: .8s; animation-delay: 3s; }
  .t4 { animation-delay: 3.9s; }
  .t5 caption, .t5 thead { animation-delay: 4.2s; }
  .t5 .r1 { animation-delay: 4.45s; }
  .t5 .r2 { animation-delay: 4.7s; }
  .t5 .r3 { animation-delay: 4.95s; }
  .t5 tfoot { animation-delay: 5.3s; }
  .t6 { opacity: 0; animation: sella .55s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: 5.8s; }
  .t7 { animation-delay: 6.5s; }
  .t8 { animation-delay: 7.4s; }
}
@keyframes entra-ventana { from { opacity: 0; transform: translateY(24px) rotate(2deg); } }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes renglon { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes cae-factura { from { opacity: 0; transform: translateY(-18px) rotate(-6deg); } to { opacity: 1; transform: rotate(-1.8deg); } }
@keyframes escribe { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rebota { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes sella { 0% { opacity: 0; transform: rotate(-30deg) scale(1.9); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }

/* ── Secciones en papel ──────────────────────────────────────────────────── */
.bloque { padding: clamp(4rem, 10vw, 8rem) 0; }
.h-seccion {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: .98;
  font-weight: 700; font-stretch: 82%; letter-spacing: -.02em;
  color: var(--bosque); max-width: 16ch;
}
.cabeza-seccion { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.entrada { font-size: 1.15rem; color: var(--suave); max-width: 32rem; }

/* Qué es */
.que .h-seccion { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-family: var(--f-texto); font-weight: 600; letter-spacing: 0; color: var(--laton-tinta); margin-bottom: 1.25rem; }
.declaracion {
  font: 600 clamp(1.9rem, 4.6vw, 3.6rem)/1.08 var(--f-titulo); font-stretch: 88%;
  letter-spacing: -.015em; color: var(--tinta); max-width: 22ch; text-wrap: balance;
}
.que-rejilla { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem 5rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.que-detalle { font-size: 1.15rem; color: var(--suave); max-width: 28rem; }
.principios { margin: 0; display: grid; gap: 1.75rem; }
.principios div { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 1rem; }
.principios dt { display: contents; font: 650 1.3rem/1.3 var(--f-titulo); color: var(--bosque); }
.principios dt .ico { grid-row: 1 / span 2; width: 2.6rem; height: 2.6rem; padding: .5rem; border-radius: 12px; background: var(--bosque); color: var(--papel); }
.principios dd { grid-column: 2; margin: .3rem 0 0; color: var(--tinta); max-width: 38rem; }

/* Módulos */
.modulos { background: var(--papel-2); padding-bottom: 0; }
.modulo {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 4rem;
  padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--linea);
}
.modulo-nombre { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.modulo-nombre .ico { color: var(--bosque); width: 2rem; height: 2rem; }
.modulo h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.02; font-weight: 700; font-stretch: 85%; letter-spacing: -.012em; color: var(--tinta); max-width: 14ch; }
.modulo-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.modulo-lista li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid rgba(195, 187, 168, .5); }
.modulo-lista li:last-child { border-bottom: 0; }
.modulo-lista li::before { content: ""; position: absolute; left: .1rem; top: 1.12rem; width: .7rem; height: 2px; background: var(--bosque); }
.nota-modulo { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; background: var(--papel-3); font-size: .95rem; color: var(--tinta); }

.insignia {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .7rem; border-radius: 999px;
  font: 600 .82rem/1.4 var(--f-texto); letter-spacing: .01em; white-space: nowrap;
}
.insignia-desarrollo { background: transparent; color: var(--laton-tinta); border: 1.5px dashed var(--laton-tinta); margin-right: .35rem; }
.insignia-nuevo { background: var(--laton); color: var(--hondo); }
.insignia-nuevo::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--hondo); }

/* Ficha XML */
.xml-ficha {
  margin-top: .75rem; display: grid; gap: .3rem; width: min(100%, 22rem);
  padding: .9rem 1rem; border-radius: 12px; background: var(--hondo); color: var(--papel);
  font-size: .85rem; transform: rotate(-1deg);
  box-shadow: 0 20px 34px -22px rgba(21, 33, 15, .9);
}
.xml-nombre { font-weight: 600; }
.xml-estado { color: var(--laton); display: flex; gap: .4rem; align-items: center; }
.xml-ruta { color: var(--sobre-hondo); font-size: .8rem; }

/* Kárdex que cuadra */
.kardex {
  margin: .75rem 0 0; width: min(100%, 25rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6rem; align-items: stretch;
}
.kardex-col { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .85rem; border-radius: 10px; background: var(--papel); border: 1px solid var(--linea); font-size: .82rem; }
.kardex-tit { font-weight: 700; color: var(--bosque); }
.kardex-item { color: var(--suave); margin-bottom: .3rem; }
.kardex-fila { display: flex; justify-content: space-between; gap: .5rem; }
.kardex-fila.fuerte { margin-top: auto; padding-top: .35rem; border-top: 1.5px solid var(--bosque); font-weight: 700; }
.kardex-igual { align-self: center; font: 700 1.6rem var(--f-titulo); color: var(--bosque); }
.kardex figcaption { grid-column: 1 / -1; font-size: .85rem; font-weight: 600; color: var(--bosque); display: flex; gap: .4rem; align-items: center; }

/* Circuito de abastecimiento: banda destacada */
.circuito {
  position: relative; isolation: isolate; overflow: hidden;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  background: var(--bosque); color: var(--papel);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.circuito::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(230, 225, 214, .05) 39px 40px);
}
.circuito-cabeza { display: grid; gap: 1rem; max-width: 46rem; }
.circuito-cabeza .insignia { justify-self: start; }
.h-circuito { font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: .98; font-weight: 750; font-stretch: 80%; letter-spacing: -.02em; color: var(--papel); }
.circuito-entrada { font-size: 1.15rem; color: #D8D6C6; max-width: 34rem; }
.flujo {
  list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  counter-reset: paso;
}
.flujo li { position: relative; counter-increment: paso; padding: 3.6rem 1.25rem 0 0; }
.flujo li::before {
  content: counter(paso); position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--papel); color: var(--bosque); font: 750 1.1rem var(--f-titulo);
}
.flujo li::after { content: ""; position: absolute; left: 2.6rem; right: 0; top: 1.3rem; height: 1.5px; background: repeating-linear-gradient(90deg, rgba(230, 225, 214, .55) 0 6px, transparent 6px 11px); }
.flujo li:last-child::after { display: none; }
.flujo li:last-child::before { background: var(--laton); color: var(--hondo); }
.quien { display: block; font: 650 .9rem var(--f-texto); color: var(--laton); margin-bottom: .35rem; }
.flujo p { font-size: 1rem; line-height: 1.5; color: var(--papel); }

.modulos-menores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--linea); }
.modulo-menor h3 { display: flex; flex-direction: column; gap: .7rem; font-size: 1.5rem; line-height: 1.08; font-weight: 700; font-stretch: 85%; color: var(--tinta); margin-bottom: .6rem; }
.modulo-menor h3 .ico { color: var(--bosque); width: 1.8rem; height: 1.8rem; }
.modulo-menor .modulo-lista li { font-size: .97rem; }

/* ── Seguridad: sobre lo hondo ───────────────────────────────────────────── */
.seguridad { background: var(--hondo); color: var(--papel); position: relative; isolation: isolate; overflow: hidden; }
.seguridad::before { content: ""; position: absolute; z-index: -1; width: 50rem; height: 50rem; left: -20rem; bottom: -25rem; background: radial-gradient(closest-side, rgba(45, 68, 32, .9), rgba(45, 68, 32, 0)); }
.seguridad .h-seccion { color: var(--papel); }
.codigo-8h { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem 4.5rem; align-items: start; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 24px; background: var(--hondo-2); border: 1px solid var(--hondo-3); }
.codigo-texto h3 { display: flex; flex-direction: column; gap: .9rem; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; font-weight: 700; font-stretch: 85%; color: var(--papel); margin-bottom: 1rem; }
.codigo-texto h3 .ico { color: var(--laton); width: 2.2rem; height: 2.2rem; }
.codigo-texto p { color: var(--sobre-hondo); font-size: 1.08rem; }
.reloj { list-style: none; margin: 0; padding: 0 0 0 2.2rem; position: relative; display: grid; gap: 1.6rem; }
.reloj::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--laton), rgba(212, 179, 94, .25)); }
.reloj li { position: relative; display: grid; gap: .1rem; }
.reloj li::before { content: ""; position: absolute; left: -2.2rem; top: .3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--hondo-2); border: 2.5px solid var(--laton); }
.reloj .reloj-inicio::before { background: var(--laton); }
.reloj .reloj-fin::before { border-style: dashed; border-color: var(--sobre-hondo); }
.hora { font: 650 .92rem var(--f-texto); font-variant-numeric: tabular-nums; color: var(--laton); }
.reloj-fin .hora { color: var(--sobre-hondo); }
.evento { font-size: 1.08rem; color: var(--papel); }
.garantias { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2.5rem; }
.garantias li { padding-top: 1.25rem; border-top: 1.5px solid var(--hondo-3); }
.garantias .ico { color: var(--laton); width: 1.9rem; height: 1.9rem; }
.garantias h3 { font-size: 1.35rem; line-height: 1.1; font-weight: 700; font-stretch: 85%; margin: .9rem 0 .5rem; color: var(--papel); }
.garantias p { color: var(--sobre-hondo); font-size: .98rem; }

/* ── Tu IA ───────────────────────────────────────────────────────────────── */
.ias { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--tinta); }
.ias li { border-bottom: 1px solid var(--linea); }
.ias a {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) 2rem; gap: .6rem 2.5rem; align-items: center;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0; color: var(--tinta); text-decoration: none;
}
.ias .ia-nombre { grid-row: 1 / span 2; }
.ia-guarda { grid-column: 2; display: flex; flex-wrap: wrap; gap: .45rem; }
.ia-guarda span { font-size: .88rem; line-height: 1.35; padding: .3rem .7rem; border-radius: 8px; background: var(--papel-2); border: 1px solid var(--linea); color: var(--tinta); }
.ias a::after { grid-column: 3; grid-row: 1 / span 2; content: ""; width: 1.4rem; height: 1.4rem; justify-self: end; border-top: 2px solid var(--bosque); border-right: 2px solid var(--bosque); transform: scale(.55) rotate(45deg); transition: transform .25s var(--curva); }
.ias a:hover::after { transform: translateX(6px) scale(.55) rotate(45deg); }
.ia-nombre { font: 700 clamp(2rem, 5vw, 3.6rem)/1 var(--f-titulo); font-stretch: 80%; letter-spacing: -.02em; color: var(--bosque); transition: color .2s; }
.ias a:hover .ia-nombre { color: var(--tinta); }
.ia-modo { color: var(--suave); font-size: 1.05rem; }
.ias-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 4rem; margin-top: 2.25rem; }
.ias-extra p { color: var(--tinta); max-width: 36rem; }

/* ── Cierre ──────────────────────────────────────────────────────────────── */
.cierre { background: var(--hondo); color: var(--papel); overflow: hidden; }
.cierre-in { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(4rem, 10vw, 7rem); display: grid; justify-items: start; gap: 1.1rem; }
.cierre-grande {
  font: 800 clamp(3.6rem, 15vw, 13rem)/.85 var(--f-titulo); font-stretch: 75%; letter-spacing: -.035em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(212, 179, 94, .75);
  white-space: nowrap; margin-bottom: 1.5rem;
}
.h-cierre { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; font-stretch: 85%; line-height: 1.05; color: var(--papel); max-width: 20ch; }
.cierre p:not(.cierre-grande) { color: var(--sobre-hondo); font-size: 1.1rem; margin-bottom: .8rem; }

/* ── Pie ─────────────────────────────────────────────────────────────────── */
.pie { background: var(--hondo); color: var(--sobre-hondo); border-top: 1px solid var(--hondo-3); font-size: .92rem; }
.pie-in { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-top: 1.75rem; padding-bottom: 2rem; }
.logotipo-pie { font-size: 1.05rem; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-left: auto; }
.pie a { color: var(--papel); min-height: 32px; display: inline-flex; align-items: center; }

/* ── Respuesta ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .garantias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flujo { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 34rem; }
  .flujo li { padding: 0 0 1.75rem 3.75rem; min-height: 3.6rem; }
  .flujo li::after { left: 1.25rem; right: auto; top: 2.6rem; bottom: 0; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, rgba(230, 225, 214, .55) 0 6px, transparent 6px 11px); }
  .flujo li .quien { padding-top: .1rem; }
}
@media (max-width: 900px) {
  .heroe-in { grid-template-columns: minmax(0, 1fr); }
  .heroe h1 { max-width: 11ch; }
  .charla { max-width: 32rem; }
  .cabeza-seccion, .que-rejilla, .modulo, .codigo-8h, .ias-extra { grid-template-columns: minmax(0, 1fr); }
  .modulos-menores { grid-template-columns: minmax(0, 1fr); }
  .modulo h3 { max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .botones .boton { flex: 1 1 100%; }
  .heroe h1 { font-size: clamp(3rem, 15.5vw, 4rem); }
  .charla-cuerpo { padding: 1rem .85rem 1.1rem; }
  .charla-ventana { transform: none; }
  .asiento { font-size: .78rem; }
  .asiento th, .asiento td { padding: .38rem .4rem; }
  .asiento tbody tr:nth-child(3) th { padding-left: .9rem; }
  .puc { min-width: 2.3rem; }
  .flecha { margin-left: 4.5rem; }
  .sello { width: 4.4rem; height: 4.4rem; font-size: .9rem; margin-right: .2rem; }
  .garantias { grid-template-columns: minmax(0, 1fr); }
  .ias a { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .ias .ia-nombre { grid-row: auto; }
  .ia-modo, .ia-guarda { grid-column: 1; }
  .ias a::after { grid-row: 1 / span 3; grid-column: 2; }
  .kardex { gap: .35rem; }
  .kardex-col { padding: .65rem .6rem; font-size: .76rem; }
  .kardex-igual { font-size: 1.2rem; }
  .pie-enlaces { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
