/* subscription/pricing.css */
:root {
  --bg:           #fdfcfb;
  --card-bg:      #ffffff;
  --border:       rgba(0, 0, 0, 0.08);
  --border-mid:   rgba(0, 0, 0, 0.12);
  --text:         #1a1a1a;
  --muted:        rgba(26, 26, 26, 0.58);
  --muted-2:      rgba(26, 26, 26, 0.42);

  --brand:        #548C92;
  --brand-2:      #285260;
  --brand-soft:   rgba(84, 140, 146, 0.10);
  --brand-border: rgba(84, 140, 146, 0.28);
  --danger:       #d93025;

  --gold:         #B68A3A;
  --gold-2:       #8A6423;
  --gold-3:       #c9a24a;
  --gold-border:  rgba(182, 138, 58, 0.32);
  --gold-soft:    rgba(182, 138, 58, 0.07);
  --gold-warm:    #fffbf2;
  --gold-warm-2:  #fdf3dc;

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg:    0 20px 56px rgba(0,0,0,0.10);
  --radius:       20px;
  --radius-sm:    14px;
  --max:          1100px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: pg-fadein 0.4s ease forwards;
}
@keyframes pg-fadein { to { opacity: 1; } }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  overflow-x: hidden;
}

/* ── Topbar ─────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,252,251,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }

.af-nav {
  display: flex; gap: 6px; align-items: center;
  flex: 1; justify-content: center;
}
.af-nav__link {
  color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s;
  cursor: pointer; background: none; font-family: inherit;
}
.af-nav__link:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.af-nav__link.is-active {
  background: var(--brand-soft); color: var(--brand-2);
  border-color: var(--brand-border);
}

.af-nav-toggle {
  display: none; background: rgba(255,255,255,0.7);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; cursor: pointer; line-height: 1;
}
.af-nav-toggle i { font-size: 15px; color: var(--muted); }

.af-nav-mobile {
  display: none; position: absolute;
  top: calc(100% + 8px); left: 16px; right: 16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 50;
}
.af-nav-mobile .af-nav__link {
  display: block; padding: 11px 12px; border-radius: 10px;
}
.topbar.is-open .af-nav-mobile { display: block; }
.topbar.is-open .af-nav-toggle { border-color: var(--brand-border); }

@media (max-width: 700px) {
  .af-nav { display: none; }
  .af-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand-name { display: none; }
}

/* Auth buttons */
.contenedorBotonLogin { display: flex; align-items: center; gap: 10px; }
.botonesAuth { display: flex; align-items: center; gap: 8px; }
.botonLogin, .botonSignin {
  padding: 8px 16px; border-radius: 20px; font-size: 14px;
  font-weight: 600; transition: all 0.2s; border: 1.5px solid var(--brand); line-height: 1;
}
.botonLogin { background: var(--brand); color: #fff; }
.botonLogin:hover { background: var(--brand-2); border-color: var(--brand-2); }
.botonSignin { background: transparent; color: var(--brand); }
.botonSignin:hover { background: var(--brand); color: #fff; }

.perfilUsuario {
  display: none; align-items: center; gap: 5px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: #f8f9fa; border: 1px solid transparent;
  transition: background 0.2s; cursor: pointer;
}
.perfilUsuario:hover { background: #e6f0f2; }
.perfilUsuario a { display: flex; align-items: center; gap: 8px; }
.nombreUsuario { font-size: 13px; font-weight: 700; color: #1a1a1a; white-space: nowrap; }
.perfilCirculo {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.perfilUsuario.is-premium {
  background: linear-gradient(135deg, rgba(182,138,58,0.13), rgba(210,178,95,0.06));
  border-color: rgba(182,138,58,0.38);
}
.perfilUsuario.is-premium:hover {
  background: linear-gradient(135deg, rgba(182,138,58,0.20), rgba(210,178,95,0.10));
}
.perfilUsuario.is-premium .perfilCirculo {
  background: linear-gradient(135deg, #B68A3A, #D2B25F);
}
.perfilUsuario.is-premium .nombreUsuario { color: #8A6423; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 20px 0 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px; align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; }
  .hero { padding: 28px 0 20px; }
  /* On mobile: center the pricing card with equal margins on both sides */
  .pricing-card-wrap {
    order: -1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    align-items: stretch;
    align-self: center;
  }
  .pricing-eyebrow   { align-self: center; }
  .hero-copy          { order: 0; width: 100%; max-width: 480px; margin: 0 auto; }
}

/* Left copy */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-border);
  color: var(--gold-2); font-size: 11px; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

.hero-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.05; color: var(--text);
  margin-bottom: 12px;
}
.hero-title .gold { color: var(--gold-2); }

.hero-lead {
  font-size: 14.5px; line-height: 1.6;
  color: var(--muted); margin-bottom: 18px;
  max-width: 50ch;
}

/* Feature list */
.hero-features {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 18px;
}
.hf-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text); font-weight: 500;
}
.hf-icon {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--brand-soft); border: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-2);
}
.hf-icon svg { width: 12px; height: 12px; }
.hf-icon.gold-icon {
  background: var(--gold-soft); border-color: var(--gold-border);
  color: var(--gold-2);
}
.hf-muted { color: var(--muted); font-weight: 400; font-size: 12px; }

/* Trust pills */
.hero-trust {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted-2); font-weight: 500;
}
.trust-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(84,140,146,0.12);
}

/* Premium mark */
.premium-mark {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-warm-2));
  box-shadow: 0 4px 18px rgba(182,138,58,0.11);
  margin-bottom: 18px;
}
.premium-mark__iconWrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold-soft); border: 1.5px solid var(--gold-border);
  display: grid; place-items: center; flex-shrink: 0;
}
.premium-mark__logo { width: 26px; height: 26px; object-fit: contain; }
.premium-mark__title {
  font-size: 13.5px; font-weight: 900;
  letter-spacing: -0.01em; color: var(--gold-2);
}
.premium-mark__sub {
  font-size: 11.5px; font-weight: 700;
  color: var(--gold); margin-top: 1px;
}

/* ── Pricing card ─────────────────────────────────── */
.pricing-card-wrap {
  display: flex; flex-direction: column; gap: 8px;
}
.pricing-eyebrow {
  align-self: flex-start;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  position: relative; overflow: hidden;
  width: 100%; min-width: 0; box-sizing: border-box;
}
.pricing-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-3), var(--gold));
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-header { margin-bottom: 8px; padding-top: 4px; }
.card-header h2 {
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.025em; margin-bottom: 2px;
}
.card-header p { font-size: 13px; color: var(--muted); }

/* Billing toggle */
.billing-toggle {
  display: flex; gap: 5px; padding: 4px;
  border-radius: 999px; background: rgba(0,0,0,0.04);
  border: 1px solid var(--border); margin-bottom: 10px;
}
.toggle-btn {
  flex: 1; padding: 5px 10px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.18s;
}
.toggle-btn.is-active {
  background: #fff; border-color: var(--border-mid);
  color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pill {
  margin-left: 5px; padding: 2px 7px; border-radius: 999px;
  font-size: 11px; background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-2); font-weight: 800;
}

/* Price */
.price-row { margin-bottom: 10px; }
.price {
  display: flex; align-items: baseline; gap: 4px;
  font-weight: 900; letter-spacing: -0.03em; margin-bottom: 3px;
}
.currency { font-size: 18px; opacity: 0.85; }
.amount { font-size: 38px; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.per { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-sub { font-size: 12px; color: var(--muted); }

/* Strikethrough original price when student discount is active */
.price-original {
  font-size: 22px; font-weight: 700;
  color: var(--muted); text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
  opacity: 0.7;
}
.price-sub-discount {
  display: inline-block;
  background: var(--gold-soft); border: 1px solid var(--gold-border);
  color: var(--gold-2); font-size: 11px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px;
  margin-right: 4px;
}

/* FREE label shown when Hult student discount = 100% */
.price-free-label {
  font-size: 38px; font-weight: 900;
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, #1a7a3a, #27ae60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Checklist */
.checklist {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--muted); line-height: 1.3;
}
.checklist li::before {
  content: '✓'; flex-shrink: 0;
  width: 16px; height: 16px; display: grid; place-items: center;
  border-radius: 5px; background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-2); font-size: 10px; font-weight: 900;
  margin-top: 1px;
}
.checklist li.li-gold::before {
  background: var(--gold-soft); border-color: var(--gold-border); color: var(--gold-2);
}
.checklist li.li-gold { color: var(--text); font-weight: 600; }

/* Divider inside card */
.card-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ── University discount banner ───────────────────── */
.uni-discount {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(24, 128, 56, 0.06);
  border: 1.5px solid rgba(24, 128, 56, 0.18);
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(24,128,56,0.08);
  animation: discount-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes discount-pop {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.uni-discount__logo-wrap {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 8px;
  background: #fff; border: 1px solid rgba(24,128,56,0.18);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.uni-discount__logo-wrap img {
  width: 26px; height: 26px; object-fit: contain;
}
.uni-discount__logo-wrap .uni-initial {
  font-size: 14px; font-weight: 900; color: #1a7a3a;
}
.uni-discount__body { flex: 1; min-width: 0; overflow: hidden; }
.uni-discount__label {
  font-size: 12px; font-weight: 700; color: #1a7a3a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.uni-discount__badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #1a7a3a;
}
.uni-discount__badge svg { flex-shrink: 0; }
.uni-discount__chip {
  flex-shrink: 0;
  padding: 4px 12px; border-radius: 999px;
  background: #1a7a3a; color: #fff;
  font-size: 12px; font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(24,128,56,0.28);
}

/* Buttons */
.btn {
  border: 1.5px solid var(--border);
  background: rgba(0,0,0,0.03); color: var(--text);
  padding: 12px 18px; border-radius: 14px;
  font-weight: 800; font-size: 14px;
  cursor: pointer; font-family: inherit;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--brand-soft); border-color: var(--brand-border); }
.btn-block { width: 100%; padding: 11px; font-size: 15px; border-radius: 999px; }

.fineprint { margin-top: 6px; font-size: 11px; color: var(--muted-2); line-height: 1.5; }
.link-inline { text-decoration: underline; text-underline-offset: 3px; }
.error { margin-top: 10px; color: var(--danger); font-size: 13px; font-weight: 600; min-height: 16px; }

/* ── Promo code input ─────────────────────────────── */
.promo-wrap { margin-bottom: 8px; }

.promo-row {
  display: flex; gap: 6px;
}
.promo-input {
  flex: 1; padding: 9px 13px;
  border: 1px solid var(--border-mid);
  border-radius: 10px; font-family: inherit;
  font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,0.018); color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.promo-input::placeholder {
  color: var(--muted-2); text-transform: none; letter-spacing: 0; font-weight: 400;
}
.promo-input:focus {
  outline: none; border-color: var(--brand-border);
  box-shadow: 0 0 0 3px rgba(84,140,146,0.10);
}
.promo-input.is-success { border-color: rgba(24,128,56,0.4); }
.promo-input.is-error   { border-color: rgba(192,57,43,0.4); }

.promo-btn {
  padding: 9px 16px; border-radius: 10px;
  background: rgba(0,0,0,0.04); border: 1px solid var(--border-mid);
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--text); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.promo-btn:hover { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand-2); }
.promo-btn:active { transform: translateY(1px); }

.promo-msg {
  font-size: 12px; font-weight: 600; margin-top: 5px;
  min-height: 16px; line-height: 1.4;
}
.promo-msg:empty { display: none; }
.promo-msg.is-success { color: #1a7a3a; }
.promo-msg.is-error   { color: var(--danger); }

/* ── Comparison table ─────────────────────────────── */
.section { padding: 0 0 40px; }
.section-head { margin-bottom: 20px; }
.section-head h2 {
  font-size: 24px; font-weight: 900;
  letter-spacing: -0.03em; margin-bottom: 4px;
}

.table-wrap {
  overflow: auto; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.compare {
  width: 100%; border-collapse: collapse;
  background: var(--card-bg);
}
.compare thead tr { background: rgba(0,0,0,0.02); }
.compare th, .compare td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  text-align: left; font-size: 13.5px;
}
.compare th { font-weight: 800; color: var(--text); font-size: 13px; }
.compare th:nth-child(3) { color: var(--gold-2); }
.compare td { color: var(--muted); }
.compare td:nth-child(2),
.compare td:nth-child(3) { width: 80px; text-align: center; font-weight: 800; color: var(--text); white-space: nowrap; }
.compare td:nth-child(3) { color: var(--gold-2); }
.compare tr:last-child td { border-bottom: none; }
.compare tr:nth-child(even) td { background: rgba(0,0,0,0.012); }

@media (max-width: 600px) {
  .compare th, .compare td { padding: 10px 10px; font-size: 12px; }
  .compare th { font-size: 11.5px; }
  .compare td:nth-child(2),
  .compare td:nth-child(3) { width: 54px; font-size: 12px; }
}

.center-cta { margin-top: 24px; display: flex; justify-content: center; }

/* ── Footer ───────────────────────────────────────── */
.alpha-footer {
  position: static;
  width: 100%;
  margin-top: 40px;
  background: #F4F9FA;
  border-top: 2px solid var(--color-azul-medio, #548C92);
  font-size: 0.875rem;
}

.alpha-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.alpha-footer__home-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-azul-oscuro, #285260);
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity 0.15s ease;
}
.alpha-footer__home-link:hover { opacity: 0.7; }
.alpha-footer__home-link:hover .alpha-footer__logo { transform: scale(1.08); }

.alpha-footer__logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform .2s ease;
}

.footer-logo-link { display: flex; align-items: center; }

.alpha-footer__home-text { font-size: 0.875rem; }

.alpha-footer__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.alpha-footer__sep {
  color: var(--color-azul-medio, #548C92);
  font-size: 0.8rem;
  padding: 0 2px;
  opacity: 0.4;
}

.alpha-footer__link {
  text-decoration: none;
  color: var(--color-azul-medio, #548C92);
  font-weight: 400;
  font-size: 0.875rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  position: static;
  opacity: 1;
}
.alpha-footer__link:hover {
  color: var(--color-azul-oscuro, #285260);
  background: rgba(84,140,146,0.08);
}
.alpha-footer__link::after { display: none; }

.alpha-footer__social { display: flex; align-items: center; gap: 6px; }

.alpha-footer__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-azul-medio, #548C92);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-azul-medio, #548C92);
  opacity: 1;
  transition: color 0.15s ease, border-color 0.15s ease,
              background 0.15s ease, transform 0.15s ease;
}
.alpha-footer__icon i { font-size: 0.82rem; }
.alpha-footer__icon:hover {
  color: #ffffff;
  background: var(--color-azul-medio, #548C92);
  border-color: var(--color-azul-medio, #548C92);
  transform: translateY(-1px);
}

.alpha-footer__bottom { display: none; }

@media (max-width: 600px) {
  .hero-title { font-size: 30px; }
  .amount { font-size: 34px; }
  .hero-trust { gap: 14px; }
  .hero-features { gap: 8px; }
}