/* ==========================================================================
   Live Spanish — Design system
   Brand colors: rojo #C21920 / naranja #E89A50 (sin crema de fondo)
   ========================================================================== */

:root {
  --red: #C21920;
  --red-dark: #9E1319;
  --orange: #E89A50;
  --orange-dark: #D68538;
  --ink: #201B1A;
  --ink-soft: #574F4D;
  --line: #ECE6E3;
  --white: #FFFFFF;
  --bg-soft: #FAFAFA;
  --success: #2E7D5B;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(32, 27, 26, 0.08);
  --shadow-sm: 0 4px 14px rgba(32, 27, 26, 0.06);
  --maxw: 1180px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
}
.section--red p, .section--red h2, .section--red h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(194,25,32,.28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px rgba(232,154,80,.35); }
.btn-secondary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform:none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}
.nav__links a { color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a.active { color: var(--red); border-color: var(--red); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--ink-soft);
}
.lang-toggle button.active { background: var(--red); color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 66px 16px auto 16px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav__burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead { font-size: 18px; max-width: 480px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
}
.hero__stats div strong { display:block; font-size: 26px; color: var(--red); }
.hero__stats div span { font-size: 13px; color: var(--ink-soft); }

.hero__art { position: relative; }
.hero__art img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.hero__badge span.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(46,125,91,.15);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art img { height: 300px; }
  .hero__art { order: -1; }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; }
.card p { font-size: 15px; margin-bottom: 0; }

.photo-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.photo-card img { height: 260px; width: 100%; object-fit: cover; }
.photo-card figcaption {
  position: absolute; left:0; right:0; bottom:0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(32,27,26,.75), transparent);
  color: var(--white); font-weight: 600; font-size: 14px;
}
figure { margin: 0; }

/* ---------- Level cards (Cursos) ---------- */
.level-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.level-card__top { display: flex; align-items: center; justify-content: space-between; }
.level-card__badge {
  font-size: 22px; font-weight: 800; color: var(--white);
  background: var(--red); width: 52px; height: 52px;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.level-card--soon .level-card__badge { background: var(--ink-soft); opacity: .6; }
.tag {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;
}
.tag--live { background: rgba(46,125,91,.12); color: var(--success); }
.tag--soon { background: rgba(87,79,77,.1); color: var(--ink-soft); }
.level-card ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.level-card ul li::before { content: "✓ "; color: var(--red); font-weight: 700; }

/* ---------- Plan de estudios (semanas) ---------- */
.stat-card { text-align: center; padding: 24px 16px; }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--red); display: block; margin-bottom: 4px; }
.stat-card p { font-size: 13px; margin: 0; }

.week-block { margin-bottom: 32px; }
.week-block__label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--orange-dark); margin-bottom: 14px;
}
.week-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .week-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .week-grid { grid-template-columns: 1fr; } }
.week-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.week-row__num { font-size: 11px; font-weight: 700; color: #9A9290; letter-spacing: .04em; }
.week-row h4 { font-size: 15px; margin: 4px 0 4px; color: var(--ink); }
.week-row .topics { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.week-row .task { font-size: 12.5px; color: var(--red-dark); font-weight: 600; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-note {
  border: 1.5px dashed var(--orange);
  background: #FFF7EE;
  border-radius: var(--radius);
  padding: 26px 30px;
  text-align: center;
}
.pricing-note h3 { color: var(--orange-dark); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 30px; font-weight: 700;
}
.team-card h3 { margin-bottom: 2px; font-size: 17px; }
.team-card .role { color: var(--red); font-weight: 600; font-size: 13px; margin-bottom: 10px; display:block; }

/* ---------- Testimonials ---------- */
.quote-card { border-left: 4px solid var(--orange); padding-left: 20px; }
.quote-card p.q { font-size: 16px; color: var(--ink); font-style: italic; }
.quote-card .who { font-weight: 700; font-size: 14px; }
.quote-card .who span { color: var(--ink-soft); font-weight: 400; }

/* ---------- Affiliation strip ---------- */
.affil-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  padding: 36px 0;
}
.affil-strip img { height: 44px; width: auto; filter: grayscale(15%); opacity: .9; }
.affil-strip .affil-item { display:flex; flex-direction:column; align-items:center; gap:8px; }
.affil-strip small { color: var(--ink-soft); font-size: 12px; text-align:center; max-width:160px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 24px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__grid h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer__grid a, .footer__grid p { color: rgba(255,255,255,.65); font-size: 14px; }
.footer__grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer__logo img { height: 30px; margin-bottom: 14px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.5);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; text-align: left; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--white);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--red);
}
.form-note { font-size: 13px; color: var(--ink-soft); }

/* ---------- Contact page layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--white); display:flex; align-items:center; justify-content:center;
  color: var(--red); font-weight: 700; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* ---------- Portal / login ---------- */
.portal-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-s