/* ==========================================================================
   FABJARDIN · del archivo al objeto
   Azul del logo como base y una paleta de apoyo (lima, cian, sol, coral, lila,
   azul eléctrico) que se reparte por secciones y por página.
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Display";
  font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/body-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* Marca */
  --tinta: #001c72;        /* azul del logo */
  --noche: #000d38;
  /* Paleta de apoyo */
  --azul: #2f5bff;         /* azul eléctrico */
  --lima: #c8f53c;
  --cian: #29d3f0;
  --sol: #ffc933;
  --coral: #ff6a45;
  --lila: #b8a7ff;
  /* Neutros */
  --hoja: #f1f3fa;
  --papel: #ffffff;
  --trazo: #d3d9ee;
  --texto: #0a1033;
  --suave: #4b5580;
  --grabado: #9db4ff;
  --corte: #ff3b2e;
  --acento: var(--lima);   /* cambia por página (data-tono) */
  --c2: var(--cian);
  --c3: var(--sol);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --cuerpo: "Hanken Grotesk", system-ui, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;
  --alto-header: 76px;
  --hueco: clamp(1.5rem, 4vw, 4rem);
  --radio: 28px;
}
body[data-tono="lima"]  { --acento: var(--lima);  --c2: var(--cian);  --c3: var(--sol); }
body[data-tono="cian"]  { --acento: var(--cian);  --c2: var(--lima);  --c3: var(--lila); }
body[data-tono="coral"] { --acento: var(--coral); --c2: var(--sol);   --c3: var(--cian); }
body[data-tono="sol"]   { --acento: var(--sol);   --c2: var(--coral); --c3: var(--lima); }
body[data-tono="lila"]  { --acento: var(--lila);  --c2: var(--cian);  --c3: var(--coral); }
body[data-tono="azul"]  { --acento: var(--azul);  --c2: var(--lima);  --c3: var(--sol); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--cuerpo); font-size: 1.0625rem; line-height: 1.65; color: var(--texto); background: var(--hoja); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: -.003em; margin: 0; text-wrap: balance; }
.contenedor { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--grabado); outline-offset: 3px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--lima); color: var(--tinta); padding: .7rem 1rem; z-index: 300; border-radius: 999px; font-weight: 700; }
.saltar:focus { left: 8px; }

/* ---------- Botones (píldora) ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 700 1rem/1 var(--cuerpo); text-decoration: none; cursor: pointer;
  padding: 1rem 1.6rem; border: 2px solid var(--tinta); border-radius: 999px;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.boton:hover { transform: translateY(-2px); }
.boton--chico { padding: .7rem 1.2rem; font-size: .95rem; }
.boton--lleno { background: var(--tinta); color: #fff; }
.boton--lleno:hover { background: var(--azul); border-color: var(--azul); }
.boton--borde { background: transparent; color: var(--tinta); }
.boton--borde:hover { background: var(--tinta); color: #fff; }
.boton--lima { background: var(--lima); color: var(--tinta); border-color: var(--lima); }
.boton--lima:hover { background: #fff; border-color: #fff; }
.boton--claro { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.boton--claro:hover { background: var(--azul); border-color: var(--azul); }
.boton--borde-claro { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.boton--borde-claro:hover { background: #fff; color: var(--tinta); border-color: #fff; }
.fila-botones { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header azul ---------- */
.cabecera { position: sticky; top: 0; z-index: 100; height: var(--alto-header); background: var(--tinta); color: #fff; }
.cabecera .contenedor { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1440px; }
.marca-logo { flex: none; }
.marca-logo img { height: 44px; width: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: .1rem; }
.nav li { position: relative; }
.nav a.enlace { display: block; white-space: nowrap; padding: .55rem .85rem; text-decoration: none; font-weight: 700; font-size: .96rem; color: #fff; border-bottom: 2px solid transparent; transition: color .15s; }
.nav li:hover > a.enlace, .nav li:focus-within > a.enlace { color: var(--lima); }
.nav a.enlace[aria-current="page"] { border-bottom-color: var(--lima); }
.sub {
  position: absolute; left: 0; top: 100%; min-width: 280px; padding: .6rem; margin-top: 10px;
  background: var(--noche); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; box-shadow: 0 18px 40px rgba(0,13,56,.35);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.tiene-sub:hover > .sub, .tiene-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .6rem .9rem; text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 12px; }
.sub a:hover { background: rgba(255,255,255,.1); color: var(--lima); }
.reloj { font-weight: 600; font-size: .88rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav .boton { padding: .8rem 1.3rem; font-size: .95rem; white-space: nowrap; }
.boton-menu { display: none; background: transparent; color: var(--lima); border: 2px solid var(--lima); border-radius: 999px; font: 700 1rem var(--cuerpo); padding: .6rem 1.2rem; cursor: pointer; }

/* ---------- Hero de portada ---------- */
.hero { position: relative; background: var(--tinta); color: #fff; overflow: hidden; border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
  min-height: min(calc(100svh - var(--alto-header)), 780px); display: flex; align-items: center; padding: clamp(2.2rem, 5vw, 4rem) 0; }
.hero::before, .hero-int::before { content: ""; position: absolute; inset: 0; background: url("../images/panal-claro.svg") 0 0 / 64px auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 70%); mask-image: linear-gradient(100deg, #000 0%, transparent 70%); }
.hero .contenedor { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: center; }
.sello { display: inline-block; margin: 0 0 1.2rem; padding: .4rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.9); }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: 1.02; color: #fff; margin-bottom: 1.4rem; }
.hero h1 span { display: block; }
.hero h1 .acento { color: var(--lima); }
.hero-p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: rgba(255,255,255,.88); max-width: 46ch; margin-bottom: 1.8rem; }
.cifras { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin: 2.2rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,.22); }
.cifras li { display: grid; line-height: 1.2; }
.cifras b { font: 800 clamp(1.9rem, 3vw, 2.6rem)/1 var(--display); color: var(--lima); }
.cifras span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* Collage: fotos o color de la paleta (images/portada/<clave>.webp) */
.collage { --sep: clamp(.6rem, 1.4vw, 1.1rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.4vw, 1.1rem); height: clamp(420px, 66vh, 640px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.col { overflow: hidden; min-width: 0; }
.pista { display: flex; flex-direction: column; will-change: transform; animation: sube 46s linear infinite; }
.col-b .pista { animation-name: baja; animation-duration: 52s; }
.collage:hover .pista { animation-play-state: paused; }
.grupo { display: flex; flex-direction: column; gap: var(--sep); padding-bottom: var(--sep); }
@keyframes sube { to { transform: translateY(-50%); } }
@keyframes baja { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.tile { position: relative; overflow: hidden; flex: none; display: flex; align-items: flex-end; padding: 1rem; color: var(--tinta); }
.tile.rect { aspect-ratio: 1 / .8; border-radius: 30px; }
.tile.circulo { aspect-ratio: 1; border-radius: 50%; justify-content: center; align-items: center; text-align: center; }
.tile::before { content: ""; position: absolute; inset: 0; background: url("../images/panal.svg") 0 0 / 56px auto; opacity: .7; pointer-events: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.tile .et { position: relative; z-index: 1; font: 800 clamp(1.3rem, 2vw, 1.8rem)/1 var(--display); }
.tile:has(img) .et { background: var(--tinta); color: #fff; padding: .4rem .8rem; border-radius: 999px; font-size: 1rem; font-family: var(--cuerpo); font-weight: 700; }
.tile.circulo:has(img) { align-items: flex-end; }
.t-lima { background: var(--lima); } .t-cian { background: var(--cian); } .t-sol { background: var(--sol); }
.t-coral { background: var(--coral); } .t-lila { background: var(--lila); } .t-azul { background: var(--azul); color: #fff; }
.t-marca { padding: 0; }
.t-marca::before { display: none; }
.t-marca svg { width: 62%; height: auto; overflow: visible; }

.marca-corte svg, .t-marca svg { overflow: visible; }
.pieza { fill: var(--tinta); }
.rayo { fill: var(--corte); opacity: 0; filter: drop-shadow(0 0 6px var(--corte)) drop-shadow(0 0 16px rgba(255,59,46,.7)); }

/* ---------- Hero de páginas interiores ---------- */
.hero-int { position: relative; background: var(--tinta); color: #fff; overflow: hidden; border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px); padding: clamp(1.2rem, 2.4vw, 1.8rem) 0 clamp(1.4rem, 2.8vw, 2.2rem); }
.hero-int .contenedor { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: center; }
.migas { font-size: .92rem; color: rgba(255,255,255,.75); margin-bottom: .8rem; }
.migas a { text-underline-offset: 3px; color: #fff; }
.hero-int h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); color: #fff; max-width: 18ch; margin-bottom: .9rem; }
.hero-int .entrada { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.85); max-width: 58ch; margin: 0; }
.mosaico { position: relative; width: clamp(200px, 22vw, 300px); aspect-ratio: 1.15 / 1; }
.mosaico span { position: absolute; overflow: hidden; display: block; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.mosaico .m1 { left: 0; top: 0; width: 58%; height: 100%; border-radius: 30px; background: var(--acento); }
.mosaico .m2 { right: 0; top: 0; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--c2); }
.mosaico .m3 { right: 6%; bottom: 0; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--c3); }

/* ---------- Bloques ---------- */
.bloque { padding: clamp(1.6rem, 3.2vw, 2.6rem) 0; }
.bloque--hoja { background: var(--hoja); }
.bloque--papel { background: var(--papel); }
.bloque--tinta { background: var(--tinta); color: #fff; border-radius: clamp(28px, 4vw, 56px); }
.bloque h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); color: var(--tinta); }
.bloque--tinta h2 { color: #fff; }
.cabeza { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem var(--hueco); align-items: end; margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.cabeza p { margin: 0; color: var(--suave); max-width: 52ch; }
.bloque--tinta .cabeza p { color: rgba(255,255,255,.82); }
.cabeza--sola { grid-template-columns: 1fr; }
.dividido { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.2rem var(--hueco); align-items: start; }
.dividido .der > :first-child { margin-top: 0; }
.dividido .panel { margin-top: 2rem; max-width: 36rem; }
.texto-largo { color: var(--suave); font-size: 1.15rem; max-width: 52ch; }
.bloque--tinta .texto-largo { color: rgba(255,255,255,.85); }

/* Tarjetas de texto (antes filas) */
.filas { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; }
.fila { position: relative; padding: 1.6rem 1.6rem 1.8rem; border-radius: var(--radio); background: color-mix(in srgb, var(--lima) 30%, #fff); }
.fila:nth-child(5n+2) { background: color-mix(in srgb, var(--cian) 24%, #fff); }
.fila:nth-child(5n+3) { background: color-mix(in srgb, var(--sol) 32%, #fff); }
.fila:nth-child(5n+4) { background: color-mix(in srgb, var(--lila) 32%, #fff); }
.fila:nth-child(5n+5) { background: color-mix(in srgb, var(--coral) 22%, #fff); }
.fila .num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.2rem; border-radius: 50%; background: var(--tinta); color: #fff; font: 800 1.1rem/1 var(--display); }
.fila h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); color: var(--tinta); margin-bottom: .6rem; }
.fila p { margin: 0; color: var(--texto); opacity: .82; }
.bloque--tinta .fila { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.bloque--tinta .fila .num { background: var(--lima); color: var(--tinta); }
.bloque--tinta .fila h3 { color: #fff; }
.bloque--tinta .fila p { color: #fff; opacity: .85; }

/* Servicios con foto (images/servicios/<archivo>.webp) */
.lista-servicios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.servicio { display: flex; flex-direction: column; background: var(--hoja); border-radius: var(--radio); overflow: hidden; }
.servicio .visual { position: relative; aspect-ratio: 16 / 7; background: var(--lima); display: flex; align-items: flex-end; padding: 1.1rem 1.4rem; overflow: hidden; }
.servicio:nth-child(6n+2) .visual { background: var(--cian); }
.servicio:nth-child(6n+3) .visual { background: var(--sol); }
.servicio:nth-child(6n+4) .visual { background: var(--lila); }
.servicio:nth-child(6n+5) .visual { background: var(--coral); }
.servicio:nth-child(6n+6) .visual { background: var(--azul); }
.servicio:nth-child(6n+6) .n { color: #fff; }
.servicio .visual::before { content: ""; position: absolute; inset: 0; background: url("../images/panal.svg") 0 0 / 56px auto; opacity: .7; }
.servicio .n { position: relative; z-index: 1; font: 800 clamp(3rem, 5vw, 4.4rem)/.8 var(--display); color: var(--tinta); }
.servicio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.servicio.con-foto .n { background: var(--tinta); color: #fff; font-size: 1rem; line-height: 1; padding: .5rem .8rem; border-radius: 999px; font-family: var(--cuerpo); }
.servicio .cuerpo { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.servicio h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); color: var(--tinta); margin-bottom: .5rem; }
.servicio .corto { color: var(--suave); }
.servicio .largo { font-weight: 500; flex: 1; }
.servicio .boton { align-self: flex-start; margin-top: .4rem; }

/* Pasos */
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.pasos li { counter-increment: paso; position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .4rem var(--hueco); padding: 1.1rem 0; border-bottom: 1px solid var(--trazo); align-items: start; }
.pasos li:first-child { border-top: 1px solid var(--trazo); }
.pasos li::before { content: counter(paso); position: absolute; left: 0; top: 1.3rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--tinta); color: var(--lima); font: 800 1.3rem/1 var(--display); }
.pasos h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); color: var(--tinta); padding-left: 3.8rem; padding-top: .3rem; }
.pasos p { margin: 0; padding-top: .45rem; color: var(--suave); }

/* Puntos */
.puntos { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.puntos li { position: relative; padding-left: 1.7rem; }
.puntos li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--azul); }
.bloque--tinta .puntos li::before { background: var(--lima); }

/* Temas (formación) */
.temas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.temas li { padding: .8rem 1.5rem; border-radius: 999px; background: var(--lima); font: 800 clamp(1.3rem, 1.9vw, 1.7rem)/1 var(--display); color: var(--tinta); }
.temas li:nth-child(5n+2) { background: var(--cian); }
.temas li:nth-child(5n+3) { background: var(--sol); }
.temas li:nth-child(5n+4) { background: var(--lila); }
.temas li:nth-child(5n+5) { background: var(--coral); }

/* Panel de llamado dentro de un bloque */
.panel { background: var(--acento); color: var(--tinta); padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radio); }
.bloque--tinta .panel { background: #fff; color: var(--texto); }
.panel h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--tinta); margin-bottom: .8rem; }
.panel p { color: var(--tinta); }
.bloque--tinta .panel p { color: var(--suave); }
body[data-tono="azul"] .panel, body[data-tono="azul"] .panel h3, body[data-tono="azul"] .panel p { color: #fff; }
body[data-tono="azul"] .bloque--tinta .panel h3 { color: var(--tinta); }
body[data-tono="azul"] .bloque--tinta .panel p { color: var(--suave); }
.panel .boton { margin-top: .4rem; }

/* Llamado de cierre en páginas interiores */
.llamado { background: var(--hoja); padding: clamp(1rem, 2vw, 1.6rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.llamado .caja { position: relative; overflow: hidden; background: var(--tinta); color: #fff; border-radius: clamp(28px, 4vw, 48px); padding: clamp(2rem, 5vw, 3.6rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.llamado .caja::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: var(--acento); opacity: .9; }
.llamado .caja > * { position: relative; z-index: 1; }
.llamado h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 20ch; color: #fff; }
.llamado p { margin: .8rem 0 0; color: rgba(255,255,255,.85); }

/* ---------- Ejes (portada) ---------- */
.ejes { background: var(--hoja); padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(.8rem, 1.5vw, 1.2rem); }
.ejes h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); max-width: 22ch; margin-bottom: clamp(1.2rem, 2.5vw, 2rem); color: var(--tinta); }
.lista-ejes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; align-items: stretch; }
.eje { position: relative; display: flex; flex-direction: column; gap: .4rem; min-height: 215px; padding: 1.1rem 1.1rem 1.2rem; border-radius: 24px; text-decoration: none; color: var(--tinta); background: var(--lima); overflow: hidden; transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s; }
.eje:nth-child(2) { background: var(--cian); }
.eje:nth-child(3) { background: var(--sol); }
.eje:nth-child(4) { background: var(--lila); }
.eje:nth-child(5) { background: var(--coral); }
.eje::before { content: ""; position: absolute; inset: 0; background: url("../images/panal.svg") 0 0 / 56px auto; opacity: .6; pointer-events: none; }
.eje > * { position: relative; }
.eje .n { font-weight: 700; font-size: .95rem; }
.eje-foto { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 22px; order: -1; max-width: none; }
.eje .nombre { font: 800 clamp(1.4rem, 2vw, 2.2rem)/.98 var(--display); margin-top: auto; }
.eje .detalle { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--tinta); }
.eje .ir { position: absolute; right: 1rem; top: 1rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--tinta); color: #fff; transition: transform .2s; }
.eje .flecha { width: 1rem; height: 1rem; }
.eje:hover, .eje:focus-visible { transform: translateY(-6px) scale(1.06); z-index: 2; box-shadow: 0 20px 38px rgba(0,28,114,.28); }
.eje:hover .ir, .eje:focus-visible .ir { transform: rotate(-45deg); }

/* ---------- Tabla de máquinas ---------- */
.especificaciones { background: var(--papel); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.especificaciones h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); color: var(--tinta); }
.tabla { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.tabla th { text-align: left; font: 700 .9rem var(--cuerpo); color: var(--suave); padding: 0 1.2rem .9rem; border-bottom: 2px solid var(--tinta); }
.tabla th:first-child { width: calc((500% + 7 * var(--hueco)) / 12); }
.tabla th:nth-child(2) { width: 27%; }
.tabla th:last-child { width: 8rem; }
.tabla td { padding: 1.15rem 1.2rem; vertical-align: top; border-bottom: 1px solid var(--trazo); transition: background-color .15s; }
.tabla td:first-child { font: 800 clamp(1.4rem, 1.9vw, 1.8rem)/1.05 var(--display); color: var(--tinta); }
.tabla td:nth-child(2) { font-weight: 600; }
.tabla td:last-child { text-align: right; white-space: nowrap; }
.tabla tbody tr:hover td { background: var(--hoja); }
.maq .cotizar, .servicio .cotizar, .tabla .cotizar { display: inline-block; font-weight: 700; font-size: .92rem; color: var(--tinta); text-decoration: none; padding: .5rem 1.1rem; border: 2px solid var(--tinta); border-radius: 999px; white-space: nowrap; transition: background-color .15s, color .15s; }
.maq .cotizar:hover, .tabla .cotizar:hover { background: var(--tinta); color: #fff; }

/* ---------- Manifiesto ---------- */
.manifiesto { background: var(--hoja); padding: clamp(1rem, 2vw, 1.6rem) 0 clamp(2rem, 4vw, 3rem); }
.manifiesto p { display: block; width: fit-content; max-width: 100%; margin: .3rem 0; font: 800 clamp(1.3rem, 2.9vw, 2.7rem)/1.12 var(--display); color: var(--tinta); padding: 0 .3em;
  background: linear-gradient(var(--lima), var(--lima)) 0 90% / 100% 42% no-repeat; }
.manifiesto p:nth-child(5n+2) { background-image: linear-gradient(var(--cian), var(--cian)); }
.manifiesto p:nth-child(5n+3) { background-image: linear-gradient(var(--sol), var(--sol)); }
.manifiesto p:nth-child(5n+4) { background-image: linear-gradient(var(--lila), var(--lila)); }
.manifiesto p:nth-child(5n+5) { background-image: linear-gradient(var(--coral), var(--coral)); }

/* ---------- Resultados en una frase ---------- */
.resultados { background: var(--tinta); color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-radius: clamp(28px, 4vw, 56px); }
.resultados .frase { font: 700 clamp(1.7rem, 3.1vw, 2.8rem)/1.15 var(--display); max-width: 34ch; margin: 0 0 2rem; }
.resultados .frase b { font-weight: 800; color: var(--lima); }
.resultados a { display: inline-block; color: var(--tinta); background: var(--lima); text-decoration: none; font-weight: 700; padding: .9rem 1.5rem; border-radius: 999px; transition: background-color .15s; }
.resultados a:hover { background: #fff; }

/* ---------- Llamado final de portada ---------- */
.final { background: var(--hoja); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.final .caja { position: relative; overflow: hidden; background: var(--azul); color: #fff; border-radius: clamp(28px, 4vw, 56px); padding: clamp(2rem, 5vw, 4rem); }
.final .caja::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: var(--lima); opacity: .95; }
.final .caja > * { position: relative; z-index: 1; }
.final h2 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); color: #fff; max-width: 20ch; margin-bottom: 1.8rem; }
.final .sub-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.4); }
.final .sub-final p { margin: 0; max-width: 42ch; }

/* ---------- Formulario ---------- */
.contacto-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contacto-grid .panel { background: var(--tinta); color: #fff; }
.contacto-grid .panel h3 { color: #fff; }
.contacto-grid .panel p { color: rgba(255,255,255,.88); }
.formulario { background: var(--hoja); border-radius: var(--radio); padding: clamp(1.4rem, 3vw, 2.4rem); }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.4rem; }
.campo { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.campo.ancho { grid-column: 1 / -1; }
.campo label { font-weight: 700; font-size: .95rem; color: var(--tinta); }
.campo input, .campo select, .campo textarea { width: 100%; min-width: 0; font: inherit; color: var(--texto); background: #fff; border: 2px solid var(--trazo); border-radius: 16px; padding: .85rem 1rem; }
.campo textarea { min-height: 150px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(47,91,255,.2); }
.campo .ayuda { font-size: .85rem; color: var(--suave); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.estado { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 14px; display: none; font-weight: 600; }
.estado.ok { display: block; background: #e1f6ec; color: #0b5d46; }
.estado.error { display: block; background: #fdeaea; color: #8a1f1f; }
.datos { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.datos li { display: grid; gap: .1rem; }
.datos small { color: var(--lima); font-size: .85rem; font-weight: 700; }
.datos a { overflow-wrap: anywhere; font-weight: 600; }

/* ---------- Texto legal ---------- */
.prosa { max-width: 760px; }
.prosa h2 { font-size: 2rem; color: var(--tinta); margin: 2rem 0 .6rem; }
.borrador { background: #fff6dc; border: 1px solid #f0d37a; color: #6b5200; padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.5rem; font-weight: 600; }

/* ---------- Pie ---------- */
.pie { background: var(--noche); color: rgba(255,255,255,.82); padding: clamp(2rem, 4vw, 3rem) 0 1.2rem; font-size: 1rem; }
.pie-grid { display: grid; grid-template-columns: 1.4fr .9fr .9fr 1.3fr 1.5fr; gap: 2.5rem; }
.pie img { height: 50px; width: auto; margin-bottom: 1.2rem; }
.pie h3 { font: 700 1.05rem var(--cuerpo); color: var(--lima); margin-bottom: 1rem; line-height: 1.2; letter-spacing: 0; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pie a { text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.pie .legal { margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.pie .legal nav { display: flex; gap: 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .reloj { display: none; }
}
@media (max-width: 1180px) {
  .boton-menu { display: inline-block; position: relative; z-index: 130; }
  .nav {
    position: fixed; inset: 0; z-index: 90; background: var(--tinta); color: #fff; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: calc(var(--alto-header) + 1rem) var(--pad) 2rem; overflow-y: auto; gap: 1.5rem; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .nav.abierto { visibility: visible; opacity: 1; }
  .nav > ul { flex-direction: column; gap: 0; width: 100%; }
  .nav a.enlace { color: #fff; font: 800 clamp(2.2rem, 7vw, 3.4rem)/1 var(--display); padding: .4rem 0; border: 0; }
  .nav a.enlace[aria-current="page"] { color: var(--lima); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 .8rem .2rem; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; }
  .sub::before { display: none; }
  .sub a { padding: .2rem 0; font-weight: 500; font-size: 1rem; color: rgba(255,255,255,.75); border-radius: 0; }
  .sub a:hover { background: none; }
  .cabecera { z-index: 120; }
  body.menu-abierto { overflow: hidden; }
}
@media (max-width: 1080px) {
  .pie-grid { grid-template-columns: 1fr 1fr; }

}
@media (max-width: 960px) {
  .lista-ejes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eje:nth-child(5) { grid-column: 1 / -1; }
  .eje { min-height: 190px; }
  .hero { min-height: 0; }
  .hero .contenedor { grid-template-columns: 1fr; }
  .collage { height: clamp(300px, 56vw, 440px); }
  .cabeza, .dividido, .contacto-grid { grid-template-columns: 1fr; }
  .dividido .panel { max-width: none; }
  .pasos li { grid-template-columns: 1fr; }
  .pasos li p { padding-left: 3.8rem; }
}
@media (max-width: 820px) {
  .lista-servicios { grid-template-columns: 1fr; }
  .mosaico { display: none; }
  .hero-int .contenedor { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tabla, .tabla thead, .tabla tbody, .tabla tr, .tabla td { display: block; width: 100%; }
  .tabla thead { display: none; }
  .tabla tr { padding: 1.1rem 0; border-bottom: 1px solid var(--trazo); }
  .tabla td { border: 0; padding: .15rem 0; text-align: left; border-radius: 0 !important; }
  .tabla tbody tr:hover td { background: none; }
  .tabla td:nth-child(2)::before { content: "Trabaja con: "; color: var(--suave); font-weight: 500; }
  .tabla td:last-child { padding-top: .6rem; text-align: left; }
  .campos { grid-template-columns: 1fr; }
  .pie-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .lista-ejes { grid-template-columns: 1fr; }
  .eje { min-height: 170px; }
  .eje:nth-child(5) { grid-column: auto; }
  .collage { height: 340px; }
  .cifras { gap: 1rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Equipamiento por área (Laboratorio) ---------- */
.equipo { border-top: 2px solid var(--tinta); }
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem var(--hueco); padding: 1.1rem 0; border-bottom: 1px solid var(--trazo); align-items: start; }
.area .num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem; border-radius: 50%; background: var(--lima); color: var(--tinta); font: 800 1.1rem/1 var(--display); }
.area:nth-child(6n+2) .num { background: var(--cian); } .area:nth-child(6n+3) .num { background: var(--sol); }
.area:nth-child(6n+4) .num { background: var(--lila); } .area:nth-child(6n+5) .num { background: var(--coral); } .area:nth-child(6n+6) .num { background: var(--azul); color: #fff; }
.area h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: var(--tinta); margin-bottom: .5rem; }
.area-id p { margin: 0; color: var(--suave); max-width: 40ch; }
.maquinas { display: grid; gap: .8rem; }
.maq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem 1.2rem; align-items: start; background: var(--papel); border-radius: 22px; padding: 1.2rem 1.4rem; }
.maq h4 { grid-column: 1 / -1; margin: 0; font: 800 clamp(1.3rem, 1.8vw, 1.6rem)/1.05 var(--display); color: var(--tinta); }
.maq dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.4rem; }
.maq dt { font-size: .8rem; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
.maq dd { margin: .1rem 0 0; font-size: .96rem; line-height: 1.5; }
.maq .cotizar { align-self: end; }
@media (max-width: 960px) { .area { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .maq { grid-template-columns: 1fr; } .maq dl { grid-template-columns: 1fr; } .maq .cotizar { justify-self: start; } }

.manifiesto .mas { display: inline-flex; align-items: center; gap: .5rem; vertical-align: middle; margin-left: .6rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--tinta); color: #fff; font: 700 1rem/1 var(--cuerpo); text-decoration: none; transition: background-color .15s, transform .15s; }
.manifiesto .mas:hover { background: var(--azul); transform: translateY(-2px); }
.manifiesto .mas .flecha { width: 1rem; height: 1rem; }

/* ---------- Asistente ---------- */
.guia { background: var(--hoja); padding: .6rem 0 0; }
.guia .caja { position: relative; overflow: hidden; background: var(--tinta); color: #fff; border-radius: clamp(28px, 4vw, 48px); padding: clamp(1.6rem, 4vw, 3.4rem); }
.guia .caja::after { content: ""; position: absolute; right: -70px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: var(--lima); opacity: .9; pointer-events: none; }
.guia .caja > * { position: relative; z-index: 1; }
.guia-cab { max-width: 40rem; margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.guia-cab h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); color: #fff; }
.guia-app { min-height: 0; }
.guia-pregunta, .guia-titulo { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 1.2rem; color: #fff; outline: none; }
.guia-opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .7rem; }
.opc { display: flex; flex-direction: column; gap: .3rem; text-align: left; font: inherit; color: #fff; cursor: pointer; padding: 1rem 1.2rem; border-radius: 20px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.25); transition: background-color .18s, color .18s, transform .18s, border-color .18s; }
.opc-t { font-weight: 700; line-height: 1.3; }
.opc-d { font-size: .88rem; opacity: .8; line-height: 1.35; }
.opc:hover, .opc:focus-visible { background: var(--lima); color: var(--tinta); border-color: var(--lima); transform: translateY(-3px); }
.guia-si { display: inline-block; margin: 0 0 .8rem; padding: .3rem .9rem; border-radius: 999px; background: var(--lima); color: var(--tinta); font-weight: 700; font-size: .9rem; }
.guia-texto { color: rgba(255,255,255,.88); max-width: 52ch; }
.guia .maquinas { margin: 1.2rem 0 1.4rem; max-width: 52rem; }
.guia .maq { color: var(--texto); }
.guia-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.4rem; }
.guia-link { background: none; border: 0; padding: .3rem 0; font: 600 .95rem var(--cuerpo); color: rgba(255,255,255,.85); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.guia-link:hover { color: var(--lima); }
@media (max-width: 720px) { .guia .caja::after { width: 120px; height: 120px; right: -40px; top: -50px; } .guia-cab { padding-right: 3rem; } }

/* ---------- Rebanadas (Educación): columnas que se abren al pasar el cursor ---------- */
.rebanadas { --W: clamp(280px, 34vw, 480px); --abierta: 6; display: flex; gap: .5rem; width: var(--W); height: calc(var(--W) * .56); }
.reb { position: relative; flex: 1 1 0; margin: 0; overflow: hidden; border-radius: 999px; background: var(--sol); cursor: pointer; outline: none; transition: flex-grow .5s cubic-bezier(.2,.8,.3,1), border-radius .5s; }
.reb:nth-child(4n+2) { background: var(--coral); } .reb:nth-child(4n+3) { background: var(--lima); } .reb:nth-child(4n+4) { background: var(--cian); }
.reb img { position: absolute; top: 0; left: 50%; height: 100%; width: calc((var(--W) - 1.5rem) * var(--abierta) / (var(--abierta) + 3)); max-width: none; object-fit: cover; transform: translateX(-50%); filter: saturate(.9); transition: filter .4s; }
.reb:hover, .reb:focus { flex-grow: var(--abierta); border-radius: 28px; }
.reb:hover img, .reb:focus img { filter: none; }
@media (max-width: 820px) { .rebanadas { --W: min(calc(100vw - 2.5rem), 460px); } }
/* "Otro tema": caja de texto + grabado láser */
.temas li.otro { padding: 0; background: transparent; border: 2px dashed var(--tinta); display: flex; }
.temas li.otro form { display: flex; align-items: center; }
.temas li.otro input { width: clamp(15rem, 24vw, 21rem); border: 0; background: transparent; font: 800 clamp(1.3rem, 1.9vw, 1.7rem)/1 var(--display); color: var(--tinta); padding: .8rem 0 .8rem 1.4rem; outline: none; }
.temas li.otro input::placeholder { color: var(--tinta); opacity: .65; }
.temas li.otro button { border: 0; background: var(--tinta); color: #fff; width: 2.4rem; height: 2.4rem; margin: .35rem; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.temas li.otro:focus-within { border-style: solid; box-shadow: 0 0 0 3px rgba(47,91,255,.25); }

.temas li.nuevo { position: relative; display: inline-flex; align-items: center; gap: .8rem; background: #e6c9a0; transition: background-color .5s .1s; }
.temas li.nuevo.c1 { --f: var(--cian); } .temas li.nuevo.c2 { --f: var(--sol); } .temas li.nuevo.c3 { --f: var(--lila); } .temas li.nuevo.c4 { --f: var(--coral); }
.temas li.nuevo.c0 { --f: var(--lima); }
.temas li.nuevo.listo { background: var(--f); }
.temas li.nuevo .txt { display: inline-block; color: var(--tinta); }
.temas li.nuevo.grabando .txt { animation: revela 1.7s linear both, quema 1.9s ease-out both; }
.temas li.nuevo .rayo-grabado { position: absolute; top: 12%; bottom: 12%; left: 1.5rem; width: 3px; margin-left: -1px; border-radius: 2px; opacity: 0; background: #fff; box-shadow: 0 0 6px 2px #ff3b2e, 0 0 18px 6px rgba(255,59,46,.75); pointer-events: none; }
.temas li.nuevo.grabando .rayo-grabado { animation: barre 1.7s linear both; }
.temas li.nuevo .enviar-tema { display: none; font: 700 .85rem/1 var(--cuerpo); color: #fff; background: var(--tinta); padding: .5rem .8rem; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.temas li.nuevo.listo .enviar-tema { display: inline-block; animation: entra .4s both; }
.temas li.nuevo .enviar-tema:hover { background: var(--azul); }
@keyframes revela { from { clip-path: inset(-10% 100% -10% 0); } }
@keyframes quema { 0% { color: #3b2410; } 100% { color: var(--tinta); } }
@keyframes barre { 0% { left: 1.5rem; opacity: 1; } 96% { opacity: 1; } 100% { left: calc(100% - 1.5rem); opacity: 0; } }
@keyframes entra { from { opacity: 0; transform: translateX(-6px); } }

/* STEAM: el significado se despliega al pasar el cursor */
.steam-p { position: relative; max-width: 62ch; }
.steam { cursor: help; outline: none; }
.steam b { padding: 0 .3em; border-radius: 6px; background: var(--lima); color: var(--tinta); }
.steam .def { position: absolute; z-index: 20; left: 0; top: calc(100% + .4rem); width: min(100%, 30rem); display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem; border-radius: 20px; background: var(--tinta); box-shadow: 0 16px 34px rgba(0,28,114,.3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.96); transform-origin: top left; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.3,1), visibility .25s; pointer-events: none; }
.steam .def i { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .35rem; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 700 .95rem/1 var(--cuerpo); font-style: normal; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.steam .def b { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; padding: 0; border-radius: 50%; background: var(--lima); color: var(--tinta); font: 800 1rem/1 var(--display); }
.steam:hover .def, .steam:focus .def { opacity: 1; visibility: visible; transform: none; }
.steam:hover .def i, .steam:focus .def i { opacity: 1; transform: none; }
.steam:hover .def i:nth-child(2), .steam:focus .def i:nth-child(2) { transition-delay: .06s; }
.steam:hover .def i:nth-child(3), .steam:focus .def i:nth-child(3) { transition-delay: .12s; }
.steam:hover .def i:nth-child(4), .steam:focus .def i:nth-child(4) { transition-delay: .18s; }
.steam:hover .def i:nth-child(5), .steam:focus .def i:nth-child(5) { transition-delay: .24s; }
@media (max-width: 620px) { .temas li.otro input { width: 12.5rem; } }
.cabeza-txt p + p { margin-top: .8rem; }

/* Cabeceras de Educación: título arriba, texto a todo lo ancho */
.cabeza--ancha { align-items: start; }
.cabeza--ancha p, .cabeza--ancha .cabeza-txt { max-width: none; }
.cabeza--ancha .cabeza-txt { width: 100%; }
.cabeza--ancha p { width: 100%; }
@media (min-width: 900px) { #instituciones .filas { grid-template-columns: repeat(5, minmax(0, 1fr)); } #instituciones .fila { padding: 1.4rem 1.2rem 1.6rem; } #instituciones .fila h3 { font-size: clamp(1.4rem, 1.7vw, 1.8rem); } }
/* Tablet: la ficha 5 ocupa todo el ancho para no quedar huérfana */
@media (min-width: 621px) and (max-width: 899px) { #instituciones .fila:nth-child(5):nth-child(odd) { grid-column: 1 / -1; } }
/* Móvil: el cajón "otro tema" usa todo el ancho */
@media (max-width: 620px) { .temas li.otro { width: 100%; } .temas li.otro form { width: 100%; } .temas li.otro input { flex: 1; width: auto; min-width: 0; font-size: 1.2rem; } }

/* Mapa en el pie */
.pie-mapa { border-radius: 18px; overflow: hidden; height: 210px; align-self: start; background: rgba(255,255,255,.06); }
.pie-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* WhatsApp siempre visible a la derecha */
.wa-flotante { position: fixed; right: clamp(.9rem, 2vw, 1.6rem); bottom: clamp(.9rem, 2vw, 1.6rem); z-index: 90; display: inline-flex; align-items: center; gap: .55rem; height: 3.6rem; min-width: 3.6rem; padding: 0 .85rem; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font: 700 1rem var(--cuerpo); box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .2s, box-shadow .2s; }
.wa-flotante svg { width: 2.1rem; height: 2.1rem; flex: none; }
.wa-flotante span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; }
.wa-flotante:hover, .wa-flotante:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.34); }
.wa-flotante:hover span, .wa-flotante:focus-visible span { max-width: 7rem; padding-right: .3rem; }
@media (max-width: 620px) { .wa-flotante { height: 3.3rem; min-width: 3.3rem; padding: 0 .65rem; } .wa-flotante svg { width: 2rem; height: 2rem; } }
.pie { padding-bottom: 5.4rem; }
.temas li.otro input { width: clamp(18.5rem, 24vw, 21rem); }
@media (max-width: 620px) { .temas li.otro input { width: auto; } }

@media (max-width: 1199px) { .pie-grid { grid-template-columns: 1fr 1fr; } .pie-mapa { grid-column: 1 / -1; justify-self: end; width: min(100%, 380px); } }
@media (max-width: 620px) { .pie-grid { grid-template-columns: 1fr; } .pie-mapa { width: 100%; height: 190px; } }

/* Encabezado de una sola línea (Laboratorio) */
.hero-int--lineal .contenedor { grid-template-columns: 1fr; }
.hero-int--lineal h1 { max-width: none; margin-bottom: 0; font-size: clamp(1.4rem, calc((100vw - 5rem) / 24), 4.6rem); }
@media (min-width: 640px) { .hero-int--lineal h1 { white-space: nowrap; } }
.cabeza--sola p { max-width: none; }

/* Servicios y tecnologías: matriz de 3 por fila, miniatura cuadrada + texto */
.lista-servicios { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.servicio { flex-direction: row; align-items: center; gap: 1rem; padding: .7rem; border-radius: 24px; }
.servicio .visual { flex: none; width: clamp(92px, 9.5vw, 128px); aspect-ratio: 1 / 1; padding: .45rem; border-radius: 18px; }
.servicio.con-foto .n { font-size: .78rem; padding: .3rem .55rem; }
.servicio .cuerpo { padding: .2rem .4rem .2rem 0; justify-content: center; }
.servicio h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); margin-bottom: .25rem; line-height: 1.05; }
.servicio .corto { margin: 0; font-size: .9rem; line-height: 1.4; }
.lista-servicios .servicio:last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 1000px) { .lista-servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lista-servicios .servicio:last-child:nth-child(3n+1) { grid-column: auto; } }
@media (max-width: 640px) { .lista-servicios { grid-template-columns: 1fr; } .servicio .visual { width: 96px; } }

/* Para qué sirve cada equipo: nombres + detalle al pasar el cursor */
.equipos { display: grid; gap: .5rem; }
.eq-b { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; font: inherit; color: var(--tinta); background: #fff; border: 0; border-radius: 18px; padding: .8rem 1rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.eq-b .num { display: inline-grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--lima); color: var(--tinta); font: 800 .95rem/1 var(--display); transition: background .2s, color .2s; }
.eq:nth-child(6n+2) .num { background: var(--cian); } .eq:nth-child(6n+3) .num { background: var(--sol); }
.eq:nth-child(6n+4) .num { background: var(--lila); } .eq:nth-child(6n+5) .num { background: var(--coral); } .eq:nth-child(6n+6) .num { background: var(--azul); color: #fff; }
.eq-n { flex: 1; font: 800 clamp(1.25rem, 1.7vw, 1.55rem)/1.1 var(--display); }
.eq-f { width: 1.1rem; height: 1.1rem; flex: none; opacity: .5; transition: transform .25s, opacity .2s; }
.eq-b:hover, .eq-b:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47,91,255,.25); }
.eq.on .eq-b { background: var(--tinta); color: #fff; }
.eq.on .eq-b .num { background: var(--lima); color: var(--tinta); }
.eq.on .eq-f { opacity: 1; }
.eq-d { background: #fff; border-radius: 22px; padding: 1.3rem 1.5rem 1.5rem; }
.eq-d h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: var(--tinta); margin-bottom: .9rem; }
.eq-d dl { margin: 0 0 1.1rem; display: grid; gap: .9rem; }
.eq-d dt { font-size: .8rem; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
.eq-d dd { margin: .15rem 0 0; font-size: 1.02rem; line-height: 1.55; }
/* sin JS: todo visible, apilado */
.equipos:not(.js) .eq { margin-bottom: .6rem; }
.equipos:not(.js) .eq-d { margin-top: .4rem; }
/* con JS, móvil/tablet: acordeón suave */
.equipos.js .eq-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.equipos.js .eq-p > .eq-d { overflow: hidden; min-height: 0; padding-top: 0; padding-bottom: 0; transition: padding .3s ease; }
.equipos.js .eq.on .eq-p { grid-template-rows: 1fr; }
.equipos.js .eq.on .eq-p > .eq-d { padding-top: 1.1rem; padding-bottom: 1.3rem; margin-top: .4rem; }
.equipos.js .eq.on .eq-f { transform: rotate(90deg); }
/* escritorio: lista a la izquierda, detalle fijo a la derecha */
@media (min-width: 900px) {
  .equipos.js { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .equipos.js .eq { display: contents; }
  .equipos.js .eq-b { grid-column: 1; }
  .equipos.js .eq-p { grid-column: 2; grid-row: 1 / span var(--n); display: none; align-self: start; position: sticky; top: 6rem; }
  .equipos.js .eq.on .eq-p { display: block; animation: eq-entra .25s ease; }
  .equipos.js .eq-p > .eq-d { overflow: visible; padding: 1.5rem 1.7rem 1.7rem; transition: none; }
  .equipos.js .eq.on .eq-p > .eq-d { padding: 1.5rem 1.7rem 1.7rem; margin-top: 0; }
  .equipos.js .eq-b:hover:not(.x) { transform: translateX(3px); }
}
@keyframes eq-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .equipos.js .eq-p, .equipos.js .eq-p > .eq-d, .eq-b, .eq-f { transition: none !important; animation: none !important; } .equipos.js .eq.on .eq-p { animation: none; } }
.llamado h2 { max-width: 26ch; }
@media (max-width: 620px) { .llamado .caja::after { width: 110px; height: 110px; right: -35px; top: -45px; } }

/* Nosotros: frase con palabra que cambia */
.hero-int--frase h1 { max-width: none; margin-bottom: 1rem; }
.hero-int--frase .ln1 { display: block; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; }
.hero-int--frase .ln2 { display: block; max-width: 36ch; margin-top: .55rem; font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.2; font-weight: 700; color: rgba(255,255,255,.92); }
.flash { display: inline-block; min-width: 3.2ch; padding: 0 .2em .04em; border-radius: .16em; background: var(--lima); color: var(--tinta); }
.flash.cambia { animation: flash .38s steps(2, jump-none); }
@keyframes flash { 0% { background: #fff; color: var(--tinta); transform: skewX(-6deg); } 50% { opacity: .35; } 100% { background: var(--lima); transform: none; } }
.entrada--prosa { max-width: 62ch; color: rgba(255,255,255,.88); font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; }
.entrada--prosa p { margin: 0 0 .7rem; max-width: none; }
.metas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.metas li { padding: .35rem .95rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; font-size: .95rem; }
.metas li:nth-child(1) { border-color: var(--lima); } .metas li:nth-child(2) { border-color: var(--cian); } .metas li:nth-child(3) { border-color: var(--sol); }
@media (prefers-reduced-motion: reduce) { .flash.cambia { animation: none; } }

/* Nosotros: texto a todo el ancho y sin bloques */
.hero-int--frase .ln2 { max-width: none; }
.hero-int--frase .entrada--prosa { max-width: none; }

/* Lo que nos hace diferentes: 5 tarjetas en una fila, colores vivos e iconos */
.difs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.dif { border-radius: var(--radio); padding: 1.3rem 1.2rem 1.5rem; color: var(--tinta); background: var(--lima); }
.dif:nth-child(2) { background: var(--cian); } .dif:nth-child(3) { background: var(--sol); }
.dif:nth-child(4) { background: var(--coral); } .dif:nth-child(5) { background: var(--azul); color: #fff; }
.dif .ico { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1rem; border-radius: 50%; background: var(--tinta); color: #fff; }
.dif .ico svg { width: 1.6rem; height: 1.6rem; }
.dif h3 { font-size: clamp(1.2rem, 1.7vw, 1.8rem); overflow-wrap: anywhere; line-height: 1.05; margin-bottom: .5rem; color: inherit; }
.dif p { margin: 0; font-size: .96rem; line-height: 1.45; max-width: none; }
@media (max-width: 1040px) { .difs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dif:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 620px) { .difs { grid-template-columns: 1fr; } }

/* Impacto: informe interactivo y documento de menciones */
.visores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(1.4rem, 3vw, 2.4rem); }
.visor { display: flex; flex-direction: column; gap: .7rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radio); padding: clamp(1rem, 2vw, 1.5rem); }
.visor h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); color: #fff; margin: 0; }
.visor p { margin: 0; color: rgba(255,255,255,.82); max-width: none; font-size: 1rem; }
.visor .boton { align-self: flex-start; padding: .65rem 1.2rem; }
.marco { position: relative; border-radius: 16px; overflow: hidden; background: #fff; aspect-ratio: 4 / 3; }
.marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.menciones { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.menciones li { position: relative; padding-left: 1.3rem; color: rgba(255,255,255,.9); font-size: .96rem; line-height: 1.4; }
.menciones li::before { content: ""; position: absolute; left: 0; top: .5em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--lima); }
.menciones li:nth-child(5n+2)::before { background: var(--cian); } .menciones li:nth-child(5n+3)::before { background: var(--sol); }
.menciones li:nth-child(5n+4)::before { background: var(--coral); } .menciones li:nth-child(5n+5)::before { background: var(--lila); }
@media (max-width: 900px) { .visores { grid-template-columns: 1fr; } .marco { aspect-ratio: 4 / 3.4; } }

/* Impacto en cifras: ancho completo */
.impacto-num { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.impacto-num li { display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 3px solid var(--lima); }
.impacto-num li:nth-child(2) { border-color: var(--cian); } .impacto-num li:nth-child(3) { border-color: var(--sol); } .impacto-num li:nth-child(4) { border-color: var(--coral); }
.impacto-num b { font: 800 clamp(3rem, 7.2vw, 6.4rem)/.95 var(--display); color: var(--lima); font-variant-numeric: tabular-nums; }
.impacto-num li:nth-child(2) b { color: var(--cian); } .impacto-num li:nth-child(3) b { color: var(--sol); } .impacto-num li:nth-child(4) b { color: var(--coral); }
.impacto-num span { font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 600; color: #fff; line-height: 1.25; }
@media (max-width: 760px) { .impacto-num { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; } }
@media (min-width: 901px) { .visor h3 { min-height: 2.1em; } }
.fuente { margin: 1rem 0 0; font-size: .85rem; color: var(--suave); max-width: none; }
.fuente a { color: inherit; }
#red .fila-botones { margin-top: 1.4rem; }

/* Aliados: logos sobre fondo blanco que se desplazan */
.aliados { background: #fff; padding: clamp(1.6rem, 3.2vw, 2.6rem) 0 clamp(1.4rem, 3vw, 2.2rem); }
.aliados h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--tinta); margin-bottom: 1.2rem; }
.ali-carril { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ali-pista { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(2.4rem, 5vw, 4.5rem); width: max-content; padding-right: clamp(2.4rem, 5vw, 4.5rem); animation: ali-desliza 45s linear infinite; }
.ali-carril:hover .ali-pista, .ali-carril:focus-within .ali-pista { animation-play-state: paused; }
.ali-pista li { flex: none; display: grid; place-items: center; }
.ali-pista img { height: 72px; width: auto; max-width: none; }
@keyframes ali-desliza { to { transform: translateX(-50%); } }
@media (max-width: 620px) { .ali-pista img { height: 56px; } .ali-pista { animation-duration: 36s; } }
@media (prefers-reduced-motion: reduce) {
  .ali-carril { -webkit-mask-image: none; mask-image: none; }
  .ali-pista { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--pad); }
  .ali-pista li[aria-hidden="true"] { display: none; }
}
.ali-pista img[src*="ipn"] { height: 92px; } .ali-pista img[src*="cecytem"], .ali-pista img[src*="codecu"] { height: 84px; } .ali-pista img[src*="posible"] { height: 64px; }
@media (max-width: 620px) { .ali-pista img[src*="ipn"] { height: 72px; } .ali-pista img[src*="cecytem"], .ali-pista img[src*="codecu"] { height: 66px; } .ali-pista img[src*="posible"] { height: 50px; } }

/* Innovación: cuatro pilares */
.hero-int--lineal .entrada { margin-top: .9rem; max-width: none; }
.pilares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pil { display: flex; flex-direction: column; gap: .6rem; border-radius: var(--radio); padding: clamp(1.3rem, 2.4vw, 2rem); background: var(--lima); color: var(--tinta); }
.pil:nth-child(2) { background: var(--cian); } .pil:nth-child(3) { background: var(--sol); } .pil:nth-child(4) { background: var(--coral); }
.pil-top { display: flex; align-items: center; justify-content: space-between; }
.pil-n { font: 800 clamp(3.2rem, 6vw, 5rem)/.85 var(--display); opacity: .9; }
.pil .ico { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--tinta); color: #fff; }
.pil .ico svg { width: 1.7rem; height: 1.7rem; }
.pil h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: inherit; margin: .3rem 0 0; }
.pil p { margin: 0; max-width: none; font-size: 1.04rem; line-height: 1.55; }
.pil-link { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--tinta); text-decoration: none; border-bottom: 2px solid currentColor; align-self: flex-start; }
.pil-link .flecha { width: 1rem; height: 1rem; transition: transform .2s; }
.pil-link:hover .flecha { transform: translateX(4px); }
@media (max-width: 760px) { .pilares { grid-template-columns: 1fr; } }

/* Innovación y emprendimiento: servicios en 3 columnas con lista */
.pilares--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pilares--3 .pil:nth-child(1) { background: var(--lima); } .pilares--3 .pil:nth-child(2) { background: var(--cian); } .pilares--3 .pil:nth-child(3) { background: var(--sol); }
.pilares--3 .pil:nth-child(4) { background: var(--lila); } .pilares--3 .pil:nth-child(5) { background: var(--coral); } .pilares--3 .pil:nth-child(6) { background: var(--azul); color: #fff; }
.pilares--3 .pil:nth-child(6) .pil-link { color: #fff; }
.pilares--3 .pil-n { font-size: clamp(2.6rem, 4.2vw, 3.6rem); }
.pilares--3 .pil h3 { font-size: clamp(1.55rem, 2.1vw, 2rem); }
.pilares--3 .pil p { font-size: 1rem; }
.pil-list { list-style: none; margin: .3rem 0 .4rem; padding: 0; display: grid; gap: .45rem; }
.pil-list li { position: relative; padding-left: 1.2rem; font-size: .96rem; line-height: 1.4; }
.pil-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; opacity: .75; }
@media (max-width: 1040px) { .pilares--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pilares--3 { grid-template-columns: 1fr; } }
.impacto-num--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .impacto-num--3 { grid-template-columns: 1fr; } }
#resultados { padding: clamp(1.8rem, 4vw, 3rem) 0; }

/* Evidencias: carrusel */
.evis { margin-top: 1.2rem; }
.evi-pista { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 28px; }
.evi-pista::-webkit-scrollbar { display: none; }
.evi-pista:focus-visible { outline: 3px solid var(--azul); outline-offset: 4px; }
.evi { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.5fr 1fr; background: var(--tinta); color: #fff; border-radius: 28px; overflow: hidden; }
.evi-foto { background: var(--azul); min-height: 100%; }
.evi-foto img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }
.evi-txt { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.evi-n { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--lima); }
.evi-txt h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; margin: 0; color: #fff; }
.evi-txt p { margin: 0; color: rgba(255,255,255,.88); line-height: 1.55; }
.evi-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; margin-top: .9rem; }
.evi-b { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--tinta); background: var(--lima); color: var(--tinta); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.evi-b:hover { background: var(--tinta); color: #fff; }
.evi-cnt { font-weight: 700; color: var(--tinta); min-width: 3.5rem; text-align: center; }
@media (max-width: 800px) { .evi { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .evi-pista { scroll-behavior: auto; } }
/* Evidencia con cartel cuadrado: se ve completo, sin recortar */
.evi--cartel { grid-template-columns: minmax(0, 520px) 1fr; }
.evi--cartel .evi-foto img { aspect-ratio: 1 / 1; object-fit: contain; }
@media (max-width: 800px) { .evi--cartel { grid-template-columns: 1fr; } }

/* Páginas de servicio */
.serv-enlace { color: inherit; text-decoration: none; }
.serv-enlace:hover, .serv-enlace:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.otros-serv { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.otros-serv a { display: inline-block; padding: .55rem 1.1rem; border: 2px solid var(--tinta); border-radius: 999px; color: var(--tinta); font-weight: 600; text-decoration: none; }
.otros-serv a:hover, .otros-serv a:focus-visible { background: var(--tinta); color: #fff; }
.serv-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.serv-col { background: var(--hoja); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.serv-col--2 { background: var(--tinta); color: #fff; }
.serv-col--2 .puntos li::before { background: var(--lima); }
.serv-col h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; margin: 0 0 .4rem; }
.serv-col--2 h2 { color: #fff; }
@media (max-width: 800px) { .serv-dos { grid-template-columns: 1fr; } }

/* Redes sociales en el pie */
.redes { display: flex; gap: .6rem; align-items: center; }
.redes a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.redes a:hover, .redes a:focus-visible { background: var(--lima); border-color: var(--lima); color: var(--tinta); }
.redes svg { width: 18px; height: 18px; display: block; }
@media (max-width: 620px) { .pie .legal { flex-direction: column; align-items: flex-start; } }

/* Página de servicio: foto + materiales + usos */
.serv-dos { grid-template-columns: 1fr 1fr 1fr; }
.serv-foto { margin: 0; border-radius: 28px; overflow: hidden; background: var(--hoja); min-height: 100%; }
.serv-foto img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1 / 1; }
@media (max-width: 1000px) { .serv-dos { grid-template-columns: 1fr 1fr; } .serv-foto { grid-column: 1 / -1; } .serv-foto img { aspect-ratio: 16 / 7; } }
@media (max-width: 800px) { .serv-dos { grid-template-columns: 1fr; } .serv-foto img { aspect-ratio: 4 / 3; } }
.pie-grid { grid-template-columns: 1.3fr .8fr 1.1fr 1.3fr 1.5fr; }
@media (max-width: 1199px) { .pie-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pie-grid { grid-template-columns: 1fr; } }

/* Reseñas de Google Maps */
.lado { display: grid; gap: 1.2rem; }
.resenas { background: #fff; border: 2px solid var(--tinta); border-radius: 28px; padding: clamp(1.3rem, 3vw, 1.9rem); }
.resenas h3 { margin: 0 0 .8rem; font-size: 1.5rem; color: var(--tinta); }
.res-pista { display: grid; }
.res { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.res.on { opacity: 1; visibility: visible; }
.res-est { color: #f5a800; font-size: 1.25rem; letter-spacing: .12em; }
.res blockquote { margin: .5rem 0 .7rem; font-size: 1.02rem; line-height: 1.55; color: var(--tinta); }
.res figcaption { font-weight: 700; color: var(--tinta); }
.res-pie { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.res-puntos { display: flex; gap: .45rem; }
.res-p { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid var(--tinta); background: transparent; cursor: pointer; }
.res-p.on { background: var(--tinta); }
.res-pie a { font-weight: 700; color: var(--tinta); }
@media (prefers-reduced-motion: reduce) { .res { transition: none; } }

/* Reseñas (capturas de Google Maps): centradas, abajo, pasan solas */
.resenas { background: transparent; border: 0; border-radius: 0; padding: 0; text-align: center; }
.resenas h2 { margin: 0 0 1.2rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--tinta); }
.res-pista { display: grid; justify-items: center; align-items: center; max-width: 460px; margin: 0 auto; }
.res { grid-area: 1 / 1; width: 100%; display: flex; justify-content: center; }
.res img { width: 100%; height: auto; display: block; background: #fff; border-radius: 22px; box-shadow: 0 6px 24px rgba(0,28,114,.14); }
.res-pie { justify-content: center; flex-direction: column; gap: .8rem; }

/* Contacto: foto de fondo translúcida */
#formulario { position: relative; isolation: isolate; padding: clamp(2rem, 5vw, 3.6rem) 0; }
#formulario::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff url("../images/contacto-fondo.webp") center 35% / cover no-repeat; opacity: .16; }
