:root {
  --navy:     #1A2E50;
  --navy2:    #243a63;
  --gold:     #C9962A;
  --gold2:    #E4B445;
  --goldpale: #FBF5E6;
  --white:    #FFFFFF;
  --off:      #F7F6F3;
  --text:     #1C1C1E;
  --muted:    #6B7280;
  --border:   #E4E4E7;
  --green:    #22856F;
  --greenpale:#E8F5F2;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

/* NAV */
nav {
  font-size: 15px;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-cta {
  background: var(--gold); color: var(--navy);
  font-size: 15px; font-weight: 700; padding: 9px 22px;
  border-radius: 6px; text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--gold2); }

/* HERO */
.hero {
  background: var(--navy);
  padding: 80px 28px 72px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, #E8C96A 50%, var(--gold) 100%);
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.hero-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,150,42,.4);
  padding: 5px 16px; border-radius: 4px; margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 72px); line-height: 1.05;
  color: var(--white); margin-bottom: 10px; font-weight: 900;
}
.hero h1 em { color: var(--gold); font-style: normal; display: block; }
.hero-sub {
  color: rgba(255,255,255,.72); font-size: 17px;
  max-width: 520px; margin: 0 auto 30px; line-height: 1.65;
}

/* COUNTDOWN HERO COMPONENT */
.countdown-card {
  background: linear-gradient(135deg, rgba(36, 58, 99, 0.65) 0%, rgba(26, 46, 80, 0.85) 100%);
  border: 1px solid rgba(201, 150, 42, 0.4);
  border-radius: 12px;
  padding: 20px 24px 18px;
  margin: 0 auto 34px;
  max-width: 560px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(201, 150, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.countdown-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold2);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--gold);
  animation: countdownPulse 2s infinite ease-in-out;
}

@keyframes countdownPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.35); opacity: 0.4; }
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}

.countdown-unit {
  background: rgba(15, 27, 48, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 6px 10px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.countdown-unit:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 150, 42, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.countdown-val {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  color: #FFFFFF;
  background: linear-gradient(180deg, #FFFFFF 25%, var(--gold2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.countdown-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.countdown-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}

.countdown-footer i {
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
}

/* Hero stats */
.hero-stats {
  display: inline-flex; border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.04);
  margin-bottom: 40px;
}
.hstat { padding: 20px 36px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.hstat:last-child { border-right: none; }
.hstat-val { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold); line-height: 1; font-weight: 700; }
.hstat-lbl { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 5px; }

/* Hero buttons */
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 13px 28px;
  border-radius: 7px; cursor: pointer; transition: all .2s;
  border: none; text-decoration: none; font-family: 'Inter', sans-serif;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: var(--white); }

/* SECTIONS */
.section { padding: 76px 28px; }
.section-alt { background: var(--off); }
.wrap { max-width: 1080px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px); color: var(--navy);
  margin-bottom: 12px; font-weight: 700;
}
.sec-head p { color: var(--muted); font-size: 15px; max-width: 460px; margin: 0 auto; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; }
.step { background: var(--white); padding: 36px 30px; }
.step-n {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); color: var(--gold);
  font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* INCENTIVO */
.incentivo {
  background: var(--navy); border-radius: 14px;
  padding: 64px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.incentivo::before {
  content: ''; position: absolute;
  top: -100px; right: -100px; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,150,42,.12) 0%, transparent 70%);
}
.incentivo-tag { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.incentivo-amount {
  font-family: 'Playfair Display', serif;
  font-size: clamp(72px, 12vw, 108px); color: var(--gold);
  line-height: 1; font-weight: 900; margin-bottom: 8px;
}
.incentivo-unit { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 40px; }
.incentivo-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 14px; max-width: 520px; margin: 0 auto;
}
.i-item {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 16px 20px; text-align: left;
}
.i-label { color: rgba(255,255,255,.45); font-size: 11px; margin-bottom: 4px; }
.i-val { color: var(--white); font-weight: 600; font-size: 14px; }

/* ELEGIBILIDAD */
.elig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.elig-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 28px;
  display: flex; gap: 20px; align-items: flex-start;
}
.elig-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--goldpale); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--gold);
}
.elig-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.elig-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.elig-no {
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 10px; padding: 14px 18px;
  font-size: 13px; color: #991B1B; margin-top: 20px;
  display: flex; gap: 10px; align-items: flex-start;
}

/* FORM */
.form-shell {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 8px 40px rgba(26,46,80,.09);
  overflow: hidden; max-width: 820px; margin: 0 auto;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; }
.tab-btn {
  padding: 20px; text-align: center; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; font-family: 'Inter', sans-serif;
  transition: all .2s; border-bottom: 3px solid transparent;
  background: var(--off); color: var(--muted);
}
.tab-btn.active { background: var(--white); color: var(--navy); border-bottom-color: var(--gold); }
.tab-btn span { display: block; font-size: 11px; font-weight: 400; margin-top: 3px; opacity: .7; }
.tab-panel { display: none; padding: 40px; }
.tab-panel.active { display: block; }

/* Fields */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 14px; font-size: 14px;
  font-family: 'Inter', sans-serif; border: 1.5px solid var(--border);
  border-radius: 7px; color: var(--text); background: var(--white);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,150,42,.1);
}
.field-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

/* TYC */
.tyc-box {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px 20px; max-height: 200px;
  overflow-y: auto; font-size: 13px; color: var(--muted); line-height: 1.7;
  margin-bottom: 14px;
}
.tyc-box h4 { color: var(--navy); font-size: 13px; margin-bottom: 10px; }
.tyc-box ul { padding-left: 18px; }
.tyc-box ul li { margin-bottom: 6px; }
.tyc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; margin-bottom: 20px; }
.tyc-check input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }

/* Google reCAPTCHA Caja Estilizada */
.captcha-box {
  background: #FAFAFB;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 16px 14px;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all .25s ease;
}
.captcha-box:hover {
  border-color: var(--gold);
  background: var(--goldpale);
}
.captcha-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.captcha-badge i {
  color: var(--gold);
  font-size: 14px;
}
.captcha-box .g-recaptcha {
  display: flex;
  justify-content: center;
  width: 100%;
}
@media (max-width: 400px) {
  .captcha-box {
    padding: 12px 6px;
    overflow: hidden;
  }
  .captcha-box .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center center;
  }
}
.captcha-hints {
  margin: -12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 4px;
}
.captcha-hint {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}
.captcha-hint i {
  color: var(--gold);
  font-size: 11px;
  flex-shrink: 0;
}

/* Submit */
.btn-submit {
  width: 100%; padding: 14px; font-size: 15px; font-weight: 700;
  border-radius: 7px; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all .2s;
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { opacity: .9; transform: translateY(-1px); }

/* Session bar */
.session-bar {
  display: none; background: var(--goldpale);
  border-bottom: 1px solid rgba(201,150,42,.25);
  padding: 12px 40px; font-size: 13px; color: var(--navy);
  align-items: center; justify-content: space-between;
}
.session-bar.on { display: flex; }
.session-code { font-weight: 700; color: var(--gold); }
.logout-btn { font-size: 12px; color: var(--muted); cursor: pointer; background: none; border: none; text-decoration: underline; font-family: 'Inter', sans-serif; }

/* Code display */
.code-box {
  background: var(--goldpale); border: 2px solid var(--gold);
  border-radius: 10px; padding: 20px; text-align: center; margin: 20px 0;
}
.code-box-lbl { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.code-box-val { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--navy); letter-spacing: .06em; }

/* Login */
.login-box { margin-bottom: 24px; }
.alert { border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 18px; display: flex; gap: 10px; }
.alert-green { background: var(--greenpale); color: #166254; border: 1px solid #A7D8D0; }
.alert-gold { background: var(--goldpale); color: #7C5A0E; border: 1px solid rgba(201,150,42,.3); }

/* Referidos list */
.ref-list { margin-bottom: 24px; }
.ref-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px; flex-wrap: wrap;
}
.btn-refresh-ref {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 6px;
  color: var(--navy); font-size: 12px; font-weight: 600; padding: 6px 12px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; transition: all .2s;
}
.btn-refresh-ref:hover {
  background: var(--off); border-color: var(--gold); color: var(--gold);
}
.ref-stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 14px; text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.ref-stat-num { font-size: 17px; font-weight: 800; color: var(--navy); }
.ref-stat-num.stat-green { color: var(--green); }
.ref-stat-lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; margin-top: 2px; }
.ref-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 16px; margin-bottom: 10px;
  transition: all .2s ease; gap: 12px;
}
.ref-item.is-matriculado {
  background: #F4FBF8;
  border-color: #A7D8D0;
  border-left: 4px solid var(--green);
}
.ref-item.is-registrado {
  border-left: 4px solid #CBD5E1;
}
.ref-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.ref-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ref-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 5px 12px;
  border-radius: 100px; text-transform: none; letter-spacing: 0.02em;
  white-space: nowrap; flex-shrink: 0;
}
.ref-badge-matriculado {
  background: var(--green);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(34, 133, 111, 0.25);
}
.ref-badge-registrado {
  background: var(--goldpale);
  color: #7C5A0E;
  border: 1px solid rgba(201, 150, 42, 0.35);
}
.ref-incentivo-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--green);
  background: var(--greenpale); padding: 2px 7px; border-radius: 4px;
}

/* Success */
.success-panel { display: none; text-align: center; padding: 48px 32px; }
.success-icon { font-size: 52px; margin-bottom: 16px; }
.success-panel h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.success-panel p { font-size: 14px; color: var(--muted); max-width: 380px; margin: 0 auto 24px; line-height: 1.7; }

/* FAQ */
.faq { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 15px; font-weight: 600; color: var(--navy);
  font-family: 'Inter', sans-serif; gap: 16px;
}
.faq-q:hover { color: var(--gold); }
.faq-icon { font-size: 20px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 16px; }
.faq-a p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* FOOTER */
footer {
  background: var(--navy); color: rgba(255,255,255,.5);
  padding: 40px 28px; text-align: center; font-size: 14px;
}
footer img { height: 36px; width: auto; margin: 0 auto 16px; display: block; opacity: .85; }
footer strong { color: var(--gold); }
footer p { font-size: 14px; line-height: 1.6; }
footer p + p { margin-top: 6px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .elig-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .section { padding: 56px 20px; }
  .steps { grid-template-columns: 1fr; }
  .elig-grid { grid-template-columns: 1fr; gap: 16px; }
  .elig-card { padding: 24px 20px; gap: 16px; }
  .incentivo-grid { grid-template-columns: 1fr; }
  .tab-panel { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .hstat { padding: 16px 20px; }
  .session-bar { padding: 12px 20px; }
}

@media (max-width: 480px) {
  .elig-card { padding: 20px 16px; gap: 14px; }
  .elig-icon { width: 42px; height: 42px; font-size: 19px; }
  .countdown-card { padding: 16px 12px 14px; margin-bottom: 26px; }
  .countdown-header { font-size: 11px; letter-spacing: .05em; margin-bottom: 10px; }
  .countdown-grid { gap: 6px; }
  .countdown-unit { padding: 10px 3px 8px; }
  .countdown-val { font-size: 24px; }
  .countdown-tag { font-size: 9px; letter-spacing: .04em; }
  .countdown-footer { font-size: 11px; gap: 6px; margin-top: 10px; padding-top: 10px; }
}


