/* =================================================================
   CMARA DE INVERSIONISTAS DE COSTA RICA  #SOMOS ALIADOS
   Diseo corporativo, elegante, moderno con 3D y parallax.
   ================================================================= */

:root {
  /* ===== Paleta corporativa Grupolar =====
     Primarios:  Pantone 541c #003D6F (azul)  Pantone 347c #00984A (verde)
     Secundarios: 2935c #0058B5  360c #69BF53  129c #FACC4D  1375c #FF9C2F
     Terciarios: Neutral Black  416c #7E7F74  7527c #D7D1C5 / #EAE7E1
  */
  --c-ink:        #001226;   /* navy muy oscuro derivado */
  --c-ink-2:      #002A4F;   /* navy */
  --c-ink-3:      #003D6F;   /* Pantone 541c - azul primario */
  --c-blue:       #003D6F;   /* Pantone 541c */
  --c-blue-2:     #0058B5;   /* Pantone 2935c - azul vibrante */
  --c-green:      #00984A;   /* Pantone 347c - verde primario */
  --c-green-2:    #69BF53;   /* Pantone 360c - verde claro */
  --c-celeste:    #00984A;   /* alias por compatibilidad ? verde */
  --c-celeste-2:  #69BF53;   /* alias por compatibilidad ? verde claro */
  --c-yellow:     #FACC4D;   /* Pantone 129c */
  --c-orange:     #FF9C2F;   /* Pantone 1375c */
  --c-gold:       #FACC4D;   /* alias chip */
  --c-paper:      #F5F2EC;   /* Crema muy claro derivado de 7527c */
  --c-paper-2:    #EAE7E1;   /* Pantone 7527c 50% */
  --c-paper-3:    #D7D1C5;   /* Pantone 7527c 100% */
  --c-gray:       #7E7F74;   /* Pantone 416c */
  --c-black:      #000000;   /* Neutral Black c */
  --c-line:       rgba(255, 255, 255, 0.10);
  --c-line-dark:  rgba(0, 42, 79, 0.12);
  --c-white:      #FFFFFF;

  /* Gradientes */
  --g-dark:    radial-gradient(120% 80% at 70% 0%, #00305A 0%, #001226 65%);
  --g-hero:    radial-gradient(80% 60% at 30% 20%, rgba(0,88,181,0.50) 0%, rgba(0,61,111,0) 60%),
               radial-gradient(70% 60% at 80% 80%, rgba(0,152,74,0.30) 0%, rgba(0,61,111,0) 60%),
               linear-gradient(180deg, #001226 0%, #002A4F 100%);
  --g-blue:    linear-gradient(135deg, #0058B5 0%, #003D6F 60%, #001F3D 100%);
  --g-green:   linear-gradient(135deg, #69BF53 0%, #00984A 60%, #00683A 100%);
  --g-celeste: linear-gradient(135deg, #69BF53 0%, #00984A 50%, #0058B5 100%);
  --g-warm:    linear-gradient(135deg, #FACC4D 0%, #FF9C2F 100%);

  /* Tipografa */
  --f-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-display: 'Playfair Display', Georgia, serif;

  /* Sombras */
  --sh-sm: 0 4px 14px rgba(6, 16, 31, 0.10);
  --sh-md: 0 14px 40px rgba(6, 16, 31, 0.16);
  --sh-lg: 0 30px 80px rgba(6, 16, 31, 0.28);
  --sh-blue: 0 20px 60px rgba(0, 61, 111, 0.50);
  --sh-green: 0 20px 60px rgba(0, 152, 74, 0.40);

  /* Radius */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Easings */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--c-celeste); color: var(--c-ink); }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { padding: 0; list-style: none; margin: 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =================================================================
   LOADER  con efecto de destello sobre el logo
   ================================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(255,255,255,0.06), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, #00305A 0%, #001226 60%);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }

.loader-logo {
  position: relative;
  width: 280px;
  max-width: 70vw;
  aspect-ratio: 1;
  display: grid; place-items: center;
  animation:
    loader-pop .8s var(--ease) both,
    loader-float 3.5s ease-in-out 1s infinite,
    loader-aura 4s ease-in-out infinite;
}
.loader-logo img {
  width: 70%; height: 70%;
  object-fit: contain;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

/* Halo iridiscente giratorio detras del logo */
.loader-logo::before {
  content: "";
  position: absolute; inset: 5%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0058B5 0%,
    #69BF53 25%,
    #00A6CE 50%,
    #003D6F 75%,
    #0058B5 100%);
  filter: blur(18px);
  opacity: 0.65;
  z-index: 0;
  animation: loader-spin 6s linear infinite;
}

/* Mascara central oscura que crea el "anillo" iridiscente */
.loader-logo::after {
  content: "";
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0, 18, 38, 0.92) 35%,
    rgba(0, 18, 38, 0.50) 65%,
    transparent 100%);
  z-index: 1;
}

/* Anillos expansivos concentricos */
.loader-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  z-index: 2;
  animation: loader-ripple 2.4s ease-out infinite;
  pointer-events: none;
}
.loader-ring-1 {
  border-color: rgba(255, 255, 255, 0.8);
  animation-delay: 0s;
}
.loader-ring-2 {
  border-color: rgba(0, 166, 206, 0.85);
  animation-delay: 0.8s;
}
.loader-ring-3 {
  border-color: rgba(105, 191, 83, 0.85);
  animation-delay: 1.6s;
}

/* Pequenas chispas orbitando alrededor del logo */
.loader-sparkle {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.9),
    0 0 24px rgba(0, 166, 206, 0.7);
  z-index: 3;
  opacity: 0;
  animation: loader-sparkle 3s ease-in-out infinite;
  pointer-events: none;
}
.loader-sparkle-1 {
  top: 12%; left: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 12px #FFFFFF, 0 0 24px #0058B5;
  animation-delay: 0s;
}
.loader-sparkle-2 {
  top: 50%; right: 8%;
  background: #69BF53;
  box-shadow: 0 0 12px #69BF53, 0 0 24px rgba(105, 191, 83, 0.6);
  animation-delay: 0.75s;
}
.loader-sparkle-3 {
  bottom: 12%; left: 50%;
  background: #00A6CE;
  box-shadow: 0 0 12px #00A6CE, 0 0 24px rgba(0, 166, 206, 0.6);
  animation-delay: 1.5s;
}
.loader-sparkle-4 {
  top: 50%; left: 8%;
  background: #FFFFFF;
  box-shadow: 0 0 12px #FFFFFF, 0 0 24px #69BF53;
  animation-delay: 2.25s;
}

.loader-bar {
  width: 260px; height: 4px; background: rgba(255,255,255,.10); border-radius: 99px; overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 88, 181, 0.3);
}
.loader-bar span {
  display: block; width: 40%; height: 100%;
  background: linear-gradient(90deg, #0058B5, #69BF53, #0058B5);
  background-size: 200% 100%;
  border-radius: 99px;
  animation: loader-slide 1.6s ease-in-out infinite, loader-grad 3s linear infinite;
}
@keyframes loader-slide {
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}
@keyframes loader-grad {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes loader-pop {
  0%   { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes loader-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes loader-aura {
  0%, 100% {
    filter:
      drop-shadow(0 0 30px rgba(0, 88, 181, 0.55))
      drop-shadow(0 0 60px rgba(0, 166, 206, 0.30));
  }
  33% {
    filter:
      drop-shadow(0 0 30px rgba(105, 191, 83, 0.60))
      drop-shadow(0 0 60px rgba(0, 152, 74, 0.35));
  }
  66% {
    filter:
      drop-shadow(0 0 30px rgba(0, 166, 206, 0.65))
      drop-shadow(0 0 60px rgba(0, 88, 181, 0.30));
  }
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes loader-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    border-width: 3px;
  }
  10% { opacity: 1; }
  100% {
    transform: translate(-50%, -50%) scale(1.65);
    opacity: 0;
    border-width: 1px;
  }
}
@keyframes loader-sparkle {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20%      { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  40%      { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  60%      { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* =================================================================
   CURSOR GLOW
   ================================================================= */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,152,74,0.22) 0%, rgba(0,152,74,0) 60%);
  transform: translate(-50%, -50%);
  z-index: 5;
  mix-blend-mode: screen;
  transition: opacity .3s ease;
  opacity: 0;
}
body.cursor-active .cursor-glow { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease),
              padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 16, 31, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--c-line);
  padding: 8px 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
}

.nav-brand {
  display: flex; align-items: center;
  color: #fff;
  transition: transform .35s var(--ease);
}
.nav-brand:hover { transform: scale(1.03); }
.nav-brand img {
  height: 68px;
  width: auto;
  max-width: min(220px, 40vw);
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  transition: height .35s var(--ease), max-width .35s var(--ease), filter .35s var(--ease);
}
.nav.is-scrolled .nav-brand img {
  height: 56px;
  max-width: min(190px, 36vw);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.nav-menu {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px;
  border-radius: 99px;
}
.nav-menu a {
  position: relative;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 99px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-menu a.is-active { color: #fff; background: rgba(0,152,74,0.22); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-lg { padding: 20px 34px; font-size: 17px; }

.btn-primary {
  background: var(--g-blue);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-primary::before {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-celeste-2), var(--c-blue-2));
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 60px rgba(0,61,111,0.60); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* When ghost button is on a light background (e.g. inside a form) */
.formulario .btn-ghost,
.section:not(.hero):not(.parallax-banner) .btn-ghost {
  background: rgba(0,61,111,0.08);
  color: var(--c-ink-2);
  border-color: rgba(0,61,111,0.18);
}
.formulario .btn-ghost:hover,
.section:not(.hero):not(.parallax-banner) .btn-ghost:hover {
  background: rgba(0,61,111,0.14);
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 70px;
  color: #fff;
  background: var(--g-hero);
  overflow: hidden;
  isolation: isolate;
}
.hero-video-wrap {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.05);
  filter: brightness(0.55) contrast(1.08) saturate(1.05);
  will-change: transform;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(0, 18, 38, 0.82) 0%,
      rgba(0, 42, 79, 0.75) 45%,
      rgba(0, 61, 111, 0.68) 100%),
    radial-gradient(70% 60% at 80% 80%, rgba(0,152,74,0.20) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    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: 60px 60px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
  z-index: 2;
  pointer-events: none;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  filter: blur(110px);
  opacity: .4;
  z-index: 2;
  pointer-events: none;
}
.hero-glow-1 { background: var(--c-green); top: -150px; left: -150px; }
.hero-glow-2 { background: var(--c-blue-2); bottom: -200px; right: -100px; opacity: .35; }

.hero-inner {
  position: relative; z-index: 3;
  max-width: 1240px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 99px;
  font-size: 14px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-celeste);
  box-shadow: 0 0 0 0 rgba(0,152,74,0.65);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,152,74,0.65); }
  70%  { box-shadow: 0 0 0 14px rgba(0,152,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,152,74,0); }
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.06;
  font-weight: 700;
  margin: 0 0 26px;
  letter-spacing: -.02em;
}
.hero-title-line {
  display: block;
  white-space: nowrap;
}
.hero-title-accent {
  font-style: italic;
  color: #69BF53; /* Verde claro Grupolar (Pantone 360c) - solido */
}

.hero-subtitle {
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.65;
  max-width: 600px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
}
.hero-subtitle strong { color: #fff; font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 700;
  color: #FFFFFF; /* Blanco slido */
  line-height: 1;
  margin-bottom: 8px;
}
.hero-stat span {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* Hero visual / 3D Card */
.hero-visual {
  position: relative;
  display: grid; place-items: center;
  perspective: 1600px;
}
.card-stack {
  position: relative;
  width: 600px; max-width: 100%;
  height: 380px;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.card-3d {
  position: absolute; inset: 0;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.10) 100%);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  overflow: hidden;
}
.card-3d-2 { transform: translate3d(-26px, 26px, -60px) rotate(-6deg); opacity: .5; background: linear-gradient(135deg, rgba(0,61,111,0.55), rgba(6,16,31,0.5)); }
.card-3d-3 { transform: translate3d(28px, -22px, -120px) rotate(7deg); opacity: .35; background: linear-gradient(135deg, rgba(105,191,83,0.45), rgba(0,61,111,0.45)); }

/* ===== CARNET ID (HORIZONTAL por defecto) ===== */
.card-id {
  background: linear-gradient(165deg, #FFFFFF 0%, #F4F7FB 100%);
  border: 1px solid rgba(0, 61, 111, 0.10);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  display: grid;
  grid-template-rows: auto 1fr auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--c-ink-2);
  transform: translateZ(0);
}

/* Header azul corporativo */
.id-header {
  position: relative;
  padding: 14px 22px;
  background: linear-gradient(135deg, #002A4F 0%, #003D6F 55%, #0058B5 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 3px solid var(--c-celeste-2);
  transform: translateZ(20px);
}
.id-logo {
  width: 72px; height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.id-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  white-space: nowrap;
}
.id-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(105, 191, 83, 0.25);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(105, 191, 83, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(105, 191, 83, 0.05); }
}

/* Cuerpo principal: foto a la izquierda + contenido a la derecha */
.id-main {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 18px;
  align-items: start;
  transform: translateZ(30px);
}
.id-photo {
  width: 110px; height: 110px;
  border-radius: 14px;
  background: linear-gradient(135deg, #69BF53 0%, #00984A 100%);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow:
    0 8px 20px rgba(0, 152, 74, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(0, 61, 111, 0.20);
  align-self: center;
}
.id-photo svg { width: 72px; height: 72px; }

.id-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.id-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.id-info-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 42, 79, 0.55);
  font-weight: 600;
}
.id-name {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-ink-2);
  margin-top: 2px;
}
.id-role {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--c-blue-2);
  background: rgba(0, 88, 181, 0.10);
  border-radius: 6px;
  width: fit-content;
}

/* Tabla de meta-datos */
.id-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 61, 111, 0.04);
  border: 1px solid rgba(0, 61, 111, 0.10);
  border-radius: 8px;
  overflow: hidden;
  transform: translateZ(25px);
}
.id-meta-cell {
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.id-meta-cell + .id-meta-cell {
  border-left: 1px solid rgba(0, 61, 111, 0.10);
}
.id-meta-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 42, 79, 0.55);
  font-weight: 600;
}
.id-meta-value {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink-2);
  letter-spacing: 0.5px;
}

/* Lista de contacto (compacta) */
.id-contact {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px dashed rgba(0, 61, 111, 0.20);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: translateZ(20px);
}
.id-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(6, 16, 31, 0.82);
  font-weight: 500;
  line-height: 1.3;
}
.id-contact svg {
  width: 14px; height: 14px;
  color: var(--c-blue-2);
  flex-shrink: 0;
}

/* Strip inferior con QR */
.id-strip {
  padding: 10px 18px;
  background: linear-gradient(90deg, #001226 0%, #002A4F 50%, #003D6F 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 3px solid var(--c-green);
  transform: translateZ(15px);
}
.id-qr {
  width: 46px; height: 46px;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.id-qr svg {
  width: 100%; height: 100%;
  color: var(--c-ink-2);
}
.id-strip-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.id-strip-label {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--c-celeste-2);
}
.id-strip-org {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.id-strip-web {
  font-size: 10px;
  opacity: 0.65;
  letter-spacing: 0.5px;
}

.card-3d-shine {
  position: absolute; inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
  animation: shine 5s ease-in-out infinite;
  z-index: 5;
}
@keyframes shine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  z-index: 3;
  transition: color .3s ease;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll span:first-child {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.5));
  position: relative;
  overflow: hidden;
}
.hero-scroll span:first-child::after {
  content: ""; position: absolute; top: -50%; left: 0;
  width: 100%; height: 30px;
  background: linear-gradient(180deg, transparent, var(--c-celeste));
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* =================================================================
   MARQUEE
   ================================================================= */
.marquee {
  background: var(--c-ink);
  color: #fff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 36px;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 1px;
  animation: marquee 40s linear infinite;
}
.marquee-track span { color: #FFFFFF; }
.marquee-track span:nth-child(even) { color: rgba(255, 255, 255, 0.45); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =================================================================
   SECTIONS COMMON
   ================================================================= */
.section { padding: 80px 0; position: relative; }

.section-head { max-width: 820px; margin-bottom: 50px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 18px;
}
.eyebrow span {
  width: 36px; height: 2px; background: var(--c-blue); display: block;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-ink-2);
  margin: 0 0 22px;
}
.section-title em {
  font-style: italic;
  color: #0058B5; /* Azul vibrante Grupolar (Pantone 2935c) - slido */
}
.section-lead {
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.65;
  color: rgba(6, 16, 31, 0.78);
  max-width: 760px;
  margin: 0;
}

/* =================================================================
   NOSOTROS - Mission / Vision Cards con fondo decorativo
   ================================================================= */
.nosotros {
  position: relative;
  background: var(--c-paper);
  overflow: hidden;
  isolation: isolate;
}

/* Imagen decorativa de fondo */
.nosotros-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.nosotros-bg-img {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.05);
  filter: saturate(1.05) contrast(1.02);
  will-change: transform;
}

/* Velo blanco translucido encima del fondo */
.nosotros-veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 30%,
      rgba(247, 250, 253, 0.86) 70%,
      rgba(255, 255, 255, 0.96) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}

/* Formas / blobs decorativos de color */
.nosotros-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  animation: nosotros-float 12s ease-in-out infinite;
}
.nosotros-shape-1 {
  top: -8%; left: -6%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--c-celeste) 0%, transparent 70%);
}
.nosotros-shape-2 {
  bottom: -10%; right: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--c-green) 0%, transparent 70%);
  animation-delay: -6s;
}
.nosotros-shape-3 {
  top: 40%; left: 50%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--c-blue-2) 0%, transparent 70%);
  opacity: 0.30;
  animation-delay: -3s;
}
@keyframes nosotros-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -25px, 0) scale(1.08); }
}

/* Patron de puntos sutil */
.nosotros-dots {
  position: absolute; inset: 0;
  z-index: 2;
  background-image: radial-gradient(circle, rgba(0, 61, 111, 0.10) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
  opacity: 0.6;
}

.nosotros-inner {
  position: relative;
  z-index: 3;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mv-card {
  position: relative;
  padding: 38px 32px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 50px rgba(0, 42, 79, 0.18),
    0 4px 14px rgba(0, 42, 79, 0.08),
    0 0 0 1px rgba(0, 61, 111, 0.04);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  transform-style: preserve-3d;
}
.mv-card:hover {
  box-shadow:
    0 30px 70px rgba(0, 42, 79, 0.28),
    0 8px 22px rgba(0, 88, 181, 0.18);
  border-color: rgba(0, 88, 181, 0.20);
}
.mv-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--g-blue);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 14px 30px rgba(0,61,111,0.40);
  transform: translateZ(30px);
}
.mv-icon svg { width: 28px; height: 28px; }
.mv-card h3 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--c-ink-2);
  letter-spacing: -.01em;
  transform: translateZ(20px);
}
.mv-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(6,16,31,0.78);
  transform: translateZ(10px);
}
.mv-glow {
  position: absolute; bottom: -80px; right: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105,191,83,0.25), transparent 70%);
  pointer-events: none;
}

/* =================================================================
   BENEFICIOS
   ================================================================= */
.beneficios {
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-2) 100%);
  position: relative;
  overflow: hidden;
}
.beneficios::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 0% 20%, rgba(105,191,83,0.15), transparent 70%),
    radial-gradient(40% 30% at 100% 80%, rgba(0,61,111,0.10), transparent 70%);
  pointer-events: none;
}
.beneficios > .container { position: relative; z-index: 1; }

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* === Cada beneficio = CARNET ID corporativo === */
.benefit {
  position: relative;
  background: linear-gradient(165deg, #FFFFFF 0%, #F4F7FB 100%);
  border: 1px solid rgba(0, 61, 111, 0.10);
  border-radius: 18px;
  box-shadow:
    0 12px 30px rgba(6, 16, 31, 0.10),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  transform-style: preserve-3d;
}
.benefit::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle, hsla(var(--accent), 0.18), transparent 65%);
  transform: translate(40%, -40%);
  pointer-events: none;
  transition: transform .6s var(--ease);
  z-index: 0;
}
.benefit:hover {
  box-shadow:
    0 26px 60px rgba(6, 16, 31, 0.18),
    0 0 0 1px hsla(var(--accent), 0.25);
  transform: translateY(-4px);
}
.benefit:hover::after { transform: translate(20%, -20%) scale(1.25); }

/* HEADER del carnet: numero + icono sobre fondo de color */
.benefit-header {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 22px;
  background:
    linear-gradient(135deg,
      hsl(var(--accent)) 0%,
      hsla(var(--accent), 0.85) 60%,
      hsla(var(--accent), 0.92) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 3px solid hsla(var(--accent), 0.55);
  transform: translateZ(20px);
  z-index: 1;
  flex-shrink: 0;
}
.benefit-header::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.benefit-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.benefit-id-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
}
.benefit-num {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.benefit-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.20),
    0 0 0 4px rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateZ(25px);
  position: relative;
  z-index: 2;
}
.benefit-icon svg { width: 30px; height: 30px; }

/* BODY: titulo + lista */
.benefit-body {
  width: 100%;
  box-sizing: border-box;
  padding: 22px 24px 20px;
  position: relative;
  z-index: 1;
  transform: translateZ(10px);
  flex: 1 1 auto;
}
.benefit h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--c-ink-2);
  margin: 0 0 16px;
  letter-spacing: -.005em;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 61, 111, 0.18);
}
.benefit ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.benefit li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  color: rgba(6, 16, 31, 0.82);
  line-height: 1.55;
}
.benefit li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsla(var(--accent), 0.18);
}

/* STRIP inferior: firma corporativa */
.benefit-strip {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 22px;
  background: linear-gradient(90deg, #001226 0%, #002A4F 55%, #003D6F 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 3px solid hsl(var(--accent));
  position: relative;
  z-index: 1;
  transform: translateZ(15px);
  flex-shrink: 0;
}
.benefit-strip-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: hsla(var(--accent), 1);
  text-transform: uppercase;
}
.benefit-strip-org {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.beneficios-note {
  margin-top: 40px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(6,16,31,0.65);
  font-style: italic;
}
.beneficios-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* =================================================================
   PARALLAX BANNER
   ================================================================= */
.parallax-banner {
  position: relative;
  min-height: 380px;
  display: grid; place-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.parallax-banner-bg {
  position: absolute; inset: -20% 0;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(105,191,83,0.55), transparent 60%),
    radial-gradient(60% 80% at 80% 80%, rgba(0,61,111,0.70), transparent 60%),
    linear-gradient(135deg, #002A4F 0%, #001226 100%);
  z-index: -1;
  will-change: transform;
}
.parallax-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    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: 80px 80px;
  z-index: -1;
}
.parallax-banner-content {
  text-align: center;
  padding: 70px 28px;
  max-width: 980px;
}
.parallax-banner-content h2 {
  font-family: var(--f-display);
  font-size: clamp(50px, 7vw, 96px);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: -.03em;
}
.parallax-banner-content h2 span {
  display: inline-block;
  margin: 0 8px;
}
.parallax-banner-content h2 span:nth-child(2) {
  color: #69BF53; /* Verde Grupolar slido */
  font-style: italic;
}
.parallax-banner-content p {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

/* =================================================================
   SELLO
   ================================================================= */
.sello {
  background: #fff;
  position: relative;
  overflow: hidden;
}
.sello::before {
  content: "";
  position: absolute; top: -10%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105,191,83,0.15), transparent 60%);
}
.sello-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sello-text p {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(6, 16, 31, 0.78);
}
.sello-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.sello-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: 18px; font-weight: 500;
  color: var(--c-ink-2);
  line-height: 1.45;
}
.sello-list svg {
  width: 26px; height: 26px;
  padding: 5px;
  background: var(--g-blue);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0,61,111,0.30);
  flex-shrink: 0;
}

.sello-visual {
  display: grid; place-items: center;
  perspective: 1200px;
}
.sello-ring {
  position: relative;
  width: 380px; max-width: 100%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.sello-ring img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,61,111,0.30));
  transform: translateZ(40px);
  animation: floaty 6s ease-in-out infinite;
}
.sello-orbit {
  position: absolute; inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(0,61,111,0.20);
  animation: rotate 30s linear infinite;
}
.sello-orbit-2 {
  inset: -50px;
  border-color: rgba(105,191,83,0.25);
  animation-duration: 50s;
  animation-direction: reverse;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* =================================================================
   INSCRIPCION - FORM con video de fondo y efecto 3D
   ================================================================= */
.inscripcion {
  position: relative;
  color: #FFFFFF;
  background: linear-gradient(180deg, #001226 0%, #002A4F 50%, #001226 100%);
  overflow: hidden;
  isolation: isolate;
  padding: 100px 0;
  perspective: 1600px;
}

/* Video de fondo */
.inscripcion-video-wrap {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.inscripcion-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.08);
  filter: brightness(0.40) contrast(1.1) saturate(1.05);
  will-change: transform;
}
.inscripcion-video-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(0, 18, 38, 0.88) 0%,
      rgba(0, 42, 79, 0.82) 50%,
      rgba(0, 61, 111, 0.78) 100%),
    radial-gradient(60% 50% at 20% 20%, rgba(0, 152, 74, 0.22) 0%, transparent 60%),
    radial-gradient(60% 50% at 80% 80%, rgba(0, 88, 181, 0.30) 0%, transparent 60%);
  pointer-events: none;
}
.inscripcion-grid {
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    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: 70px 70px;
  mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 85%);
  pointer-events: none;
  opacity: 0.5;
}
.inscripcion-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
  animation: glow-float 8s ease-in-out infinite;
}
.inscripcion-glow-1 {
  top: -10%; left: -8%;
  background: var(--c-celeste);
}
.inscripcion-glow-2 {
  bottom: -10%; right: -8%;
  background: var(--c-green);
  animation-delay: -4s;
}

.inscripcion-inner {
  position: relative;
  z-index: 2;
}

.inscripcion .section-head-light .section-title,
.inscripcion .section-head-light .section-lead {
  color: #FFFFFF;
}
.inscripcion .section-head-light .section-title em {
  color: var(--c-celeste-2);
  font-style: normal;
}
.inscripcion .section-head-light .section-lead {
  color: rgba(255, 255, 255, 0.85);
}
.eyebrow-light {
  color: var(--c-celeste-2) !important;
}
.eyebrow-light > span {
  background: var(--c-celeste-2) !important;
}

/* Formulario con efecto 3D flotante */
.formulario {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  color: var(--c-ink-2);
}
.formulario-3d {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 247, 251, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 10px 40px rgba(0, 88, 181, 0.20),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.formulario-3d::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--c-blue-2) 0%, var(--c-celeste-2) 50%, var(--c-green) 100%);
  z-index: 2;
}
.formulario-3d::after {
  content: "";
  position: absolute;
  top: -2px; left: 20%; right: 20%;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(3px);
  z-index: 3;
}
.formulario-wrap {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
/* Halo brillante detras del formulario */
.formulario-3d-halo {
  position: absolute;
  top: -30px; bottom: -50px;
  left: -40px; right: -40px;
  z-index: 0;
  background:
    radial-gradient(50% 40% at 30% 30%, rgba(0, 152, 74, 0.40), transparent 70%),
    radial-gradient(50% 40% at 70% 70%, rgba(0, 88, 181, 0.50), transparent 70%);
  filter: blur(50px);
  opacity: 0.9;
  pointer-events: none;
  border-radius: var(--r-xl);
  animation: halo-pulse 5s ease-in-out infinite;
}
.formulario-wrap > .formulario {
  position: relative;
  z-index: 1;
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.glass {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--sh-md);
}

.form-progress {
  height: 4px; background: rgba(0,61,111,0.08);
  border-radius: 99px;
  margin-bottom: 38px;
  overflow: hidden;
}
.form-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--g-celeste);
  border-radius: 99px;
  transition: width .4s var(--ease);
}

.form-step {
  border: 0; padding: 0; margin: 0 0 36px;
}
.form-step legend {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-display);
  font-size: 26px; font-weight: 700;
  color: var(--c-ink-2);
  margin-bottom: 24px;
  padding: 0;
}
.form-step-num {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--g-blue);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,61,111,0.30);
  flex-shrink: 0;
}
.form-help {
  font-size: 16px;
  color: rgba(6,16,31,0.72);
  margin: 0 0 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field > span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--c-ink-2);
  text-transform: uppercase;
}
.field input {
  font-family: inherit;
  font-size: 17px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,61,111,0.14);
  background: #fff;
  color: var(--c-ink);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  outline: none;
}
.field input::placeholder { color: rgba(6,16,31,0.35); }
.field input:focus {
  border-color: var(--c-blue-2);
  box-shadow: 0 0 0 4px rgba(0,88,181,0.14);
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.check {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,61,111,0.14);
  background: #fff;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-ink-2);
  line-height: 1.4;
}
.check:hover { border-color: var(--c-blue-2); transform: translateY(-1px); }
.check input { appearance: none; width: 24px; height: 24px; border: 2px solid rgba(0,61,111,0.30); border-radius: 6px; margin: 0; flex-shrink: 0; position: relative; transition: all .25s ease; cursor: pointer; }
.check input:checked { background: var(--c-blue-2); border-color: var(--c-blue-2); }
.check input:checked::after {
  content: "";
  position: absolute; inset: 5px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'><path d='M5 12l5 5L20 7'/></svg>") center/contain no-repeat;
}
.check-full { grid-column: 1/-1; align-items: flex-start; }
.check-full span { line-height: 1.5; }

.form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.form-success {
  margin-top: 32px;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,88,181,0.12), rgba(105,191,83,0.15));
  border: 1px solid rgba(0,152,74,0.25);
  text-align: center;
  animation: fadeUp .6s var(--ease);
}
.form-success-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--g-blue);
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  box-shadow: 0 14px 30px rgba(0,61,111,0.40);
}
.form-success-check svg { width: 26px; height: 26px; }
.form-success h3 { font-family: var(--f-display); font-size: 26px; color: var(--c-ink-2); margin: 0 0 8px; }
.form-success p { margin: 0; color: rgba(6,16,31,0.72); font-size: 17px; line-height: 1.55; }

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

/* =================================================================
   CONTACTO
   ================================================================= */
.contacto {
  background: var(--c-paper);
  padding-bottom: 100px;
}
.contacto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.contact-card {
  padding: 36px 30px;
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  cursor: pointer;
  transform-style: preserve-3d;
  display: block;
}
.contact-card:hover { box-shadow: var(--sh-lg); }
.contact-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--g-blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,61,111,0.40);
  transform: translateZ(30px);
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card h3 {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700;
  color: var(--c-ink-2);
  margin: 0 0 8px;
  transform: translateZ(20px);
}
.contact-card p {
  margin: 0;
  font-size: 17px;
  color: rgba(6,16,31,0.75);
  font-weight: 500;
  transform: translateZ(10px);
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: linear-gradient(180deg, #001226 0%, #00060F 100%);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-celeste), transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
}
.footer-brand img {
  width: min(200px, 70vw);
  height: auto;
  margin-bottom: 24px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.footer-brand p { font-size: 16px; line-height: 1.7; margin: 0; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 700;
}
.footer-cols a, .footer-cols span {
  display: block;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  transition: color .25s ease, transform .25s ease;
}
.footer-cols a:hover { color: var(--c-celeste-2); transform: translateX(3px); }

.footer-bottom {
  margin-top: 60px;
  padding: 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: rgba(255,255,255,0.55);
  max-width: 1240px;
  margin-left: auto; margin-right: auto;
  flex-wrap: wrap; gap: 10px;
}

/* =================================================================
   REVEAL ANIMATIONS
   ================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { order: -1; }
  .card-stack { width: 560px; height: 360px; }
  .mv-grid { grid-template-columns: 1fr 1fr; }
  .mv-grid .mv-card:last-child { grid-column: 1 / -1; }
  .beneficios-grid { grid-template-columns: 1fr; }
  .sello-inner { grid-template-columns: 1fr; gap: 40px; }
  .sello-visual { order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 70px 0; }
}

/* ===== MOBILE  optimizado para legibilidad (edad media-avanzada) ===== */
@media (max-width: 760px) {
  body { font-size: 18px; }

  .container { padding: 0 22px; }

  .nav { padding: 10px 18px; }
  .nav.is-scrolled { padding: 8px 18px; }
  .nav-brand img { height: 58px; width: auto; }
  .nav.is-scrolled .nav-brand img { height: 48px; }
  .nav-menu {
    position: fixed; top: 84px; left: 14px; right: 14px;
    flex-direction: column; align-items: stretch;
    background: rgba(0,18,38,0.97);
    backdrop-filter: blur(20px);
    border-radius: 22px;
    padding: 14px;
    transform: translateY(-20px);
    opacity: 0; visibility: hidden;
    transition: all .35s var(--ease);
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu a { padding: 16px 20px; font-size: 17px; }
  .nav-toggle { display: flex; }

  .btn-lg { padding: 18px 28px; font-size: 17px; }
  .btn-sm { padding: 12px 20px; font-size: 15px; }

  /* Secciones ms compactas en mvil */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }
  .section-title { font-size: 32px; line-height: 1.15; }
  .section-lead { font-size: 17px; line-height: 1.6; }
  .eyebrow { font-size: 13px; }

  /* Hero mvil */
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-inner { gap: 40px; }
  .hero-badge { font-size: 12px; padding: 8px 16px; }
  .hero-title { font-size: 44px; line-height: 1.05; margin-bottom: 22px; }
  .hero-title-line { white-space: normal; }
  .hero-subtitle { font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
  .hero-cta { gap: 12px; margin-bottom: 40px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 28px; }
  .hero-stat strong { font-size: 34px; }
  .hero-stat span { font-size: 13px; }
  /* Carnet VERTICAL en movil */
  .card-stack { width: 300px; height: 540px; }
  .id-header { padding: 18px 18px 14px; }
  .id-logo { width: 64px; }

  .id-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 20px 14px;
    justify-items: center;
    text-align: center;
  }
  .id-photo {
    width: 92px; height: 92px;
    align-self: center;
  }
  .id-photo svg { width: 60px; height: 60px; }
  .id-content {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .id-info { align-items: center; }
  .id-name { font-size: 18px; }
  .id-role { margin-left: auto; margin-right: auto; }
  .id-meta { width: 100%; }
  .id-meta-cell { padding: 8px 12px; }
  .id-meta-value { font-size: 13px; }
  .id-contact {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding-top: 10px;
    gap: 7px;
  }
  .id-contact li { font-size: 11.5px; }
  .id-strip { padding: 12px 14px; gap: 12px; }
  .id-qr { width: 46px; height: 46px; }
  .id-strip-org { font-size: 12px; }

  /* Marquee mvil */
  .marquee { padding: 18px 0; }
  .marquee-track { font-size: 22px; gap: 28px; }

  /* Nosotros mvil */
  .mv-grid { grid-template-columns: 1fr; gap: 18px; }
  .mv-grid .mv-card:last-child { grid-column: auto; }
  .mv-card { padding: 32px 26px; }
  .mv-card h3 { font-size: 24px; }
  .mv-card p { font-size: 16px; }

  /* ===== Beneficios mobil: carnet ID optimizado ===== */
  .beneficios-grid { grid-template-columns: 1fr; gap: 20px; }
  .benefit {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(6, 16, 31, 0.10);
    transform-style: flat;
  }
  .benefit:hover { transform: none; }
  .benefit::after { width: 160px; height: 160px; }

  /* Anula transforms 3D que rompen el layout en mobil */
  .benefit-header,
  .benefit-body,
  .benefit-strip,
  .benefit-icon,
  .benefit h3,
  .benefit ul {
    transform: none;
  }

  .benefit-header {
    padding: 13px 18px;
    gap: 12px;
    border-bottom-width: 2px;
  }
  .benefit-id { gap: 3px; min-width: 0; }
  .benefit-id-label {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .benefit-num {
    font-size: 28px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.20);
  }
  .benefit-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
  }
  .benefit-icon svg { width: 24px; height: 24px; }

  .benefit-body { padding: 18px 20px 18px; }
  .benefit h3 {
    font-size: 19px;
    line-height: 1.25;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }
  .benefit ul { gap: 9px; }
  .benefit li {
    font-size: 15px;
    line-height: 1.5;
    padding-left: 22px;
  }
  .benefit li::before {
    width: 8px; height: 8px;
    top: 7px;
  }

  /* Strip: en mobil pasa a columna para evitar cortar el texto */
  .benefit-strip {
    padding: 10px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-top-width: 2px;
  }
  .benefit-strip-label {
    font-size: 9px;
    letter-spacing: 1.8px;
    white-space: nowrap;
  }
  .benefit-strip-org {
    font-size: 11.5px;
    white-space: nowrap;
    line-height: 1.2;
  }

  .beneficios-note { font-size: 14px; }

  /* Banner parallax mvil */
  .parallax-banner { min-height: 320px; }
  .parallax-banner-content { padding: 60px 22px; }
  .parallax-banner-content h2 { font-size: 46px; margin-bottom: 18px; }
  .parallax-banner-content h2 span { display: block; margin: 0; }
  .parallax-banner-content p { font-size: 17px; }

  /* Sello mvil */
  .sello-ring { width: 280px; }
  .sello-text p { font-size: 17px; }
  .sello-list li { font-size: 17px; }

  /* Formulario mvil */
  .formulario { padding: 32px 22px; }
  .form-step { margin-bottom: 30px; }
  .form-step legend { font-size: 22px; gap: 12px; }
  .form-step-num { width: 38px; height: 38px; font-size: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .field input { font-size: 16px; padding: 15px 18px; }
  .checks { grid-template-columns: 1fr; }
  .check { padding: 16px; font-size: 16px; }
  .form-actions .btn { width: 100%; justify-content: center; }

  /* Contacto mvil */
  .contacto-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 26px; }
  .contact-card h3 { font-size: 20px; }
  .contact-card p { font-size: 17px; }

  /* Footer mvil */
  .footer { padding-top: 60px; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols a, .footer-cols span { font-size: 17px; }
  .footer-bottom { flex-direction: column; text-align: center; font-size: 13px; }

  .hero-scroll { display: none; }
}

/* ===== MOBILE pequeno ===== */
@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .nav-brand img { height: 50px; }
  .nav.is-scrolled .nav-brand img { height: 42px; }
  .hero-title { font-size: 38px; }
  .section-title { font-size: 28px; }
  .parallax-banner-content h2 { font-size: 38px; }
  .hero-stat strong { font-size: 30px; }
  .formulario { padding: 26px 18px; }

  /* Beneficios: carnet ID compacto para pantallas muy pequenas */
  .beneficios-grid { gap: 16px; }
  .benefit { border-radius: 14px; }
  .benefit-header { padding: 11px 15px; gap: 10px; }
  .benefit-id-label { font-size: 8.5px; letter-spacing: 1.3px; }
  .benefit-num { font-size: 25px; }
  .benefit-icon { width: 42px; height: 42px; border-radius: 10px; }
  .benefit-icon svg { width: 22px; height: 22px; }
  .benefit-body { padding: 16px 16px 16px; }
  .benefit h3 { font-size: 17px; padding-bottom: 10px; margin-bottom: 12px; }
  .benefit ul { gap: 8px; }
  .benefit li { font-size: 14.5px; line-height: 1.5; padding-left: 20px; }
  .benefit-strip { padding: 9px 15px; }
  .benefit-strip-label { font-size: 8.5px; letter-spacing: 1.5px; }
  .benefit-strip-org { font-size: 11px; }
}

@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;
  }
}
