@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --brand-blue: #0769b4;
  --brand-navy: #11344c;
  --brand-orange: #c96e31;
  --brand-gray: #7a7a7a;
  --cta: var(--brand-orange);
  --orange: var(--brand-orange);
  --orange-text: #a8551e;
  --navy: var(--brand-navy);
  --blue: var(--brand-blue);
  --ink: var(--brand-navy);
  --muted: var(--brand-gray);
  --paper: #f7f6f2;
  --paper-2: #f0eee8;
  --card: #ffffff;
  --line: #d8dedf;
  --whatsapp: #25d366;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18px 18px, rgba(17,52,76,.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), #fff 44rem, var(--paper));
  background-size: 24px 24px, auto;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.rfq :focus-visible, .nav-cta:focus-visible { outline-color: #fff; }
.skip-link { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; left: 1rem; top: 1rem; width: auto; z-index: 100; }
.masthead {
  align-items: center;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 16px 45px rgba(17,52,76,.1);
  color: var(--navy);
  display: grid;
  gap: .68rem;
  grid-template-columns: 1fr auto;
  padding: .55rem .72rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { align-items: center; display: inline-flex; min-width: 0; }
.brand img { display: block; height: 44px; object-fit: contain; width: 128px; }
/* logo por tema: texto oscuro en claro, blanco en oscuro */
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }

.nav { display: flex; gap: .76rem; grid-column: 1 / -1; mask-image: linear-gradient(90deg, #000 92%, transparent); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav-cta { align-items: center; display: inline-flex; font-size: .8rem; font-weight: 900; min-height: 44px; }
.nav a { color: var(--navy); }
.nav-cta {
  background: var(--whatsapp);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 12px 26px rgba(37,211,102,.22);
  color: #063b1d;
  gap: .4rem;
  justify-content: center;
  padding: .52rem .9rem;
  animation: whatsappPulse 1.9s ease-out infinite;
}
.nav-cta svg { flex: none; height: 17px; width: 17px; }
.dossier-hero {
  background: var(--paper);
  color: var(--ink);
  display: grid;
  gap: 1.2rem;
  min-height: auto;
  overflow: hidden;
  padding: 3.2rem 1.2rem 3rem;
  position: relative;
}
/* Dos capas de fondo móviles: ::after = formas de color (atrás), ::before = líneas técnicas.
   inset negativo = margen de viaje para que la deriva nunca descubra bordes. */
.dossier-hero::before, .dossier-hero::after { content: ""; inset: -90px; pointer-events: none; position: absolute; }
.dossier-hero::before {
  /* Tile de 42x42 con background-size: cada celda se rasteriza idéntica (evita
     líneas desiguales con el escalado de Windows); NUNCA volver a repeating-gradient */
  background-image:
    linear-gradient(90deg, rgba(17,52,76,.13) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(17,52,76,.13) 0 1px, transparent 1px);
  background-size: 42px 42px;
  inset: -1400px;
  z-index: 1;
}
.dossier-hero::after {
  background:
    linear-gradient(115deg, rgba(255,255,255,.92) 0 52%, rgba(17,52,76,.07) 52% 100%),
    linear-gradient(295deg, transparent 0 72%, rgba(201,110,49,.10) 72% 100%);
  inset: -460px;
  z-index: -1;
}
.dossier-hero > * { position: relative; z-index: 1; }
.kicker { color: var(--orange-text); font-size: .76rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.rfq .kicker { color: #e8a06a; }
.hero-copy { align-self: center; max-width: 760px; }
.hero-copy h1 { color: var(--navy); font-size: clamp(3rem, 14vw, 5.5rem); letter-spacing: -.045em; line-height: .92; margin: .45rem 0 1rem; }
.hero-copy p:not(.kicker) { color: #314957; font-size: 1.03rem; }
.action-row { display: grid; gap: .75rem; margin-top: 1.35rem; }
.btn { border-radius: 999px; display: inline-flex; font-weight: 900; justify-content: center; min-height: 50px; padding: .9rem 1.15rem; text-align: center; }
.primary { background: var(--cta); color: #fff; box-shadow: 0 14px 30px rgba(201,110,49,.28); }
.secondary { background: #fff; border: 1px solid rgba(17,52,76,.18); color: var(--navy); }
.hero-media { background: #fff; border: 1px solid rgba(17,52,76,.12); border-radius: 30px; box-shadow: 0 22px 60px rgba(17,52,76,.12); overflow: hidden; position: relative; }
.hero-media img { display: block; height: 430px; object-fit: cover; width: 100%; filter: saturate(.98) contrast(1.04); }
.ticker { background: var(--orange-text); overflow: hidden; padding: 0; position: relative; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
/* Fade en los bordes: el texto se desvanece en el naranja en vez de cortarse */
.ticker::before, .ticker::after { bottom: 0; content: ""; pointer-events: none; position: absolute; top: 0; width: 3.5rem; z-index: 1; }
.ticker::before { background: linear-gradient(90deg, var(--orange-text), transparent); left: 0; }
.ticker::after { background: linear-gradient(-90deg, var(--orange-text), transparent); right: 0; }
.marquee-track { animation: marqueeMove 32s linear infinite; backface-visibility: hidden; display: flex; gap: 3rem; padding: 1rem 0; width: max-content; will-change: transform; }
.marquee-track span { color: #fff; display: inline-flex; font-size: .95rem; font-weight: 900; letter-spacing: .02em; padding-left: 1.2rem; white-space: nowrap; }
.ticker:hover .marquee-track { animation-play-state: paused; }
.section { display: grid; gap: 1.3rem; margin: 0; padding: 2.6rem 1.2rem; }
.section-label { border-top: 2px solid var(--navy); padding-top: .7rem; }
.section-label span { color: var(--blue); font-size: 2.4rem; font-weight: 900; letter-spacing: -.045em; }
.section-label p { color: var(--orange-text); font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-label-link { color: inherit; cursor: pointer; display: block; min-height: 44px; text-decoration: none; transition: border-color .2s ease, opacity .2s ease; }
.section-label-link:hover { border-top-color: var(--blue); opacity: .88; }
.section-label-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.split { position: relative; }
.split::before { background: radial-gradient(circle at 1px 1px, rgba(17,52,76,.08) 1px, transparent 0), linear-gradient(135deg, transparent 0 48%, rgba(201,110,49,.08) 48% 49%, transparent 49%); background-size: 22px 22px, 100% 100%; content: ""; inset: 1.2rem max(1.2rem, calc((100vw - var(--max)) / 2)) auto; height: calc(100% - 2.4rem); opacity: .42; pointer-events: none; position: absolute; z-index: -1; }
.split-content h2, .client-copy h2, .rfq-copy h2, .trust-copy h2 { color: var(--navy); font-size: clamp(2rem, 8vw, 4.4rem); letter-spacing: -.035em; line-height: 1; margin: 0 0 1rem; }
.role-grid, .spec-list, .field-grid, .rfq-form, .trust-points { display: grid; gap: 1rem; }
.role-grid article, .spec-row, .field-card, .logo-tile, .rfq-form, .trust-points article { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 18px 50px rgba(17,52,76,.07); padding: 1rem; }
.role-grid strong, .spec-row span, .field-card span, .trust-points strong { color: var(--orange-text); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.spec-row span { color: var(--blue); }
/* Tarjetas de Capacidades: tarjeta blanca con borde azul (como las demás cartas claras) */
.spec-row { background: #fff; border-color: rgba(7,105,180,.45); }
.spec-row > span { color: var(--blue); }
.spec-row h3 { color: var(--navy); }
.spec-row p { color: var(--ink); }
.spec-row a { color: var(--orange-text); }
.spec-row:hover { border-color: var(--blue) !important; box-shadow: 0 24px 60px rgba(17,52,76,.16) !important; }
.role-grid strong, .trust-points strong { display: block; margin-bottom: .3rem; }
/* Tarjetas de Certificaciones: fondo navy con texto claro */
.trust-points article { background: var(--navy); border-color: rgba(255,255,255,.12); }
.trust-points strong { color: #e8a06a; }
.trust-points article span { color: rgba(255,255,255,.82); }
.spec-row { display: grid; gap: .8rem; padding: 1.5rem 1.3rem; text-align: center; }
.spec-row > span { left: 1.1rem; position: absolute; top: 1rem; }
.spec-row a { color: var(--orange-text); font-weight: 900; justify-self: center; }
.spec-row a, .footer a { align-items: center; display: inline-flex; min-height: 44px; }
/* Tarjeta completa clickeable: el link existente se estira sobre toda la tarjeta */
.spec-row, .field-card { position: relative; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.spec-row a::after, .field-card .field-link::after { content: ""; inset: 0; position: absolute; }
.spec-row:hover, .field-card:has(.field-link):hover { border-color: rgba(7,105,180,.5); box-shadow: 0 24px 60px rgba(17,52,76,.16); }
.field-card:has(.field-link):hover { transform: translateY(-6px); }
.field-link { align-items: center; color: var(--blue); display: inline-flex; font-weight: 900; margin-top: .2rem; min-height: 44px; }
.field-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.field-card img { aspect-ratio: 4 / 3; display: block; flex: none; height: auto; object-fit: cover; width: 100%; }
/* Imagenes de DOCUMENTO (DC-3, Mill Test, memorias de calculo): llenan el ancho de la tarjeta */
.field-card img.doc { background: #f2efe8; cursor: pointer; object-fit: cover; object-position: top center; padding: 0; }
.field-card img.doc:hover { opacity: .92; }
.field-card img.doc:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
[data-theme="dark"] .field-card img.doc { background: #dfe0e2; }
.doc-lightbox:not([open]) { display: none; }
.doc-lightbox { align-items: center; background: rgba(12, 28, 44, .96); border: none; display: flex; flex-direction: column; gap: .65rem; height: 100dvh; justify-content: center; margin: 0; max-height: 100dvh; max-width: 100vw; padding: 1rem; width: 100vw; }
.doc-lightbox::backdrop { background: rgba(12, 28, 44, .88); }
.doc-lightbox-viewport { align-items: center; cursor: default; display: flex; flex: 1; justify-content: center; min-height: 0; overflow: hidden; touch-action: none; width: 100%; }
.doc-lightbox-viewport--zoomed { cursor: grab; }
.doc-lightbox-viewport--dragging { cursor: grabbing; }
.doc-lightbox-viewport img { -webkit-user-drag: none; display: block; max-height: calc(100dvh - 5rem); max-width: min(100%, 960px); object-fit: contain; pointer-events: none; transform-origin: center center; user-select: none; width: auto; will-change: transform; }
.doc-lightbox--photo .doc-lightbox-viewport img { max-height: calc(100dvh - 3rem); max-width: calc(100vw - 2rem); }
.doc-lightbox-hint { color: rgba(255,255,255,.65); display: none; font-size: .78rem; font-weight: 650; margin: 0; text-align: center; }
.doc-lightbox--doc .doc-lightbox-hint { display: block; }
.doc-lightbox-close { align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; cursor: pointer; display: flex; font-size: 1.75rem; height: 44px; justify-content: center; line-height: 1; position: fixed; right: 1rem; top: 1rem; width: 44px; z-index: 1; }
.doc-lightbox-close:hover, .doc-lightbox-close:focus-visible { background: rgba(255,255,255,.22); outline: 2px solid #fff; outline-offset: 2px; }
/* Galeria dentro de una seccion split (despues de las tarjetas de texto) */
.gallery-gap { margin-top: 1.4rem; }
/* Galeria de fotos de obra: grid uniforme 4/3 para alineacion B2B */
.field-grid--gallery { grid-template-columns: 1fr; gap: 1.25rem; }
.field-card--photo { align-self: start; height: fit-content; }
.field-card--photo .field-link { margin-top: .35rem; }
.field-card--photo img:not(.doc) {
  aspect-ratio: 4 / 3;
  background: none;
  cursor: zoom-in;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.field-card--photo img:not(.doc):hover { opacity: .94; }
.field-card--photo img:not(.doc):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.field-card--photo .field-link::after { content: none; }
.field-card--photo div { flex: none; padding: .85rem 1rem 1rem; }
.field-card--photo h3 { font-size: 1.15rem; }
.field-card--photo p { font-size: .92rem; margin: 0; }
@media (min-width: 760px) {
  .field-grid--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #inicio .field-grid--gallery .field-card--photo.wide { grid-column: 1 / -1; max-width: none; }
}
[data-theme="dark"] .field-card--photo img:not(.doc) { background: none; }
.field-card div { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
/* El link "Ver proyectos" se empuja al fondo para que todos se alineen */
.field-card .field-link { align-self: flex-start; margin-top: auto; }
.field-card h3 { color: var(--navy); font-size: 1.35rem; line-height: 1.1; margin: .2rem 0 .5rem; }
/* Certificaciones: descanso naranja (rompe el blanco). Texto blanco + tarjetas navy como islas */
.trust-panel { background: linear-gradient(165deg, #b45f24, #97481a); max-width: none; padding-inline: 1.2rem; }
.trust-panel > * { margin-inline: auto; max-width: var(--max); width: 100%; }
.trust-panel .section-label { border-top-color: rgba(255,255,255,.55); }
.trust-panel .section-label span { color: #fff; }
.trust-panel .section-label p { color: rgba(255,255,255,.9); }
.trust-copy h2 { color: #fff; }
.trust-copy p { color: rgba(255,255,255,.92); }
.trust-points article { border-color: rgba(255,255,255,.16); box-shadow: 0 18px 45px rgba(90,40,10,.28); }
.clients {
  background: var(--paper);
  contain: paint;
  isolation: isolate;
  max-width: none;
  overflow: hidden;
  padding-inline: 1.2rem;
  position: relative;
}
.clients::before { background-image: linear-gradient(90deg, rgba(17,52,76,.13) 0 1px, transparent 1px), linear-gradient(0deg, rgba(17,52,76,.13) 0 1px, transparent 1px); background-size: 42px 42px; content: ""; inset: -120px; pointer-events: none; position: absolute; z-index: 0; }
.clients > * { margin-inline: auto; max-width: var(--max); position: relative; width: 100%; z-index: 1; }
/* Muro de logos: flex centrado — el último tile solo se centra en todos los tamaños */
.logo-wall { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.logo-tile { flex: 1 1 260px; max-width: 340px; text-align: center; }
.logo-tile img { height: 88px; object-fit: contain; width: 100%; }
.logo-tile img.badge { border-radius: 12px; width: auto; }
.logo-text { align-items: center; color: var(--navy); display: flex; font-size: 1.15rem; font-weight: 900; height: 88px; justify-content: center; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.logo-tile figcaption { color: var(--muted); font-size: .82rem; font-weight: 850; }
.rfq { background: var(--navy); color: #fff; max-width: none; padding-inline: 1.2rem; }
.rfq > * { margin-inline: auto; max-width: var(--max); width: 100%; }
.rfq-copy h2 { color: #fff; }
.rfq-copy p { color: rgba(255,255,255,.74); }
.rfq-form { background: #fff; color: var(--ink); grid-template-columns: 1fr; }
.rfq-form label { display: grid; font-weight: 850; gap: .4rem; }
.rfq-form input, .rfq-form select, .rfq-form textarea { border: 1px solid var(--line); border-radius: 16px; min-width: 0; padding: .85rem 1rem; width: 100%; }
.rfq-form input:user-invalid, .rfq-form select:user-invalid, .rfq-form textarea:user-invalid { border-color: #b3261e; }
.scope-set { border: 1px solid var(--line); border-radius: 16px; display: grid; gap: .35rem .8rem; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); margin: 0; padding: 1rem 1.1rem; }
.scope-set legend { color: var(--ink); font-weight: 850; padding: 0 .4rem; }
.rfq-form .check { align-items: center; cursor: pointer; display: flex; flex-direction: row; font-weight: 650; gap: .55rem; min-height: 40px; }
.rfq-form .check input { accent-color: var(--blue); flex: none; height: 20px; margin: 0; width: 20px; }
.full { grid-column: 1 / -1; }
.footer { align-items: flex-start; background: #fff; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-direction: column; gap: .6rem; padding: 2rem 1rem; }
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .dossier-hero .reveal, .js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .dossier-hero::before { animation: linesDrift 7s linear infinite; }
  .dossier-hero::after { animation: shapesDrift 12s ease-in-out infinite alternate; }
}
@keyframes linesDrift { to { translate: 84px -84px; } }
@keyframes shapesDrift { to { translate: 44px -30px; } }
@keyframes marqueeMove { from { transform: translate3d(0,0,0); } to { transform: translate3d(-25%,0,0); } }
@keyframes whatsappPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 12px 26px rgba(37,211,102,.22); } 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0), 0 12px 26px rgba(37,211,102,.22); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 12px 26px rgba(37,211,102,.22); } }
@media (min-width: 760px) {
  html { scroll-padding-top: 8.5rem; }
  .masthead { grid-template-columns: auto 1fr auto; left: 50%; max-width: min(var(--max), calc(100% - 32px)); position: fixed; top: 18px; transform: translateX(-50%); width: 100%; border-radius: 999px; backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }
  .brand img { height: 52px; width: 152px; }
  .nav { grid-column: auto; justify-content: center; mask-image: none; overflow: visible; }
  .dossier-hero { grid-template-columns: 1.04fr .74fr; padding: 8.2rem max(1.2rem, calc((100vw - var(--max)) / 2)) 2.8rem; }
  .dossier-hero.page { padding-bottom: 2.8rem; }
  .hero-media img { height: 100%; }
  .action-row { display: flex; }
  .section { grid-template-columns: 220px minmax(0, 1fr); padding: 3.2rem max(1.2rem, calc((100vw - var(--max)) / 2)); }
  .role-grid, .trust-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-row { align-content: center; min-height: 200px; }
  .field-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
  .clients, .rfq, .trust-panel { padding-inline: max(1.2rem, calc((100vw - var(--max)) / 2)); }
  .clients .logo-wall { grid-column: 1 / -1; }
  .rfq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .rfq-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { align-items: center; flex-direction: row; justify-content: space-between; padding-inline: max(1.2rem, calc((100vw - var(--max)) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track span[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Switch de tema en el header */
.nav-actions { align-items: center; display: inline-flex; gap: .5rem; }
@media (max-width: 759.98px) {
  /* una sola fila de menu: links + toggle + WhatsApp (solo icono) a la derecha */
  .brand { grid-column: 1 / -1; justify-content: center; }
  .nav { gap: .5rem; grid-column: 1; grid-row: 2; mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent); }
  .nav a { font-size: .75rem; }
  .nav-actions { grid-column: 2; grid-row: 2; }
  .nav-cta { padding: .5rem .62rem; }
  .cta-label { display: none; }
}
.theme-toggle { align-items: center; background: #fff; border: 1px solid rgba(17,52,76,.18); border-radius: 999px; color: var(--navy); cursor: pointer; display: inline-flex; flex: none; height: 40px; justify-content: center; padding: 0; width: 40px; }
.theme-toggle svg { height: 18px; width: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle { background: var(--card); border-color: rgba(255,255,255,.16); color: #eef3f8; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: inline; }

/* ===== DARK MODE (activado por el switch: [data-theme="dark"] en <html>) =====
   Equivalente oscuro: mismo ritmo de secciones (descansos) y misma animación del
   hero. El navy (#11344c) NO se remapea → queda más claro que el fondo y las
   tarjetas siguen resaltando. Light es el default (sin el atributo). */
[data-theme="dark"] {
  --ink: #e0e3e8;
  --muted: #99a0a8;
  --paper: #16171a;      /* gris neutro (equivale al papel de light) */
  --paper-2: #1c1d21;    /* gris un pelín más claro para el descanso de Clientes */
  --card: #24262b;       /* tarjeta gris elevada (equivale al blanco de light) */
  --line: rgba(255,255,255,.1);
  --accent-panel: #16405e; /* azul de acento: los bloques navy resaltan sobre el gris */
}
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18px 18px, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(180deg, #16171a, #1b1c20 44rem, #16171a);
  background-size: 24px 24px, auto;
}
[data-theme="dark"] .masthead { background: rgba(18,20,24,.5); border-color: rgba(255,255,255,.14); box-shadow: 0 16px 45px rgba(0,0,0,.55); color: #eef3f8; }
[data-theme="dark"] .nav a { color: #eef3f8; }
[data-theme="dark"] .hero-copy h1,
[data-theme="dark"] .split-content h2,
[data-theme="dark"] .client-copy h2,
[data-theme="dark"] .trust-copy h2,
[data-theme="dark"] .field-card h3 { color: #eef3f8; }
[data-theme="dark"] .hero-copy p:not(.kicker) { color: #aebcc7; }
[data-theme="dark"] .kicker,
[data-theme="dark"] .section-label p,
[data-theme="dark"] .role-grid strong,
[data-theme="dark"] .field-card span { color: #e8a06a; }
[data-theme="dark"] .section-label span,
[data-theme="dark"] .field-link { color: #6cb6ea; }
[data-theme="dark"] .section-label { border-top-color: rgba(255,255,255,.22); }
[data-theme="dark"] .secondary { background: var(--card); border-color: rgba(255,255,255,.16); color: #eef3f8; }
[data-theme="dark"] .role-grid article,
[data-theme="dark"] .field-card,
[data-theme="dark"] .rfq-form,
[data-theme="dark"] .hero-media { background: var(--card); border-color: rgba(255,255,255,.1); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
[data-theme="dark"] .hero-media { box-shadow: 0 22px 60px rgba(0,0,0,.55); }
[data-theme="dark"] .logo-tile { background: #f4f6f8; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .logo-text { color: var(--navy); }
[data-theme="dark"] .clients { background: var(--paper); }
[data-theme="dark"] .clients::before {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.09) 0 1px, transparent 1px);
}
[data-theme="dark"] .trust-panel { background: linear-gradient(165deg, #6e3a15, #16171a 78%); }
/* Tarjetas y paneles de acento: azul claro que resalta sobre el gris neutro */
[data-theme="dark"] .spec-row,
[data-theme="dark"] .trust-points article,
[data-theme="dark"] .rfq { background: var(--accent-panel); }
/* En dark las tarjetas de Capacidades siguen siendo panel azul con texto claro */
[data-theme="dark"] .spec-row { border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .spec-row > span { color: #6cb6ea; }
[data-theme="dark"] .spec-row h3 { color: #fff; }
[data-theme="dark"] .spec-row p { color: rgba(255,255,255,.85); }
[data-theme="dark"] .spec-row a { color: #e8a06a; }
[data-theme="dark"] .spec-row:hover { border-color: rgba(108,182,234,.6) !important; }
[data-theme="dark"] .split::before { background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0), linear-gradient(135deg, transparent 0 48%, rgba(201,110,49,.12) 48% 49%, transparent 49%); }
[data-theme="dark"] .rfq-form { color: var(--ink); }
[data-theme="dark"] .rfq-form input,
[data-theme="dark"] .rfq-form select,
[data-theme="dark"] .rfq-form textarea { background: #1a1b1f; border-color: rgba(255,255,255,.14); color: var(--ink); }
[data-theme="dark"] .rfq-form ::placeholder { color: #7c828a; }
[data-theme="dark"] .scope-set { border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .scope-set legend { color: var(--ink); }
[data-theme="dark"] .footer { background: #101114; border-top-color: rgba(255,255,255,.1); }
[data-theme="dark"] .dossier-hero::before {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.09) 0 1px, transparent 1px);
}
[data-theme="dark"] .dossier-hero::after {
  background:
    linear-gradient(115deg, rgba(255,255,255,.05) 0 52%, rgba(0,0,0,.25) 52% 100%),
    linear-gradient(295deg, transparent 0 72%, rgba(201,110,49,.14) 72% 100%);
}

/* ===== V6: items de auditoría ===== */
/* Íconos por servicio (estilo línea blueprint) */
.spec-icon { color: var(--blue); display: block; fill: none; height: 36px; margin: 0 auto .4rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 36px; }
[data-theme="dark"] .spec-icon { color: #7cc0ef; }
/* Logo wall compacto: más marca, menos caja */
.logo-tile { padding: .65rem .9rem; }
.logo-tile img { height: 104px; }
.logo-tile img.badge { border-radius: 10px; }
.logo-tile figcaption { font-size: .72rem; margin-top: .15rem; }
.logo-text { font-size: 1.3rem; height: 104px; }
[data-theme="dark"] .logo-tile { background: #e2e5ea; }
/* Link de tarjeta unificado (naranja de acción, como pidió el cliente) */
.field-link { color: var(--orange-text); }
[data-theme="dark"] .field-link { color: #e8a06a; }
/* Hover en botones */
.btn { transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.primary:hover { background: #a8551e; box-shadow: 0 18px 36px rgba(201,110,49,.36); transform: translateY(-2px); }
.secondary:hover { border-color: var(--navy); box-shadow: 0 14px 30px rgba(17,52,76,.14); transform: translateY(-2px); }
[data-theme="dark"] .secondary:hover { border-color: rgba(255,255,255,.45); }
/* Anotación técnica bajo la etiqueta de sección (desktop) */
@media (min-width: 760px) {
  .section-label { position: relative; }
  .spec-list .spec-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Footer completo */
.footer { align-items: stretch; display: block; padding: 2.4rem 1rem 1.4rem; }
.footer-grid { display: grid; gap: 1.5rem; margin: 0 auto; max-width: var(--max); }
.footer-grid p { font-size: .92rem; margin: .18rem 0; }
.footer-brand { color: var(--navy); font-size: 1.05rem; font-weight: 900; }
.footer-h { color: var(--navy); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a { font-weight: 700; }
.footer-grid a:hover { color: var(--blue); }
.footer-nav { display: flex; flex-direction: column; gap: .15rem; }
.footer-nav a { align-items: center; color: var(--ink); display: inline-flex; min-height: 34px; }
.footer-line { border-top: 1px solid var(--line); font-size: .78rem; margin: 1.8rem auto 0; max-width: var(--max); padding-top: 1rem; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1.1fr 1fr auto; }
}
[data-theme="dark"] .footer-brand, [data-theme="dark"] .footer-h { color: #eef3f8; }
[data-theme="dark"] .footer-nav a { color: var(--ink); }



/* ===== movil compacto: capacidades, clientes y formulario ===== */
@media (max-width: 759.98px) {
  .spec-list { gap: .5rem; }
  .spec-row { align-items: center; display: flex; gap: .65rem; padding: .62rem .75rem; text-align: left; }
  .spec-row > span { flex: none; font-size: .68rem; left: auto; position: static; top: auto; }
  .spec-row > div { align-items: center; display: flex; flex: 1; gap: .55rem; min-width: 0; }
  .spec-row .spec-icon { flex: none; height: 20px; width: 20px; }
  .spec-row h3 { font-size: .92rem; line-height: 1.15; margin: 0; }
  .spec-row p { display: none; }
  .spec-row > a { flex: none; font-size: .74rem; white-space: nowrap; }
  .logo-wall { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-tile { gap: .3rem; margin: 0; padding: .55rem .4rem; }
  .logo-tile img, .logo-tile .logo-text { height: 42px; object-fit: contain; width: 100%; }
  .logo-tile .logo-text { align-items: center; display: flex; font-size: 1rem; justify-content: center; }
  .logo-tile figcaption { font-size: .6rem; }
  .logo-wall .logo-tile:last-child { grid-column: 2; }
  .rfq { gap: 1rem; }
  .rfq-copy h2 { font-size: 1.5rem; }
  .rfq-copy p:not(.kicker) { font-size: .9rem; margin: .4rem 0 0; }
  .rfq-form { gap: .55rem; padding: .85rem; }
  .rfq-form label { font-size: .78rem; }
  .rfq-form input, .rfq-form select, .rfq-form textarea { padding: .58rem .75rem; }
  .rfq-form textarea { min-height: 74px; }
  .scope-set { gap: .3rem .55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .7rem .8rem; }
  .scope-set .check span { font-size: .8rem; line-height: 1.25; }
  .rfq-form { grid-template-columns: 1fr; }
  .section { padding: 2rem 1rem; }
  .split-content h2, .client-copy h2, .rfq-copy h2, .trust-copy h2 { font-size: clamp(1.65rem, 7vw, 2.35rem); }
  .section-label span { font-size: 1.9rem; }
  .field-card h3 { font-size: 1.05rem; }
  .dossier-hero.page { padding-top: 6.5rem; }
}
@media (max-width: 479.98px) {
  .scope-set { grid-template-columns: 1fr; }
  .scope-set .check span { font-size: .78rem; }
  .spec-row > a { font-size: .68rem; }
  #inicio.hero-photo .hero-copy h1 { font-size: clamp(1.85rem, 8.5vw, 2.5rem); }
}
@media (min-width: 760px) and (max-width: 1023.98px) {
  .section { gap: 1rem; grid-template-columns: 140px minmax(0, 1fr); padding: 2.4rem 1.2rem; }
  .section-label span { font-size: 1.85rem; }
  .split-content h2, .client-copy h2, .rfq-copy h2, .trust-copy h2 { font-size: clamp(1.75rem, 4.5vw, 3rem); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid article:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .trust-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-points article:last-child { grid-column: 1 / -1; }
  .rfq { gap: 1.25rem; grid-template-columns: 1fr; }
  .scope-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: .35rem 1rem; }
}

/* V7.5-foto: hero full-bleed + FX diagonal frío→calor */
#inicio.hero-photo {
  align-items: center;
  background: none;
  display: flex;
  grid-template-columns: unset;
  min-height: clamp(560px, 84vh, 880px);
  overflow: hidden;
  padding: 8.2rem max(1.2rem, calc((100vw - var(--max)) / 2)) 2.8rem;
  position: relative;
}
#inicio.hero-photo::before, #inicio.hero-photo::after { display: none; }
#inicio.hero-photo > .hero-photo-bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center right;
  position: absolute;
  transform: scale(1);
  transform-origin: 70% 45%;
  width: 100%;
  z-index: 0;
}
#inicio.hero-photo > .hero-photo-scrim {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(4,11,20,.97) 0%, rgba(4,11,20,.88) 32%, rgba(4,11,20,.55) 54%, rgba(4,11,20,.2) 72%, rgba(4,11,20,.05) 90%),
    linear-gradient(0deg, rgba(4,11,20,.55) 0%, rgba(4,11,20,0) 32%);
}
#inicio.hero-photo > .hero-fx {
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 38%, #000 58%);
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
#inicio.hero-photo .hero-copy { max-width: min(680px, 100%); position: relative; z-index: 2; }
#inicio.hero-photo .hero-copy .kicker { color: #ffab66; }
#inicio.hero-photo .hero-copy h1 {
  color: #f4f9ff;
  font-size: clamp(2.25rem, 6.8vw, 4.25rem);
  line-height: 1.08;
  max-width: 14em;
  text-wrap: balance;
}
#inicio.hero-photo .hero-copy > p:not(.kicker) { color: rgba(232,242,252,.8); }
#inicio.hero-photo .btn.secondary { background: rgba(255,255,255,.05); border-color: rgba(226,239,252,.36); color: #eef6ff; }
#inicio.hero-photo .btn.secondary:hover { background: rgba(255,255,255,.12); }
.fx-beam {
  position: absolute;
  /* Huge pad: rotated rect must still cover every corner */
  height: 220%;
  left: -60%;
  mix-blend-mode: screen;
  opacity: 0;
  top: -60%;
  transform-origin: center center;
  width: 220%;
}
.fx-beam-cold {
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 28%,
    rgba(108,195,255,.15) 38%,
    rgba(108,195,255,.55) 46%,
    rgba(7,105,180,.4) 52%,
    transparent 64%,
    transparent 100%
  );
  filter: blur(26px);
}
.fx-beam-hot {
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(255,171,102,.12) 50%,
    rgba(255,171,102,.5) 58%,
    rgba(201,110,49,.35) 64%,
    transparent 76%,
    transparent 100%
  );
  filter: blur(30px);
}

.badge20 { align-items: baseline; border-top: 1px solid rgba(226,239,252,.2); color: rgba(232,242,252,.82); display: flex; gap: .55rem; margin: 1.8rem 0 0; max-width: 360px; padding-top: 1rem; }
.badge20 strong { color: #6cc3ff; font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.js #inicio.hero-photo .hero-copy.reveal { opacity: 1; transform: none; }
.js #inicio.hero-photo .hero-enter-item {
  opacity: 0;
  transform: translateY(22px);
}
@media (prefers-reduced-motion: no-preference) {
  .js #inicio.hero-photo .hero-enter-item {
    animation: heroEnter .75s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: calc(var(--i, 0) * 110ms + 120ms);
  }
  .js #inicio.hero-photo .hero-photo-bg {
    animation: heroSettle 1.7s cubic-bezier(.22,1,.36,1) both;
  }
  .js #inicio.hero-photo .hero-fx .fx-beam-cold {
    animation: diagonalSweep 3.8s ease-in-out infinite;
  }
  .js #inicio.hero-photo .hero-fx .fx-beam-hot {
    animation: diagonalSweep 4.6s ease-in-out infinite;
    animation-delay: -1.8s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js #inicio.hero-photo .hero-enter-item { opacity: 1; transform: none; }
  .fx-beam { opacity: .35; animation: none !important; }
}
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroSettle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes diagonalSweep {
  0% { opacity: 0; transform: translate(-18%, 8%) rotate(0deg); }
  15% { opacity: .9; }
  50% { opacity: .75; }
  100% { opacity: 0; transform: translate(18%, -8%) rotate(0deg); }
}
@media (max-width: 759.98px) {
  #inicio.hero-photo { min-height: 82svh; padding: 7rem 1.2rem 2.4rem; }
  #inicio.hero-photo > .hero-photo-bg { object-position: 72% center; }
  #inicio.hero-photo > .hero-photo-scrim {
    background: linear-gradient(180deg, rgba(4,11,20,.72) 0%, rgba(4,11,20,.8) 55%, rgba(4,11,20,.92) 100%);
  }
}

/* linea de mercados en el home (enlaza comercial y residencial) */
.markets-line { color: var(--muted); margin: 1rem 0 0; }
.markets-line a { color: var(--orange-text); font-weight: 800; }
[data-theme="dark"] .markets-line { color: rgba(232,242,252,.72); }
