/* ============================================================
   miEscuela.net — Afiliados Landing Page Styles
   Extiende style.css con estilos propios de esta página
============================================================ */

/* ── HERO AFILIADOS ──────────────────────────────────── */
.aff-hero {
  min-height: 100vh;
  padding: 100px 0 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0f2744 60%, #1a1040 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.aff-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  padding-bottom: 80px;
}

/* Hero text */
.aff-hero-text { max-width: 580px; }
.aff-hero-text h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin: 0 0 16px;
  line-height: 1.15;
}
.hero-highlight {
  color: var(--yellow);
  position: relative;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  opacity: .4;
}

/* Urgency countdown box */
.hero-urgency-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  backdrop-filter: blur(10px);
}
.urgency-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  margin-bottom: 16px;
}
.urgency-label svg { width: 16px; height: 16px; stroke: var(--yellow); }

.countdown-blocks {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,208,87,.12);
  border: 1px solid rgba(255,208,87,.25);
  border-radius: 10px;
  padding: 8px 16px;
  min-width: 64px;
}
.cd-num {
  font-family: 'Nunito', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.cd-lbl {
  font-size: .6rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 2px;
}
.cd-sep {
  color: var(--yellow);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}

.urgency-date {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

.aff-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── HERO VISUAL: Credential Stack ────────────────────── */
.aff-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.credential-stack {
  position: relative;
  width: 420px;
  height: 480px;
}

/* Credential cards (afiliados version) */
.cred-aff {
  position: absolute;
  width: 260px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  background: linear-gradient(135deg, #1A3A5C, #0D1B2A);
  color: var(--white);
}

.cred-aff-1 { top: 0; left: 40px; z-index: 3; transform: rotate(-3deg); }
.cred-aff-2 { top: 80px; right: 0; z-index: 2; transform: rotate(4deg); }
.cred-aff-3 { top: 190px; left: 10px; z-index: 1; transform: rotate(-1deg); }

.ca-stripe {
  height: 6px;
}
.ca-stripe-blue { background: linear-gradient(90deg, #1567C0, #FB5252); }
.ca-stripe-green { background: linear-gradient(90deg, #059669, #34D399); }
.ca-stripe-red { background: linear-gradient(90deg, #FB5252, #FFD057); }

.ca-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ca-school-name { font-size: .58rem; font-weight: 700; letter-spacing: .5px; opacity: .9; max-width: 140px; }
.ca-school-loc { font-size: .48rem; opacity: .5; margin-top: 1px; }
.ca-type-badge {
  font-size: .48rem;
  font-weight: 800;
  background: var(--red);
  padding: 2px 6px;
  border-radius: 100px;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.ca-badge-green { background: #059669; }
.ca-badge-red   { background: var(--red); }

.ca-body {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  align-items: flex-start;
}
.ca-photo {
  width: 46px;
  height: 58px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ca-photo svg { width: 100%; }

.ca-info { flex: 1; }
.ca-name { font-size: .6rem; font-weight: 700; margin-bottom: 2px; }
.ca-grade { font-size: .5rem; opacity: .6; margin-bottom: 2px; }
.ca-id { font-size: .5rem; color: var(--yellow); font-weight: 600; margin-bottom: 2px; }
.ca-ciclo { font-size: .45rem; opacity: .4; margin-bottom: 6px; }

.ca-barcode-mini .barcode-graphic { height: 20px; }
.ca-barcode-mini .barcode-num { font-size: .38rem; opacity: .4; letter-spacing: 1px; margin-top: 1px; }

.ca-qr { display: flex; align-items: flex-end; flex-shrink: 0; }
.ca-qr .qr-graphic { width: 28px; height: 28px; }

/* Floating animations for credential cards */
.floating-1 { animation: float-cred-1 6s ease-in-out infinite; }
.floating-2 { animation: float-cred-2 7s ease-in-out 1s infinite; }
.floating-3 { animation: float-cred-3 5.5s ease-in-out 2s infinite; }

@keyframes float-cred-1 {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%       { transform: rotate(-3deg) translateY(-14px); }
}
@keyframes float-cred-2 {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50%       { transform: rotate(4deg) translateY(-10px); }
}
@keyframes float-cred-3 {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50%       { transform: rotate(-1deg) translateY(-8px); }
}

/* Hero stat pills */
.hero-stat-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.hero-stat-pill svg { width: 14px; height: 14px; stroke: var(--yellow); flex-shrink: 0; }

.stat-1 { bottom: 20px; right: 30px; animation: stat-pulse 3s ease-in-out infinite; }
.stat-2 { top: 30px; right: 10px; animation: stat-pulse 3s ease-in-out .8s infinite; }
.stat-3 { bottom: 70px; left: 0; animation: stat-pulse 3s ease-in-out 1.6s infinite; }

@keyframes stat-pulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(-5px); opacity: .85; }
}

/* Hero wave separator */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 100%; }


/* ── WHY SECTION ──────────────────────────────────────── */
.aff-why { padding: 96px 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.why-card-highlight {
  background: linear-gradient(135deg, #0D1B2A, #1A3A5C);
  border-color: transparent;
  color: var(--white);
}
.why-card-highlight h3 { color: var(--white); }
.why-card-highlight p { color: rgba(255,255,255,.7); }

.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(251,82,82,.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--transition);
}
.why-card:hover .why-icon { background: rgba(251,82,82,.16); }
.why-icon svg { width: 22px; height: 22px; stroke: var(--red); }

.why-icon-yellow { background: rgba(255,208,87,.12); }
.why-card-highlight .why-icon-yellow svg { stroke: var(--yellow); }

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

.why-highlight-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255,208,87,.15);
  color: var(--yellow);
  border: 1px solid rgba(255,208,87,.3);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
}


/* ── SERVICES SHOWCASE ────────────────────────────────── */
.service-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.service-showcase-right { }
.service-showcase-left .ss-text { order: 2; }
.service-showcase-left .ss-visual { order: 1; }

.ss-tag {
  display: inline-block;
  background: rgba(255,208,87,.15);
  color: var(--yellow);
  border: 1px solid rgba(255,208,87,.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 14px;
}
.ss-tag-blue {
  background: rgba(100,160,255,.12);
  color: #72b4ff;
  border-color: rgba(100,160,255,.25);
}

.ss-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}
.ss-text p { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }

.ss-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.ss-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
}
.ss-bullets svg { width: 16px; height: 16px; stroke: var(--yellow); flex-shrink: 0; }

.ss-differentiator {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255,208,87,.08);
  border: 1px solid rgba(255,208,87,.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
}
.ss-diff-blue {
  background: rgba(100,160,255,.08);
  border-color: rgba(100,160,255,.2);
}
.diff-icon { font-size: 1rem; flex-shrink: 0; }

.service-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 0;
}

/* -- Proto credential (service visual) -- */
.proto-credential {
  position: relative;
  width: 320px;
  height: 340px;
  margin: 0 auto;
}

.proto-card {
  position: absolute;
  width: 280px;
  border-radius: 14px;
  overflow: hidden;
  color: var(--white);
  font-size: 11px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.proto-front {
  background: linear-gradient(135deg, #1A3A5C, #0D1B2A);
  top: 0;
  left: 0;
  z-index: 2;
}
.proto-back {
  background: linear-gradient(135deg, #162336, #0D1B2A);
  top: 30px;
  right: -40px;
  z-index: 1;
  transform: rotate(5deg);
}

.proto-stripe { height: 6px; }
.proto-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.proto-school { font-size: .6rem; font-weight: 700; letter-spacing: .5px; }
.proto-city { font-size: .48rem; opacity: .45; }
.proto-badge-type {
  font-size: .5rem;
  font-weight: 800;
  background: var(--red);
  padding: 2px 7px;
  border-radius: 100px;
}

.proto-body {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  align-items: flex-start;
}
.proto-photo {
  width: 52px;
  height: 66px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.proto-photo svg { width: 100%; }
.proto-info { flex: 1; }
.proto-name { font-size: .6rem; font-weight: 700; margin-bottom: 3px; }
.proto-detail { font-size: .5rem; opacity: .55; margin-bottom: 3px; }
.proto-folio { font-size: .5rem; font-weight: 600; margin-bottom: 2px; }
.proto-ciclo { font-size: .45rem; opacity: .4; margin-bottom: 6px; }

.proto-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 6px 12px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.proto-barcode-area { flex: 1; margin-right: 8px; }
.proto-barcode-area .barcode-graphic { height: 22px; }
.proto-barcode-area .barcode-num { font-size: .38rem; opacity: .4; letter-spacing: 1px; margin-top: 2px; }

/* Proto back */
.proto-back-body { padding: 10px 12px; }
.proto-back-title { font-size: .55rem; font-weight: 700; opacity: .6; letter-spacing: .5px; text-align: center; margin-bottom: 8px; }
.proto-auth-row { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }
.proto-auth { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.proto-tutor-photo {
  width: 40px; height: 48px;
  background: rgba(255,255,255,.06);
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}
.proto-tutor-photo svg { width: 100%; }
.proto-tutor-name { font-size: .45rem; opacity: .6; }
.proto-emergency { font-size: .5rem; text-align: center; opacity: .55; margin-bottom: 8px; }
.proto-qr-center { display: flex; flex-direction: column; align-items: center; }

/* Quality badge */
.proto-quality-badge {
  position: absolute;
  bottom: -10px;
  left: -10px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(255,208,87,.5);
  z-index: 4;
}
.proto-quality-badge svg { width: 12px; height: 12px; stroke: var(--navy); }

/* Floating animations */
.proto-anim-float { animation: proto-float 5s ease-in-out infinite; }
.proto-anim-float-delayed { animation: proto-float 5s ease-in-out 1s infinite; }
@keyframes proto-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* -- Access Panel Prototype -- */
.proto-access-panel {
  background: #0f1923;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  width: 320px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  margin: 0 auto;
}

.pap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}
.pap-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
}
.pap-title svg { width: 16px; height: 16px; stroke: var(--yellow); }

.pap-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .65rem;
  color: #4ade80;
}
.status-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* Scanner area */
.pap-scanner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.scanner-frame {
  position: relative;
  width: 120px;
  height: 90px;
  border: 2px solid rgba(255,208,87,.4);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255,255,255,.02);
}
.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  animation: scan-move 2s ease-in-out infinite;
}
@keyframes scan-move {
  0%   { top: 0; }
  100% { top: calc(100% - 2px); }
}

.scanner-qr-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.sqm-inner {
  position: relative;
  width: 56px;
  height: 56px;
}
.sqm-tl, .sqm-tr, .sqm-bl {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.35);
}
.sqm-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.sqm-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.sqm-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.sqm-dots {
  position: absolute;
  inset: 14px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0, rgba(255,255,255,.2) 2px, transparent 2px, transparent 5px);
  background-size: 7px 100%;
}

.scanner-hint { font-size: .65rem; color: rgba(255,255,255,.35); }

/* Recent entries */
.pap-recent { padding: 10px 14px; }
.recent-label { font-size: .58rem; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }

.recent-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.recent-entry:last-child { border-bottom: none; }

.entry-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  flex-shrink: 0;
}

.entry-info { flex: 1; }
.entry-name { display: block; font-size: .62rem; color: rgba(255,255,255,.8); font-weight: 500; }
.entry-time { display: block; font-size: .52rem; color: rgba(255,255,255,.3); }

.entry-type {
  font-size: .5rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: .3px;
}
.enter { background: rgba(74,222,128,.15); color: #4ade80; }
.exit  { background: rgba(248,113,113,.15); color: #f87171; }

/* App pill */
.pap-app-pill {
  margin: 0 14px 14px;
  background: rgba(255,208,87,.08);
  border: 1px solid rgba(255,208,87,.15);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .62rem;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pap-app-pill svg { width: 12px; height: 12px; stroke: var(--yellow); flex-shrink: 0; }

/* Additional services */
.additional-services {
  padding: 48px 0 16px;
}
.as-title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
}
.as-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.as-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition) all;
}
.as-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-4px);
}
.as-icon {
  width: 48px; height: 48px;
  background: rgba(251,82,82,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.as-icon svg { width: 22px; height: 22px; stroke: var(--red); }
.as-card h4 { font-size: .9rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.as-card p  { font-size: .78rem; color: rgba(255,255,255,.5); line-height: 1.6; }


/* ── COMPARE TABLE ────────────────────────────────────── */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 64px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .88rem;
}
.compare-table thead th {
  padding: 16px 24px;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .3px;
}
.compare-table thead th:first-child {
  background: var(--gray-light);
  color: var(--text-muted);
}
.comp-them {
  background: #FEF2F2;
  color: var(--red);
}
.comp-us {
  background: var(--navy);
  color: var(--yellow);
}
.compare-table tbody tr:hover td { background: rgba(0,0,0,.02); }
.compare-table tbody td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.compare-table tbody td:first-child { color: var(--text-muted); font-weight: 500; }
.them { color: var(--text-muted); }
.us { font-weight: 600; color: var(--navy-3); }
.x-icon { color: #ef4444; margin-right: 4px; }
.check-icon { color: #22c55e; margin-right: 4px; }

/* Steps */
.steps-wrap { }
.steps-title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-3);
  margin-bottom: 36px;
}
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 180px;
  padding: 0 8px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(251,82,82,.4);
}
.step-icon {
  width: 52px; height: 52px;
  background: var(--light-blue);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-icon svg { width: 22px; height: 22px; stroke: var(--navy-3); }
.step-item h4 { font-size: .9rem; font-weight: 800; color: var(--navy-3); margin-bottom: 6px; }
.step-item p  { font-size: .78rem; color: var(--text-muted); line-height: 1.55; }
.step-arrow {
  font-size: 1.8rem;
  color: var(--text-muted);
  opacity: .3;
  align-self: center;
  padding-bottom: 48px;
  padding: 0 4px 48px;
}


/* ── VIDEO SECTION ────────────────────────────────────── */
.aff-video-section {
  padding: 96px 0;
  background: var(--navy);
}

.video-container-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.video-frame-outer {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  aspect-ratio: 16 / 9;
  position: relative;
}
.video-frame-outer iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Video placeholder */
.video-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
}
.vp-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0D1B2A, #1A3A5C, #162336);
}
.vp-overlay {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.01) 0, rgba(255,255,255,.01) 1px,
    transparent 1px, transparent 20px
  );
}
.vp-content {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.vp-play-btn {
  width: 80px; height: 80px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(255,208,87,.2);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.vp-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 20px rgba(255,208,87,.1);
}
.vp-play-btn svg { width: 32px; height: 32px; fill: var(--navy); margin-left: 4px; }
.vp-label { text-align: center; }
.vp-title { font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.vp-sub { font-size: .8rem; color: rgba(255,255,255,.45); }

/* Video side info */
.video-side-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vsi-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 18px;
  transition: background var(--transition), border-color var(--transition);
}
.vsi-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.vsi-icon {
  width: 40px; height: 40px;
  background: rgba(251,82,82,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vsi-icon svg { width: 18px; height: 18px; stroke: var(--red); }
.vsi-title { font-family: 'Nunito', sans-serif; font-size: .88rem; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.vsi-desc  { font-size: .75rem; color: rgba(255,255,255,.45); line-height: 1.5; }


/* ── REGISTER SECTION ─────────────────────────────────── */
.aff-register-section {
  padding: 96px 0;
  background: linear-gradient(135deg, #0D1B2A, #162336);
  position: relative;
  overflow: hidden;
}

.aff-reg-bg { position: absolute; inset: 0; pointer-events: none; }
.arb-1 { position: absolute; width: 500px; height: 500px; top: -100px; left: -150px; border-radius: 50%; background: var(--red); filter: blur(120px); opacity: .08; }
.arb-2 { position: absolute; width: 400px; height: 400px; bottom: -80px; right: -100px; border-radius: 50%; background: var(--yellow); filter: blur(120px); opacity: .06; }
.arb-3 { position: absolute; width: 300px; height: 300px; top: 40%; left: 45%; border-radius: 50%; background: #1567C0; filter: blur(80px); opacity: .1; }

.aff-reg-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Left column */
.aff-reg-left { color: var(--white); min-width: 0; }
.aff-reg-left h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 900;
  margin: 12px 0 14px;
  line-height: 1.2;
}
.aff-reg-left > p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.7; margin-bottom: 28px; }

/* Big countdown */
.big-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.bc-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,208,87,.1);
  border: 1px solid rgba(255,208,87,.2);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 72px;
}
.bc-num {
  font-family: 'Nunito', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.bc-lbl {
  font-size: .62rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 2px;
}
.bc-sep {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,208,87,.4);
  margin-bottom: 10px;
}

/* Meet details */
.meet-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 18px;
}
.meet-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.meet-detail-row svg { width: 15px; height: 15px; stroke: var(--yellow); flex-shrink: 0; }
.meet-detail-row strong { color: var(--white); }

/* Temas */
.meet-temas {
  background: rgba(255,208,87,.06);
  border: 1px solid rgba(255,208,87,.15);
  border-radius: 12px;
  padding: 16px 18px;
}
.temas-title {
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.meet-temas ul { display: flex; flex-direction: column; gap: 10px; }
.meet-temas li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}
.meet-temas li > span:first-child {
  color: var(--yellow);
  flex-shrink: 0;
  font-size: .7rem;
  line-height: 1;
  margin-top: 4px; /* alinea con la primera línea de texto */
}
.meet-temas li > span:not(:first-child) {
  flex: 1;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  line-height: 1.55;
  min-width: 0;
}
.meet-temas li strong { color: rgba(255,255,255,.9); }


/* Registration form card */
.reg-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
}
.rfc-header { margin-bottom: 24px; }
.rfc-header h3 { font-size: 1.4rem; font-weight: 900; color: var(--navy-3); margin-bottom: 6px; }
.rfc-header p  { font-size: .85rem; color: var(--text-muted); }

/* Form fields */
.af-group { margin-bottom: 16px; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.af-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.af-group input,
.af-group select,
.af-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .88rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.af-group input:focus,
.af-group select:focus,
.af-group textarea:focus {
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
.af-group textarea { resize: vertical; min-height: 80px; }
.af-group input::placeholder,
.af-group textarea::placeholder { color: #b0bac8; }

.af-phone-wrap { display: flex; gap: 6px; }
.af-phone-wrap select { width: 100px; flex-shrink: 0; }
.af-phone-wrap input  { flex: 1; }

.aff-submit-btn { margin-top: 4px; gap: 10px; }
.aff-submit-btn svg { width: 18px; height: 18px; }

.af-privacy {
  text-align: center;
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Success state */
.af-success {
  text-align: center;
  padding: 20px 0;
}
.afs-icon {
  width: 72px; height: 72px;
  background: rgba(34,197,94,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.afs-icon svg { width: 36px; height: 36px; stroke: #22c55e; }
.af-success h3 { font-size: 1.3rem; font-weight: 900; color: var(--navy-3); margin-bottom: 10px; }
.af-success p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }


/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .aff-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .credential-stack { width: 300px; height: 340px; }
  .cred-aff { width: 200px; font-size: 9px; }
  .cred-aff-2 { top: 60px; right: -20px; }
  .cred-aff-3 { top: 140px; }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .service-showcase { grid-template-columns: 1fr; gap: 40px; }
  .service-showcase-left .ss-visual { order: 1; }
  .service-showcase-left .ss-text  { order: 2; }
  .proto-credential { width: 280px; height: 300px; }

  .video-container-wrap { grid-template-columns: 1fr; }
  .video-side-info { flex-direction: row; flex-wrap: wrap; }
  .vsi-card { flex: 1; min-width: 200px; }

  .aff-reg-inner { grid-template-columns: 1fr; gap: 48px; }
  .af-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .aff-hero { padding-top: 80px; }
  .why-grid  { grid-template-columns: 1fr; }
  .as-grid   { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; }
  .aff-hero-ctas { flex-direction: column; }
  .reg-form-card { padding: 24px 18px; }
  .countdown-blocks { gap: 4px; }
  .cd-block { padding: 6px 10px; min-width: 50px; }
  .cd-num { font-size: 1.4rem; }
  .big-countdown { gap: 6px; }
  .bc-block { padding: 10px 14px; min-width: 60px; }
  .bc-num { font-size: 1.8rem; }
  .credential-stack { width: 260px; }
  .cred-aff-2 { display: none; }
  .cred-aff-3 { display: none; }
}


/* ── MODALIDADES DE PARTICIPACIÓN ────────────────────── */
.aff-modalities {
  padding: 96px 0;
  background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 60%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

.mod-bg { position: absolute; inset: 0; pointer-events: none; }
.mod-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .07;
}
.mod-b1 { width: 600px; height: 600px; top: -100px; left: -200px; background: var(--red); }
.mod-b2 { width: 500px; height: 500px; bottom: -80px; right: -150px; background: var(--yellow); }

/* Section header overrides for this dark bg */
.aff-modalities .section-header { position: relative; z-index: 1; }
.aff-modalities .section-header h2 { color: var(--white); }
.aff-modalities .section-header p  { color: rgba(255,255,255,.6); }

/* ── Tarjetas de modalidad ── */
.mod-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.mod-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 36px 32px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  backdrop-filter: blur(10px);
}
.mod-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,.18);
}

.mod-card-own:hover  { box-shadow: 0 24px 64px rgba(255,208,87,.12); border-color: rgba(255,208,87,.25); }
.mod-card-brand:hover { box-shadow: 0 24px 64px rgba(251,82,82,.12); border-color: rgba(251,82,82,.25); }

.mod-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mod-card-icon {
  width: 52px; height: 52px;
  background: rgba(255,208,87,.1);
  border: 1px solid rgba(255,208,87,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.mod-card-icon svg { width: 24px; height: 24px; stroke: var(--yellow); }

.mod-icon-brand { background: rgba(251,82,82,.1); border-color: rgba(251,82,82,.25); }
.mod-icon-brand svg { stroke: var(--red); }

.mod-card-badge {
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.mod-badge-own   { background: rgba(255,208,87,.15); color: var(--yellow); border: 1px solid rgba(255,208,87,.3); }
.mod-badge-brand { background: rgba(251,82,82,.12); color: #ff8080; border: 1px solid rgba(251,82,82,.25); }

.mod-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}
.mod-card h3 span       { color: var(--yellow); }
.mod-card h3 .brand-highlight { color: var(--red); }

.mod-card-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 20px;
}
.mod-card-desc strong { color: rgba(255,255,255,.85); }

.mod-card-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.mod-perk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .83rem;
  color: rgba(255,255,255,.75);
}
.mod-perk svg { width: 16px; height: 16px; stroke: var(--yellow); flex-shrink: 0; }
.mod-card-brand .mod-perk svg { stroke: #ff8080; }

.mod-card-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.mod-card-tag svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.35); flex-shrink: 0; }
.mod-tag-brand svg { stroke: rgba(251,82,82,.5); }

/* VS separator */
.mod-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
}
.mod-vs-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.15), transparent);
}
.mod-vs-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  font-weight: 800;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
}

/* ── Lo incluido ── */
.mod-included {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.mod-included-header {
  text-align: center;
  margin-bottom: 40px;
}
.mod-included-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 100px;
  padding: 7px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 12px;
}
.mod-included-badge svg { width: 14px; height: 14px; stroke: #4ade80; }
.mod-included-header p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.6; }

.mod-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mod-tool {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 20px;
  transition: background .25s, border-color .25s, transform .25s;
}
.mod-tool:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-3px);
}

.mod-tool-icon {
  width: 44px; height: 44px;
  background: rgba(255,208,87,.08);
  border: 1px solid rgba(255,208,87,.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mod-tool-icon svg { width: 20px; height: 20px; stroke: var(--yellow); }

.mod-tool-body { flex: 1; }
.mod-tool-body h4 {
  font-size: .88rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mod-tool-body p { font-size: .78rem; color: rgba(255,255,255,.5); line-height: 1.6; }

/* IA Tool — special card spanning full width */
.mod-tool-ai {
  grid-column: 1 / -1;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(168,85,247,.06));
  border-color: rgba(168,85,247,.2);
  gap: 16px;
}
.mod-tool-ai:hover {
  border-color: rgba(168,85,247,.35);
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(168,85,247,.1));
}

/* AI header row (icon + text side by side) */
.mod-tool-ai > .mod-tool-icon + .mod-tool-body,
.mod-tool-ai {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.mod-tool-ai > .mod-tool-icon + .mod-tool-body { flex: 1; }

.mod-tool-icon-ai {
  background: rgba(168,85,247,.1);
  border-color: rgba(168,85,247,.25);
  width: 52px; height: 52px;
}
.mod-tool-icon-ai svg { stroke: #c084fc; width: 22px; height: 22px; }

.ai-badge {
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: var(--white);
  font-size: .58rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  vertical-align: middle;
  letter-spacing: .5px;
}

.mod-tool-highlight-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(168,85,247,.08);
  border: 1px solid rgba(168,85,247,.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .72rem;
  color: #c084fc;
  font-weight: 600;
}
.mod-tool-highlight-bar svg { width: 13px; height: 13px; stroke: #c084fc; flex-shrink: 0; }

/* CTA */
.mod-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}
.mod-cta-note {
  margin-top: 10px;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ── RESPONSIVE modalidades ── */
@media (max-width: 900px) {
  .mod-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mod-vs {
    flex-direction: row;
    padding: 0;
  }
  .mod-vs-line {
    height: 1px;
    width: 60px;
    flex: 1;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.15), transparent);
  }
  .mod-included { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .mod-tools-grid { grid-template-columns: 1fr; }
  .mod-tool-ai { flex-direction: column; }
  .mod-card { padding: 24px 20px; }
}


/* ── Botón Google Calendar ───────────────────────────────── */
.btn-gcal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1A3A5C;
  border: 2px solid rgba(255,255,255,.35);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: 4px;
  width: 100%;
  justify-content: center;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.btn-gcal:hover {
  background: #f0f9ff;
  color: #1A3A5C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
