/* ECUACIÓN GANADORA — Web · estilos globales */

:root {
  --oxford: #0B2447;
  --royal:  #19376D;
  --cream:  #F5F1E8;
  --paper:  #FAF7F0;
  --ink:    #0A0A0A;
  --gold:   #A98E45;
  --gold-light: #C4A961;
  --line:   rgba(11,36,71,0.14);
  --muted:  rgba(11,36,71,0.62);

  --display: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --body: 'Inter', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--oxford); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--oxford);
  line-height: 1.15;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }

p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }

/* === Layout === */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section { padding: 90px 0; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(250,247,240,0.92);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { height: 38px; }
.nav-links {
  display: flex; gap: 26px; flex: 1; justify-content: center;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--oxford);
  position: relative;
  padding: 4px 0;
}
.nav-links a.active::after,
.nav-links a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}
.nav-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  background: var(--oxford); color: var(--cream);
  padding: 10px 18px; border-radius: 0;
  text-transform: uppercase; font-weight: 500;
  transition: background .2s;
}
.nav-cta:hover { background: var(--gold); color: var(--paper); }
.nav-burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--oxford); }

@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 18px 28px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: 15px; letter-spacing: 0.2px;
  font-weight: 500;
  padding: 15px 26px;
  border: 1px solid var(--oxford); background: var(--oxford); color: var(--cream);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.btn svg { flex-shrink: 0; }
.btn-ghost { background: transparent; color: var(--oxford); }
.btn-ghost:hover { background: var(--oxford); color: var(--cream); border-color: var(--oxford); }
.btn-wa { background: var(--oxford); border-color: var(--oxford); color: var(--cream); position: relative; }
.btn-wa::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-light); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.btn-wa:hover { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.btn-wa:hover::before { background: var(--paper); box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }

/* === Footer === */
.site-footer {
  background: var(--oxford); color: var(--cream);
  padding: 80px 0 40px;
  border-top: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
section.cta-band { margin-top: 0 !important; margin-bottom: 0 !important; }
.site-footer::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  background: url("assets/sello-crema.svg") center/contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.site-footer .wrap { position: relative; z-index: 1; }
section.cta-band { margin-top: 0 !important; margin-bottom: 0 !important; }
.site-footer h4 { color: var(--cream); font-size: 24px; margin-bottom: 16px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px; padding-bottom: 50px;
  border-bottom: 1px solid rgba(245,241,232,0.18);
}
.footer-grid p, .footer-grid li { font-size: 14px; line-height: 1.7; opacity: 0.85; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  padding-top: 30px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 14px; }
}

/* === Page hero (interior) === */
.page-hero {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  background: url("assets/sello-azul.svg") center/contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead {
  font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic; color: var(--muted); max-width: 720px; margin: 0;
}

/* === Cards · cursos === */
.course-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
@media (max-width: 760px) { .course-grid { grid-template-columns: 1fr; } }
.course {
  background: var(--cream);
  padding: 36px 32px 30px;
  border-top: 2px solid var(--oxford);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.course .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2.4px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 14px;
}
.course h3 { font-size: 28px; margin-bottom: 14px; }
.course ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.course li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.course li:last-child { border-bottom: 0; }
.course .arrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  color: var(--oxford); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.course .arrow:hover { color: var(--gold); }

/* === Decorative === */
.serif-italic { font-family: var(--display); font-style: italic; }
hr.rule { border: 0; height: 1px; background: var(--line); margin: 60px 0; }

/* whatsapp floating */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 100;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: white; }
