@font-face {
  font-family: Inter;
  src: url("assets/inter.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #101b2b;
  --night: #0c1523;
  --white: #f1f3f2;
  --muted: #b8c5d3;
  --grey: #4b5762;
  --paper: #eeefec;
  --pad: max(5.3125%, calc((100% - 1320px) / 2));
  font-family: Inter, system-ui, sans-serif;
  font-optical-sizing: none;
  color: var(--white);
  background: var(--night);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ol { margin: 0; }
body { font-weight: 470; }
h1,h2,h3,strong,.etiqueta,.accion { font-weight: 720; }
img,picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button,input,textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #e4525b; outline-offset: 3px; }
.wrap { margin-inline: var(--pad); }
.skip { position: fixed; z-index: 10; left: 1rem; top: -6rem; padding: 1rem; background: var(--night); }
.skip:focus { top: 1rem; }
.mast { position: relative; height: 75px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #364559; }
.mast img { width: 165px; height: auto; }
.mast nav { display: flex; gap: clamp(20px,3.2vw,50px); font-size: 15px; }
.mast nav a,.contacto address a { padding-block: 5px; }
.mast nav a:hover,address a:hover { text-decoration: underline; text-underline-offset: .25em; }
.menu { display: none; }
.hero { position: relative; isolation: isolate; padding: 42px var(--pad) 22px; min-height: 487px; overflow: hidden; }
.hero h1 { width: 56%; }
.hero h1 span { display: block; font-size: clamp(25px,2.74vw,40px); font-weight: 470; line-height: 1.25; color: var(--muted); }
.hero strong { display: block; font-size: clamp(45px,5.4vw,82px); line-height: 1.15; margin-top: 25px; }
.relieve { position: absolute; z-index: -1; inset: 0 0 0 47.65%; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 28%); }
.relieve img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease-out; transform: perspective(1100px) rotateY(var(--giro,0deg)) scale(var(--escala,1)); }
.intro { max-width: min(490px,45%); margin-top: 37px; }
.intro p { color: var(--muted); font-size: 20px; line-height: 1.33; }
.accion { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 15px; min-height: 44px; border: 0; background: #cd2739; color: white; font-size: 15px; }
.intro .accion { margin-top: 16px; }
.accion:hover { background: #af2032; }
.etiqueta { font-size: 17px; color: var(--grey); }
.capacidades,.caso-1 { background: var(--paper); color: var(--ink); }
.capacidades { padding-block: 47px 12px; }
.capacidades h2 { margin: 19px 0 20px; font-size: clamp(34px,3.83vw,55px); line-height: 1.16; }
.servicios { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 4%; }
.servicios article { border-top: 1px solid #b7c0c3; padding: 10px 0; min-height: 86px; }
.servicios h3 { font-size: 23px; line-height: 1.25; }
.servicios p { margin-top: 5px; color: var(--grey); line-height: 1.35; }
.indice { padding-block: 38px 20px; background: var(--ink); }
.indice .wrap { display: grid; grid-template-columns: 38.6% 1fr; }
.indice h2 { font-size: 47px; line-height: 1.1; }
.indice a { position: relative; display: grid; gap: 2px; padding: 8px 30px 8px 0; border-top: 1px solid #495568; min-height: 67px; }
.indice strong { font-size: 22px; }
.indice small { color: var(--muted); font-size: 15px; }
.indice b { position: absolute; top: 12px; right: 0; color: #fa5054; font-size: 20px; }
.indice a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.caso { padding-block: 44px 39px; }
.caso .wrap { display: grid; grid-template-columns: minmax(0,39.4fr) minmax(0,56.5fr); gap: 4.1%; }
.caso h2 { margin: 18px 0 10px; font-size: clamp(36px,3.52vw,51px); line-height: 1.09; }
.caso header > p:last-child { font-size: 18px; line-height: 1.33; color: var(--grey); }
.caso-2 { background: #11243a; }
.caso-3 { background: #080f18; }
:is(.caso-2,.caso-3) :is(.etiqueta,figcaption,header > p:last-child) { color: var(--muted); }
.caso-3 .wrap { grid-template-columns: minmax(0,62fr) minmax(0,33fr); gap: 5%; }
.caso-3 header { grid-column: 2; }
.caso-3 figure { grid-area: 1 / 1; }
.caso-4 { background: #f3f1eb; color: var(--ink); }
.foto { display: block; cursor: zoom-in; }
.foto + .foto { margin-top: 10px; }
.foto img { width: 100%; height: auto; }
figcaption { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--grey); }
.proceso { background: #dae1e4; color: var(--ink); padding: 36px 0 48px; }
.proceso h2 { font-size: 43px; }
.proceso ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; margin-top: 22px; }
.proceso li { border-top: 1px solid #9caab3; padding-top: 10px; display: grid; gap: 7px; align-content: start; }
.proceso strong { font-size: 19px; }
.proceso li span { color: var(--grey); font-size: 15px; }
.contacto { padding-block: 50px 36px; }
.contacto .wrap { display: grid; grid-template-columns: 44% 48%; justify-content: space-between; }
.contacto .etiqueta { color: var(--muted); }
.contacto h2 { font-size: clamp(39px,4.3vw,63px); line-height: 1.31; margin-top: 11px; }
address { display: grid; justify-items: start; font-size: 22px; font-style: normal; margin-top: 9px; }
form label { display: block; color: var(--muted); font-size: 17px; margin: 0 0 16px; }
input,textarea { display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid #8492a3; border-radius: 0; color: white; padding: 2px 0; }
textarea { resize: vertical; }
#resultado:not(:empty) { margin-top: 15px; line-height: 1.5; }
dialog { color: white; background: var(--night); border: 1px solid #495568; padding: 12px; max-width: 96vw; max-height: 94vh; }
dialog::backdrop { background: #050a13df; }
dialog button { display: block; margin: 0 0 10px auto; min-height: 44px; border: 0; padding: 0 18px; background: white; color: var(--ink); }
dialog img { width: auto; max-height: 77vh; object-fit: contain; }
@media(max-width: 700px) {
  :root { --pad: 5.9%; }
  .mast img { width: 132px; }
  .menu { display: grid; align-content: center; justify-items: end; gap: 6px; background: transparent; border: 0; width: 44px; height: 44px; padding: 0; }
  .menu i { width: 22px; height: 1px; background: var(--white); }
  .menu i + i { width: 15px; }
  .mast nav { display: none; }
  .menu[aria-expanded="true"] + nav { position: absolute; display: grid; gap: 0; z-index: 3; top: 66px; right: 0; background: var(--ink); min-width: 175px; border: 1px solid #495568; }
  .mast nav a { padding: 14px 20px; }
  .hero { padding: 20px 0 27px; min-height: 0; }
  .hero h1,.intro { width: auto; max-width: none; margin-inline: var(--pad); }
  .hero h1 span { font-size: 23px; line-height: 1.3; }
  .hero strong { margin-top: 13px; font-size: clamp(35px,10.45vw,46px); line-height: 1.19; }
  .relieve { position: static; display: block; margin-top: 25px; aspect-ratio: 390/230; mask-image: none; }
  .intro { margin-top: 16px; }
  .intro p { font-size: 17px; color: var(--white); }
  .intro .accion { margin-top: 10px; }
  .capacidades { padding-block: 29px 12px; }
  .etiqueta { font-size: 14px; }
  .capacidades h2 { margin: 13px 0 17px; font-size: 31px; line-height: 1.25; }
  .servicios,.indice .wrap,.caso .wrap,.contacto .wrap { display: block; }
  .servicios article { min-height: 76px; padding: 8px 0; }
  .servicios h3 { font-size: 18px; }
  .servicios p { font-size: 14px; margin-top: 3px; }
  .indice { padding: 23px 0 20px; }
  .indice h2,.proceso h2 { font-size: 30px; }
  .indice nav { margin-top: 16px; }
  .indice a { min-height: 58px; }
  .indice strong { font-size: 17px; }
  .indice small,figcaption { font-size: 13px; }
  .caso { padding: 31px 0 26px; }
  .caso h2 { font-size: 32px; line-height: 1.13; margin: 12px 0 10px; }
  .caso header > p:last-child { font-size: 16px; }
  .caso figure { margin-top: 16px; }
  .proceso { padding: 26px 0 22px; }
  .proceso ol { display: block; margin-top: 16px; }
  .proceso li { display: grid; grid-template-columns: 44% 1fr; min-height: 44px; gap: 4px; }
  .proceso strong { font-size: 15px; }
  .proceso li span { font-size: 13px; }
  .contacto { padding: 29px 0 36px; }
  .contacto h2 { font-size: 34px; margin-top: 13px; line-height: 1.3; }
  address { font-size: 17px; }
  form { margin-top: 26px; }
  form label { font-size: 15px; }
}
@media(prefers-reduced-motion: reduce) { .relieve img { transition: none; transform: none; } }

/* Índice visual y detalle enlazable de cada proyecto. */
.seleccion { padding-block: 38px 44px; background: var(--ink); }
.seleccion h2 { margin-bottom: 22px; font-size: clamp(32px, 3.7vw, 50px); line-height: 1.08; }
.tarjetas { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(12px,1.8vw,28px); }
.tarjeta { display: grid; grid-template-rows: auto 1fr; border-top: 1px solid #546474; }
.tarjeta > img { width: 100%; aspect-ratio: 1.65; object-fit: cover; object-position: top; }
.ficha { display: grid; align-content: start; position: relative; padding: 15px 0 12px; border-bottom: 1px solid #546474; }
.ficha small { font-size: 14px; color: var(--muted); padding-right: 20px; }
.ficha strong { font-size: clamp(20px,1.75vw,30px); line-height: 1.12; margin-block: 8px; }
.ficha > span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.ficha b { position: absolute; right: 0; top: 12px; color: #ff6469; font-size: 19px; }
.tarjeta:hover .ficha,.tarjeta:focus-visible .ficha { border-color: #ff6469; }
.tarjeta:hover strong { text-decoration: underline; text-underline-offset: .17em; }
.detalles .caso:not(:target) { display: none; }
.caso:target { scroll-margin-top: 8px; }
.regresar { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; margin-top: 12px; }
.caso header > p:not(.etiqueta) { font-size: 18px; line-height: 1.5; }
.contacto { padding-block: 0; }
.contacto > .wrap { padding-block: clamp(30px,4vw,55px) 42px; }
.contacto .proceso .wrap { display: block; }
.contacto .proceso h2 { font-size: clamp(29px,3vw,40px); margin: 0; }
.invitacion { max-width: 44ch; line-height: 1.5; color: var(--muted); margin: 14px 0; }
.trampa { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
dialog { padding: 0; border: 0; overflow: visible; }
dialog .cerrar { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; padding: 0; width: 44px; height: 44px; color: white; background: transparent; isolation: isolate; font-size: 21px; line-height: 1; }
dialog .cerrar::before { content: ""; position: absolute; inset: 7px; z-index: -1; border-radius: 50%; background: #101b2bf2; border: 1px solid #8996a7; }
dialog img { max-width: 94vw; max-height: 88vh; }
@media(max-width: 950px) { .tarjetas { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 700px) {
  .seleccion { padding-block: 28px; }
  .tarjetas { gap: 20px 14px; }
  .ficha { padding-top: 10px; }
  .ficha small { font-size: 13px; }
  .ficha strong { font-size: 19px; }
  .ficha > span { font-size: 14px; }
  .ficha b { top: 8px; }
  .caso header > p:not(.etiqueta) { font-size: 16px; }
}
@media(max-width: 350px) { .tarjetas { grid-template-columns: 1fr; } }

/* Refinamiento focalizado de ritmo y legibilidad — Impeccable, 2026-11-10.
   Mantiene identidad, estructura y capturas existentes. */
@media (min-width: 701px) {
  .capacidades { padding-block: clamp(58px, 6vw, 88px) clamp(44px, 4.5vw, 68px); }
  .capacidades h2 { margin-bottom: clamp(27px, 3vw, 42px); }
  .servicios { row-gap: clamp(12px, 1.8vw, 24px); }
  .servicios article { padding-block: 18px 14px; }
  .seleccion { padding-block: clamp(62px, 6vw, 90px) clamp(64px, 6vw, 92px); }
  .seleccion h2 { margin-bottom: clamp(28px, 3vw, 44px); }
  .tarjetas { row-gap: 32px; }
  .ficha { padding-block: 19px 24px; }
  .ficha strong { margin-block: 12px; }
  .caso { padding-block: clamp(60px, 6vw, 90px); }
  .caso h2 { margin-block: 22px 19px; }
  .caso header > p:not(.etiqueta) { max-width: 52ch; line-height: 1.65; }
  .regresar { margin-top: 23px; }
  .contacto > .wrap { padding-block: clamp(60px, 6vw, 88px); }
}
@media (max-width: 700px) {
  .capacidades { padding-block: 42px 36px; }
  .capacidades h2 { margin-bottom: 25px; }
  .servicios article { padding-block: 14px; min-height: 0; }
  .seleccion { padding-block: 45px 52px; }
  .seleccion h2 { margin-bottom: 25px; }
  .tarjetas { gap: 29px 16px; }
  .ficha { padding-block: 14px 20px; }
  .ficha strong { line-height: 1.22; margin-block: 10px; }
  .caso { padding-block: 46px 48px; }
  .caso h2 { margin-block: 18px 17px; }
  .caso header > p:not(.etiqueta) { line-height: 1.65; }
  .caso figure { margin-top: 28px; }
  .regresar { margin-top: 21px; }
  .contacto > .wrap { padding-block: 47px 55px; }
}


/* Formulario: campos consistentes, autofill oscuro y foco discreto. */
#consulta label:not(.trampa label) {
  display: block;
  margin-bottom: 22px;
  color: #cbd6e2;
  font-size: 15px;
  line-height: 1.5;
}
#consulta input:not([type="hidden"]), #consulta textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  min-height: 45px;
  padding: 10px 13px;
  background: #152235;
  border: 1px solid #586b81;
  border-radius: 7px;
  color: #f5f7fa;
  caret-color: #f5f7fa;
  line-height: 1.5;
  outline: none;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#consulta textarea { min-height: 116px; resize: vertical; }
#consulta input:focus-visible, #consulta textarea:focus-visible {
  border-color: #b8c9d9;
  outline: 2px solid #b8c9d9;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #b8c9d91c;
}
#consulta input:-webkit-autofill,
#consulta input:-webkit-autofill:hover,
#consulta input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f7fa;
  -webkit-box-shadow: 0 0 0 1000px #152235 inset;
  box-shadow: 0 0 0 1000px #152235 inset;
  caret-color: #f5f7fa;
}
#consulta .cf-turnstile { margin: 4px 0 18px; }
@media (prefers-reduced-motion: reduce) {
  #consulta input, #consulta textarea { transition: none; }
}


/* Corrección final: el formulario no hereda el contorno rojo global. */
#consulta :is(input,textarea):focus-visible {
  outline: 2px solid #d7e2ee !important;
  outline-offset: 2px;
  border-color: #d7e2ee !important;
}
#consulta :is(input,textarea):focus {
  background-color: #152235;
  color: #f5f7fa;
}

/* Tras confirmar recepción, ocultar desafío consumido y botón de reenvío. */
#consulta.consulta-enviada .cf-turnstile,
#consulta.consulta-enviada button[type="submit"] { display: none; }
#consulta #resultado.exito { color: #d8f1df; font-weight: 650; }
