@font-face{font-family:'Poppins';font-style:italic;font-weight:300;font-display:swap;src:url('/fonts/poppins-300i-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:italic;font-weight:300;font-display:swap;src:url('/fonts/poppins-300i-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/poppins-400i-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/poppins-400i-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/poppins-300-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/poppins-300-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/poppins-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/poppins-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/poppins-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/poppins-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/poppins-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/poppins-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/poppins-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/poppins-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* hypecenter.cl · sistema visual
   Marca: negro pleno, violeta escaso (banda de firma, una palabra en itálica, foco), Poppins en todo,
   fotos reales de terreno a sangre. Secciones separadas por hairlines y aire, nunca por cajas.
   Lista negra aplicada: sin cards con sombra, sin pills, sin barras de acento laterales, sin stat tiles,
   sin rótulos en MAYÚSCULAS con tracking, sin fade-up genérico. */

:root {
  --negro: #000;
  --tinta: #0a0a0c;
  --blanco: #fff;
  --violeta: #6e00ff;
  --violeta-claro: #b98aff;
  --gris-n: #9a9aa2;          /* texto secundario sobre negro */
  --linea-n: rgba(255, 255, 255, .18);
  --gris-b: #5f5f68;          /* texto secundario sobre blanco */
  --linea-b: #e4e4e9;
  --texto-b: #101012;
  --ancho: 1360px;
  --margen: clamp(20px, 4vw, 56px);
  --sep: clamp(72px, 10vw, 152px);
  /* distancia del contenido al borde de la ventana: para que las fotos lleguen a sangre */
  --sangre: calc(var(--margen) + max(0px, (100vw - var(--ancho)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--texto-b);
  background: var(--negro);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--violeta-claro); outline-offset: 3px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }
.grilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* Fondos: las secciones alternan negro y blanco, con su propio fondo siempre */
.oscuro { background: var(--negro); color: var(--blanco); }
.claro { background: var(--blanco); color: var(--texto-b); }
.oscuro .secundario { color: var(--gris-n); }
.claro .secundario { color: var(--gris-b); }

/* ------------------------------------------------------------ tipografía */
.titular {
  font-size: clamp(44px, 7.2vw, 116px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.titular em, .t2 em { font-style: italic; font-weight: 300; letter-spacing: -.035em; }
.oscuro .titular em, .oscuro .t2 em { color: var(--violeta-claro); }
.claro .titular em, .claro .t2 em { color: var(--violeta); }
.t2 { font-size: clamp(32px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
.t3 { font-size: clamp(23px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.bajada { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; font-weight: 400; max-width: 36em; }
.meta { font-size: 14px; line-height: 1.5; font-weight: 500; letter-spacing: .005em; }
.chico { font-size: 14px; line-height: 1.55; }

/* Rótulo colgado al margen: sentence case, hairline arriba */
.rotulo {
  font-size: 15px; font-weight: 500; line-height: 1.4;
  padding-top: 14px; border-top: 1px solid currentColor;
  display: inline-block; min-width: 9em;
}
.oscuro .rotulo { color: var(--gris-n); border-color: var(--linea-n); }
.claro .rotulo { color: var(--gris-b); border-color: var(--texto-b); }

/* --------------------------------------------------------------- botones */
.boton {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: 2px; border: 1.5px solid transparent;
  font: 600 15px/1 'Poppins', sans-serif; text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.oscuro .boton { background: var(--blanco); color: var(--negro); }
.claro .boton { background: var(--negro); color: var(--blanco); }
.boton:hover { background: var(--violeta); color: var(--blanco); }
.enlace {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px;
}
.enlace:hover { text-decoration-color: var(--violeta-claro); }
.claro .enlace:hover { text-decoration-color: var(--violeta); }
.flecha { width: 18px; height: 10px; flex: none; }

/* ------------------------------------------------------------- cabecera */
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--negro); color: var(--blanco); border-bottom: 1px solid var(--linea-n); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: block; width: 188px; flex: none; }
.logo img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.boton):hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.nav .boton { padding: 12px 18px; background: var(--blanco); color: var(--negro); }
.nav .boton:hover { background: var(--violeta); color: var(--blanco); }
.menu-boton { display: none; background: none; border: 0; color: inherit; font: 500 15px 'Poppins', sans-serif; padding: 10px 0; cursor: pointer; }
@media (max-width: 960px) {
  .menu-boton { display: block; }
  .nav { display: none; position: fixed; inset: 76px 0 0 0; background: var(--negro); flex-direction: column; align-items: flex-start; padding: 32px var(--margen); gap: 22px; }
  .nav a { font-size: 26px; font-weight: 500; }
  .nav .boton { font-size: 16px; margin-top: 12px; }
  .cabecera.abierta .nav { display: flex; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding-top: clamp(48px, 7vw, 104px); }
.hero .grilla { align-items: end; }
.hero-texto { grid-column: 1 / span 7; padding-bottom: clamp(56px, 7vw, 112px); position: relative; z-index: 2; }
.hero-texto .bajada { margin-top: 32px; }
.hero-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin-top: 40px; }
.hero-foto { grid-column: 8 / span 5; margin-right: calc(-1 * var(--sangre)); position: relative; z-index: 2; margin-bottom: -56px; }
.hero-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-foto figcaption { font-size: 13px; color: rgba(255,255,255,.88); margin-top: 10px; padding-right: var(--sangre); }
.hero.sin-foto .hero-texto { grid-column: 1 / span 10; }
.titular.medio { font-size: clamp(40px, 6vw, 92px); }

/* Banda violeta: firma de la marca. La foto del hero la cruza. */
.banda { background: var(--violeta); color: var(--blanco); position: relative; z-index: 1; }
.banda .contenedor { min-height: 72px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.banda p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
.banda .lista-inst { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; font-weight: 500; }
.hero:not(.sin-foto) + .banda .contenedor { padding-right: calc(var(--margen) + (100% - 2 * var(--margen)) * 5 / 12 + 24px); }

@media (max-width: 960px) {
  .hero-texto { grid-column: 1 / -1; padding-bottom: 40px; }
  .hero-foto { grid-column: 1 / -1; margin: 0 calc(-1 * var(--margen)) -40px; }
  .hero-foto img { aspect-ratio: 4 / 3; }
  .hero-foto figcaption { padding: 0 var(--margen); }
  .hero:not(.sin-foto) + .banda .contenedor { padding-right: var(--margen); padding-top: 56px; }
}

/* -------------------------------------------------------------- secciones */
.seccion { padding: var(--sep) 0; }
.seccion-cabeza { margin-bottom: clamp(40px, 5vw, 80px); }
.seccion-cabeza .rotulo { grid-column: 1 / span 3; align-self: start; }
.seccion-cabeza .t2 { grid-column: 4 / span 9; }
.seccion-cabeza .bajada { grid-column: 4 / span 8; margin-top: 24px; }
@media (max-width: 960px) {
  .seccion-cabeza .rotulo, .seccion-cabeza .t2, .seccion-cabeza .bajada { grid-column: 1 / -1; }
  .seccion-cabeza .rotulo { margin-bottom: 24px; }
}

/* Filas con hairline: líneas de servicio, pasos, proyectos */
.filas > li, .fila { border-top: 1px solid var(--linea-b); padding: clamp(28px, 3vw, 44px) 0; }
.oscuro .filas > li, .oscuro .fila { border-top-color: var(--linea-n); }
.filas > li:last-child { border-bottom: 1px solid var(--linea-b); }
.oscuro .filas > li:last-child { border-bottom-color: var(--linea-n); }

.servicio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 16px; }
.servicio .num { grid-column: 1 / span 1; font-size: 15px; font-weight: 500; color: var(--gris-b); padding-top: 6px; }
.servicio .t3 { grid-column: 2 / span 5; }
.servicio .cuerpo { grid-column: 7 / span 6; }
.servicio .refs { font-size: 14px; color: var(--gris-b); margin: 12px 0 16px; }
.servicio .refs span + span::before { content: " · "; }
@media (max-width: 960px) {
  .servicio .num { grid-column: 1 / -1; padding: 0; }
  .servicio .t3, .servicio .cuerpo { grid-column: 1 / -1; }
}

/* Casos destacados: foto a sangre de un lado, texto del otro, alternando */
.caso { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.caso + .caso { margin-top: clamp(72px, 9vw, 140px); }
.caso-foto { grid-column: 1 / span 7; margin-left: calc(-1 * var(--sangre)); }
.caso-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.caso-foto.vertical img { aspect-ratio: 4 / 5; }
.caso-texto { grid-column: 9 / span 4; }
.caso.invertido .caso-foto { grid-column: 6 / span 7; order: 2; margin-left: 0; margin-right: calc(-1 * var(--sangre)); }
.caso.invertido .caso-texto { grid-column: 1 / span 4; order: 1; }
.caso-texto .meta { margin-bottom: 18px; }
.caso-texto .t3 { margin-bottom: 20px; }
.caso-segunda { margin-top: 24px; width: 46%; }
@media (max-width: 960px) {
  .caso-foto, .caso.invertido .caso-foto { grid-column: 1 / -1; margin: 0 calc(-1 * var(--margen)) 28px; order: 1; }
  .caso-texto, .caso.invertido .caso-texto { grid-column: 1 / -1; order: 2; }
}

/* Pasos */
.pasos { counter-reset: paso; }
.paso { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 8px; }
.paso .num { grid-column: 1 / span 1; font-weight: 500; color: var(--gris-b); }
.paso h3 { grid-column: 2 / span 4; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.paso p { grid-column: 7 / span 6; margin: 0; }
@media (max-width: 960px) { .paso .num, .paso h3, .paso p { grid-column: 1 / -1; } }

/* Dos columnas de texto */
.dos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.dos > :first-child { grid-column: 1 / span 5; }
.dos > :last-child { grid-column: 7 / span 6; }
@media (max-width: 960px) { .dos > :first-child, .dos > :last-child { grid-column: 1 / -1; } .dos > :first-child { margin-bottom: 32px; } }

/* Equipo */
.persona h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.persona p { margin: 6px 0 0; }

/* Cita */
.cita { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; font-weight: 400; letter-spacing: -.015em; margin: 0; }
.cita-autor { margin-top: 16px; }

/* Listas simples con hairline */
.lista li { padding: 14px 0; border-top: 1px solid var(--linea-b); }
.oscuro .lista li { border-top-color: var(--linea-n); }
.lista li:last-child { border-bottom: 1px solid var(--linea-b); }
.oscuro .lista li:last-child { border-bottom-color: var(--linea-n); }

/* --------------------------------------------------------------- proyectos */
.indice { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; }
.indice a { text-decoration: none; font-weight: 500; }
.indice a:hover { text-decoration: underline; text-underline-offset: 7px; }
.indice span { color: var(--gris-n); font-weight: 400; }
.tipo { padding: clamp(64px, 8vw, 120px) 0 0; }
.tipo:last-of-type { padding-bottom: var(--sep); }
.tipo-cabeza { margin-bottom: 32px; }
.tipo-cabeza .t2 { grid-column: 1 / span 8; }
.tipo-cabeza p { grid-column: 9 / span 4; align-self: end; margin: 0; }
@media (max-width: 960px) { .tipo-cabeza .t2, .tipo-cabeza p { grid-column: 1 / -1; } .tipo-cabeza p { margin-top: 16px; } }
.proyecto { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 14px; }
.proyecto .t3 { grid-column: 1 / span 5; }
.proyecto .meta-bloque { grid-column: 1 / span 5; }
.proyecto .meta-bloque .meta { margin: 0; }
.proyecto .cuerpo { grid-column: 7 / span 6; grid-row: 1 / span 3; }
.proyecto .cuerpo p:last-child { margin-bottom: 0; }
.proyecto.con-foto .t3, .proyecto.con-foto .meta-bloque { grid-column: 1 / span 4; }
.proyecto.con-foto .cuerpo { grid-column: 5 / span 4; grid-row: 1 / span 3; }
.proyecto.con-foto figure { grid-column: 9 / span 4; grid-row: 1 / span 3; margin: 0; }
.proyecto figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proyecto figure.vertical img { aspect-ratio: 4 / 5; }
.antes { display: inline-block; font-size: 13px; font-weight: 500; color: var(--gris-b); margin-top: 4px; }
.oscuro .antes { color: var(--gris-n); }
.dato { font-weight: 600; }
@media (max-width: 960px) {
  .proyecto .t3, .proyecto .meta-bloque, .proyecto .cuerpo,
  .proyecto.con-foto .t3, .proyecto.con-foto .meta-bloque, .proyecto.con-foto .cuerpo, .proyecto.con-foto figure { grid-column: 1 / -1; grid-row: auto; }
  .proyecto.con-foto figure { order: -1; margin-bottom: 8px; }
}

/* --------------------------------------------------------------- landings */
.oferta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.oferta > div { grid-column: span 6; border-top: 1.5px solid var(--texto-b); padding-top: 28px; }
.oferta > div + div { margin-top: 0; }
.oferta h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 16px; }
.oferta .precio { font-weight: 600; margin-top: 16px; }
@media (max-width: 960px) { .oferta > div { grid-column: 1 / -1; } .oferta > div + div { margin-top: 48px; } }

.faq details { border-top: 1px solid var(--linea-b); }
.faq details:last-child { border-bottom: 1px solid var(--linea-b); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; }
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat; }
.faq details > div { padding: 0 0 24px; max-width: 46em; }

/* -------------------------------------------------------------- formulario */
.contacto .grilla { row-gap: 40px; }
.contacto-texto { grid-column: 1 / span 4; }
.contacto-form { grid-column: 6 / span 7; }
@media (max-width: 960px) { .contacto-texto, .contacto-form { grid-column: 1 / -1; } }
.wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; }
.pasos-form { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; color: var(--gris-b); margin-bottom: 28px; }
.progreso { flex: 1; height: 2px; background: var(--linea-b); position: relative; }
.progreso i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--violeta); width: 33.3%; transition: width .25s; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset[hidden] { display: none; }
legend { font-size: clamp(21px, 2vw, 26px); font-weight: 600; letter-spacing: -.015em; margin-bottom: 20px; padding: 0; }
.opciones label { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--linea-b); cursor: pointer; font-size: 17px; }
.opciones label:last-child { border-bottom: 1px solid var(--linea-b); }
.opciones input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--texto-b); border-radius: 50%; margin: 0; flex: none; display: grid; place-content: center; }
.opciones input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violeta); transform: scale(0); transition: transform .12s; }
.opciones input:checked::before { transform: scale(1); }
.opciones label:hover { color: var(--violeta); }
.campo { margin-bottom: 26px; }
.campo label, .grupo-titulo { display: block; font-size: 14px; font-weight: 500; color: var(--gris-b); margin-bottom: 8px; }
.campo input, .campo textarea, .campo select {
  width: 100%; font: 400 17px/1.4 'Poppins', sans-serif; color: var(--texto-b);
  border: 0; border-bottom: 1.5px solid var(--texto-b); border-radius: 0; background: transparent; padding: 10px 0;
}
@media (max-width: 600px) { .campo input, .campo textarea, .campo select { font-size: 16px; } }
.campo textarea { min-height: 112px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--violeta); }
.grupo { margin-bottom: 30px; }
.grupo .opciones label { font-size: 16px; padding: 12px 0; }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 600px) { .dos-campos { grid-template-columns: 1fr; } }
.form-acciones { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.volver { background: none; border: 0; padding: 0; font: 500 15px 'Poppins', sans-serif; color: var(--gris-b); text-decoration: underline; text-underline-offset: 6px; cursor: pointer; }
.error { color: #b00020; font-size: 14px; font-weight: 500; min-height: 1.4em; margin: 12px 0 0; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacidad { font-size: 13px; color: var(--gris-b); margin-top: 20px; }

/* ------------------------------------------------------------------ pie */
.pie { background: var(--negro); color: var(--blanco); }
.pie .banda .contenedor { justify-content: space-between; min-height: 96px; }
.pie .banda img { width: 200px; }
.pie-cuerpo { padding: 56px 0 40px; }
.pie-cuerpo .grilla { row-gap: 32px; }
.pie-col { grid-column: span 3; font-size: 15px; }
.pie-col h2 { font-size: 15px; font-weight: 500; color: var(--gris-n); margin-bottom: 12px; }
.pie-col a { text-decoration: none; }
.pie-col a:hover { text-decoration: underline; text-underline-offset: 6px; }
.pie-col li { margin-bottom: 6px; }
.pie-legal { grid-column: 1 / -1; border-top: 1px solid var(--linea-n); padding-top: 24px; font-size: 13px; color: var(--gris-n); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 960px) { .pie-col { grid-column: span 6; } }
@media (max-width: 560px) { .pie-col { grid-column: 1 / -1; } .pie .banda .contenedor { flex-direction: column; align-items: flex-start; } }

.contacto-texto .t2 { font-size: clamp(34px, 3.6vw, 54px); }
.banda-rotulo { font-size: 14px; font-weight: 500; opacity: .78; margin: 0 8px 0 0 !important; }

/* ======================= Ajustes de la auditoría de diseño (06-10) ======================= */
/* A3 · la foto del hero atraviesa la banda entera y cuelga sobre la sección blanca */
.hero-foto { margin-bottom: -200px; }
.hero-foto figcaption { position: absolute; top: 100%; left: 0; margin-top: 10px; color: var(--gris-b); padding-right: 0; }
.hero:not(.sin-foto) + .banda + .seccion { padding-top: calc(var(--sep) + 120px); }
.hero.captura .hero-foto img { aspect-ratio: 1440 / 880; object-position: left top; outline: 1px solid var(--linea-n); outline-offset: -1px; }
@media (max-width: 960px) {
  .hero-foto { margin-bottom: 0; }
  .hero-foto figcaption { position: static; color: var(--gris-n); padding: 10px var(--margen) 0; }
  .hero:not(.sin-foto) + .banda + .seccion { padding-top: var(--sep); }
  .hero:not(.sin-foto) .contenedor.grilla { padding-bottom: 28px; }
  .hero:not(.sin-foto) + .banda .contenedor { padding-top: 18px; }
}
/* M11 · rótulo de la banda con contraste AA */
.banda-rotulo { opacity: 1; font-weight: 400; }
/* A1 · FAQ sin estilos inline: se apila en móvil */
.faq-cabeza { grid-column: 1 / span 4; }
.faq-titulo { margin-top: 28px; font-size: clamp(28px, 3vw, 44px); }
.grilla > .faq { grid-column: 6 / span 7; }
@media (max-width: 960px) { .faq-cabeza, .grilla > .faq { grid-column: 1 / -1; } .faq-cabeza { margin-bottom: 24px; } }
/* M2 · un solo eje de lectura en las filas de proyectos */
.proyecto .t3, .proyecto .meta-bloque, .proyecto.con-foto .t3, .proyecto.con-foto .meta-bloque { grid-column: 1 / span 4; }
.proyecto .cuerpo, .proyecto.con-foto .cuerpo { grid-column: 5 / span 4; grid-row: 1 / span 3; }
.proyecto figure, .proyecto.con-foto figure { grid-column: 9 / span 4; grid-row: 1 / span 3; margin: 0; }
.proyecto figure.captura img { aspect-ratio: 1440 / 880; object-position: left top; outline: 1px solid var(--linea-b); outline-offset: -1px; }
.oscuro .proyecto figure.captura img { outline-color: var(--linea-n); }
@media (max-width: 960px) {
  .proyecto .t3, .proyecto .meta-bloque, .proyecto .cuerpo, .proyecto figure,
  .proyecto.con-foto .t3, .proyecto.con-foto .meta-bloque, .proyecto.con-foto .cuerpo, .proyecto.con-foto figure { grid-column: 1 / -1; grid-row: auto; }
}
/* M12 · casos verticales caben en la pantalla y el texto cuelga de la base */
.caso { align-items: end; }
.caso-foto.vertical img { max-height: min(84vh, 800px); }
.caso-foto img.arriba { object-position: center 25%; }
/* M9 · ritmo vertical */
.tipo { padding: clamp(64px, 8vw, 120px) 0; }
.tipo .filas > li:last-child { border-bottom: 0; }
.claro + .claro { padding-top: 0; }
.claro + .claro > .contenedor { border-top: 1px solid var(--linea-b); padding-top: var(--sep); }
/* M7 · formulario: preguntas con más peso que sus opciones, error junto al botón, campo marcado */
.grupo-titulo { font-size: 16px; font-weight: 600; color: var(--texto-b); margin-bottom: 10px; }
.campo input[aria-invalid="true"] { border-bottom-color: #b00020; }
.error { margin: 0 0 12px; }
.ayuda { font-size: 13px; color: var(--gris-b); margin: -14px 0 22px; }
/* M8 · foco visible sobre blanco y salto al contenido */
.claro :focus-visible { outline-color: var(--violeta); }
.campo input:focus, .campo textarea:focus { border-bottom: 2px solid var(--violeta); padding-bottom: 9.5px; }
.solo-lector:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--blanco); color: var(--negro); z-index: 100; }
/* B2 · rótulos del mismo largo */
.rotulo { display: block; width: 18rem; max-width: 100%; }
.oscuro .rotulo { border-color: rgba(255, 255, 255, .6); }
/* B3 · la flecha no se despega cuando el link parte en dos líneas */
.enlace { display: inline; }
.enlace .flecha { display: inline-block; vertical-align: middle; margin-left: 10px; }
/* B4 · títulos de las listas de talleres */
.lista-titulo { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
/* B8 · sin negritas sembradas en los datos */
.dato { font-weight: inherit; }
/* B6 · menú móvil con contacto */
.nav-contacto { display: none; }
@media (max-width: 960px) { .nav-contacto { display: block; margin-top: auto; padding-bottom: 32px; font-size: 15px; color: var(--gris-n); } .nav-contacto a { font-size: 17px !important; color: var(--blanco); } }
/* Nota bajo el índice de /proyectos/ */
.nota-indice { margin-top: 24px; }
/* Instituciones en heros sin foto */
.inst-linea { margin-top: 40px; font-size: 14px; color: var(--gris-n); }
/* servicios sin número: el título parte en la columna 1 */
.servicio .t3 { grid-column: 1 / span 6; }
@media (max-width: 960px) { .servicio .t3 { grid-column: 1 / -1; } }
.hero.captura .titular { font-size: clamp(40px, 5.2vw, 78px); }
/* Auditoría técnica · M6: el paso del formulario queda a la vista bajo la cabecera fija */
.contacto-form .pasos-form { scroll-margin-top: 96px; }
/* B6: las preguntas del paso 2 son fieldset con legend */
.grupo { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
legend.grupo-titulo { padding: 0; margin-bottom: 10px; font-size: 16px; }
/* Privacidad */
.cuerpo-legal .lista-titulo { margin-top: 28px; }
.cuerpo-legal .lista-titulo:first-child { margin-top: 0; }
.privacidad a, .pie-legal a { color: inherit; }
