:root {
  /* Marca */
  --ink: #0f2030;
  --muted: #51555b;
  --line: #dcdfe2;
  --paper: #e8ebed;
  --paper-2: #dfe1e4;
  --white: #ffffff;
  --forest: #1A3050;
  --forest-2: #0E2245;
  --forest-3: #091833;
  --navy: #0E2245;
  --gold: #e05d38;
  --gold-soft: #ea7a52;
  --copper: #ea7a52;
  --cyan: #729916;
  --olive: #729916;
  --green-bright: #4FAE45;
  --steel: #5a5d61;
  --soft-steel: #9b9fa5;
  --sky: #e6e7e8;

  /* Glow / acentos futuristas */
  --glow-gold: rgba(224, 93, 56, 0.45);
  --glow-olive: rgba(114, 153, 22, 0.4);
  --glow-bright: rgba(79, 174, 69, 0.55);
  --hairline-dark: rgba(255, 255, 255, 0.1);
  --hairline-light: rgba(15, 32, 48, 0.1);

  /* Elevación */
  --shadow: 0 22px 60px rgba(15, 32, 48, 0.18);
  --shadow-sm: 0 10px 28px rgba(15, 32, 48, 0.1);
  --shadow-glow: 0 18px 40px rgba(224, 93, 56, 0.26);

  /* Radios */
  --radius: 10px;
  --radius-lg: 16px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 420ms;
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
  /* clip evita scroll horizontal SIN convertir al elemento en scroll container.
     Esto es CRITICO para que el header sticky funcione (overflow: hidden lo rompe). */
  overflow-x: clip;
  /* Fondo navy del documento: evita el "flash blanco" al navegar entre páginas
     (el lienzo del navegador, antes de pintar el body, queda navy = coincide con
     los heros oscuros, así la transición se ve limpia). */
  background-color: #0f2030;
  /* Formularios y controles nativos en esquema claro (el contenido es paper, no dark). */
  color-scheme: light;
}

/* Fondo institucional con patron topografico PROFESIONAL (curvas de nivel reales):
   Capas apiladas (de arriba a abajo en background-image):
     1) SVG externo assets/img/topo-pattern.svg — curvas de nivel extraidas de un
        campo de ruido procedural (suma de 14 armonicos 2D, 18 niveles de contorno,
        seed=42 determinista). Tile 700x700, ~126 paths organicos que forman
        isolineas e islas concentricas naturalmente. Color ink 0.22.
        Regenerable con: python /tmp/gen_topo_v3.py > assets/img/topo-pattern.svg
     2) Aura radial gold suave arriba-izquierda — calidez corporativa
     3) Aura radial navy suave abajo-derecha — profundidad geologica
     4) Color base --paper
   background-attachment: fixed da parallax natural sutil al hacer scroll. */
body {
  margin: 0;
  min-height: 100vh;
  /* clip en vez de hidden — mismo efecto visual pero NO rompe sticky del header */
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("../img/topo-pattern.svg?v=3"),
    radial-gradient(ellipse 60% 50% at 8% 12%, rgba(224, 93, 56, 0.07), transparent 60%),
    radial-gradient(ellipse 70% 60% at 92% 88%, rgba(14, 34, 69, 0.08), transparent 65%);
  background-size:
    480px 480px,
    100% 100%,
    100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
  /* SIN background-attachment: fixed — con 330+ paths SVG repetidos por todo el
     viewport, fixed obliga al navegador a repintar todo el patron en cada scroll,
     causando lag severo. El patron scrollea con la pagina (es lo natural). */
  font-family:
    "Source Sans 3", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

main {
  min-height: calc(100vh - 86px);
  min-height: calc(100dvh - 86px);
}

/* Indicador de scroll: ahora integrado como línea sutil en el borde inferior del header
   (z-index bajo el header para que no interrumpa la franja navy, color cobre suave). */
.scroll-progress {
  position: fixed;
  z-index: 29;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(224, 93, 56, 0.55), rgba(234, 122, 82, 0.35));
  box-shadow: 0 0 8px rgba(224, 93, 56, 0.25);
  transition: width 80ms linear;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Padding CONSTANTE — al transicionar padding-top/bottom el header cambia de altura
     causando reflow del contenido debajo (visible como "parpadeo" durante el scroll).
     Mantengo 14px para que el header siempre tenga la misma altura y la transicion
     entre estados sea solo de fondo/blur (GPU-acelerada, sin reflow). */
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-bottom: 14px;
  padding-left: max(clamp(18px, 4vw, 56px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(18px, 4vw, 56px), env(safe-area-inset-right, 0px));
  color: #ffffff;
  /* Fondo navy gradient: opaco por defecto. Backdrop-filter aplicado SIEMPRE con
     blur(0) para que la capa GPU ya este activa — al transicionar al estado scrolled
     solo cambia el valor del blur, no se "activa" la capa (eso causaba el flash). */
  /* Vertical (180deg): el borde inferior queda uniformemente en el navy más oscuro
     (#0a1828), que coincide con el inicio de la pluma de desvanecimiento de abajo →
     transición sin corte a lo ancho. */
  background:
    linear-gradient(180deg, #163552 0%, #0f2030 55%, #0a1828 100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  backdrop-filter: blur(0px) saturate(100%);
  border-bottom: 1px solid rgba(224, 93, 56, 0);
  /* ANTI-PARPADEO AL HOVER (Chromium bug con backdrop-filter):
     - translateZ(0): fuerza una capa GPU PERMANENTE para el header
       (sin esto, hover events en hijos pueden re-componer capas y mostrar
       un "fantasma" del estado anterior por 1-2 frames).
     - isolation: isolate: stacking context independiente — los compositing
       changes de hijos no afectan al header completo.
     - contain: layout style paint: aisla aun mas el repaint scope. */
  transform: translateZ(0);
  isolation: isolate;
  contain: layout style paint;
  /* Transiciones SOLO sobre propiedades GPU-aceleradas (background, blur, shadow, border-color)
     — NO sobre padding ni dimensiones. */
  transition:
    background var(--dur) var(--ease-out),
    -webkit-backdrop-filter var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out),
    border-bottom-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  will-change: background, backdrop-filter;
}

/* Pluma de integración LARGA: 40px de fade del mismo navy bajando al contenido.
   Más altura + curva exponencial = transición invisible entre header y hero. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  /* Pluma alta y muy gradual: el navy del header se desvanece dentro del hero
     sin borde perceptible (desvanecimiento suave, no corte), incluso sobre zonas
     claras del hero (cielo, roca clara). */
  height: 150px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #0a1828 0%,
    rgba(10, 24, 40, 0.94) 12%,
    rgba(10, 24, 40, 0.82) 26%,
    rgba(10, 24, 40, 0.64) 40%,
    rgba(10, 24, 40, 0.46) 54%,
    rgba(10, 24, 40, 0.3) 68%,
    rgba(10, 24, 40, 0.16) 82%,
    rgba(10, 24, 40, 0.06) 92%,
    rgba(10, 24, 40, 0) 100%
  );
}

/* Estado scrolled — TRANSICION SIN PARPADEO:
   Solo cambian propiedades compositables en GPU (background, blur, sombra, color de borde).
   El header MANTIENE su altura — sin reflow, sin "saltos" del contenido debajo. */
.site-header.is-scrolled {
  /* MISMO degradado que el estado base, pero translúcido (alpha 0.72). Mantener
     un linear-gradient con los mismos 3 stops permite que el navegador interpole
     degradado→degradado de forma suave. Si se cambiara a un color sólido (rgba),
     el background-image del degradado desaparecería de golpe y dejaría un instante
     casi transparente → destello blanco al hacer scroll. */
  background: linear-gradient(
    135deg,
    rgba(22, 53, 82, 0.72) 0%,
    rgba(15, 32, 48, 0.72) 50%,
    rgba(10, 24, 40, 0.72) 100%
  );
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
  border-bottom-color: rgba(224, 93, 56, 0.22);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

/* La pluma ::after siempre con la misma opacidad y geometria — no la transicionamos.
   Como el header es semitransparente cuando scrollea, el blur ya cubre la zona de la pluma. */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
  /* Filter base SIEMPRE presente (transparente) — al hacer hover SOLO cambia
     el valor del drop-shadow, NO se crea/destruye la capa GPU del filter.
     Sin esto, el hover destruye y recrea la capa, causando re-composicion
     del header completo y un parpadeo visible (el "fantasma" doble). */
  filter: drop-shadow(0 0 0 rgba(224, 93, 56, 0));
  transition: filter var(--dur) var(--ease-out);
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 6px 18px rgba(224, 93, 56, 0.45));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #ffffff;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.45vw, 24px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
}

.main-nav a:hover {
  color: var(--copper);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #ffffff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.hero-slider {
  position: relative;
  /* 86px = altura real del header con padding constante 14px + logo 58px.
     100dvh (dynamic viewport) considera barras dinamicas en mobile — fallback a 100vh. */
  min-height: calc(100vh - 86px);
  min-height: calc(100dvh - 86px);
  display: grid;
  color: var(--white);
  background: var(--forest-2);
  overflow: hidden;
  /* Full-bleed: anula el padding heredado de `section` para que la imagen
     (figure inset:0) llegue a los bordes. El texto conserva su padding propio
     en .hero-copy, así que no se pega a los bordes. */
  padding: 0;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, #000 0 42%, transparent 78%);
}

.hero-slide {
  position: relative;
  grid-area: 1 / 1;
  display: block;
  min-height: calc(100vh - 86px);
  min-height: calc(100dvh - 86px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Glow ambiental futurista detras del hero */
.hero-slider::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, var(--glow-gold), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--glow-olive), transparent 60%);
  filter: blur(40px);
  opacity: 0.55;
  animation: heroAura 14s var(--ease-in-out) infinite alternate;
}

@keyframes heroAura {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  100% {
    transform: translate3d(-6%, 5%, 0) scale(1.12);
    opacity: 0.62;
  }
}

.hero-copy {
  width: min(920px, calc(100% - 44px));
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 86px);
  min-height: calc(100dvh - 86px);
  /* Padding vertical REDUCIDO para que el hero entero quepa en el viewport sin scroll.
     Antes (clamp 84-148 + clamp 120-168) sumaba hasta 316px solo de padding vertical.
     Verificado en 1280x800 (laptop estandar): el hero completo cabe sin scroll. */
  padding: clamp(40px, 5vw, 64px) clamp(22px, 7vw, 98px) clamp(48px, 5.5vw, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.hero-copy .hero-h1 {
  max-width: 880px;
  margin-bottom: 22px;
  color: var(--ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1,
.hero-copy .hero-h1,
.page-hero.dark h1,
.page-hero.image h1,
.page-hero.work h1 {
  color: var(--white);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* H1 del hero principal: tamano REDUCIDO respecto al H1 global (88px max).
   Asi el titulo + chip + eyebrow + descripcion + CTAs + trust badges caben
   en una sola pantalla sin scroll en 1280x800 (laptop estandar) y arriba.
   Si quieres mas impacto en pantallas grandes (>1920) sube el cap a 64-72px. */
.hero-copy h1,
.hero-copy .hero-h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  margin-bottom: 14px;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p:not(.eyebrow) {
  max-width: 670px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.text-link {
  position: relative;
  width: fit-content;
  color: var(--forest);
  border-bottom: 3px solid var(--gold);
  font-weight: 900;
  padding-bottom: 8px;
  transition:
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.text-link::after {
  content: " →";
  display: inline-block;
  transition: transform var(--dur) var(--ease-out);
}

.text-link:hover {
  color: var(--copper);
}

.text-link:hover::after {
  transform: translateX(5px);
}

.hero-copy .text-link {
  color: var(--white);
}

.hero-slide figure {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  min-height: 0;
  padding: 0;
}

.hero-slide figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  transform: none;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 32, 48, 0.94) 0%, rgba(15, 32, 48, 0.7) 42%, rgba(15, 32, 48, 0.22) 78%),
    linear-gradient(180deg, rgba(15, 32, 48, 0.48) 0%, rgba(15, 32, 48, 0.12) 46%, rgba(15, 32, 48, 0.82) 100%);
}

.hero-slide figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 32%, rgba(224, 93, 56, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(114, 153, 22, 0.13), transparent 48%);
}

.hero-slide img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.08);
  transform: scale(1.04);
  transition: transform 6500ms ease;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.primary-button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  color: var(--white);
  background: linear-gradient(120deg, var(--gold), var(--copper));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Brillo que cruza el boton (sheen) */
.primary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.primary-button::after {
  content: "→";
  font-weight: 700;
  transition: transform var(--dur) var(--ease-out);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(224, 93, 56, 0.4);
}

.primary-button:hover::before {
  transform: translateX(120%);
}

.primary-button:hover::after {
  transform: translateX(4px);
}

.primary-button:active {
  transform: translateY(0) scale(0.98);
}

.slider-controls {
  position: absolute;
  z-index: 5;
  left: clamp(22px, 6vw, 86px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-controls button {
  position: relative;
  width: 42px;
  height: 5px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  overflow: hidden;
  transition: width var(--dur) var(--ease-out);
}

.slider-controls button::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--olive));
}

.slider-controls button.is-active {
  width: 64px;
}

.slider-controls button.is-active::after {
  width: 100%;
  transition: width 6.3s linear;
}

.hero-stats {
  position: absolute;
  z-index: 6;
  right: clamp(28px, 5vw, 72px);
  bottom: clamp(24px, 4vw, 58px);
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  width: min(520px, 48vw);
  background: rgba(15, 32, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-ribbon {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: 0;
  display: grid;
  gap: 1px;
  width: 58px;
  transform: translateY(-50%);
  background: rgba(238, 237, 237, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-ribbon span {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-ribbon span:first-child {
  color: var(--white);
  background: var(--gold);
}

.hero-stats div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.hero-stats div {
  position: relative;
  transition: background var(--dur) var(--ease-out);
}

.hero-stats div::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green-bright);
  box-shadow: 0 0 12px var(--glow-bright);
  animation: statPulse 2.6s var(--ease-in-out) infinite;
}

.hero-stats div:hover {
  background: rgba(224, 93, 56, 0.12);
}

@keyframes statPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero-stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.scroll-cue {
  position: absolute;
  z-index: 7;
  left: clamp(22px, 4vw, 70px);
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  background: var(--gold);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrollDot 1.4s ease-in-out infinite;
}

section {
  padding: clamp(66px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.purpose-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: end;
  color: var(--white);
  background: var(--forest-2);
}

.purpose-band p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(224, 93, 56, 0.15), transparent 42%),
    var(--forest-2);
}

.terrain-band {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 32, 48, 0.96), rgba(15, 32, 48, 0.62)),
    url("../img/operaciones/operaciones1.jpg")
      center/cover;
  box-shadow: var(--shadow);
}

.terrain-copy {
  padding: clamp(42px, 6vw, 72px);
}

.terrain-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.terrain-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.terrain-strip span {
  display: grid;
  min-height: 340px;
  place-items: end center;
  padding: 26px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Las 3 cintas se "pintan" de naranja siguiendo el stagger (definido en la sección de animaciones) */

.home-intro p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.home-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.home-grid a {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
  background: var(--forest);
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.home-grid a:nth-child(even) {
  background: var(--ink);
}

.home-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(126, 200, 189, 0.14), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.home-grid a {
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.home-grid a h3,
.home-grid a p {
  transition: color var(--dur) var(--ease-out);
}

.home-grid a:hover {
  z-index: 2;
  /* Sin translateY para evitar parpadeo en el borde; el cambio de fondo a gold
     + sombra ya comunican el hover con fuerza. */
  background: linear-gradient(135deg, var(--gold), var(--copper));
  box-shadow: 0 26px 60px rgba(224, 93, 56, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.home-grid a:hover::before {
  opacity: 1;
}

.home-grid a:hover h3 { color: var(--white); }
.home-grid a:hover p { color: rgba(255, 255, 255, 0.92); }

/* Marcador de esquina HUD que aparece en hover (blanco sobre naranja) */
.home-grid a::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.home-grid a:hover::after {
  opacity: 1;
  transform: translate(0, 0);
  border-top-color: var(--white);
  border-right-color: var(--white);
}

.home-grid a span {
  transition:
    color var(--dur) var(--ease-out),
    text-shadow var(--dur) var(--ease-out);
}

.home-grid a:hover span {
  color: var(--white);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.4);
}

.home-grid a > * {
  position: relative;
  z-index: 1;
}

.home-showcase,
.home-map-preview,
.home-split {
  max-width: 1160px;
  margin: 0 auto;
}

.home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 34px;
  align-items: stretch;
}

.showcase-copy {
  position: relative;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(234, 122, 82, 0.16), transparent 42%),
    var(--forest-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Esquinas tipo HUD en paneles oscuros */
.showcase-copy::before,
.next-section::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 26px;
  height: 26px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0.85;
}

.showcase-copy::after,
.next-section::after {
  content: "";
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-bottom: 2px solid var(--olive);
  border-right: 2px solid var(--olive);
  opacity: 0.85;
}

.showcase-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.showcase-copy .text-link {
  color: var(--white);
}

.showcase-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background:
    linear-gradient(rgba(23, 63, 50, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 63, 50, 0.07) 1px, transparent 1px),
    var(--white);
  background-size: 28px 28px;
}

.metric-card.wide {
  grid-column: span 2;
  min-height: 180px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(224, 93, 56, 0.28), transparent 42%),
    var(--ink);
}

.metric-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.home-map-preview {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(0, 0.95fr);
  gap: 42px;
  align-items: center;
}

.map-card.compact {
  min-height: 360px;
}

.minsur-map {
  isolation: isolate;
  background:
    linear-gradient(rgba(15, 32, 48, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 32, 48, 0.08) 1px, transparent 1px),
    #dde0e2;
  background-size: 42px 42px;
}

.map-layer {
  position: absolute;
  inset: 15% 20% 12% 22%;
  z-index: 1;
  background: rgba(38, 53, 70, 0.15);
  clip-path: polygon(42% 0, 62% 12%, 70% 30%, 64% 46%, 75% 68%, 55% 92%, 34% 100%, 20% 78%, 29% 54%, 15% 38%, 28% 18%);
}

.map-layer-two {
  inset: 26% 12% 22% 42%;
  background: rgba(224, 93, 56, 0.16);
  clip-path: polygon(28% 0, 70% 18%, 100% 58%, 54% 100%, 0 66%);
}

.map-pin.primary {
  left: 50%;
  top: 48%;
  z-index: 3;
  background: var(--ink);
}

.map-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  color: var(--white);
  background: var(--gold);
  box-shadow: var(--shadow);
}

.map-note span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.9;
}

.map-note strong {
  font-size: 18px;
}

.recruitment-feature {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(114, 153, 22, 0.22), transparent 46%),
    var(--ink);
  box-shadow: var(--shadow);
}

.recruitment-feature p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.home-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(70px, 9vw, 112px);
}

.home-split article {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(19, 32, 39, 0.08);
}

.home-split article.accent {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(224, 93, 56, 0.22), transparent 44%),
    var(--forest);
}

.home-split article.accent p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.home-split article.accent .text-link {
  color: var(--white);
}

.home-grid span,
.content-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.home-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section-heading,
.section-heading.narrow,
.why-grid,
.operation-cards,
.map-section,
.sustainability-grid,
.news-grid,
.work-section,
.content-grid,
.page-hero {
  max-width: 1160px;
  margin: 0 auto;
}

.page-hero,
.content-grid article,
.why-grid article,
.operation-cards article,
.news-grid article,
.apply-form,
.map-card {
  border-radius: 8px;
}

.page-hero {
  padding-top: clamp(84px, 11vw, 140px);
  padding-bottom: clamp(70px, 9vw, 112px);
}

/* Hero "trabaja con nosotros" más compacto que el genérico (caso con personaje a la derecha) */
.page-hero.work {
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(50px, 6.5vw, 84px);
  min-height: clamp(460px, 64vh, 620px);
}

/* Texto compactado a la izquierda (no se solapa con personaje y flechas a la derecha) */
.page-hero.work .hero-work-chip,
.page-hero.work > .eyebrow,
.page-hero.work > h1,
.page-hero.work > p:not(.eyebrow),
.page-hero.work > .hero-work-values {
  max-width: 46%;
}

.page-hero.work > h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
}

.page-hero.work > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.55;
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  font-size: 20px;
}

/* Reveal del page-hero (izq → der) — transitions reversibles para re-disparar al volver a viewport */
.page-hero .eyebrow {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.page-hero.is-visible .eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.page-hero h1 {
  opacity: 0;
  transform: translateX(-30px);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 900ms var(--ease-out) 120ms,
    transform 900ms var(--ease-out) 120ms,
    clip-path 900ms var(--ease-out) 120ms;
}
.page-hero.is-visible h1 {
  opacity: 1;
  transform: translateX(0);
  clip-path: inset(0 0 0 0);
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 140px;
  height: 4px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-out) 900ms;
  box-shadow: 0 0 18px var(--glow-gold);
}
.page-hero.is-visible h1::after {
  transform: scaleX(1);
}

.page-hero p:not(.eyebrow) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out) 700ms, transform 700ms var(--ease-out) 700ms;
}
.page-hero.is-visible p:not(.eyebrow) {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero h1::after,
  .page-hero p:not(.eyebrow) {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

.page-hero.dark,
.page-hero.image,
.page-hero.work {
  position: relative;
  overflow: hidden;
}

/* Rejilla HUD + aura en heros internos oscuros */
.page-hero.dark::before,
.page-hero.image::before,
.page-hero.work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000 0 45%, transparent 82%);
}

.page-hero.dark::after,
.page-hero.image::after,
.page-hero.work::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto -8% -40% auto;
  width: 50vw;
  height: 50vw;
  max-width: 560px;
  max-height: 560px;
  pointer-events: none;
  background:
    radial-gradient(circle at 40% 40%, var(--glow-gold), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--glow-olive), transparent 60%);
  filter: blur(46px);
  opacity: 0.5;
}

.page-hero.dark > *,
.page-hero.image > *,
.page-hero.work > * {
  position: relative;
  z-index: 1;
}

/* FONDO AZUL CORPORATIVO UNIFICADO para TODOS los heros secundarios.
   Mismo gradient navy que el header → coherencia visual de marca.
   Las variantes (.dark / .image / .work) heredan el mismo fondo;
   solo cambian las decoraciones internas (operario en .work, etc). */
.page-hero.dark,
.page-hero.image,
.page-hero.work {
  max-width: none;
  margin: 0;
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, #163552 0%, #0f2030 50%, #0a1828 100%);
  /* IMPORTANTE: full-width, sin esquinas redondeadas.
     `.page-hero` base hereda border-radius: 8px (grupo de tarjetas), pero en heros
     full-width esos 8px en las esquinas superiores dejan ver el fondo cream del body
     justo debajo del header → se ve como "destello blanco" o franja clara. */
  border-radius: 0;
}

.page-hero.dark p:not(.eyebrow),
.page-hero.image p:not(.eyebrow),
.page-hero.work p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

/* OPCION CON FOTO: agregar .with-photo + data-hero-image="./ruta.jpg" al <section>.
   Ejemplo: <section class="page-hero dark with-photo" data-hero-image="./assets/img/hero/mi-foto.jpg">
   La URL se aplica por JS leyendo data-hero-image y seteando --hero-photo
   (ver script.js bloque "Heros con foto opcional").
   Para invertir el fade: agregar tambien .photo-left (foto a la izquierda, texto a la derecha). */
.page-hero.with-photo {
  background:
    linear-gradient(90deg,
      rgba(15, 32, 48, 0.92) 0%,
      rgba(15, 32, 48, 0.86) 18%,
      rgba(15, 32, 48, 0.72) 36%,
      rgba(15, 32, 48, 0.52) 54%,
      rgba(15, 32, 48, 0.3) 72%,
      rgba(15, 32, 48, 0.12) 88%,
      rgba(15, 32, 48, 0) 100%),
    var(--hero-photo, none) center/cover no-repeat,
    linear-gradient(135deg, #163552 0%, #0f2030 50%, #0a1828 100%);
}

.page-hero.with-photo.photo-left {
  background:
    linear-gradient(270deg,
      rgba(15, 32, 48, 0.92) 0%,
      rgba(15, 32, 48, 0.86) 18%,
      rgba(15, 32, 48, 0.72) 36%,
      rgba(15, 32, 48, 0.52) 54%,
      rgba(15, 32, 48, 0.3) 72%,
      rgba(15, 32, 48, 0.12) 88%,
      rgba(15, 32, 48, 0) 100%),
    var(--hero-photo, none) center/cover no-repeat,
    linear-gradient(135deg, #163552 0%, #0f2030 50%, #0a1828 100%);
}

.page-hero.image > div {
  max-width: 1160px;
  margin: 0 auto;
}

.page-hero.image p:not(.eyebrow),
.page-hero.work p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.content-grid {
  display: grid;
  gap: 18px;
}

.content-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid article {
  position: relative;
  min-height: 250px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(224, 93, 56, 0.04), rgba(255, 255, 255, 1) 40%),
    var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(19, 32, 39, 0.08);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.content-grid article h3,
.content-grid article p,
.content-grid article span {
  transition: color var(--dur) var(--ease-out);
}

.content-grid article:hover {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--white);
  box-shadow: 0 26px 50px rgba(224, 93, 56, 0.32);
}

.content-grid article:hover h3,
.content-grid article:hover p,
.content-grid article:hover span {
  color: var(--white);
}

.content-grid article:hover::before {
  background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0.5));
}

/* Linea de acento superior que se despliega en hover */
.content-grid article::before,
.news-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.content-grid article:hover::before,
.news-grid article:hover::before {
  transform: scaleX(1);
}

.content-grid article:hover,
.why-grid article,
.operation-cards article,
.news-grid article {
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.why-grid article h3,
.why-grid article p,
.why-grid article span,
.news-grid article h3,
.news-grid article p,
.news-grid article span,
.operation-cards article h3,
.operation-cards article p {
  transition: color var(--dur) var(--ease-out);
}

.why-grid article:hover,
.operation-cards article:hover,
.news-grid article:hover {
  /* Sin translateY (evita parpadeo de hover en el borde); fondo + sombra bastan. */
  background: linear-gradient(135deg, var(--gold), var(--copper));
  box-shadow: 0 26px 50px rgba(224, 93, 56, 0.32);
}

.why-grid article:hover h3,
.why-grid article:hover p,
.why-grid article:hover span,
.news-grid article:hover h3,
.news-grid article:hover p,
.news-grid article:hover span,
.operation-cards article:hover h3,
.operation-cards article:hover p {
  color: var(--white);
}

.page-grid {
  margin-top: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.narrow {
  display: block;
  max-width: 780px;
  margin-bottom: 34px;
  text-align: center;
}

/* Variante con espacio superior amplio (reemplaza inline style en noticias.html) */
.section-heading--gap-lg {
  margin-top: clamp(50px, 7vw, 80px);
}

.section-heading.narrow p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 680px;
}

.why-section {
  background: var(--paper);
}

.why-grid,
.operation-cards,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why-grid article,
.operation-cards article,
.sustainability-grid article,
.news-grid article,
.apply-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(19, 32, 39, 0.08);
}

.news-grid article,
.operation-cards article {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.why-grid article {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-top: 5px solid var(--gold);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.why-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 93, 56, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.why-grid article:hover::after {
  opacity: 1;
}

.why-grid span,
.news-grid span {
  color: var(--copper);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.operations-section {
  background: var(--white);
}

.operation-cards article {
  overflow: hidden;
}

.operation-cards img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.operation-cards h3,
.operation-cards p {
  margin-left: 26px;
  margin-right: 26px;
}

.operation-cards h3 {
  margin-top: 24px;
}

.operation-cards p {
  margin-bottom: 28px;
}

.map-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  align-items: stretch;
}

.map-card {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 48%, rgba(201, 154, 46, 0.7) 0 7px, transparent 8px),
    linear-gradient(90deg, rgba(23, 63, 50, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(23, 63, 50, 0.14) 1px, transparent 1px), var(--sky);
  background-size: auto, 42px 42px, 42px 42px;
  border: 1px solid var(--line);
}

.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-100%);
  animation: scan 5.5s ease-in-out infinite;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 12% 18% 12% 28%;
  background: rgba(23, 63, 50, 0.12);
  clip-path: polygon(45% 0, 60% 12%, 70% 32%, 62% 48%, 72% 66%, 56% 86%, 40% 100%, 28% 82%, 32% 58%, 18% 42%, 30% 22%);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  color: var(--white);
  background: var(--forest);
  transform: translate(-10%, -50%);
  box-shadow: var(--shadow);
}

.map-pin span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

/* ====================== MAPA DEL PERÚ (SVG) ====================== */
.peru-map-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: transform var(--dur) var(--ease-out);
}

.peru-map-link:hover {
  transform: translateY(-3px);
}

.peru-map-link:hover .peru-map-container {
  box-shadow: 0 28px 60px rgba(224, 93, 56, 0.32);
  border-color: rgba(224, 93, 56, 0.5);
}

.peru-map-link:hover .peru-map-cta {
  background: var(--gold);
  transform: translateX(0);
  opacity: 1;
}

.peru-map-container {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(224, 93, 56, 0.15), transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(79, 174, 69, 0.08), transparent 50%),
    var(--forest-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 24px 24px 70px;
  transition:
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.peru-map-cta {
  position: absolute;
  top: 18px;
  right: 60px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(224, 93, 56, 0.85);
  color: var(--white);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(224, 93, 56, 0.45);
  transform: translateX(8px);
  opacity: 0.92;
  transition:
    transform var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.peru-map {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

.peru-map-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  padding: 10px 14px;
  background: rgba(15, 32, 48, 0.94);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  color: var(--white);
  font-size: 12.5px;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.peru-map-note span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.peru-map-note strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

/* En map-section (que-hacemos.html) — sin altura extra, encaja en el grid */
.map-section .peru-map-container {
  min-height: 480px;
}

/* ======================= MAPA ESTILO MINSUR (.ops-map) =======================
   Layout: encabezado superior + grid 2-col [SVG | panel de operaciones].
   Estética: dark navy + acentos naranja, minimalista corporativo. */
.ops-map {
  max-width: 1160px;
  margin: clamp(48px, 7vw, 96px) auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.ops-map-heading {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.ops-map-heading h2 {
  margin-top: 6px;
  margin-bottom: 12px;
}

.ops-map-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.ops-map-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

/* Lienzo del SVG: dark navy + glow sutil, sin "esquinas HUD" agresivas */
.ops-map-svg-wrap {
  position: relative;
  display: block;
  min-height: 460px;
  padding: clamp(20px, 3vw, 36px);
  color: inherit;
  text-decoration: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(224, 93, 56, 0.10), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(15, 32, 48, 0.45), transparent 60%),
    linear-gradient(155deg, #142a44 0%, #0f2030 55%, #0a1828 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition:
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.ops-map-svg-wrap:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 93, 56, 0.35);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
}

.ops-map-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ops-map-cta {
  position: absolute;
  right: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(224, 93, 56, 0.85);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(224, 93, 56, 0.35);
  opacity: 0.94;
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.ops-map-svg-wrap:hover .ops-map-cta {
  opacity: 1;
  transform: translateX(-4px);
  background: var(--gold);
}

/* =================== MAPA INSTITUCIONAL (silueta Peru navy + departamentos cobre) =================== */
/* Reemplazo del SVG dibujado por imagen PNG (mapa.png) con silueta del Peru y departamentos
   en paleta corporativa, fondo transparente. Pin animado y callout overlay HTML/CSS.
   Estructura:
     <a class="ops-map-svg-wrap ops-map-real">
       <img class="ops-map-image" src="mapa.png" />
       <span class="ops-map-pin"><pulse><dot></span>
       <span class="ops-map-callout">SAN LUIS II / Sancos</span>
       <span class="ops-map-lima">. Lima</span>
       <span class="ops-map-cta">Ver en Google Maps</span>
     </a>
   Posiciones calculadas desde bbox real de la silueta en mapa.png (x[28.2-71.6%], y[3.2-94.1%])
   mapeado a coords geograficas Peru (lat -0.05 a -18.35, lon -81.33 a -68.65). */

/* Wrap del mapa real con efectos dinamicos:
   - Aspect ratio fijo (1536/1024 = 1.5) para que el pin caiga exactamente sobre la silueta
   - Fondo semi-transparente que deja ver el patron topografico del body
   - Glow ambiental rotando (gold + olive) en una capa ::before
   - Grid HUD sutil en una capa adicional
   - Esquinas decorativas estilo cartografia (4 corchetes cobre) */
.ops-map-real {
  padding: 0;
  aspect-ratio: 1536 / 1024;
  min-height: 0;
  max-height: 620px;
  display: block;
  /* Fondo SEMITRANSPARENTE — el patron topo del body se ve atras */
  background:
    linear-gradient(155deg,
      rgba(20, 42, 68, 0.78) 0%,
      rgba(15, 32, 48, 0.82) 55%,
      rgba(10, 24, 40, 0.85) 100%);
  /* Blur ligero del background para que el patron topo se difumine atras */
  -webkit-backdrop-filter: blur(2px) saturate(120%);
  backdrop-filter: blur(2px) saturate(120%);
  isolation: isolate;
}

/* Capa 1: glow ambiental rotando — da sensacion de "vida" al fondo */
.ops-map-real::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 105, 6, 0.22), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(114, 153, 22, 0.18), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 136, 13, 0.10), transparent 65%);
  filter: blur(30px);
  animation: opsMapAura 18s var(--ease-in-out) infinite alternate;
}

/* Capa 2: rejilla HUD sutil + esquinas tipo cartografia */
.ops-map-real::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  pointer-events: none;
  /* Grid hairline + 4 esquinas tipo corchete cobre */
  background:
    /* Grid horizontal */
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    /* Grid vertical */
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    /* Esquinas top-left */
    linear-gradient(rgba(232, 105, 6, 0.65), rgba(232, 105, 6, 0.65)) top left / 18px 1.5px no-repeat,
    linear-gradient(rgba(232, 105, 6, 0.65), rgba(232, 105, 6, 0.65)) top left / 1.5px 18px no-repeat,
    /* Esquinas top-right */
    linear-gradient(rgba(232, 105, 6, 0.65), rgba(232, 105, 6, 0.65)) top right / 18px 1.5px no-repeat,
    linear-gradient(rgba(232, 105, 6, 0.65), rgba(232, 105, 6, 0.65)) top right / 1.5px 18px no-repeat,
    /* Esquinas bottom-left */
    linear-gradient(rgba(232, 105, 6, 0.65), rgba(232, 105, 6, 0.65)) bottom left / 18px 1.5px no-repeat,
    linear-gradient(rgba(232, 105, 6, 0.65), rgba(232, 105, 6, 0.65)) bottom left / 1.5px 18px no-repeat,
    /* Esquinas bottom-right */
    linear-gradient(rgba(232, 105, 6, 0.65), rgba(232, 105, 6, 0.65)) bottom right / 18px 1.5px no-repeat,
    linear-gradient(rgba(232, 105, 6, 0.65), rgba(232, 105, 6, 0.65)) bottom right / 1.5px 18px no-repeat;
  background-size:
    44px 44px,
    44px 44px,
    /* las 8 esquinas mantienen su size ya definido arriba */
    18px 1.5px, 1.5px 18px,
    18px 1.5px, 1.5px 18px,
    18px 1.5px, 1.5px 18px,
    18px 1.5px, 1.5px 18px;
  /* Mask sutil para que el grid se desvanezca hacia los bordes */
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, #000 50%, transparent 95%);
  mask-image: radial-gradient(ellipse 90% 90% at center, #000 50%, transparent 95%);
}

@keyframes opsMapAura {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); opacity: 0.55; }
  50%  { transform: translate3d(2%, 1%, 0) rotate(8deg) scale(1.08); opacity: 0.75; }
  100% { transform: translate3d(3%, 3%, 0) rotate(-4deg) scale(1.04); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .ops-map-real::before { animation: none; }
}

.ops-map-image {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  object-fit: contain;
  object-position: center;
  /* Drop-shadow sutil para que la silueta del Peru "flote" sobre el fondo dinamico */
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(232, 105, 6, 0.18));
  /* Animacion sutil de "respiracion" — el mapa se mueve muy ligeramente */
  animation: opsMapBreath 9s var(--ease-in-out) infinite alternate;
}

@keyframes opsMapBreath {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.012); }
}

@media (prefers-reduced-motion: reduce) {
  .ops-map-image { animation: none; }
}

/* Pin pulsante de Sancos (Minera San Luis II) — calculado para mapa.png en 53.92% / 74.35% */
.ops-map-pin {
  position: absolute;
  left: 53.92%;
  top: 74.35%;
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
}

.ops-map-pin-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 105, 6, 0.85) 0%, rgba(232, 105, 6, 0) 70%);
  animation: opsMapPinPulse 2.4s ease-out infinite;
}

@keyframes opsMapPinPulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}

.ops-map-pin-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: var(--gold);
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 105, 6, 0.4);
}

/* Callout "SAN LUIS II / Sancos · Lucanas" con linea hacia el pin.
   Posicionado a la derecha del pin (que esta en 53.92%/74.35%). */
.ops-map-callout {
  position: absolute;
  left: 66%;
  top: 65%;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: rgba(15, 32, 48, 0.94);
  border: 1.5px solid rgba(232, 105, 6, 0.7);
  border-radius: 4px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.ops-map-callout strong {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.ops-map-callout small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

/* Linea punteada entre callout y pin (dibujada con borde + posicion absoluta) */
.ops-map-callout::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 34px;
  height: 0;
  border-top: 1.5px dashed rgba(232, 105, 6, 0.8);
}

/* Marcador de Lima (referencia capital) — calculado para mapa.png en 42.87% / 62.82% */
.ops-map-lima {
  position: absolute;
  left: 42.87%;
  top: 62.82%;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ops-map-lima-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 1.5px solid rgba(15, 32, 48, 0.7);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.ops-map-lima-label {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translate(-100%, -50%);
  color: rgba(255, 255, 255, 0.95);
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .ops-map-pin-pulse { animation: none; }
}

/* Panel lateral tipo Minsur: ficha de operación */
.ops-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 3vw, 36px);
  background: #ffffff;
  border: 1px solid rgba(15, 32, 48, 0.08);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(15, 32, 48, 0.08);
}

.ops-list header {
  border-bottom: 1px solid rgba(15, 32, 48, 0.08);
  padding-bottom: 18px;
}

.ops-list-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(224, 93, 56, 0.10);
  border-radius: 3px;
}

.ops-list header h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.15;
}

.ops-list-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ops-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin: 0;
}

.ops-meta > div { display: flex; flex-direction: column; gap: 4px; }

.ops-meta dt {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ops-meta dd {
  margin: 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ops-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.ops-list .text-link {
  align-self: flex-start;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .ops-map-layout { grid-template-columns: 1fr; }
  .ops-map-svg-wrap { min-height: 360px; }
  .ops-meta { grid-template-columns: 1fr; gap: 14px; }
}

.sustainability-section {
  background: var(--forest-2);
  color: var(--white);
}

.sustainability-section p {
  color: rgba(255, 255, 255, 0.72);
}

.sustainability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.sustainability-grid article {
  min-height: 230px;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(160deg, #14304a 0%, #0f2030 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 44px rgba(15, 32, 48, 0.18);
}

.sustainability-grid article:nth-child(even) {
  background: linear-gradient(160deg, #163554 0%, #0f2433 100%);
}

.sustainability-grid article h3 {
  color: var(--white);
}

.sustainability-grid article p {
  color: rgba(255, 255, 255, 0.78);
}

.sustainability-grid article {
  cursor: default;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.sustainability-grid article h3,
.sustainability-grid article p {
  transition: color var(--dur) var(--ease-out);
}

.sustainability-grid article:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--gold), var(--copper));
  box-shadow: 0 22px 44px rgba(224, 93, 56, 0.4);
}

.sustainability-grid article:hover h3,
.sustainability-grid article:hover p {
  color: var(--white);
}

.news-section {
  background: var(--paper);
}

/* ============================================================
   FUSION GIXUS + BARNIX: Hero chip · ghost button · trust badges ·
   features-grid 3-col · KPI band big-numbers
   ============================================================ */

/* ----- Hero chip (badge superior con punto pulsante) ----- */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 32, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero-chip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: heroChipPulse 1.8s var(--ease-in-out) infinite;
}

@keyframes heroChipPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chip-dot { animation: none; }
}

/* ----- Ghost button (CTA secundario outline blanco) ----- */
.ghost-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  color: #ffffff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.ghost-button svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.ghost-button:hover svg {
  transform: translateX(4px);
}

/* ----- Hero trust badges (mini-stats junto al CTA) ----- */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
}

.hero-trust-item strong {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.hero-trust-item span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* ----- Features-grid: 3 cards con ícono SVG (patrón Gixus) ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1160px;
  margin: clamp(40px, 6vw, 72px) auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.feature-card {
  position: relative;
  padding: 38px 28px 30px;
  background: linear-gradient(170deg, #ffffff 0%, #faf8f3 100%);
  border: 1px solid rgba(15, 32, 48, 0.08);
  border-radius: 6px;
  box-shadow: 0 22px 50px rgba(15, 32, 48, 0.06);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.feature-card:hover {
  /* Sin desplazamiento (translateY): mover la caja saca el área de hover de
     debajo del cursor en el borde y produce parpadeo. El realce se logra con
     una sombra más marcada + borde, sin mover la tarjeta. */
  box-shadow: 0 34px 70px rgba(15, 32, 48, 0.16);
  border-color: rgba(224, 93, 56, 0.28);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  color: var(--copper);
  background: linear-gradient(160deg, rgba(224, 93, 56, 0.14), rgba(224, 93, 56, 0.04));
  border-radius: 4px;
  transition:
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(160deg, var(--gold), var(--copper));
  color: #ffffff;
  transform: rotate(-4deg) scale(1.05);
}

.feature-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.feature-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  padding: 6px 12px;
  color: var(--copper);
  background: rgba(224, 93, 56, 0.1);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ----- KPI band: big-numbers stats (patrón Barnix) ----- */
.kpi-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1160px;
  margin: clamp(20px, 4vw, 40px) auto clamp(60px, 8vw, 100px);
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(15, 32, 48, 0.06);
  border: 1px solid rgba(15, 32, 48, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.kpi-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 28px;
  background: #ffffff;
  transition:
    background var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.kpi-item::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 26px;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  transition: width var(--dur-slow) var(--ease-out);
}

.kpi-item:hover {
  background: linear-gradient(160deg, #fffaf2, #ffffff);
}

.kpi-item:hover::after {
  width: 60px;
}

.kpi-item strong {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.kpi-item em {
  color: var(--copper);
  font-style: normal;
  font-size: 0.6em;
  font-weight: 900;
  margin-left: 2px;
}

.kpi-item span {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .kpi-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .kpi-band { grid-template-columns: 1fr; }
  .hero-trust { gap: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .ghost-button { justify-content: center; }
}

/* ======================= TRABAJA HERO: AVATAR MINERO ======================= */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-hero.work {
  position: relative;
  overflow: hidden;
}

/* Chip superior (mismo estilo que home hero-chip pero variante work) */
.hero-work-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 32, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-work-chip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: heroChipPulse 1.8s var(--ease-in-out) infinite;
}

/* Lista de valores en línea (substituye a las cintas) */
.hero-work-values {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-work-values span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-work-values strong {
  color: var(--gold);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* Avatar minero a la derecha con fade-out gradient hacia la izquierda
   (selector específico para vencer al genérico .page-hero.work > *).
   z-index: 6 — el operario va POR ENCIMA de las flechas para que parezcan emerger detrás de él. */
.page-hero.work > .hero-work-worker {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  margin: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

/* SVG cutout / imagen PNG con fondo transparente: se ve flotando, sin máscaras.
   Centrado al centro-derecha; los inicios de las flechas quedan tapados por el cuerpo. */
.hero-work-worker .hww-svg,
.hero-work-worker img {
  position: absolute;
  top: 50%;
  right: 30%;
  height: 100%;
  width: auto;
  max-height: none;
  transform: translateY(-50%);
  /* Drop-shadow para elevar el cutout sobre el hero */
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.55))
          drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: workerFloat 9s var(--ease-in-out) infinite alternate;
}

/* Cuando se use foto raster con fondo no transparente, sí aplicar máscara */
.hero-work-worker img:not([data-cutout]) {
  height: 118%;
  right: -4%;
  object-fit: cover;
  object-position: center 18%;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 95% at 60% 50%,
    #000 35%,
    rgba(0, 0, 0, 0.92) 55%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.18) 88%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 70% 95% at 60% 50%,
    #000 35%,
    rgba(0, 0, 0, 0.92) 55%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.18) 88%,
    transparent 100%
  );
}

@keyframes workerFloat {
  0% { transform: translateY(-50%) scale(1); }
  100% { transform: translateY(-51%) scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-work-worker img { animation: none; }
}

/* Halo naranja detrás del avatar para integración HUD */
.hero-work-glow {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 70%;
  height: 80%;
  background:
    radial-gradient(circle at 60% 40%, rgba(224, 93, 56, 0.22), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(234, 122, 82, 0.14), transparent 60%);
  filter: blur(30px);
  opacity: 0.85;
  pointer-events: none;
}

/* Sin gradient bloqueante: el cutout PNG/SVG no necesita oscurecer el lado izquierdo */
.hero-work-worker::before { display: none; }

@media (max-width: 900px) {
  .hero-work-worker {
    position: relative;
    width: 100%;
    height: 360px;
    margin-top: 28px;
  }
  .hero-work-worker img {
    right: 0;
    height: 110%;
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      rgba(0, 0, 0, 0.7) 70%,
      rgba(0, 0, 0, 0.25) 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0%,
      rgba(0, 0, 0, 0.7) 70%,
      rgba(0, 0, 0, 0.25) 92%,
      transparent 100%
    );
  }
  .hero-work-worker::before {
    background: linear-gradient(180deg, rgba(15, 32, 48, 0.6) 0%, rgba(15, 32, 48, 0) 50%);
  }
}

/* Cintas diagonales reemplazadas por avatar minero — código previo retirado */

/* ======================= BACKDROP SHAPES VIZEON-STYLE =======================
   Capas decorativas detrás del operario: blob naranja grande + anillo +
   dots pattern + acento triangular. Crea el look corporativo "hero theme". */
.page-hero.work > .hero-work-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Blob naranja: forma orgánica gigante detrás del minero, como un "spotlight" sólido */
.hws-blob {
  position: absolute;
  top: -8%;
  right: -10%;
  width: 78%;
  height: 110%;
  background:
    radial-gradient(circle at 40% 40%, rgba(224, 93, 56, 0.42), rgba(224, 93, 56, 0.18) 50%, transparent 75%),
    radial-gradient(circle at 60% 60%, rgba(234, 122, 82, 0.28), transparent 60%);
  border-radius: 56% 44% 60% 40% / 50% 60% 40% 50%;
  filter: blur(6px);
  animation: blobMorph 18s var(--ease-in-out) infinite alternate;
}

@keyframes blobMorph {
  0%   { border-radius: 56% 44% 60% 40% / 50% 60% 40% 50%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 44% 56% 40% 60% / 60% 50% 50% 40%; transform: rotate(8deg) scale(1.04); }
}

/* Anillo outline arriba a la derecha, accent HUD */
.hws-ring {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 130px;
  height: 130px;
  border: 2px dashed rgba(224, 93, 56, 0.55);
  border-radius: 50%;
  animation: ringSpin 20s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* Patrón de puntos: rejilla decorativa abajo-izquierda del shapes */
.hws-dots {
  position: absolute;
  bottom: 12%;
  left: 4%;
  width: 120px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.5px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.7;
}

/* Triángulo sólido decorativo */
.hws-tri {
  position: absolute;
  top: 38%;
  right: 14%;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 30px solid rgba(234, 122, 82, 0.7);
  transform: rotate(18deg);
  animation: triFloat 7s var(--ease-in-out) infinite alternate;
}

@keyframes triFloat {
  0%   { transform: rotate(18deg) translateY(0); }
  100% { transform: rotate(22deg) translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hws-blob, .hws-ring, .hws-tri { animation: none; }
}

@media (max-width: 900px) {
  .hero-work-shapes { display: none; }
}

/* ======================= FLECHAS DE VALORES =======================
   4 flechas horizontales naranjas. ARRANCAN detrás del cuerpo del operario
   (alrededor del 50% del hero) y se extienden hacia la derecha apuntando con la punta.
   z-index: 3 — debajo del avatar (z-index 6) para que el operario las tape parcialmente. */
.page-hero.work > .hero-work-arrows {
  position: absolute;
  top: 18%;
  /* Arrancan completamente DENTRO del cuerpo del operario (left:62%) y desvanecen
     su borde izquierdo con mask-image para que no se vea ningún "rabito" en zonas
     transparentes del PNG (entre brazos, sobre hombros). */
  left: 62%;
  right: 2%;
  height: 70%;
  z-index: 3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 8%,
    rgba(0, 0, 0, 0.8) 18%,
    #000 28%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 8%,
    rgba(0, 0, 0, 0.8) 18%,
    #000 28%
  );
}

.hero-arrow {
  position: absolute;
  left: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  /* Label justo antes del chevron (en la zona visible de la flecha, después del cuerpo) */
  justify-content: flex-end;
  height: 56px;
  padding: 0 60px 0 20px;
  /* Flecha: rectángulo con punta hacia la derecha */
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%);
  background: linear-gradient(90deg,
    rgba(224, 93, 56, 0.85) 0%,
    #e05d38 25%,
    #ea7a52 70%,
    #ee7a07 100%);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 700ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.hero-arrow > span {
  color: #ffffff;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* 4 flechas a alturas distintas. Todas inician en left:0 del contenedor
   (= 56% del hero, detrás del torso del operario) y terminan dentro del contenedor
   (que va hasta right:14%, mismo borde derecho del PNG). Nunca pasan el cuerpo. */
.hero-arrow-1 { top: 0%;   width: 100%; transition-delay: 200ms; }
.hero-arrow-2 { top: 26%;  width: 100%; transition-delay: 380ms; }
.hero-arrow-3 { top: 52%;  width: 100%; transition-delay: 560ms; }
.hero-arrow-4 { top: 78%;  width: 100%; transition-delay: 740ms; }

.page-hero.work.is-visible .hero-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  .hero-work-arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-arrow {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ======================= NEWS HERO (carrusel hero-sized) ======================= */
.news-hero {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(70px, 9vw, 110px);
  padding-bottom: clamp(50px, 7vw, 90px);
  position: relative;
}

/* Foto de la noticia activa cubriendo TODO el hero (la setea el JS en --news-photo),
   con la capa navy semitransparente encima (degradado suave) para legibilidad. */
.page-hero.dark.news-hero {
  background:
    linear-gradient(90deg,
      rgba(15, 32, 48, 0.92) 0%,
      rgba(15, 32, 48, 0.86) 18%,
      rgba(15, 32, 48, 0.72) 36%,
      rgba(15, 32, 48, 0.52) 54%,
      rgba(15, 32, 48, 0.3) 72%,
      rgba(15, 32, 48, 0.12) 88%,
      rgba(15, 32, 48, 0) 100%),
    var(--news-photo, none) center / cover no-repeat,
    linear-gradient(135deg, #163552 0%, #0f2030 50%, #0a1828 100%);
}

.news-hero .news-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-family: Montserrat, "Segoe UI", sans-serif;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.news-hero .news-hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--glow-gold);
  animation: tickerPulse 1.6s ease-in-out infinite;
  flex: 0 0 11px;
}

.news-hero .news-hero-eyebrow strong {
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.news-hero .news-hero-eyebrow > span:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Source Sans 3", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-hero-carousel {
  position: relative;
  min-height: 460px; /* aumentado para títulos largos sin solapar */
  z-index: 2;
}

.news-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
}

.news-hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.news-hero-slide-image {
  position: absolute;
  top: 0;
  /* Full-bleed a la derecha: cancela el padding horizontal del .page-hero
     (clamp(18px,5vw,72px)) para que la imagen llegue al borde del viewport. */
  right: calc(-1 * clamp(18px, 5vw, 72px));
  width: 62%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
  /* Degradado: transparente del lado del texto, opaco del lado derecho */
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 30%, black 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 30%, black 75%);
}

.news-hero-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  height: 100%;
  justify-content: flex-start; /* arranca desde arriba para no solapar con eyebrow */
  padding-top: 8px;
}

@media (max-width: 760px) {
  .news-hero-slide-image {
    width: 100%;
    right: 0;
    opacity: 0.22;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, black 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, black 100%);
  }
  .news-hero-slide-content {
    max-width: 100%;
  }
}

.news-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  color: var(--white);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 14px 30px var(--glow-gold);
}

/* Sobreescribe el h1 animado de .page-hero — aquí cambia dinámicamente, sin clip-path */
.news-hero .news-hero-title {
  margin: 0;
  max-width: 720px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px); /* reducido para respetar layout en títulos largos */
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--white);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  /* Override de las transiciones del .page-hero h1 base */
  transition: none;
  clip-path: none;
  transform: none;
  opacity: 1;
  animation: none;
}

.news-hero .news-hero-title::after {
  display: none; /* anula la línea oro→oliva del h1 estándar */
}

.news-hero-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}

.news-hero-title a:hover {
  color: var(--gold);
}

.news-hero .news-hero-desc {
  margin: 0;
  max-width: 760px;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  /* Override page-hero p */
  animation: none;
  transition: none;
  opacity: 1;
  transform: none;
}

.news-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 6px;
  padding-bottom: 8px;
  color: var(--white);
  border-bottom: 3px solid var(--gold);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.news-hero-link::after {
  content: "→";
  font-size: 18px;
  transition: transform var(--dur) var(--ease-out);
}

.news-hero-link:hover {
  color: var(--gold);
}

.news-hero-link:hover::after {
  transform: translateX(6px);
}

.news-hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 44px);
  z-index: 2;
  position: relative;
}

.news-hero-controls button {
  width: 36px;
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
  transition:
    width var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.news-hero-controls button.is-active {
  width: 64px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
}

.news-hero-controls button:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 760px) {
  .news-hero-carousel {
    min-height: 460px;
  }
}

/* ======================= NEWS TICKER (carrusel de destacadas) ======================= */
.news-ticker {
  max-width: 1160px;
  margin: 0 auto clamp(20px, 3vw, 32px);
  padding: 0 clamp(18px, 5vw, 72px);
}

/* Variante cuando vive DENTRO de .page-hero: sin margen lateral extra y con look más integrado */
.page-hero .news-ticker.is-in-hero {
  margin: 28px 0 0;
  padding: 0;
  max-width: 760px;
}

.page-hero .news-ticker.is-in-hero .news-ticker-inner {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.news-ticker-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border-left: 5px solid var(--gold);
  box-shadow: 0 18px 40px rgba(15, 32, 48, 0.08);
  position: relative;
  overflow: hidden;
}

.news-ticker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.news-ticker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 10px;
  animation: tickerPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 12px var(--glow-gold);
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.78); }
}

.news-ticker-label strong {
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.news-ticker-sublabel {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-ticker-carousel {
  position: relative;
  min-height: 54px;
  overflow: hidden;
}

.news-ticker-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 480ms var(--ease-out),
    transform 480ms var(--ease-out);
}

.news-ticker-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.news-ticker-slide .source {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-ticker-slide h3 {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--ink);
}

.news-ticker-slide h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}

.news-ticker-slide h3 a:hover {
  color: var(--gold);
}

.news-ticker-controls {
  display: flex;
  gap: 5px;
}

.news-ticker-controls button {
  width: 22px;
  height: 4px;
  border: 0;
  background: rgba(15, 32, 48, 0.18);
  cursor: pointer;
  padding: 0;
  transition: width var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.news-ticker-controls button.is-active {
  width: 40px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
}

.news-ticker-controls button:hover:not(.is-active) {
  background: rgba(15, 32, 48, 0.4);
}

@media (max-width: 760px) {
  .news-ticker-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .news-ticker-controls {
    justify-content: flex-start;
  }
  .news-ticker-carousel {
    min-height: 70px;
  }
}

/* ======================= TICKER DEL ORO ======================= */
.gold-ticker {
  max-width: 1160px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  padding: 0 clamp(18px, 5vw, 72px);
}

.gold-ticker-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 20px clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(224, 93, 56, 0.12), transparent 50%),
    var(--forest-2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.gold-ticker-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, #000 0 40%, transparent 80%);
}

.gold-ticker .gt-icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--white);
  box-shadow: 0 12px 28px var(--glow-gold);
}

.gold-ticker .gt-icon svg {
  width: 28px;
  height: 28px;
}

.gold-ticker .gt-label {
  position: relative;
  display: grid;
  gap: 2px;
}

.gold-ticker .gt-label small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.gold-ticker .gt-label strong {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
}

.gold-ticker .gt-price {
  position: relative;
  display: grid;
  gap: 4px;
  text-align: right;
}

.gold-ticker .gt-price .gt-unit {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.gold-ticker .gt-price span {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}

.gold-ticker .gt-price em {
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.gold-ticker .gt-price em.up { color: var(--green-bright); }
.gold-ticker .gt-price em.down { color: #e8514a; }

.gold-ticker .gt-meta {
  position: relative;
  display: grid;
  gap: 2px;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.gold-ticker .gt-meta small {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.gold-ticker .gt-meta strong {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 760px) {
  .gold-ticker-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 14px;
  }
  .gold-ticker .gt-meta {
    grid-column: 1 / -1;
    text-align: left;
  }
  .gold-ticker .gt-price {
    text-align: left;
    grid-column: 1 / -1;
  }
}

/* ---- Referencia local Perú (soles), bajo el ticker internacional ---- */
.gold-local {
  margin-top: 14px;
  padding: 16px clamp(18px, 3vw, 28px) 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(224, 93, 56, 0.08), transparent 55%),
    var(--forest-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  color: var(--white);
}

.gold-local .gl-head {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.gold-local .gl-head small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
}

.gold-local .gl-head strong {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.gold-local .gl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.gold-local .gl-cell {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(15, 32, 48, 0.6);
}

.gold-local .gl-cell small {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.gold-local .gl-cell span {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}

@media (max-width: 760px) {
  .gold-local .gl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ======================= NEWS FEED DINÁMICO ======================= */
.news-feed {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 72px) clamp(50px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-feed-loading {
  grid-column: 1 / -1;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(15, 32, 48, 0.04);
  border: 1px dashed rgba(15, 32, 48, 0.18);
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.news-skel {
  min-height: 188px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(15, 32, 48, 0.05) 25%, rgba(15, 32, 48, 0.12) 37%, rgba(15, 32, 48, 0.05) 63%);
  background-size: 400% 100%;
  animation: newsSkel 1.4s ease-in-out infinite;
  border-top: 4px solid rgba(224, 93, 56, 0.28);
}

@keyframes newsSkel {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .news-skel { animation: none; }
}

.news-feed-error {
  grid-column: 1 / -1;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: rgba(224, 93, 56, 0.08);
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-size: 14px;
}

.news-dynamic-card {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(15, 32, 48, 0.08);
  border-top: 4px solid var(--gold);
  display: grid;
  gap: 10px;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
  overflow: hidden;
}

.news-dynamic-card .news-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(224, 93, 56, 0.12);
  color: var(--gold);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
}

.news-dynamic-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.news-dynamic-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.news-dynamic-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.news-dynamic-card time {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-dynamic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(224, 93, 56, 0.3);
  background: linear-gradient(135deg, var(--gold), var(--copper));
}

.news-dynamic-card:hover h3 a,
.news-dynamic-card:hover p,
.news-dynamic-card:hover time {
  color: var(--white);
}

.news-dynamic-card:hover .news-source {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.news-grid article {
  min-height: 230px;
  padding: 28px;
}

.work-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

/* Lado izquierdo del work-section con título + operario apuntando al form */
.apply-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* PNG del operario que apunta hacia la derecha (hacia el formulario).
   Pegado al borde derecho de su columna y más grande para conectar visualmente con el form. */
.apply-side-figure {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  /* Pegado a la derecha de la columna izquierda, justo al lado del form */
  align-self: flex-end;
  /* Crece más allá del max-width default y se acerca al form */
  margin-top: 20px;
  margin-right: -24px;
  max-width: 560px;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.22));
  animation: applyFigureFloat 7s var(--ease-in-out) infinite alternate;
}

@keyframes applyFigureFloat {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .apply-side-figure { animation: none; }
}

@media (max-width: 900px) {
  /* En móvil el form se apila debajo y la figura queda más chica para no robar espacio */
  .apply-side-figure {
    max-width: 280px;
    margin: 18px auto 0;
    align-self: center;
  }
}

.next-section {
  position: relative;
  max-width: 1160px;
  margin: 0 auto clamp(70px, 9vw, 112px);
  padding: clamp(48px, 7vw, 84px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(114, 153, 22, 0.16), transparent 42%),
    var(--forest-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.next-section .text-link {
  color: var(--white);
}

.apply-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.apply-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.apply-form input,
.apply-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fbfaf5;
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.apply-form input,
.apply-form select {
  border-radius: 8px;
}

.apply-form input:focus,
.apply-form select:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 93, 56, 0.18);
}

.apply-form input[type="file"] {
  padding: 12px;
}

.apply-form button {
  position: relative;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(120deg, var(--gold), var(--copper));
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.apply-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.apply-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(224, 93, 56, 0.36);
}

.apply-form button:hover::before {
  transform: translateX(120%);
}

.apply-form button:active {
  transform: translateY(0) scale(0.98);
}

/* ========== FORMULARIO NATIVO — 3 PASOS VISUALES ========== */
.apply-section {
  max-width: 1160px;
  margin: clamp(32px, 5vw, 56px) auto clamp(48px, 7vw, 80px);
  padding: 0 clamp(18px, 4vw, 56px);
}

/* Encabezado con operario apuntando + título */
.apply-section-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.apply-section-figure {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.15));
  animation: applyFigureFloat 7s var(--ease-in-out) infinite alternate;
}

.apply-section-heading h2 {
  margin: 6px 0 14px;
}

.apply-section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 620px;
}

@media (max-width: 720px) {
  .apply-section-header {
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: start;
  }
  .apply-section-figure { max-width: 140px; }
}

/* === Card de cada paso === */
.apply-step {
  position: relative;
  margin: 0 0 22px;
  padding: clamp(24px, 3vw, 36px);
  background: #ffffff;
  border: 1px solid rgba(15, 32, 48, 0.08);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(15, 32, 48, 0.06);
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.apply-step:focus-within {
  border-color: rgba(224, 93, 56, 0.30);
  box-shadow: 0 26px 56px rgba(15, 32, 48, 0.10);
}

/* Legend = encabezado del paso (numérico + título) */
.apply-step > legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 0 0 22px;
  margin: 0;
  border-bottom: 1px solid rgba(15, 32, 48, 0.08);
}

.apply-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  color: #ffffff;
  background: linear-gradient(160deg, var(--gold), var(--copper));
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(224, 93, 56, 0.35);
}

.apply-step-title {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

.apply-step-sub {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.apply-step > * + label,
.apply-step > * + .apply-row,
.apply-step > * + small,
.apply-step > * + .apply-zona-check,
.apply-step > * + .apply-commitment-context,
.apply-step > * + .apply-commitment-check,
.apply-step > * + .consent-field {
  margin-top: 18px;
}

/* Row de 2 columnas dentro de un paso (DNI+Tel, Edad+Salario, etc.) */
.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.apply-row > label {
  margin: 0;
}

@media (max-width: 600px) {
  .apply-row { grid-template-columns: 1fr; gap: 14px; }
}

/* === Inputs y selects más grandes y limpios === */
.apply-step label {
  display: block;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
}

.apply-step input[type="text"],
.apply-step input[type="email"],
.apply-step input[type="tel"],
.apply-step input[type="number"],
.apply-step textarea,
.apply-step select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid rgba(15, 32, 48, 0.16);
  border-radius: 5px;
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.apply-step textarea {
  padding: 12px 14px;
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}

.apply-step select {
  padding-right: 36px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230f2030' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.apply-step input:hover,
.apply-step textarea:hover,
.apply-step select:hover {
  border-color: rgba(224, 93, 56, 0.4);
}

.apply-step input:focus-visible,
.apply-step textarea:focus-visible,
.apply-step select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(224, 93, 56, 0.12);
}

.apply-step input:valid:not(:placeholder-shown) {
  border-color: rgba(79, 174, 69, 0.5);
}

/* === Campo de subida de CV (custom) === */
.apply-cv-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apply-cv-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apply-cv-label small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.apply-cv-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 6px;
  background: #ffffff;
  border: 1.5px dashed rgba(224, 93, 56, 0.45);
  border-radius: 5px;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.apply-cv-input:hover,
.apply-cv-input:focus-within {
  border-color: var(--copper);
  background: rgba(224, 93, 56, 0.04);
}

.apply-cv-input input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.apply-cv-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #ffffff;
  border-radius: 4px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(224, 93, 56, 0.32);
  flex-shrink: 0;
}

.apply-cv-button svg {
  width: 16px;
  height: 16px;
}

.apply-cv-filename {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apply-cv-filename.is-loaded {
  color: var(--ink);
  font-weight: 700;
}

/* Botón de envío principal */
.apply-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 0 28px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(224, 93, 56, 0.32);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.apply-submit svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}

.apply-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(224, 93, 56, 0.4);
}

.apply-submit:hover svg { transform: translateX(4px); }

.apply-submit:active { transform: translateY(0); }

.apply-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.apply-foot-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Compromiso context (dentro del paso 03) */
.apply-step .apply-commitment-context {
  padding: 18px 20px;
  background: rgba(224, 93, 56, 0.06);
  border-left: 3px solid var(--copper);
  border-radius: 4px;
}

.apply-step .apply-commitment-context p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.apply-step .apply-commitment-context p:last-of-type { margin-bottom: 0; }

.apply-step .apply-commitment-context ul {
  margin: 0;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}

.apply-step .apply-commitment-context li::marker { color: var(--copper); }

/* Check de compromiso (dentro del paso 03) */
.apply-step .apply-commitment-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(224, 93, 56, 0.08);
  border: 1.5px dashed rgba(224, 93, 56, 0.4);
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.apply-step .apply-commitment-check:hover {
  background: rgba(224, 93, 56, 0.12);
  border-color: rgba(224, 93, 56, 0.6);
}

.apply-step .apply-commitment-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  min-height: 0;
  accent-color: var(--copper);
}

.apply-step .apply-commitment-check span {
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

/* Política privacidad checkbox */
.apply-step .consent-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(15, 32, 48, 0.04);
  border-radius: 5px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.apply-step .consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  min-height: 0;
  accent-color: var(--copper);
}

.apply-step .consent-field span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.apply-step .consent-field a {
  color: var(--copper);
  text-decoration: underline;
}

/* Zona check (en paso 02) */
.apply-step .apply-zona-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(224, 93, 56, 0.06);
  border: 1px dashed rgba(224, 93, 56, 0.35);
  border-radius: 5px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.apply-step .apply-zona-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  min-height: 0;
  accent-color: var(--copper);
}

.apply-step .apply-zona-check span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

/* Banner "Postulando a [vacante]" sigue funcionando */
.apply-section .postulando-banner {
  background: rgba(15, 32, 48, 0.06);
  border: 1px solid rgba(15, 32, 48, 0.10);
}

/* Honeypot oculto */
.apply-section .hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

.apply-section .form-help {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.apply-section .form-status {
  margin: 14px 0 0;
  padding: 0;
  text-align: center;
  font-weight: 700;
}

/* ========== FILTRO DE POSTULACIÓN + COMPROMISO ==========
   Fieldsets que agrupan las preguntas cerradas de screening y el bloque
   de compromiso con condiciones de operación inicial. */
.apply-screening,
.apply-commitment {
  margin: 8px 0 0;
  padding: 22px 22px 24px;
  background: linear-gradient(160deg, rgba(224, 93, 56, 0.04), rgba(15, 32, 48, 0.04));
  border: 1px solid rgba(15, 32, 48, 0.08);
  border-radius: 6px;
}

.apply-screening legend,
.apply-commitment legend {
  padding: 4px 12px;
  margin-left: -4px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(224, 93, 56, 0.12);
  border-radius: 3px;
}

.apply-screening-intro {
  margin: 10px 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.apply-screening-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.apply-screening-grid label {
  margin: 0;
}

.apply-screening-wide {
  grid-column: 1 / -1;
}

/* Textarea de residencia libre (campo full-width dentro del fieldset) */
.apply-screening > label[for="apply-residencia"] {
  display: block;
  margin-bottom: 14px;
}

.apply-screening textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(15, 32, 48, 0.18);
  border-radius: 4px;
  resize: vertical;
  transition: border-color var(--dur) var(--ease-out);
}

.apply-screening textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--copper);
}

/* Check "soy de la zona": destacado con borde naranja translúcido */
.apply-zona-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(224, 93, 56, 0.06);
  border: 1px dashed rgba(224, 93, 56, 0.4);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  transition: background var(--dur) var(--ease-out);
}

.apply-zona-check:hover {
  background: rgba(224, 93, 56, 0.10);
}

.apply-zona-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--copper);
}

/* Helper de rangos salariales por puesto (texto pequeño multi-línea) */
.apply-salary-help {
  display: block;
  margin: -8px 0 16px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  background: rgba(15, 32, 48, 0.04);
  border-left: 2px solid rgba(224, 93, 56, 0.55);
  border-radius: 3px;
}

.apply-salary-help strong {
  color: var(--ink);
}

/* Grid 2-col específico (situación + disponibilidad) */
.apply-screening-grid-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .apply-screening-grid {
    grid-template-columns: 1fr;
  }
}

/* Bloque de compromiso: contexto + checkbox obligatorio */
.apply-commitment {
  background: linear-gradient(160deg, rgba(224, 93, 56, 0.07), rgba(15, 32, 48, 0.05));
  border-color: rgba(224, 93, 56, 0.22);
}

.apply-commitment-context {
  margin: 12px 0 18px;
  padding: 18px 20px;
  background: #ffffff;
  border-left: 3px solid var(--copper);
  border-radius: 4px;
}

.apply-commitment-context p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.apply-commitment-context p:last-of-type {
  margin-bottom: 0;
}

.apply-commitment-context ul {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}

.apply-commitment-context li::marker {
  color: var(--copper);
}

.apply-commitment-note {
  padding-top: 12px;
  border-top: 1px dashed rgba(15, 32, 48, 0.12);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.apply-commitment-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(224, 93, 56, 0.06);
  border: 1px dashed rgba(224, 93, 56, 0.35);
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.apply-commitment-check:hover {
  background: rgba(224, 93, 56, 0.10);
  border-color: rgba(224, 93, 56, 0.55);
}

.apply-commitment-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--copper);
}

.apply-commitment-check span {
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}

/* ========== CONVOCATORIAS — CARRUSEL DE VACANTES ========== */
.convocatorias-section {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 0;
}

.convocatorias-section .section-heading {
  margin-bottom: 26px;
}

.conv-carousel {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.conv-carousel::-webkit-scrollbar {
  display: none;
}

.conv-card {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-height: 500px;
  display: grid;
  grid-template-columns: 45% 55%;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 90%, rgba(224, 93, 56, 0.18), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(79, 174, 69, 0.1), transparent 40%),
    linear-gradient(180deg, var(--navy) 0%, var(--forest-3) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.conv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0));
}

.conv-card-cb {
  position: absolute;
  width: 36px;
  height: 36px;
  border-style: solid;
  z-index: 6;
  pointer-events: none;
}
.conv-card-cb.tl { top: 22px; left: 22px; border-color: var(--gold); border-width: 3px 0 0 3px; }
.conv-card-cb.tr { top: 22px; right: 22px; border-color: var(--gold); border-width: 3px 3px 0 0; }
.conv-card-cb.bl { bottom: 22px; left: 22px; border-color: var(--olive); border-width: 0 0 3px 3px; }
.conv-card-cb.br { bottom: 22px; right: 22px; border-color: var(--olive); border-width: 0 3px 3px 0; }

.conv-card-info {
  position: relative;
  z-index: 2;
  padding: 46px 38px 36px 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.conv-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.conv-card-brand .lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.conv-card-brand .lg img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.conv-card-brand .nm {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--white);
}

.conv-card-brand .nm span { color: var(--gold); }

.conv-card-brand .nm small {
  display: block;
  margin-top: 3px;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.conv-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 7px 15px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  color: var(--white);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(224, 93, 56, 0.35);
}

.conv-card-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.conv-card-title {
  margin: 4px 0;
  color: var(--white);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.conv-card-title em {
  font-style: normal;
  color: var(--gold);
}

.conv-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.conv-card-meta .m {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.conv-card-meta .m svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex: 0 0 auto;
}

.conv-card-meta .m strong { color: var(--gold); font-weight: 900; }

.conv-card-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.conv-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  color: var(--white);
  box-shadow: 0 18px 36px rgba(224, 93, 56, 0.45);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.conv-card-cta::after { content: "→"; font-size: 18px; }

.conv-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(224, 93, 56, 0.55);
}

.conv-card-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--white);
  font-weight: 700;
}

.conv-card-mail svg { width: 14px; height: 14px; color: var(--gold); }

/* Foto */
.conv-card-photo {
  position: relative;
  z-index: 2;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.conv-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.95);
  transition: transform 700ms var(--ease-out), filter 400ms var(--ease-out);
}

.conv-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(14, 34, 69, 0.55), transparent 40%);
}

.conv-card-photo-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 4px;
  background: rgba(14, 34, 69, 0.88);
  color: #fff;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-left: 3px solid var(--gold);
  transition: opacity 300ms var(--ease-out);
}

/* Detalle overlay (hover desktop / tap móvil) */
.conv-card-detalle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 4;
  padding: 32px 36px 30px 44px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  background: linear-gradient(110deg, rgba(14, 34, 69, 0) 0%, rgba(14, 34, 69, 0.78) 12%, rgba(14, 34, 69, 0.94) 35%);
  backdrop-filter: blur(10px) saturate(1.05);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 520ms var(--ease-out), opacity 300ms var(--ease-out);
}

.conv-card:hover .conv-card-detalle,
.conv-card.is-open .conv-card-detalle {
  transform: translateX(0);
  opacity: 1;
}

.conv-card:hover .conv-card-photo img,
.conv-card.is-open .conv-card-photo img {
  transform: scale(1.03);
  filter: contrast(1.06) saturate(1.05);
}

.conv-card:hover .conv-card-photo-tag,
.conv-card.is-open .conv-card-photo-tag {
  opacity: 0;
}

.conv-card-detalle h4 {
  margin: 0 0 8px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
}

.conv-card-detalle h4 i {
  display: block;
  height: 3px;
  width: 42px;
  margin-top: 4px;
  font-style: normal;
}

.conv-card-detalle .fnc h4 { color: var(--gold); }
.conv-card-detalle .fnc h4 i { background: var(--gold); }
.conv-card-detalle .fnc p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
}

.conv-card-detalle .grid-rb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.conv-card-detalle .col h4 + ul,
.conv-card-detalle .col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.conv-card-detalle .col li {
  position: relative;
  padding-left: 22px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.84);
}

.conv-card-detalle .col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 13px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.conv-card-detalle .col li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.conv-card-detalle .col.req h4 { color: var(--gold); }
.conv-card-detalle .col.req h4 i { background: var(--gold); }
.conv-card-detalle .col.req li::before { background: var(--gold); }

.conv-card-detalle .col.ben h4 { color: var(--green-bright); }
.conv-card-detalle .col.ben h4 i { background: var(--green-bright); }
.conv-card-detalle .col.ben li::before { background: var(--green-bright); }

.conv-card-detalle .col li em { font-style: normal; color: #fff; font-weight: 800; }

/* Eslogan al pie del overlay — llena el vacío */
.conv-detalle-slogan {
  align-self: end;
  margin: 6px 0 0;
  padding: 10px 14px;
  background: rgba(224, 93, 56, 0.1);
  border-left: 3px solid var(--gold);
  color: var(--gold);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.conv-card-detalle {
  grid-template-rows: auto 1fr auto;
}

/* Toggle de detalle para móvil/tap */
.conv-card-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 7;
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(14, 34, 69, 0.85);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
}

/* Controles del carrusel */
.conv-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.conv-controls button.dot {
  width: 32px;
  height: 4px;
  border: 0;
  background: rgba(15, 32, 48, 0.2);
  cursor: pointer;
  padding: 0;
  transition: width var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.conv-controls button.dot.is-active {
  width: 56px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
}

.conv-controls .nav {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  color: var(--ink);
  border-radius: 999px;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.conv-controls .nav svg { width: 18px; height: 18px; }

.conv-controls .nav:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 32, 48, 0.2);
}

/* Banner "Postulando a:" sobre el formulario */
.postulando-banner {
  display: none;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: rgba(224, 93, 56, 0.1);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.postulando-banner.is-visible { display: block; }

.postulando-banner strong { color: var(--gold); }

.postulando-banner button {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Convocatoria destacada (home) — variante compacta */
.featured-vacancy {
  max-width: 1160px;
  margin: 0 auto clamp(50px, 8vw, 100px);
}

.featured-vacancy .section-heading {
  margin-bottom: 24px;
}

.featured-vacancy .conv-card {
  scroll-snap-align: none;
  flex: 1 1 100%;
}

/* Responsivo */
@media (max-width: 900px) {
  .conv-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .conv-card-info {
    padding: 36px 28px 28px;
    gap: 12px;
  }

  .conv-card-title {
    font-size: 30px;
  }

  .conv-card-photo {
    height: 260px;
    clip-path: none;
  }

  .conv-card-detalle {
    position: relative;
    width: 100%;
    height: auto;
    padding: 28px;
    clip-path: none;
    transform: translateY(-100%);
    grid-template-rows: auto auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 480ms var(--ease-out), transform 480ms var(--ease-out), opacity 300ms var(--ease-out);
  }

  .conv-card.is-open .conv-card-detalle {
    transform: translateY(0);
    max-height: 800px;
  }

  .conv-card:hover .conv-card-detalle {
    transform: translateY(-100%);
    opacity: 0;
  }

  .conv-card.is-open:hover .conv-card-detalle {
    transform: translateY(0);
    opacity: 1;
  }

  .conv-card-toggle { display: grid; place-items: center; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== ANIMACIONES VARIABLES POR SECCIÓN ===== */

/* === Terrain-band: título + 3 cintas que se "pintan" de naranja con stagger === */
.terrain-band .terrain-copy {
  opacity: 0;
  transform: translateX(-90px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
}

.terrain-band .terrain-strip span {
  opacity: 0;
  transform: translateX(-160px);
  background-color: rgba(224, 93, 56, 0); /* naranja transparente; se va llenando */
  transition:
    opacity 950ms var(--ease-out),
    transform 950ms var(--ease-out),
    background-color 850ms var(--ease-out);
}

.terrain-band.is-visible .terrain-copy {
  opacity: 1;
  transform: translateX(0);
}

.terrain-band.is-visible .terrain-strip span {
  opacity: 1;
  transform: translateX(0);
  background-color: rgba(224, 93, 56, 0.82); /* naranja final, igual al diseño */
}

.terrain-band.is-visible .terrain-strip span:nth-child(1) { transition-delay: 380ms; }
.terrain-band.is-visible .terrain-strip span:nth-child(2) { transition-delay: 700ms; }
.terrain-band.is-visible .terrain-strip span:nth-child(3) { transition-delay: 1020ms; }

/* === Home-showcase: copy desde la izquierda, panel desde la derecha (transitions reversibles) === */
.home-showcase .showcase-copy {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.home-showcase .showcase-panel {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 800ms var(--ease-out) 180ms, transform 800ms var(--ease-out) 180ms;
}
.home-showcase.is-visible .showcase-copy,
.home-showcase.is-visible .showcase-panel {
  opacity: 1;
  transform: translateX(0);
}

/* === Map-preview: mapa scale-in, texto desde la derecha === */
.home-map-preview .map-card {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.home-map-preview > div:not(.map-card) {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 800ms var(--ease-out) 220ms, transform 800ms var(--ease-out) 220ms;
}
.home-map-preview.is-visible .map-card {
  opacity: 1;
  transform: scale(1);
}
.home-map-preview.is-visible > div:not(.map-card) {
  opacity: 1;
  transform: translateX(0);
}

/* === Recruitment-feature: desliza desde abajo con escala sutil === */
.recruitment-feature > div {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.recruitment-feature > a {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 700ms var(--ease-out) 260ms, transform 700ms var(--ease-out) 260ms;
}
.recruitment-feature.is-visible > div,
.recruitment-feature.is-visible > a {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === Home-split: artículo 1 desde la izquierda, accent desde la derecha === */
.home-split article {
  opacity: 0;
}
.home-split article:first-child {
  transform: translateX(-50px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.home-split article.accent {
  transform: translateX(50px);
  transition: opacity 800ms var(--ease-out) 220ms, transform 800ms var(--ease-out) 220ms;
}
.home-split.is-visible article:first-child,
.home-split.is-visible article.accent {
  opacity: 1;
  transform: translateX(0);
}

/* Override del global .reveal (opacity:0) en los contenedores grid — solo los hijos animan */
.home-grid.reveal,
.home-split.reveal,
.content-grid.reveal,
.why-grid.reveal,
.news-grid.reveal,
.sustainability-grid.reveal,
.operation-cards.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Home-grid: stagger en las 4 cards principales */
.home-grid.reveal a {
  opacity: 0;
  transform: translateY(20px);
}
.home-grid a {
  transition:
    transform 400ms var(--ease-out),
    opacity 500ms var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}
.home-grid.is-visible a {
  opacity: 1;
  transform: translateY(0);
}
.home-grid.is-visible a:nth-child(1) { transition-delay: 0ms; }
.home-grid.is-visible a:nth-child(2) { transition-delay: 100ms; }
.home-grid.is-visible a:nth-child(3) { transition-delay: 200ms; }
.home-grid.is-visible a:nth-child(4) { transition-delay: 300ms; }

/* Content-grid / Why-grid / News-grid / Sustainability-grid / Operation-cards: stagger en cards hijas */
.content-grid.reveal article,
.why-grid.reveal article,
.news-grid.reveal article,
.sustainability-grid.reveal article,
.operation-cards.reveal article {
  opacity: 0;
  transform: translateY(20px);
}
.content-grid.is-visible article,
.why-grid.is-visible article,
.news-grid.is-visible article,
.sustainability-grid.is-visible article,
.operation-cards.is-visible article {
  opacity: 1;
  transform: translateY(0);
}
.content-grid.is-visible article:nth-child(1),
.why-grid.is-visible article:nth-child(1),
.news-grid.is-visible article:nth-child(1),
.sustainability-grid.is-visible article:nth-child(1),
.operation-cards.is-visible article:nth-child(1) { transition-delay: 0ms; }
.content-grid.is-visible article:nth-child(2),
.why-grid.is-visible article:nth-child(2),
.news-grid.is-visible article:nth-child(2),
.sustainability-grid.is-visible article:nth-child(2),
.operation-cards.is-visible article:nth-child(2) { transition-delay: 90ms; }
.content-grid.is-visible article:nth-child(3),
.why-grid.is-visible article:nth-child(3),
.news-grid.is-visible article:nth-child(3),
.sustainability-grid.is-visible article:nth-child(3),
.operation-cards.is-visible article:nth-child(3) { transition-delay: 180ms; }
.content-grid.is-visible article:nth-child(4),
.why-grid.is-visible article:nth-child(4),
.news-grid.is-visible article:nth-child(4),
.sustainability-grid.is-visible article:nth-child(4),
.operation-cards.is-visible article:nth-child(4) { transition-delay: 270ms; }

.content-grid article,
.why-grid article,
.news-grid article,
.sustainability-grid article,
.operation-cards article {
  /* opacidad parte del set inline arriba; aquí la transición */
  transition:
    transform 400ms var(--ease-out),
    opacity 500ms var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

/* === Featured-vacancy: pop con escala suave === */
.featured-vacancy .conv-card {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), box-shadow 900ms var(--ease-out);
}
.featured-vacancy.is-visible .conv-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* === Convocatorias-section: desde abajo === */
.convocatorias-section .conv-carousel {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ease-out) 100ms, transform 800ms var(--ease-out) 100ms;
}
.convocatorias-section .conv-controls {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out) 400ms, transform 600ms var(--ease-out) 400ms;
}
.convocatorias-section.is-visible .conv-carousel,
.convocatorias-section.is-visible .conv-controls {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .terrain-band .terrain-copy,
  .terrain-band .terrain-strip span,
  .home-showcase .showcase-copy,
  .home-showcase .showcase-panel,
  .home-map-preview .map-card,
  .home-map-preview > div,
  .recruitment-feature > div,
  .recruitment-feature > a,
  .home-split article,
  .featured-vacancy .conv-card,
  .convocatorias-section .conv-carousel,
  .convocatorias-section .conv-controls {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes scan {
  0%,
  48% {
    transform: translateX(-100%);
  }
  74%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-slide,
  .purpose-band,
  .home-intro,
  .home-grid,
  .home-showcase,
  .home-map-preview,
  .home-split,
  .terrain-band,
  .terrain-strip,
  .recruitment-feature,
  .showcase-panel,
  .section-heading,
  .content-grid.two,
  .content-grid.three,
  .why-grid,
  .operation-cards,
  .map-section,
  .sustainability-grid,
  .news-grid,
  .work-section {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    min-height: calc(100vh - 86px);
    min-height: calc(100dvh - 86px);
  }

  .hero-copy {
    min-height: calc(100vh - 86px);
    min-height: calc(100dvh - 86px);
    padding-bottom: 56px;
  }

  .hero-slide figure {
    height: auto;
    padding: 0;
  }

  .hero-slide figure::before,
  .hero-slide figure::after {
    inset: 0;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    width: auto;
    margin: 0 18px 24px;
  }

  .hero-ribbon {
    display: none;
  }

  .terrain-strip span {
    min-height: 150px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .recruitment-feature {
    align-items: flex-start;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .scroll-cue {
    display: none;
  }

  .metric-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .slider-controls {
    bottom: 20px;
  }
}

.main-nav a.is-current {
  color: var(--copper);
}

.main-nav a.is-current::after {
  transform: scaleX(1);
}

.menu-button {
  cursor: pointer;
  transition: background 160ms ease;
}

.menu-button:hover {
  background: rgba(15, 32, 48, 0.06);
}

.menu-button span {
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 780px) {
  .main-nav.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: rgba(244, 242, 234, 0.97);
    border-bottom: 1px solid rgba(19, 32, 39, 0.1);
    box-shadow: 0 20px 40px rgba(15, 32, 48, 0.12);
    backdrop-filter: blur(18px) saturate(130%);
  }

  .main-nav.is-open a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(15, 32, 48, 0.08);
    border-radius: 8px;
    font-size: 15px;
    transition:
      background var(--dur-fast) var(--ease-out),
      color var(--dur-fast) var(--ease-out),
      padding-left var(--dur-fast) var(--ease-out);
  }

  /* Feedback claro al tocar/pasar en el menú móvil. */
  .main-nav.is-open a:hover,
  .main-nav.is-open a:active {
    background: rgba(224, 93, 56, 0.08);
    color: var(--gold);
    padding-left: 16px;
  }

  .main-nav.is-open a:last-child {
    border-bottom: 0;
  }
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--forest-2);
  padding: clamp(48px, 7vw, 80px) clamp(18px, 5vw, 72px) calc(32px + env(safe-area-inset-bottom, 0px));
}

.site-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.site-footer h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer .footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer-bottom {
  max-width: 1160px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 780px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  z-index: 200;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
  transform: translateX(-50%);
  transition: top 180ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.form-help {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.form-privacy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Campo honeypot anti-bot: fuera de pantalla, no enfocable */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Casilla de consentimiento */
.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.apply-form .consent-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-field a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  font-weight: 800;
}

.consent-field a:hover {
  color: var(--copper);
}

.apply-form input:invalid:not(:placeholder-shown),
.apply-form select:invalid:not([value=""]):focus {
  border-color: rgba(224, 93, 56, 0.6);
}

/* Pagina 404 */
.error-hero {
  position: relative;
  min-height: calc(100vh - 86px);
  min-height: calc(100dvh - 86px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(224, 93, 56, 0.14), transparent 45%),
    var(--forest-2);
}

.error-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0 40%, transparent 75%);
}

.error-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 60vw;
  height: 60vw;
  max-width: 640px;
  max-height: 640px;
  pointer-events: none;
  background:
    radial-gradient(circle at 40% 40%, var(--glow-gold), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--glow-olive), transparent 60%);
  filter: blur(50px);
  opacity: 0.5;
}

.error-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0 clamp(22px, 6vw, 48px);
  text-align: center;
}

.error-copy h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.error-copy p:not(.eyebrow) {
  margin: 0 auto 30px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 20px);
}

.error-copy .eyebrow {
  justify-content: center;
}

.error-copy .hero-actions {
  justify-content: center;
}

.site-footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.site-footer-bottom a:hover {
  color: var(--gold);
}

/* Pagina legal / privacidad */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content article {
  margin-bottom: 28px;
}

.legal-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.legal-note {
  padding: 16px 18px;
  margin-bottom: 36px;
  color: var(--ink);
  background: rgba(224, 93, 56, 0.1);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  font-size: 14px;
}

.legal-link {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  font-weight: 700;
}

.legal-link:hover {
  color: var(--copper);
}

.legal-updated {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  display: none;
}

.form-status:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #1f5b1f;
  background: rgba(79, 174, 69, 0.14);
  border: 1px solid rgba(79, 174, 69, 0.45);
}

.form-status.is-error {
  color: #842020;
  background: rgba(224, 93, 56, 0.12);
  border: 1px solid rgba(224, 93, 56, 0.4);
}

/* ===== Aparición de los títulos de los heros (barrido izquierda → derecha) =====
   Reemplaza al antiguo efecto de máquina de escribir. El título se revela con un
   "wipe" suave (clip-path) + un leve deslizamiento desde la izquierda — 100% CSS,
   dinámico y sin saltos. Nota: .page-hero h1 ya tiene su propio reveal idéntico
   más arriba, por eso aquí solo se cubren el carrusel de inicio y la página 404. */
@keyframes hero-wipe-in {
  from {
    opacity: 0;
    transform: translateX(-28px);
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
  }
}

/* El barrido se reproduce al activarse cada diapositiva (el slider conmuta
   .is-active), por lo que se re-dispara en cada cambio de slide y al cargar. */
.hero-slide.is-active h1,
.hero-slide.is-active .hero-h1,
.error-copy h1 {
  animation: hero-wipe-in 900ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active h1,
  .hero-slide.is-active .hero-h1,
  .error-copy h1 {
    animation: none;
  }
}

/* ===== Stagger sutil de tarjetas (features-grid, home-grid) =====
   Cada tarjeta entra escalonada al revelarse la sección, para dar un toque de
   vida sin recargar. Usa la propiedad 'translate' + opacity (NO 'transform'),
   de modo que NO interfiere con el lift de :hover (que sí usa transform).
   El contenedor deja de moverse como bloque: animan las tarjetas. El reset
   global de prefers-reduced-motion (arriba) anula esta animación. */
.features-grid.reveal,
.home-grid.reveal {
  opacity: 1;
  transform: none;
}

.features-grid .feature-card,
.home-grid > a {
  opacity: 0;
}

.features-grid.is-visible .feature-card,
.home-grid.is-visible > a {
  animation: card-stagger 600ms var(--ease-out) both;
}

.features-grid.is-visible .feature-card:nth-child(2) {
  animation-delay: 110ms;
}
.features-grid.is-visible .feature-card:nth-child(3) {
  animation-delay: 220ms;
}
.home-grid.is-visible > a:nth-child(2) {
  animation-delay: 90ms;
}
.home-grid.is-visible > a:nth-child(3) {
  animation-delay: 180ms;
}
.home-grid.is-visible > a:nth-child(4) {
  animation-delay: 270ms;
}

@keyframes card-stagger {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ===== Título de hero no-principal (slides 2 y 3) =====
   Es un <p class="hero-h1"> (para mantener UN solo <h1> en la página por SEO/a11y).
   Esta regla dedicada (especificidad .hero-copy p.hero-h1, colocada al final) asegura
   que se vea EXACTAMENTE igual que el <h1> del hero, por encima de .hero-copy p. */
.hero-copy p.hero-h1 {
  max-width: 880px;
  margin-bottom: 14px;
  color: var(--white);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* ============================================================================
   MEJORAS BENCHMARK (referencia Minsur, adaptado a la identidad San Luis II)
   1) .ops-map           -> banda oscura full-bleed con glow (mapa protagonista)
   2) .ops-map-country   -> etiquetas de paises vecinos y oceano sobre el mapa
   3) .ops-legend        -> leyenda de categorias del mapa en el panel
   4) .ops-list          -> panel re-tematizado a vidrio oscuro sobre la banda
   5) .dir-quote         -> mensaje de la direccion (foto + cita + firma)
   6) .split-card        -> cards pre-footer con foto y boton
   7) .integrity-strip   -> canal de integridad (franja navy + CTA)
   ========================================================================== */

/* --- 1) Banda oscura full-bleed del mapa ---------------------------------- */
.ops-map {
  max-width: none;
  margin: clamp(48px, 7vw, 96px) 0;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 85% 8%, rgba(224, 93, 56, 0.14), transparent 50%),
    radial-gradient(circle at 8% 92%, rgba(114, 153, 22, 0.10), transparent 55%),
    linear-gradient(165deg, #14304f 0%, #0E2245 48%, #091833 100%);
}

.ops-map-heading,
.ops-map-layout {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.ops-map-heading { margin-bottom: clamp(28px, 4vw, 48px); }
.ops-map-heading h2 { color: #ffffff; }
.ops-map-heading p { color: rgba(255, 255, 255, 0.72); max-width: 720px; }

/* El lienzo del mapa se funde con la banda oscura */
.ops-map .ops-map-svg-wrap { border-color: rgba(255, 255, 255, 0.12); }

/* --- 2) Etiquetas de paises vecinos (posicionadas sobre el PNG) ------------ */
.ops-map-country {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

.ops-map-country.c-ec { left: 35%; top: 8%; }
.ops-map-country.c-co { left: 60%; top: 6.5%; }
.ops-map-country.c-br { left: 72%; top: 38%; }
.ops-map-country.c-bo { left: 74%; top: 79%; }
.ops-map-country.c-cl { left: 66%; top: 96%; }
.ops-map-country.c-oc {
  left: 29%;
  top: 56%;
  transform: translate(-50%, -50%) rotate(-56deg);
  letter-spacing: 0.46em;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 640px) {
  .ops-map-country { font-size: 8px; letter-spacing: 0.2em; }
  .ops-map-country.c-oc { display: none; }
}

/* --- 3) Leyenda de categorias (gold = operacion, blanco = capital) --------- */
.ops-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.ops-legend li { display: inline-flex; align-items: center; gap: 8px; }

.ops-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ops-legend-dot.is-gold { background: var(--gold); box-shadow: 0 0 10px var(--glow-gold); }
.ops-legend-dot.is-white { background: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }

/* --- 4) Panel de operacion en vidrio oscuro sobre la banda ------------------ */
.ops-map .ops-list {
  background: rgba(10, 24, 40, 0.66);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ops-map .ops-list header { border-bottom-color: rgba(255, 255, 255, 0.1); }
.ops-map .ops-list header h3 { color: #ffffff; }
.ops-map .ops-list-sub { color: rgba(255, 255, 255, 0.66); }
.ops-map .ops-list-eyebrow { background: rgba(224, 93, 56, 0.18); color: var(--gold-soft); }
.ops-map .ops-meta dt { color: rgba(255, 255, 255, 0.52); }
.ops-map .ops-meta dd { color: #ffffff; }
.ops-map .ops-list .text-link { color: var(--gold-soft); }

/* --- 5) Mensaje de la direccion -------------------------------------------- */
.dir-quote {
  max-width: 1160px;
  margin: clamp(48px, 7vw, 96px) auto;
  padding: 0 clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4.5vw, 64px);
  align-items: center;
}

.dir-quote-media {
  margin: 0;
  position: relative;
}

.dir-quote-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Acento de esquina dorado, eco de la cartografia del mapa */
.dir-quote-media::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 56px;
  height: 56px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  border-radius: 0 0 8px 0;
  pointer-events: none;
}

.dir-quote-copy h2 { margin: 6px 0 16px; }

.dir-quote-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
  margin: 0 0 8px;
}

.dir-quote-sign {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 2px solid var(--gold);
}

.dir-quote-sign strong {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.dir-quote-sign small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 840px) {
  .dir-quote { grid-template-columns: 1fr; }
  .dir-quote-media img { min-height: 220px; }
}

/* --- 6) Cards pre-footer con foto y boton ----------------------------------- */
.home-split { padding-bottom: 0; margin-bottom: clamp(22px, 3vw, 36px); }

.home-split article.split-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.split-card figure {
  margin: 0;
  aspect-ratio: 16 / 7.5;
  overflow: hidden;
}

.split-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.split-card:hover figure img { transform: scale(1.05); }

.split-card-body {
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}

.split-card-body h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.split-card-body p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.home-split article.split-card.accent { background: var(--navy); border-color: rgba(255, 255, 255, 0.08); }
.split-card.accent .split-card-body h2 { color: #ffffff; }
.split-card.accent .split-card-body p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); }

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.btn-card:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* --- 7) Canal de integridad -------------------------------------------------- */
.integrity-strip {
  max-width: 1160px;
  margin: 0 auto clamp(70px, 9vw, 112px);
  padding: clamp(22px, 3.5vw, 34px) clamp(22px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 90% 20%, rgba(224, 93, 56, 0.14), transparent 55%),
    linear-gradient(135deg, #14304f, #0E2245);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.integrity-copy {
  display: flex;
  gap: 16px;
  align-items: center;
}

.integrity-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(224, 93, 56, 0.16);
  color: var(--gold-soft);
  flex-shrink: 0;
}

.integrity-copy h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: clamp(18px, 2.4vw, 22px);
}

.integrity-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 560px;
}

/* ============================================================================
   SOSTENIBILIDAD EXPANDIDA + BREADCRUMBS (benchmark fase 2)
   .pillar-grid / .pillar-card -> pilares de gestion con icono
   .standards-band             -> marco normativo en banda navy
   .breadcrumbs                -> miga de pan en paginas internas
   ========================================================================== */

/* --- Pilares de sostenibilidad ---------------------------------------------- */
.pillar-grid {
  max-width: 1160px;
  margin: clamp(40px, 6vw, 80px) auto;
  padding: 0 clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(224, 93, 56, 0.35);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(224, 93, 56, 0.1);
  color: var(--gold);
  flex-shrink: 0;
}

.pillar-card h3 {
  margin: 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* --- Banda de marco normativo ------------------------------------------------ */
.standards-band {
  max-width: 1160px;
  margin: clamp(40px, 6vw, 80px) auto;
  padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(224, 93, 56, 0.12), transparent 55%),
    linear-gradient(135deg, #14304f, #0E2245);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.standards-band h2 { color: #ffffff; margin: 6px 0 12px; }

.standards-band .standards-copy > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  line-height: 1.72;
  margin: 0;
}

.standards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.standards-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  line-height: 1.55;
}

.standards-list li strong {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
}

.standards-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(224, 93, 56, 0.2);
  color: var(--gold-soft);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 840px) {
  .standards-band { grid-template-columns: 1fr; }
}

/* Nota: la miga de pan VISIBLE se retiró (creaba una banda separada que rompía
   el diseño y duplicaba el resaltado de página activa del menú principal). La
   ruta se conserva solo como JSON-LD (BreadcrumbList) en el <head> para SEO. */

/* ============================================================================
   CAPA DE PULIDO MODERNO (auditoria UI/UX Pro Max — estilo Trust & Authority)
   Micro-detalles que elevan la percepcion de calidad sin tocar la identidad:
   1) Seleccion de texto y scrollbar de marca
   2) scroll-margin para anclas bajo el header fijo
   3) Titulares balanceados + numeros tabulares (sin "baile" en countup/ticker)
   4) Metricas con gradiente dorado (enfasis Trust & Authority)
   5) Geometria de botones consistente + feedback tactil al presionar
   6) Aparicion escalonada (stagger) en rejillas clave
   7) Hover-lift en tarjetas de noticias dinamicas
   ========================================================================== */

/* --- 1) Seleccion y scrollbar de marca ------------------------------------- */
::selection {
  background: var(--gold);
  color: #ffffff;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--steel) var(--paper);
}

body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--paper); }
body::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 8px;
  border: 3px solid var(--paper);
}
body::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- 2) Las anclas (#formulario, #convocatorias) no quedan bajo el header --- */
[id] { scroll-margin-top: 96px; }

/* --- 3) Tipografia: titulares balanceados y cifras tabulares ----------------- */
h1, h2, h3 { text-wrap: balance; }

.kpi-item strong,
.hero-trust-item strong,
.gt-price span,
.gl-cell span,
.ops-meta dd {
  font-variant-numeric: tabular-nums;
}

/* --- 4) Metricas con gradiente dorado (enfasis de cifras) -------------------- */
.kpi-item strong,
.kpi-item strong span,
.kpi-item em {
  color: var(--gold); /* fallback para navegadores sin background-clip:text */
  background: linear-gradient(120deg, var(--gold) 15%, #f4880d 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* El span contador vive DENTRO del strong (para que el sufijo +/% quede en
   linea); neutraliza los estilos de etiqueta de .kpi-item span y hereda la
   tipografia del numero grande. */
.kpi-item strong span {
  margin-top: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* --- 5) Botones: geometria consistente + feedback de presion ----------------- */
.ghost-button { border-radius: var(--radius); }

a, button, [role="button"] { touch-action: manipulation; }

.primary-button:active,
.ghost-button:active,
.btn-card:active,
.conv-card-cta:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

/* --- 6) Stagger: las rejillas entran en cascada (60 ms por item) ------------- */
.pillar-grid.reveal .pillar-card,
.kpi-band.reveal .kpi-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 560ms var(--ease-out),
    transform 560ms var(--ease-out);
}

.pillar-grid.is-visible .pillar-card,
.kpi-band.is-visible .kpi-item {
  opacity: 1;
  transform: none;
}

.pillar-grid.reveal .pillar-card:nth-child(2),
.kpi-band.reveal .kpi-item:nth-child(2) { transition-delay: 60ms; }
.pillar-grid.reveal .pillar-card:nth-child(3),
.kpi-band.reveal .kpi-item:nth-child(3) { transition-delay: 120ms; }
.pillar-grid.reveal .pillar-card:nth-child(4),
.kpi-band.reveal .kpi-item:nth-child(4) { transition-delay: 180ms; }
.pillar-grid.reveal .pillar-card:nth-child(5) { transition-delay: 240ms; }
.pillar-grid.reveal .pillar-card:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .pillar-grid.reveal .pillar-card,
  .kpi-band.reveal .kpi-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- 7) Hover-lift en tarjetas de noticias dinamicas -------------------------- */
.news-dynamic-card {
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.news-dynamic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ============================================================================
   CAPA DE ACCESIBILIDAD Y RENDIMIENTO (v112)
   Pause visible en carruseles autoplay (WCAG 2.2.2), ocultación para lectores
   de pantalla y refuerzo de foco en controles de media.
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.media-pause {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(15, 32, 48, 0.42);
  color: #ffffff;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.media-pause:hover {
  background: rgba(15, 32, 48, 0.62);
  border-color: rgba(234, 122, 82, 0.7);
}

.slider-controls .media-pause,
.news-hero-controls .media-pause {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.slider-controls .media-pause::after,
.news-hero-controls .media-pause::after {
  display: none;
}

.media-pause-icon {
  display: block;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.media-pause.is-paused .media-pause-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
  margin-left: 3px;
}

.conv-controls .media-pause {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.conv-controls .media-pause:hover {
  border-color: var(--copper);
  background: #ffffff;
}

.apply-step input[aria-invalid="true"],
.apply-step textarea[aria-invalid="true"],
.apply-step select[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}
