/* ============================================================
   miEscuela.net — Landing Page Styles
   Colores: #FB5252 (rojo acento) | #FFD057 (amarillo CTA)
   Fuentes: Nunito (headings) + Inter (body)
============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --red:        #FB5252;
  --red-dark:   #e63c3c;
  --yellow:     #FFD057;
  --yellow-dark:#E8BA00;
  --navy:       #0D1B2A;
  --navy-2:     #162336;
  --navy-3:     #1A3A5C;
  --light-blue: #EEF4FF;
  --gray-light: #F7F8FA;
  --white:      #FFFFFF;
  --text:       #1A2E45;
  --text-muted: #64748B;
  --border:     #E2E8F0;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.15);
  --radius:     16px;
  --radius-sm:  8px;
  --radius-xs:  6px;
  --transition: .25s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; line-height: 1.2; }

/* ── Contenedor ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .3px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(255,208,87,.45);
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  box-shadow: 0 6px 24px rgba(255,208,87,.55);
}

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(251,82,82,.35);
}
.btn-red:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 24px rgba(251,82,82,.45);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

/* Pulse en hero CTA */
.pulse-btn { animation: pulse-yellow 2.5s infinite; }
@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 4px 16px rgba(255,208,87,.45); }
  50%       { box-shadow: 0 4px 32px rgba(255,208,87,.8), 0 0 0 8px rgba(255,208,87,.15); }
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: rgba(255,208,87,.2);
  color: var(--yellow-dark);
  border: 1px solid rgba(255,208,87,.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 16px;
}
.badge-red {
  display: inline-block;
  background: rgba(251,82,82,.1);
  color: var(--red);
  border: 1px solid rgba(251,82,82,.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 16px;
}

/* ── Section header ─────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--navy-3);
  margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.section-header.light h2 { color: var(--white); }
.section-header.light p   { color: rgba(255,255,255,.75); }

/* ── Section CTA ────────────────────────────────────────── */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Section backgrounds ────────────────────────────────── */
.section-white      { padding: 96px 0; background: var(--white); }
.section-dark       { padding: 96px 0; background: var(--navy); }
.section-light-blue { padding: 96px 0; background: var(--light-blue); }
.section-gray       { padding: 96px 0; background: var(--gray-light); }


/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.12); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 32px; height: 32px; }
.logo-img  { height: 38px; width: auto; object-fit: contain; }
.logo-text  { font-family: 'Nunito', sans-serif; font-size: 1.2rem; font-weight: 900; }
.logo-main  { color: var(--navy-3); }
.logo-net   { color: var(--red); }
.logo-white .logo-main { color: var(--white); }
.logo-white .logo-net  { color: var(--yellow); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy-3); background: var(--light-blue); }

/* Nav CTA */
.nav-cta { margin-left: 8px; font-size: .85rem; padding: 10px 22px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-3);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: auto;
  padding: 100px 0 40px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Formas de fondo */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hs {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
}
.hs-1 { width: 500px; height: 500px; top: -100px; left: -150px; background: var(--red); }
.hs-2 { width: 350px; height: 350px; bottom: -80px; right: 10%; background: var(--yellow); opacity: .15; }
.hs-3 { width: 200px; height: 200px; top: 30%; right: 5%; background: var(--red); opacity: .2; }
.hs-4 { width: 150px; height: 150px; bottom: 20%; left: 30%; background: var(--yellow); opacity: .12; }

/* Inner layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Texto */
.hero-text { max-width: 560px; width: 100%; }
.hero-text h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.15;
}
.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* Mini countdown */
.hero-urgency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}
.urgency-icon { font-size: 1.2rem; }
.urgency-txt  { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; }
.urgency-txt strong { color: var(--yellow); }

.mini-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,208,87,.15);
  border: 1px solid rgba(255,208,87,.3);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
}
.mc-num  { font-family: 'Nunito', sans-serif; font-size: 1.2rem; font-weight: 900; color: var(--yellow); line-height: 1; }
.mc-lbl  { font-size: .6rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }
.mc-sep  { color: var(--yellow); font-weight: 900; font-size: 1.2rem; }

/* ── Credential showcase (hero visual) ── */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.credential-showcase {
  position: relative;
  width: 400px;
  height: 380px;
}

.cred {
  position: absolute;
  width: 280px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.cred-front {
  top: 20px;
  left: 0;
  z-index: 2;
}

.cred-back {
  bottom: 0;
  right: -60px;
  z-index: 1;
}

/* Credenciales con imagen real */
.cred-img {
  background: none;
  padding: 0;
}
.cred-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.floating-card { animation: float-card 4s ease-in-out infinite; }
@keyframes float-card {
  0%, 100% { transform: translateY(0px) rotate(3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

/* Frente */
.cred-stripe {
  height: 8px;
  background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 100%);
}
.cred-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cred-school-name { font-size: .62rem; font-weight: 700; letter-spacing: .8px; opacity: .9; }
.cred-type-label {
  font-size: .55rem;
  font-weight: 800;
  background: var(--red);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: .5px;
}
.cred-body-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}
.cred-photo-box {
  width: 56px;
  height: 70px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.cred-photo-box svg { width: 100%; }
.cred-info-col { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.cred-name-txt  { font-size: .72rem; font-weight: 700; }
.cred-grade-txt { font-size: .6rem; opacity: .7; }
.cred-id-txt    { font-size: .6rem; color: var(--yellow); font-weight: 600; }
.cred-ciclo     { font-size: .55rem; opacity: .5; }

.cred-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cred-barcode { flex: 1; }
.barcode-graphic {
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.9) 0px, rgba(255,255,255,.9) 1px,
    transparent 1px, transparent 3px,
    rgba(255,255,255,.9) 3px, rgba(255,255,255,.9) 4px,
    transparent 4px, transparent 7px,
    rgba(255,255,255,.9) 7px, rgba(255,255,255,.9) 9px,
    transparent 9px, transparent 11px,
    rgba(255,255,255,.9) 11px, rgba(255,255,255,.9) 12px,
    transparent 12px, transparent 15px,
    rgba(255,255,255,.9) 15px, rgba(255,255,255,.9) 17px,
    transparent 17px, transparent 18px
  );
  border-radius: 2px;
  margin-bottom: 3px;
}
.barcode-num { font-size: .45rem; opacity: .5; letter-spacing: 1px; }

.cred-qr-box { margin-left: 10px; flex-shrink: 0; }
.qr-graphic {
  width: 36px;
  height: 36px;
  background:
    linear-gradient(var(--white) 0 0) top left / 12px 12px no-repeat,
    linear-gradient(var(--white) 0 0) top right / 12px 12px no-repeat,
    linear-gradient(var(--white) 0 0) bottom left / 12px 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0px, rgba(255,255,255,.7) 2px, transparent 2px, transparent 4px);
  background-color: rgba(0,0,0,.5);
  border-radius: 4px;
}

/* Reverso */
.cred-back-title {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .5px;
  opacity: .7;
  margin-bottom: 10px;
  text-align: center;
}
.cred-auth-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.auth-person { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.auth-photo-box {
  width: 44px;
  height: 52px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.auth-photo-box svg { width: 100%; }
.auth-name { font-size: .5rem; opacity: .7; }
.cred-emergency-row {
  font-size: .55rem;
  opacity: .65;
  text-align: center;
  margin-bottom: 8px;
}
.cred-qr-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .5rem;
  opacity: .6;
}
.cred-qr-center .qr-graphic { width: 32px; height: 32px; }


/* ============================================================
   FEATURES
============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(251,82,82,.2);
}

.feat-icon {
  width: 56px;
  height: 56px;
  background: rgba(251,82,82,.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background var(--transition);
}
.feature-card:hover .feat-icon { background: rgba(251,82,82,.16); }

.feat-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.icon-svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy-3);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ============================================================
   CARRUSEL DE MUESTRAS
============================================================ */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.car-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.car-track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.car-slide {
  flex: 0 0 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.car-slide:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.car-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Botones carrusel */
.car-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.car-btn:hover { background: var(--red); transform: scale(1.08); }
.car-btn svg { width: 20px; height: 20px; }

/* Dots */
.car-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
  padding: 0;
}
.car-dot.active {
  background: var(--yellow);
  transform: scale(1.4);
}


/* ============================================================
   LOGOS DE CLIENTES
============================================================ */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 28px 20px;
  align-items: center;
  justify-items: center;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s ease;
  padding: 0;
  background: none;
  border: none;
}
.logo-badge:hover,
.logo-badge.colored {
  transform: scale(1.08);
}

/* Escudo PNG: gris por defecto, color al hover */
.lb-shield {
  width: 100%;
  max-width: 100px;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: filter .4s ease, transform .3s ease;
}
.logo-badge:hover .lb-shield,
.logo-badge.colored .lb-shield {
  filter: grayscale(0) opacity(1);
  transform: scale(1.15);
}

.lb-name {
  display: none;
}


/* ============================================================
   SISTEMA DE ENTRADAS Y SALIDAS
============================================================ */
.sistema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sistema-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.sistema-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.sistema-featured {
  border-color: var(--red);
  box-shadow: 0 4px 24px rgba(251,82,82,.15);
  position: relative;
}
.sistema-featured::before {
  content: '★ DESTACADO';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: .6rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: .5px;
}

.sist-icon {
  width: 72px;
  height: 72px;
  background: rgba(251,82,82,.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.sist-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--red);
}
.sistema-featured .sist-icon { background: rgba(251,82,82,.14); }

.sistema-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-3);
  margin-bottom: 12px;
}
.sistema-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }


/* ============================================================
   CTA INTERMEDIA
============================================================ */
.section-cta-mid {
  padding: 96px 0;
  background: var(--light-blue);
  position: relative;
  overflow: hidden;
}

.blob-deco { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .4;
}
.b1 { width: 300px; height: 300px; top: -80px; left: -80px; background: var(--yellow); }
.b2 { width: 250px; height: 250px; bottom: -60px; right: -60px; background: var(--red); }
.b3 { width: 180px; height: 180px; top: 40%; left: 50%; background: rgba(26,58,92,.3); }

.cta-mid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-mid-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--navy-3);
  margin-bottom: 20px;
}
.cta-mid-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.cta-mid-bold {
  font-weight: 700;
  color: var(--navy-3) !important;
  font-size: 1.1rem !important;
  margin-bottom: 32px !important;
}

/* Pasos */
.cta-mid-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--red);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-txt { font-size: .9rem; font-weight: 600; color: var(--navy-3); }
.step-arrow {
  font-size: 1.4rem;
  color: var(--red);
  text-align: center;
  padding: 6px 0;
  opacity: .6;
}


/* ============================================================
   REGALO / PROMOCIÓN
============================================================ */
.promo-disclaimer {
  font-size: .8rem !important;
  color: #9CA3AF !important;
  font-style: italic;
  margin-top: 8px !important;
}

/* Countdown promo */
.promo-countdown {
  text-align: center;
  margin-bottom: 56px;
}
.promo-cd-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.promo-cd-blocks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pcd-card {
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  box-shadow: var(--shadow);
}
.pcd-num {
  font-family: 'Nunito', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.pcd-lbl {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 4px;
}
.pcd-sep {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  opacity: .4;
}

/* Gift cards */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.gift-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.gift-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(251,82,82,.3);
}
.gift-featured {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(251,82,82,.18);
}
.gift-popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 100px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.gift-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(251,82,82,.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background var(--transition);
}
.gift-card:hover .gift-icon-wrap { background: rgba(251,82,82,.15); }
.gift-icon-wrap svg {
  width: 36px;
  height: 36px;
  stroke: var(--red);
}
.gift-featured .gift-icon-wrap { background: rgba(251,82,82,.14); }

.gift-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-3);
  margin-bottom: 20px;
}

.gift-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
  width: 100%;
}
.gift-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-muted);
}
.gift-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--red);
  flex-shrink: 0;
}


/* ============================================================
   BANNER DE DESCUENTO
============================================================ */
.section-discount {
  padding: 56px 0;
  background: var(--red);
}
.discount-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.discount-pct {
  font-family: 'Nunito', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.discount-pct span {
  font-size: 1rem;
  letter-spacing: 3px;
  opacity: .8;
}
.discount-copy h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.discount-copy p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
}


/* ============================================================
   FAQ
============================================================ */
.faq-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  padding: 96px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-illus { text-align: center; }
.faq-illus svg { width: 200px; margin: 0 auto; }

.faq-right h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--navy-3);
  margin-bottom: 32px;
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(251,82,82,.25); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy-3);
  background: none;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--gray-light); }
.faq-item.open .faq-q { background: rgba(251,82,82,.04); }

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--red);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 20px;
}
.faq-a p { color: var(--text-muted); font-size: .9rem; line-height: 1.75; }
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 18px;
}


/* ============================================================
   FORMULARIO DE CONTACTO
============================================================ */
.section-form {
  padding: 96px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.section-form::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--red);
  opacity: .08;
  filter: blur(80px);
}
.section-form::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .06;
  filter: blur(60px);
}

.form-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 56px 48px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-size: .95rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255,255,255,.12);
}
.form-group select option { background: var(--navy-2); color: var(--white); }

/* Teléfono con selector */
.phone-wrap {
  display: flex;
  gap: 8px;
}
.phone-wrap select {
  flex: 0 0 110px;
  padding-right: 8px;
}
.phone-wrap input { flex: 1; }

/* Éxito */
.form-success {
  text-align: center;
  padding: 48px 0;
}
.form-success svg {
  width: 64px;
  height: 64px;
  stroke: var(--yellow);
  margin: 0 auto 20px;
}
.form-success h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}
.form-success p {
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
  line-height: 1.7;
}


/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--navy-2);
  color: rgba(255,255,255,.65);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding: 64px 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-agent {
  font-size: .8rem;
  color: var(--yellow);
  font-weight: 600;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: .85rem; }
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 20px 24px;
  font-size: .8rem;
}


/* ============================================================
   WHATSAPP FAB
============================================================ */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-bounce 3s ease-in-out infinite;
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.6);
}
.wa-fab svg { width: 30px; height: 30px; }

@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--navy);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(6px);
}
.wa-fab:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================================
   CAROUSEL SLIDE DESIGNS (CSS credential mockups)
============================================================ */
.car-cred-1 { background: linear-gradient(135deg, #1A3A5C, #0D1B2A); }
.car-cred-2 { background: linear-gradient(135deg, #0B4D0B, #0D2B0D); }
.car-cred-3 { background: linear-gradient(135deg, #4A1A7A, #2D1050); }
.car-cred-4 { background: linear-gradient(135deg, #8B1A1A, #4A0808); }
.car-cred-5 { background: linear-gradient(135deg, #1A4A6B, #0A2B40); }

.cs-stripe {
  height: 7px;
}
.cs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cs-school { font-size: .62rem; font-weight: 700; letter-spacing: .6px; opacity: .9; }
.cs-level  {
  font-size: .5rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: .4px;
}

.cs-body {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  flex: 1;
}
.cs-photo {
  width: 54px;
  height: 68px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
.cs-photo svg { width: 100%; }
.cs-info { display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.cs-name  { font-size: .72rem; font-weight: 700; }
.cs-grade { font-size: .6rem;  opacity: .7; }
.cs-id    { font-size: .58rem; opacity: .85; font-weight: 600; }

.cs-footer {
  padding: 8px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cs-bar {
  height: 24px;
  width: 130px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.85) 0px, rgba(255,255,255,.85) 1px,
    transparent 1px, transparent 3px,
    rgba(255,255,255,.85) 3px, rgba(255,255,255,.85) 4px,
    transparent 4px, transparent 7px,
    rgba(255,255,255,.85) 7px, rgba(255,255,255,.85) 9px,
    transparent 9px, transparent 11px,
    rgba(255,255,255,.85) 11px, rgba(255,255,255,.85) 12px,
    transparent 12px, transparent 14px
  );
  border-radius: 2px;
}
.cs-qr {
  width: 32px;
  height: 32px;
  background:
    linear-gradient(white 0 0) top left / 10px 10px no-repeat,
    linear-gradient(white 0 0) top right / 10px 10px no-repeat,
    linear-gradient(white 0 0) bottom left / 10px 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.65) 0, rgba(255,255,255,.65) 2px, transparent 2px, transparent 4px);
  background-color: rgba(0,0,0,.4);
  border-radius: 4px;
}
/* ============================================================
   LIGHTBOX / ZOOM MODAL
============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: scale(.85);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.lightbox-overlay.active img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.lightbox-close:hover {
  background: var(--red);
  transform: scale(1.1);
}


/* ============================================================
   RESPONSIVE — TABLET
============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .logos-grid    { grid-template-columns: repeat(6, 1fr); }
  .car-slide    { flex: 0 0 200px; }
  .faq-wrapper   { grid-template-columns: 1fr; gap: 32px; }
  .faq-illus     { display: none; }

  /* Credential showcase responsive */
  .credential-showcase { width: 300px; height: 300px; }
  .cred { width: 220px; }
  .cred-back { right: -30px; }
}

@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas         { justify-content: center; }
  .hero-urgency      { justify-content: center; }
  .mini-countdown    { margin-left: 0; }
  .hero-visual       { display: none; }

  .cta-mid-inner  { grid-template-columns: 1fr; }
  .cta-mid-steps  { display: none; }

  .gifts-grid   { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .sistema-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .car-slide { flex: 0 0 180px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav   { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 640px) {
  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li    { width: 100%; }
  .nav-links a     { display: block; padding: 12px 16px; width: 100%; }
  .nav-toggle      { display: flex; }
  .nav-cta         { display: none; }

  /* Sections */
  .section-white,
  .section-dark,
  .section-light-blue,
  .section-gray,
  .section-cta-mid,
  .section-form { padding: 64px 0; }

  .section-header { margin-bottom: 40px; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature-card  { padding: 20px 16px; }
  .feat-icon     { width: 44px; height: 44px; }

  .logos-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .lb-name    { display: none; }

  .form-card  { padding: 36px 24px; }
  .form-row   { grid-template-columns: 1fr; gap: 0; }
  .phone-wrap { flex-direction: column; }
  .phone-wrap select { flex: unset; }

  .discount-inner { flex-direction: column; gap: 20px; text-align: center; }
  .discount-pct   { font-size: 3rem; }

  .promo-cd-blocks { gap: 8px; }
  .pcd-card { min-width: 70px; padding: 12px 16px; }
  .pcd-num  { font-size: 1.8rem; }

  .footer-nav { grid-template-columns: 1fr; gap: 24px; }

  .car-slide { flex: 0 0 160px; }

  /* Hero mobile */
  .hero { padding: 90px 0 36px; }
  .hero-text h1 { font-size: 1.4rem; }
  .hero-sub { font-size: .85rem; }
  .hero-ctas { flex-direction: column; }

  /* Buttons */
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 24px; font-size: .9rem; }

  /* Urgency / countdown mobile */
  .hero-urgency {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px 16px;
  }

  .mc-block { padding: 4px 8px; }
  .mc-num { font-size: 1rem; }
}
