/* =========================================================================
   ACADEMIA VELA · Virtual English Learning Academy
   Hoja de estilos compartida
   -------------------------------------------------------------------------
   COLORES OFICIALES DE MARCA (de logo y presentaciones VELA):
     --brand  #002955  azul navy oficial
     --accent #F5A04C  peach (solo para detalles pequeños)
   ========================================================================= */
:root {
  --brand:      #002955;
  --brand-700:  #001E40;
  --brand-300:  #2F5C8A;
  --brand-100:  #E7EDF4;
  --accent:     #F5A04C;
  --accent-200: #FCE6CF;
  --ink:        #122031;
  --ink-soft:   #4a5a6b;
  --paper:      #ffffff;
  --paper-2:    #F4F7FB;
  --card:       #ffffff;
  --line:       #dde5ee;
  --ok:         #1f9d6b;
  --radius:     16px;
  --maxw:       1140px;
  --shadow:     0 18px 44px -20px rgba(0,41,85,.40);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; color: var(--brand); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--ink-soft); }

.brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--brand); }
.brand img { display: block; height: 56px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.78rem; color: var(--brand); letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.flame { width: 30px; height: 34px; flex: none; }
.flame svg { width: 100%; height: 100%; display: block; }
.brand small { display: block; font-size: .56rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-soft); margin-top: 2px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-weight: 700; font-size: .95rem; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.btn { display: inline-block; font-weight: 800; font-size: .95rem; padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer; background: var(--brand); color: #fff; transition: transform .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--brand); }

.hero { background: var(--brand); color: #fff; padding: 76px 0 84px; position: relative; overflow: hidden; }
.hero::before,.hero::after { content:""; position:absolute; border-radius:50%; background: radial-gradient(circle at 30% 30%, #2a4f7a, transparent 68%); }
.hero::before { width:460px; height:460px; right:-120px; top:-140px; opacity:.55; }
.hero::after  { width:320px; height:320px; right:120px; bottom:-180px; opacity:.35; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lead { color: rgba(255,255,255,.86); font-size: 1.13rem; margin: 20px 0 30px; max-width: 52ch; }
.hero .eyebrow { color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.ghost { color:#fff; border-color: rgba(255,255,255,.5); }
.hero .btn.ghost:hover { background:#fff; color: var(--brand); border-color:#fff; }
.eyebrow { display: inline-block; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; color: var(--brand); margin-bottom: 16px; }

.section { padding: 66px 0; }
.section.alt { background: var(--paper-2); }
.section-head { margin-bottom: 38px; max-width: 62ch; }
.section-head h2 span { color: var(--accent); }
.section-head p { margin-top: 10px; }

.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .tag { font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color: var(--brand-300); margin-bottom:12px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size:.95rem; flex:1; }
.card .more { margin-top:18px; font-weight:800; color: var(--brand); font-size:.92rem; }
.card .more::after { content:" →"; }
.card.locked { opacity:.62; }
.card.locked .more { color: var(--ink-soft); }
.level-1 { border-top: 5px solid var(--brand); }
.level-2 { border-top: 5px solid var(--brand-300); }
.level-3 { border-top: 5px solid var(--accent); }
.level-4 { border-top: 5px solid var(--brand-700); }

.lesson-list { display: grid; gap: 12px; }
.lesson-row { display:flex; align-items:center; gap:8px; justify-content:space-between; background: var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 20px; transition: border-color .15s, transform .12s; }
.lesson-row:hover { border-color: var(--brand); transform: translateX(3px); }
.lesson-row .ix { font-family: var(--font-display); font-weight:800; color: var(--brand); font-size:1.05rem; width:34px; }
.lesson-row .meta { flex:1; }
.lesson-row .meta strong { display:block; font-size:1.02rem; color: var(--ink); }
.lesson-row .meta span { font-size:.88rem; color: var(--ink-soft); }
.lesson-row .go { font-weight:800; color: var(--brand); font-size:.9rem; white-space:nowrap; }
.lesson-row.soon { opacity:.55; pointer-events:none; }
.lesson-row.soon .go { color: var(--ink-soft); }

.breadcrumb { font-size:.88rem; color: var(--ink-soft); padding:26px 0 0; }
.breadcrumb a { color: var(--brand); font-weight:700; }
.lesson { display: grid; grid-template-columns: 1fr 270px; gap:50px; padding:28px 0 70px; }
.lesson article h2 { margin:40px 0 14px; padding-top:8px; }
.lesson article h3 { margin:22px 0 10px; color: var(--brand-300); }
.lesson article p { margin-bottom:14px; color: var(--ink); }
.lesson article ul { margin:0 0 16px 22px; color: var(--ink-soft); }
.lesson article li { margin-bottom:6px; }
.pill { display:inline-block; background: var(--brand-100); color: var(--brand); font-weight:700; font-size:.78rem; padding:6px 14px; border-radius:999px; margin-bottom:14px; }

.example { background: var(--paper-2); border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:10px; padding:14px 18px; margin:12px 0; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.example .txt .en { font-weight:700; font-size:1.05rem; color: var(--ink); }
.example .txt .es { color: var(--ink-soft); font-size:.94rem; }
.note { background: var(--accent-200); border:1px solid var(--accent); border-radius:10px; padding:15px 18px; margin:20px 0; font-size:.96rem; color: var(--brand-700); }
.note strong { color: var(--brand-700); }

.gtable { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:18px 0; }
.gtable th { background: var(--brand); color:#fff; text-align:left; padding:12px 18px; font-size:.9rem; }
.gtable td { padding:11px 18px; border-top:1px solid var(--line); }
.gtable td:first-child { font-weight:800; color: var(--brand); width:38%; }
.gtable tr:hover td { background: var(--paper-2); }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:18px; }

aside.lesson-side { position: sticky; top:96px; align-self:start; background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; height:fit-content; }
aside.lesson-side h4 { margin-bottom:12px; }
aside.lesson-side ol { margin-left:18px; font-size:.92rem; color: var(--ink-soft); display:grid; gap:9px; }
aside.lesson-side a { color: var(--ink-soft); }
aside.lesson-side a:hover { color: var(--brand); }

.say { border:0; cursor:pointer; background: var(--brand-100); color: var(--brand); width:34px; height:34px; border-radius:50%; font-size:.95rem; display:inline-grid; place-items:center; vertical-align:middle; flex:none; transition:all .12s; }
.say:hover { background: var(--brand); color:#fff; transform:scale(1.08); }
.say:active { transform:scale(.94); }
.listen { background: var(--brand); color:#fff; border-radius:16px; padding:26px; margin:30px 0; }
.listen h3 { color:#fff; }
.listen p { color: rgba(255,255,255,.82); margin:6px 0 18px; }
.listen .phrase { display:flex; align-items:center; justify-content:space-between; gap:12px; background: rgba(255,255,255,.10); border-radius:10px; padding:12px 18px; margin-bottom:10px; font-size:1.05rem; font-weight:600; }
.listen .phrase button { border:0; cursor:pointer; background: var(--accent); color: var(--brand-700); width:38px; height:38px; border-radius:50%; font-size:1rem; display:grid; place-items:center; flex:none; transition:transform .12s; }
.listen .phrase button:hover { transform:scale(1.1); }

.quiz { background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px; margin-top:30px; }
.quiz h3 { margin-bottom:6px; }
.quiz .q { margin:22px 0; }
.quiz .q p { color: var(--ink); font-weight:700; margin-bottom:12px; }
.quiz .opt { display:block; width:100%; text-align:left; cursor:pointer; background: var(--paper-2); border:1.5px solid var(--line); border-radius:10px; padding:12px 16px; margin-bottom:9px; font:inherit; color: var(--ink); transition:all .12s; }
.quiz .opt:hover { border-color: var(--brand); }
.quiz .opt.correct { border-color: var(--ok); background: rgba(31,157,107,.12); }
.quiz .opt.wrong { border-color:#d6453b; background: rgba(214,69,59,.10); }
.quiz .opt:disabled { cursor:default; }
.q-feedback { margin:4px 0 12px; padding:10px 14px; border-radius:8px; font-size:.92rem; font-weight:600; }
.feedback-correct { background:rgba(31,157,107,.12); color:#1f9d6b; border-left:3px solid #1f9d6b; }
.feedback-wrong { background:rgba(214,69,59,.10); color:#c0392b; border-left:3px solid #d6453b; }
.quiz-result { margin-top:20px; font-weight:800; font-family: var(--font-display); font-size:1.15rem; color: var(--brand); display:none; }
.quiz-result.show { display:block; }
.quiz .restart { margin-top:16px; display:none; }
.quiz .restart.show { display:inline-block; }

.site-footer { background: var(--brand); color:#c9d6e6; padding:54px 0 28px; }
.foot-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:24px; align-items:start; }
.foot-col {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 24px 22px;
  transition: background .22s, transform .22s, box-shadow .22s;
}
.foot-col:hover {
  background: rgba(255,255,255,.11);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 36px -8px rgba(0,0,0,.35);
}
.site-footer h4 { color:#fff; margin-bottom:14px; font-size:1.02rem; }
.site-footer a { color:#c9d6e6; font-size:.92rem; display:block; margin-bottom:9px; padding-left:0; position:relative; transition:color .2s, padding-left .2s; }
.site-footer a::before { content:'›'; position:absolute; left:-10px; opacity:0; color:var(--accent); font-size:1.1rem; line-height:1; transition:opacity .2s, left .2s; }
.site-footer a:hover { color:var(--accent); padding-left:16px; }
.site-footer a:hover::before { opacity:1; left:0; }
.site-footer .brand { color:#fff; margin-bottom:12px; align-items: center; }
.site-footer .brand img { height: 68px; }
.site-footer .brand-text { color: #fff; font-size: 1.45rem; white-space: normal; line-height: 1.18; max-width: 280px; }
.footer-tagline { color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; font-style: italic; margin-top: 14px; letter-spacing: -.005em; }
.site-footer .brand small { color:#9fb3cc; }
.foot-bottom { border-top:1px solid rgba(255,255,255,.14); margin-top:36px; padding-top:20px; font-size:.85rem; color:#8ea4bf; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

.reveal { opacity:0; transform:translateY(16px); animation:rise .7s ease forwards; }
.reveal:nth-child(2){animation-delay:.07s}.reveal:nth-child(3){animation-delay:.14s}.reveal:nth-child(4){animation-delay:.21s}
@keyframes rise { to { opacity:1; transform:none; } }

@media (max-width:880px){
  .brand-text{ display:none; }
  .site-footer .brand-text{ display:inline; }
  .cards{grid-template-columns:1fr 1fr}
  .lesson{grid-template-columns:1fr}
  aside.lesson-side{position:static}
  .two-col{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr 1fr; gap:16px;}
  .nav-links{display:none;position:absolute;top:74px;left:0;right:0;background:#fff;flex-direction:column;gap:0;border-bottom:1px solid var(--line);padding:10px 22px 18px}
  .nav-links.open{display:flex}
  .nav-links a{padding:12px 0;width:100%;border-bottom:1px solid var(--line)}
  .nav-toggle{display:block}
}
@media (max-width:560px){ .cards{grid-template-columns:1fr} .foot-grid{grid-template-columns:1fr} }
