/* ==========================================================================
   DELFEX Consulting — Sistema de Diseño Corporativo V1
   Paleta oficial:
   - Azul corporativo oscuro: #0B2D5B (variantes profundas #061A38 / #001731)
   - Dorado premium:          #D4AF37
   - Plata elegante:          #C0C6D4
   - Blanco profesional:      #FFFFFF
   ========================================================================== */

:root {
  --navy: #0B2D5B;
  --navy-deep: #061A38;
  --navy-footer: #001731;
  --navy-monolith: #000F25;
  --gold: #D4AF37;
  --gold-muted: #B89328;
  --silver: #C0C6D4;
  --silver-soft: #E5E9F0;
  --surface-white: #FFFFFF;
  --surface-pearl: #F7F9FC;
  --surface-slate: #EEF2F7;
  --ink-primary: #0B2D5B;
  --ink-body: #2A3649;
  --ink-muted: #5A677D;
  --ink-light: #FFFFFF;
  --ink-light-muted: #C8D0DE;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1240px;
  --header-height: 76px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- Base y Reset ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-body);
  background-color: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, ul, ol {
  margin-top: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--surface-white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 4.5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 6.25rem;
  }
}

/* ---------------- Tipografía y Encabezados ---------------- */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.85rem;
}

.section-eyebrow--gold {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.section-title--light {
  color: var(--surface-white);
}

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  text-align: center;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.6rem 1.15rem;
  min-height: 40px;
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  min-height: 50px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--surface-white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--navy-deep);
  border-color: var(--gold);
  box-shadow: 0 10px 24px -10px rgba(11, 45, 91, 0.45);
  transform: translateY(-1px);
}

.btn-outline-navy {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  border-color: var(--silver);
}

.btn-outline-navy:hover {
  border-color: var(--navy);
  background-color: var(--surface-white);
  transform: translateY(-1px);
}

.btn-gold-outline {
  background-color: var(--surface-white);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold-outline:hover {
  background-color: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-gold-solid {
  background-color: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold-solid:hover {
  background-color: #E2BE4C;
  border-color: #E2BE4C;
  box-shadow: 0 12px 28px -10px rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}

.btn-light-outline {
  background-color: rgba(6, 26, 56, 0.42);
  color: var(--surface-white);
  border-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

.btn-light-outline:hover {
  background-color: var(--surface-white);
  color: var(--navy);
  border-color: var(--surface-white);
  transform: translateY(-1px);
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(254, 254, 254, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(192, 198, 212, 0.55);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px -18px rgba(11, 45, 91, 0.28);
  border-bottom-color: var(--silver);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-block: 0.25rem;
}

.header-logo {
  width: auto;
  height: 36px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .header-logo {
    height: 42px;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  padding-block: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

.mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.hamburger-line {
  width: 20px;
  height: 1.75px;
  background-color: var(--navy);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--silver);
  box-shadow: 0 20px 40px -15px rgba(11, 45, 91, 0.2);
  z-index: 95;
}

.mobile-drawer-inner {
  padding-block: 1.5rem 2rem;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding-block: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--silver-soft);
}

.mobile-brand-descriptor {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

/* ==========================================================================
   HERO CINEMATOGRÁFICO — SCROLL STORYTELLING A PANTALLA COMPLETA
   ========================================================================== */
.hero-cinema {
  position: relative;
  height: 380svh;
  min-height: 2900px;
  background-color: var(--navy-deep);
  scroll-margin-top: 0;
}

@media (min-width: 1024px) {
  .hero-cinema {
    height: 460svh;
    min-height: 3800px;
  }
}

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: #03152E;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1024px) {
  .hero-video {
    object-position: center center;
  }
}

/* Velos atmosféricos adaptativos por momento para máxima legibilidad sin cajas */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 21, 46, 0.42) 0%, rgba(3, 21, 46, 0.14) 45%, rgba(3, 21, 46, 0.56) 100%),
    linear-gradient(90deg, rgba(3, 21, 46, 0.52) 0%, rgba(3, 21, 46, 0.16) 55%, rgba(3, 21, 46, 0.08) 100%);
  transition: opacity 450ms ease, background 450ms ease;
}

.hero-scrim[data-active-moment="3"],
.hero-scrim[data-active-moment="4"] {
  background:
    linear-gradient(180deg, rgba(3, 21, 46, 0.72) 0%, rgba(3, 21, 46, 0.24) 42%, rgba(3, 21, 46, 0.28) 100%);
}

.hero-scrim[data-active-moment="5"] {
  background:
    radial-gradient(ellipse at center, rgba(4, 22, 48, 0.66) 0%, rgba(4, 22, 48, 0.48) 58%, rgba(4, 22, 48, 0.68) 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 4.75rem;
  display: flex;
}

.hero-stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Capas de momentos narrativos */
.hero-moment {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 460ms;
}

@media (min-width: 768px) {
  .hero-moment {
    left: 2rem;
    right: 2rem;
  }
}

.hero-moment.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

/* Momento 01 — Inicio (Izquierda centrada editorial) */
.hero-moment--01 {
  justify-content: center;
  align-items: flex-start;
  max-width: 780px;
}

.hero-m-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-gold-rule {
  width: 34px;
  height: 1.5px;
  background-color: var(--gold);
  flex-shrink: 0;
}

.hero-m1-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--surface-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 8px 32px rgba(0, 12, 32, 0.55);
}

.hero-m1-subtitle {
  font-size: clamp(1.06rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--silver-soft);
  max-width: 44ch;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
  margin-bottom: 0;
  text-shadow: 0 4px 20px rgba(0, 12, 32, 0.65);
}

/* Etiqueta editorial común para momentos 02-04 */
.hero-m-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Momento 02 — Estrategia (Inferior izquierda para dejar libre el núcleo geométrico) */
.hero-moment--02 {
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  max-width: 720px;
}

.hero-m2-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--surface-white);
  margin: 0;
  text-shadow: 0 8px 30px rgba(0, 10, 28, 0.7);
}

/* Momento 03 — Factor Humano (Zona superior izquierda para no tapar a los ejecutivos) */
.hero-moment--03 {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 1.25rem;
  max-width: 780px;
}

@media (min-width: 1024px) {
  .hero-moment--03 {
    padding-top: 2rem;
  }
}

.hero-m3-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--surface-white);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  text-shadow: 0 8px 28px rgba(0, 10, 28, 0.75);
}

.hero-m3-line-gold {
  color: var(--gold);
}

/* Momento 04 — Conversión (Zona superior para dejar visible la firma del acuerdo) */
.hero-moment--04 {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 1.5rem;
  max-width: 820px;
}

@media (min-width: 1024px) {
  .hero-moment--04 {
    padding-top: 2.25rem;
  }
}

.hero-m4-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--surface-white);
  margin: 0;
  text-shadow: 0 8px 32px rgba(0, 10, 28, 0.78);
}

.hero-gold-highlight {
  color: var(--gold);
  position: relative;
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.04em;
}

/* Momento 05 — Final (Composición centrada con logotipo gráfico oficial y CTAs) */
.hero-moment--05 {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-m5-brand {
  background-color: #001731;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 18px 40px -16px rgba(0, 10, 28, 0.65);
}

.hero-m5-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-m5-logo {
    height: 70px;
  }
}

.hero-m5-descriptor {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.3vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  text-shadow: 0 4px 16px rgba(0, 10, 28, 0.75);
}

.hero-m5-complement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--surface-white);
  max-width: 34ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  text-shadow: 0 6px 26px rgba(0, 10, 28, 0.8);
}

.hero-m5-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 460px;
  justify-content: center;
}

@media (min-width: 560px) {
  .hero-m5-actions {
    flex-direction: row;
    max-width: none;
    width: auto;
  }
}

/* HUD inferior minimalista de progreso */
.hero-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.35rem;
  z-index: 3;
  pointer-events: none;
}

.hero-hud-inner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: opacity 320ms ease;
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
}

.scroll-cue-text {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-soft);
  white-space: nowrap;
}

.scroll-cue-line {
  width: 26px;
  height: 1px;
  background-color: var(--gold);
}

.hero-progress-track {
  flex: 1;
  height: 2px;
  background-color: rgba(192, 198, 212, 0.28);
  border-radius: 2px;
  overflow: hidden;
}

.hero-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--silver) 0%, var(--gold) 100%);
  will-change: width;
}

.hero-step-counter {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--silver-soft);
  white-space: nowrap;
}

.hero-step-counter #hero-step-current {
  color: var(--gold);
}

.step-sep {
  opacity: 0.5;
  margin-inline: 0.15rem;
}

/* Alternativa accesible para movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .hero-cinema {
    height: auto;
    min-height: 0;
  }

  .hero-sticky {
    position: relative;
    height: 100svh;
    min-height: 620px;
  }

  .hero-moment {
    transition: none;
  }

  .hero-moment--01,
  .hero-moment--02,
  .hero-moment--03,
  .hero-moment--04 {
    display: none;
  }

  .hero-moment--05 {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-hud {
    display: none;
  }
}

/* ==========================================================================
   PRESENTACIÓN DE DELFEX
   ========================================================================== */
.section-about {
  background-color: var(--surface-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
  }
}

.about-media-col {
  position: relative;
}

.about-image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--silver-soft);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.about-caption-card {
  background-color: var(--surface-pearl);
  border-left: 3px solid var(--navy);
  border-top: 1px solid var(--silver-soft);
  border-right: 1px solid var(--silver-soft);
  border-bottom: 1px solid var(--silver-soft);
  padding: 1.25rem 1.4rem;
  margin-top: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.caption-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-muted);
  margin-bottom: 0.4rem;
}

.caption-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-body);
}

.about-copy p {
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
  color: var(--ink-body);
}

.lead-paragraph {
  font-size: 1.125rem !important;
  font-weight: 500;
  color: var(--navy) !important;
  line-height: 1.6;
}

.about-highlight-statement {
  padding: 1.15rem 1.25rem;
  background-color: var(--surface-pearl);
  border-left: 2.5px solid var(--gold);
  font-weight: 500;
  color: var(--navy) !important;
  margin-top: 1.4rem;
  margin-bottom: 0 !important;
}

.about-pillars-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--silver-soft);
}

.about-pillar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}

.pillar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
}

/* ==========================================================================
   LOS SEIS SERVICIOS (Seis grandes bloques horizontales 65% / 35%)
   ========================================================================== */
.section-services {
  background-color: var(--surface-white);
  border-top: 1px solid var(--silver-soft);
}

.services-intro-band {
  background-color: var(--surface-pearl);
  padding-block: 4.5rem 3.5rem;
  border-bottom: 1px solid var(--silver-soft);
}

@media (min-width: 1024px) {
  .services-intro-band {
    padding-block: 6rem 4.25rem;
  }
}

.services-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .services-header {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.services-header .section-title {
  margin-bottom: 0;
}

.services-intro {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--ink-muted);
  padding-left: 1.25rem;
  border-left: 1.5px solid var(--gold);
}

.services-list-wrap {
  display: flex;
  flex-direction: column;
}

.service-band {
  position: relative;
  padding-top: 3.75rem;
  padding-bottom: 0;
  transition:
    opacity 550ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .service-band {
    padding-top: 5.25rem;
  }
}

.service-band:last-child {
  padding-bottom: 3.75rem;
}

@media (min-width: 1024px) {
  .service-band:last-child {
    padding-bottom: 5.25rem;
  }
}

/* Transición discreta al entrar en pantalla */
.js-reveal-ready .service-band {
  opacity: 0;
  transform: translateY(18px);
}

.js-reveal-ready .service-band.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-band--navy {
  background-color: #071E3E;
  color: var(--ink-light-muted);
}

.service-band--white {
  background-color: var(--surface-white);
  color: var(--ink-body);
}

.service-band.is-highlighted {
  box-shadow: inset 3px 0 0 var(--gold);
}

.service-band-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  padding-bottom: 3.75rem;
}

@media (min-width: 1024px) {
  .service-band-grid {
    grid-template-columns: 65fr 35fr;
    gap: 4rem;
    padding-bottom: 5.25rem;
  }
}

.service-band:last-child .service-band-grid {
  padding-bottom: 0;
}

.service-band-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
}

.service-band-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.service-band--white .service-band-num {
  color: var(--gold-muted);
}

.service-band-rule {
  height: 1px;
  flex: 1;
  max-width: 140px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(192, 198, 212, 0.25) 100%);
}

.service-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.95rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  transition: color var(--transition-base);
}

.service-band--navy .service-band-title {
  color: var(--surface-white);
}

.service-band--white .service-band-title {
  color: var(--navy);
}

.service-band--navy:hover .service-band-title {
  color: var(--gold);
}

.service-band--white:hover .service-band-title {
  color: #9C7916;
}

.service-band-desc {
  font-size: 1.04rem;
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 1.65rem;
}

.service-band--navy .service-band-desc {
  color: var(--silver-soft);
}

.service-band-features {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(192, 198, 212, 0.22);
  margin-bottom: 1.75rem;
}

.service-band--white .service-band-features {
  border-top-color: var(--silver-soft);
}

.features-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.service-band--navy .features-label {
  color: var(--gold);
}

.service-band--white .features-label {
  color: var(--navy);
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 2rem;
}

@media (min-width: 640px) {
  .features-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.features-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold);
}

.service-band--navy .features-list li {
  color: var(--surface-white);
}

.service-band-actions {
  display: flex;
  align-items: center;
}

.service-band-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.25rem;
  border-bottom: 1.5px solid var(--gold);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.service-band--navy .service-band-link {
  color: var(--gold);
}

.service-band--navy .service-band-link:hover {
  color: var(--surface-white);
  transform: translateX(3px);
}

.service-band--white .service-band-link {
  color: var(--navy);
}

.service-band--white .service-band-link:hover {
  color: var(--gold-muted);
  transform: translateX(3px);
}

/* Ilustración conceptual 3D a la derecha (35%) */
.service-band-visual {
  margin: 0;
}

.service-visual-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #071E3E;
  border: 1px solid rgba(192, 198, 212, 0.2);
  box-shadow: 0 24px 48px -24px rgba(4, 16, 36, 0.55);
}

.service-band--white .service-visual-frame {
  border-color: rgba(11, 45, 91, 0.14);
  box-shadow: 0 24px 48px -26px rgba(11, 45, 91, 0.32);
}

.service-visual-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-band:hover .service-visual-img {
  transform: scale(1.035);
}

/* Separador fino arquitectónico con detalle geométrico dorado */
.service-band-divider {
  position: relative;
  height: 1px;
  background-color: rgba(192, 198, 212, 0.2);
}

.service-band--white .service-band-divider {
  background-color: var(--silver-soft);
}

.divider-diamond {
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  background-color: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .service-band {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-visual-img {
    transition: none;
  }

  .service-band:hover .service-visual-img {
    transform: none;
  }
}

/* ==========================================================================
   METODOLOGÍA (5 Tarjetas Visuales 3D sobre Azul Corporativo)
   ========================================================================== */
.section-methodology {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--surface-white);
}

.methodology-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 40% at 50% 0%, rgba(78, 136, 199, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 90%, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
}

.methodology-container {
  position: relative;
  z-index: 1;
}

.methodology-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3.25rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .methodology-header {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    margin-bottom: 3.75rem;
  }
}

.methodology-header .section-title {
  margin-bottom: 0;
}

.methodology-intro {
  margin: 0;
  color: var(--ink-light-muted);
  font-size: 1.02rem;
  padding-left: 1.15rem;
  border-left: 1.5px solid rgba(212, 175, 55, 0.6);
}

/* Distribución equilibrada: 1 col móvil, 2 col tablet, 3+2 col centrada escritorio */
.methodology-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .methodology-grid {
    gap: 1.75rem;
  }
}

.method-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(165deg, rgba(16, 51, 99, 0.92) 0%, rgba(7, 25, 52, 0.98) 100%);
  border: 1px solid rgba(192, 198, 212, 0.16);
  box-shadow: 0 22px 46px -24px rgba(2, 10, 24, 0.78);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  .method-card {
    width: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .method-card {
    width: calc((100% - 3.5rem) / 3);
  }
}

/* Entrada progresiva escalonada al hacer scroll */
.js-reveal-ready .method-card {
  opacity: 0;
  transform: translateY(20px);
}

.js-reveal-ready .method-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal-ready .method-card[data-step="02"].is-visible {
  transition-delay: 80ms;
}

.js-reveal-ready .method-card[data-step="03"].is-visible {
  transition-delay: 160ms;
}

.js-reveal-ready .method-card[data-step="04"].is-visible {
  transition-delay: 100ms;
}

.js-reveal-ready .method-card[data-step="05"].is-visible {
  transition-delay: 180ms;
}

@media (hover: hover) {
  .method-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
      0 28px 54px -22px rgba(2, 10, 24, 0.85),
      0 0 0 1px rgba(212, 175, 55, 0.18);
    transition-delay: 0ms;
  }
}

/* Escenario visual (~52% de la tarjeta) */
.method-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #11366B 0%, #082042 58%, #041329 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.method-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) {
  .method-card:hover .method-card-img {
    transform: scale(1.04);
  }
}

.method-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.75rem;
}

@media (min-width: 1024px) {
  .method-card-body {
    padding: 1.65rem 1.75rem 1.9rem;
  }
}

.method-card-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.method-phase-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

@media (hover: hover) {
  .method-card:hover .method-phase-num {
    color: #EBD06E;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.32);
  }
}

.method-gold-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.85) 0%, rgba(192, 198, 212, 0.16) 100%);
  transition: background var(--transition-fast);
}

@media (hover: hover) {
  .method-card:hover .method-gold-rule {
    background: linear-gradient(90deg, #F0D578 0%, rgba(212, 175, 55, 0.35) 100%);
  }
}

/* Indicador discreto de continuidad entre las 5 fases */
.method-sequence-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.seq-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(192, 198, 212, 0.22);
}

.seq-dot.is-passed {
  background-color: rgba(212, 175, 55, 0.45);
}

.seq-dot.is-current {
  width: 14px;
  border-radius: 3px;
  background-color: var(--gold);
}

.method-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--surface-white);
  margin-bottom: 0.65rem;
}

.method-card-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-light-muted);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .method-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .method-card,
  .method-card-img {
    transition: none;
  }

  .method-card:hover,
  .method-card:hover .method-card-img {
    transform: none;
  }
}

/* ==========================================================================
   PROPUESTA DE VALOR
   ========================================================================== */
.section-value {
  background-color: var(--surface-white);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: 0.86fr 1.14fr;
    gap: 4.5rem;
  }
}

.value-brand-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Monolito vertical corporativo que integra el Logo D sobre su fondo azul noche nativo */
.vertical-brand-monolith {
  background: radial-gradient(ellipse at center, #031B3E 0%, #001027 72%, #000A1E 100%);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 44px -24px rgba(0, 16, 39, 0.65);
}

.vertical-logo-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

.value-photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--silver-soft);
}

.value-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.value-rows {
  margin-top: 2rem;
  border-top: 1px solid var(--silver);
}

.value-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--silver-soft);
  align-items: start;
}

.value-row-index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--gold-muted);
  padding-top: 0.2rem;
  letter-spacing: 0.1em;
}

.value-row-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
}

.value-row-desc {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-body);
}

/* ==========================================================================
   CTA PRINCIPAL
   ========================================================================== */
.section-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #0E376D 100%);
  color: var(--surface-white);
  text-align: center;
}

.cta-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-decor svg {
  width: 100%;
  height: 100%;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--surface-white);
  margin-bottom: 1.25rem;
}

.cta-text {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-light-muted);
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.section-contact {
  background-color: var(--surface-pearl);
  border-top: 1px solid var(--silver-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.contact-lead {
  font-size: 1rem;
  color: var(--ink-body);
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-card {
  background-color: var(--surface-white);
  border: 1px solid var(--silver-soft);
  border-left: 2.5px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.channel-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.channel-status {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.contact-form {
  background-color: var(--surface-white);
  border: 1px solid var(--silver-soft);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  box-shadow: 0 20px 44px -28px rgba(11, 45, 91, 0.25);
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2.5rem;
  }
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .form-row-two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.req {
  color: var(--gold-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  background-color: var(--surface-pearl);
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink-body);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background-color: var(--surface-white);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.08);
}

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: #B42318;
  background-color: #FFF8F7;
}

.form-textarea {
  resize: vertical;
  min-height: 112px;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: #B42318;
  margin-top: 0.3rem;
  min-height: 1em;
}

.form-field--checkbox {
  margin-top: 0.35rem;
  margin-bottom: 1.4rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
  cursor: pointer;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}

.inline-legal-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.form-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-feedback.is-success {
  background-color: #EEF6F2;
  border: 1px solid #96C8AC;
  border-left: 3px solid #1E6B43;
  color: #154B2F;
}

.form-feedback.is-error {
  background-color: #FEF3F2;
  border: 1px solid #F4B9B3;
  border-left: 3px solid #B42318;
  color: #7A271A;
}

/* ==========================================================================
   FOOTER (Fondo azul noche exacto para integrar Logo C sin bordes)
   ========================================================================== */
.site-footer {
  background-color: var(--navy-footer);
  color: var(--ink-light-muted);
  padding-top: 4rem;
  padding-bottom: 2.25rem;
  border-top: 2px solid rgba(212, 175, 55, 0.45);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(192, 198, 212, 0.16);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.35fr 0.75fr 1fr 0.9fr;
    gap: 2.5rem;
  }
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo {
  width: auto;
  height: 54px;
  object-fit: contain;
}

.footer-descriptor {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.footer-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 36ch;
  color: var(--ink-light-muted);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surface-white);
  margin-bottom: 1.1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.89rem;
}

.footer-list a {
  color: var(--ink-light-muted);
  transition: color var(--transition-fast);
}

.footer-list a:hover {
  color: var(--gold);
}

.footer-muted {
  color: rgba(200, 208, 222, 0.65);
  font-size: 0.85rem;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.footer-copyright {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(200, 208, 222, 0.75);
}

.footer-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  color: var(--ink-light-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.footer-legal-btn:hover {
  color: var(--gold);
}

/* ==========================================================================
   MODAL LEGAL
   ========================================================================== */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  background-color: rgba(6, 26, 56, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.legal-modal-backdrop[hidden] {
  display: none;
}

.legal-modal-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background-color: var(--surface-white);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--gold);
  box-shadow: 0 28px 60px -20px rgba(0, 16, 39, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--silver-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.legal-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.legal-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-body);
}

.legal-modal-body h3 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--silver-soft);
  display: flex;
  justify-content: flex-end;
  background-color: var(--surface-pearl);
}

/* ==========================================================================
   WIDGET FLOTANTE DE CHAT Y CONEXIÓN WHATSAPP — DELFEX CONSULTING (Global)
   ========================================================================== */
.wa-widget {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px) + 0.75rem);
  bottom: calc(3.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .wa-widget {
    right: 1.75rem;
    bottom: 3.35rem;
  }
}

@media (min-width: 1400px) {
  .wa-widget {
    bottom: 1.75rem;
  }
}

/* Botón circular flotante con halo luminoso GLOW y pulso suave */
.wa-trigger {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: radial-gradient(circle at 32% 28%, #2EE472 0%, #25D366 60%, #1DB956 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 10px 26px -6px rgba(11, 45, 91, 0.36),
    0 0 20px rgba(37, 211, 102, 0.48);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
  animation:
    waTriggerReveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both,
    waGlowPulse 3.4s ease-in-out 0.6s infinite;
}

@media (min-width: 768px) {
  .wa-trigger {
    width: 62px;
    height: 62px;
  }
}

/* Destello diagonal sutil sobre el botón */
.wa-trigger-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.wa-trigger-sheen::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -90%;
  width: 55%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: waSheenSweep 6.5s ease-in-out 1.8s infinite;
}

@media (hover: hover) {
  .wa-trigger:hover {
    transform: scale(1.07);
    filter: brightness(1.04);
    box-shadow:
      0 14px 32px -6px rgba(11, 45, 91, 0.42),
      0 0 34px rgba(37, 211, 102, 0.8),
      0 0 0 6px rgba(37, 211, 102, 0.2);
  }
}

.wa-trigger:active {
  transform: scale(0.96);
}

.wa-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Al abrir el chat se detiene la animación luminosa y de destello */
.wa-widget.is-open .wa-trigger {
  animation: none;
  box-shadow:
    0 12px 28px -8px rgba(11, 45, 91, 0.4),
    0 4px 14px rgba(37, 211, 102, 0.28);
}

.wa-widget.is-open .wa-trigger-sheen::after {
  animation: none;
  opacity: 0;
}

.wa-icon {
  position: relative;
  z-index: 1;
  width: 29px;
  height: 29px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .wa-icon {
    width: 31px;
    height: 31px;
  }
}

/* Badge rojo de notificación (1) */
.wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #E53935;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  user-select: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.wa-badge.is-hidden {
  opacity: 0;
  transform: scale(0.5);
}

/* Ventana de chat de bienvenida */
.wa-window {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(356px, calc(100vw - 3rem));
  max-height: min(500px, calc(100svh - var(--header-height) - 118px));
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(192, 198, 212, 0.7);
  box-shadow:
    0 28px 60px -16px rgba(6, 26, 56, 0.38),
    0 8px 24px -8px rgba(11, 45, 91, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 240ms;
}

@media (min-width: 768px) {
  .wa-window {
    width: 376px;
    max-height: min(510px, calc(100vh - var(--header-height) - 125px));
  }
}

.wa-widget.is-open .wa-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 250ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

/* Cabecera corporativa del chat */
.wa-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--surface-white);
  padding: 0.95rem 1.05rem;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.58);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.wa-header-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.wa-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #011834;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.wa-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-header-text {
  min-width: 0;
}

.wa-title {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--surface-white);
}

.wa-status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--silver-soft);
}

.wa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.22);
  flex-shrink: 0;
}

.wa-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 198, 212, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.wa-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
}

/* Zona de conversación */
.wa-messages {
  flex: 1 1 auto;
  min-height: 150px;
  overflow-y: auto;
  padding: 1.15rem 1rem;
  background-color: #F4F7FB;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wa-bubble {
  max-width: 92%;
  background-color: var(--surface-white);
  border: 1px solid var(--silver-soft);
  border-left: 3px solid var(--gold);
  border-radius: 2px var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 0.95rem 1rem;
  box-shadow: 0 6px 18px -12px rgba(11, 45, 91, 0.2);
  color: var(--ink-body);
  font-size: 0.89rem;
  line-height: 1.55;
}

.wa-bubble p {
  margin: 0 0 0.7rem;
}

.wa-bubble p:last-child {
  margin-bottom: 0;
}

.wa-bubble-meta {
  font-size: 0.7rem;
  color: var(--ink-muted);
  padding-left: 0.15rem;
}

/* Caja de escritura del visitante */
.wa-composer {
  flex-shrink: 0;
  background-color: var(--surface-white);
  border-top: 1px solid var(--silver-soft);
  padding: 0.75rem 0.85rem;
}

.wa-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  background-color: var(--surface-pearl);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.45rem 0.4rem 0.75rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.wa-composer-row:focus-within {
  background-color: var(--surface-white);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.08);
}

.wa-input {
  flex: 1;
  min-height: 24px;
  max-height: 108px;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-body);
  overflow-y: auto;
}

.wa-input::placeholder {
  color: var(--ink-muted);
}

.wa-send {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: none;
  background-color: var(--navy);
  color: var(--surface-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.wa-send:hover {
  background-color: #25D366;
}

.wa-send:active {
  transform: scale(0.95);
}

.wa-send svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.wa-hint {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: #B42318;
  min-height: 0;
}

.wa-hint[hidden] {
  display: none;
}

/* Animaciones del halo luminoso y destello */
@keyframes waTriggerReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes waGlowPulse {
  0%, 100% {
    box-shadow:
      0 10px 26px -6px rgba(11, 45, 91, 0.36),
      0 0 18px rgba(37, 211, 102, 0.42),
      0 0 0 0 rgba(37, 211, 102, 0.32);
  }
  50% {
    box-shadow:
      0 12px 30px -6px rgba(11, 45, 91, 0.4),
      0 0 32px rgba(37, 211, 102, 0.78),
      0 0 0 10px rgba(37, 211, 102, 0);
  }
}

@keyframes waSheenSweep {
  0%, 78% {
    transform: translateX(0) rotate(25deg);
    opacity: 0;
  }
  84% {
    opacity: 1;
  }
  95%, 100% {
    transform: translateX(340%) rotate(25deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-trigger,
  .wa-trigger-sheen::after {
    animation: none;
  }

  .wa-trigger,
  .wa-window,
  .wa-badge,
  .wa-send {
    transition: none;
  }

  .wa-trigger:hover,
  .wa-trigger:active {
    transform: none;
  }
}

/* ==========================================================================
   SECCIÓN «ÚNETE A DELFEX» (Red de Talento Comercial y Closers)
   ========================================================================== */
.section-join {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #051630 0%, #09254D 52%, #041329 100%);
  color: var(--surface-white);
  border-top: 1.5px solid rgba(212, 175, 55, 0.45);
}

.join-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 35% at 15% 8%, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 88% 42%, rgba(78, 136, 199, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 55% 35% at 50% 94%, rgba(212, 175, 55, 0.09) 0%, transparent 70%);
}

.join-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4.25rem;
}

@media (min-width: 1024px) {
  .join-container {
    gap: 5.5rem;
  }
}

/* Animación discreta de entrada al hacer scroll */
.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 1. Hero interno de la sección */
.join-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(192, 198, 212, 0.16);
}

@media (min-width: 1024px) {
  .join-hero {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    padding-bottom: 4.5rem;
  }
}

.join-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--surface-white);
  margin: 0;
}

.join-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: var(--ink-light-muted);
  font-size: 1.02rem;
}

.join-hero-copy p {
  margin: 0;
}

.join-lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--surface-white);
  line-height: 1.58;
}

.join-spotlight {
  margin: 0.65rem 0 0;
  padding: 1.2rem 1.35rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(11, 45, 91, 0.45) 100%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 700;
  line-height: 1.45;
  color: #F3DC8B;
}

.join-spotlight-line {
  display: none;
}

/* Encabezados de sub-bloques */
.join-block-header {
  margin-bottom: 2.25rem;
}

.join-block-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--surface-white);
  margin: 0;
}

/* 2. «¿A quién buscamos?» — Tres tarjetas conceptuales */
.talent-profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .talent-profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .talent-profiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.talent-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(165deg, rgba(16, 51, 99, 0.9) 0%, rgba(6, 22, 46, 0.98) 100%);
  border: 1px solid rgba(192, 198, 212, 0.16);
  box-shadow: 0 22px 46px -24px rgba(2, 10, 24, 0.78);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal-ready .talent-card:nth-child(2).is-visible {
  transition-delay: 80ms;
}

.js-reveal-ready .talent-card:nth-child(3).is-visible {
  transition-delay: 160ms;
}

@media (hover: hover) {
  .talent-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
      0 28px 54px -22px rgba(2, 10, 24, 0.86),
      0 0 0 1px rgba(212, 175, 55, 0.2);
    transition-delay: 0ms;
  }
}

.talent-card-media {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #11366B 0%, #082042 58%, #041329 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.talent-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .talent-card:hover .talent-card-img {
    transform: scale(1.04);
  }
}

.talent-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.75rem;
}

.talent-card-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.talent-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--surface-white);
  margin-bottom: 0.75rem;
}

.talent-card-desc {
  margin: 0 0 1.4rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-light-muted);
}

.talent-card-action {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--gold);
  padding: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.talent-card-action:hover {
  color: var(--surface-white);
  transform: translateX(3px);
}

/* 3. «¿Qué te ofrecemos?» — 5 pilares dinámicos */
.offer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.offer-card {
  width: 100%;
  padding: 1.65rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(192, 198, 212, 0.16);
  border-top: 2px solid rgba(212, 175, 55, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  .offer-card {
    width: calc((100% - 1.25rem) / 2);
  }
}

@media (min-width: 1024px) {
  .offer-card {
    width: calc((100% - 2.5rem) / 3);
  }
}

@media (hover: hover) {
  .offer-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.5);
  }
}

.offer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offer-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.offer-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.offer-icon svg {
  width: 17px;
  height: 17px;
}

.offer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 800;
  color: var(--surface-white);
}

.offer-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-light-muted);
}

/* 4. «¿Cómo funciona?» — Recorrido de 3 pasos conectados */
.join-process {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .join-process {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .join-process::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(212, 175, 55, 0.45) 55%, rgba(192, 198, 212, 0.25) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
  }

  .join-process.is-line-visible::before {
    transform: scaleX(1);
  }
}

.join-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(192, 198, 212, 0.14);
}

@media (min-width: 1024px) {
  .join-step {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 0.5rem 0.5rem;
    background: transparent;
    border: none;
  }
}

.join-step-marker {
  display: flex;
  align-items: center;
}

.join-step-node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #103263 0%, #061A38 100%);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.65);
}

.join-step-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--surface-white);
}

.join-step-desc {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--ink-light-muted);
}

/* 5. Bloque Final de Conversión */
.join-cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.5rem;
  background: linear-gradient(145deg, #061833 0%, #0B2D5B 65%, #071E3E 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 28px 60px -24px rgba(2, 8, 20, 0.85);
  text-align: center;
}

@media (min-width: 768px) {
  .join-cta-panel {
    padding: 3.75rem 3rem;
  }
}

.join-cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 70%);
}

.join-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}

.join-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--surface-white);
  margin-bottom: 1rem;
}

.join-cta-text {
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--ink-light-muted);
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: 2.1rem;
}

.join-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .join-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.join-cta-actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .join-cta-actions .btn {
    width: auto;
  }
}

/* ==========================================================================
   MODAL DE CANDIDATURA «ÚNETE A DELFEX»
   ========================================================================== */
.talent-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  background-color: rgba(4, 16, 36, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.talent-modal-backdrop[hidden] {
  display: none;
}

.talent-modal-dialog {
  width: 100%;
  max-width: 660px;
  max-height: min(90vh, 90svh);
  background-color: var(--surface-white);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--gold);
  box-shadow: 0 32px 72px -20px rgba(0, 12, 32, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: talentModalIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes talentModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.talent-modal-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--surface-white);
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.talent-modal-eyebrow {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.talent-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--surface-white);
}

.talent-modal-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 198, 212, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface-white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.talent-modal-close:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.16);
}

.talent-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--ink-body);
}

@media (min-width: 640px) {
  .talent-modal-body {
    padding: 1.75rem 2rem;
  }
}

.optional-tag {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Confirmación visual de candidatura */
.talent-confirmation {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.talent-confirmation-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  background-color: #EEF6F2;
  border: 1.5px solid #1E6B43;
  color: #1E6B43;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.talent-confirmation-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.talent-confirmation-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 46ch;
  margin: 0 auto 1rem;
}

.talent-confirmation-meta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface-pearl);
  border: 1px solid var(--silver-soft);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 0.9rem;
}

.talent-confirmation-note {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-muted);
  background-color: #FFFBEB;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  max-width: 48ch;
  margin: 0 auto 1.25rem;
}

.talent-confirmation-actions {
  display: flex;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .talent-card,
  .talent-card-img,
  .offer-card,
  .talent-modal-dialog {
    animation: none;
    transition: none;
  }

  .talent-card:hover,
  .talent-card:hover .talent-card-img,
  .offer-card:hover {
    transform: none;
  }

  .join-process::before {
    transform: scaleX(1);
    transition: none;
  }
}
