:root {
  --navy: #1b3d5c;
  --navy-dark: #0f2438;
  --gold: #8b7040;
  --gold-light: #b8964e;
  --cream: #f2ece0;
  --white: #fff;
  --text: #2a2a2a;
  --muted: #6b7280;
  --r: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; background: var(--cream); color: var(--text); }

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.logo-nav { height: 42px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .04em; transition: color .2s; }
.nav-links a:hover { color: var(--gold-light); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all .3s; }
.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BOTONES ── */
.btn { display: inline-block; text-decoration: none; padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: .9rem; transition: all .2s; }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }

/* ── HERO ── */
.hero {
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a6e 100%);
  color: white;
  padding: 80px 5% 70px;
  text-align: center;
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.25; margin-bottom: 16px; }
.hero h1 span { color: var(--gold-light); }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 540px; margin: 0 auto 32px; font-weight: 300; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 5px 14px; font-size: .78rem; font-weight: 600; }

/* ── SECCIONES ── */
.section { padding: 64px 5%; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--navy); text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 40px; }

/* ── CARDS DE CURSOS ── */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; }
.course-card { background: white; border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 20px rgba(27,61,92,.1); border: 1px solid rgba(27,61,92,.08); transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(27,61,92,.15); }
.card-top { background: var(--navy); padding: 6px 14px; }
.card-top span { color: white; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-body { padding: 24px; flex: 1; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.card-body p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-top: 1px solid #f0f0f0; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.price sub { font-size: .7rem; color: var(--muted); font-weight: 400; }

/* ── PAGOS ── */
.pagos { background: var(--navy); padding: 36px 5%; text-align: center; }
.pagos p { color: rgba(255,255,255,.6); font-size: .88rem; margin-bottom: 14px; }
.metodos { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.metodo { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 7px 16px; color: white; font-size: .82rem; font-weight: 600; }

/* ── CONTACTO ── */
.contacto { padding: 64px 5%; text-align: center; background: white; }
.contacto h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--navy); margin-bottom: 10px; }
.contacto p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }
.contact-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.link-wa { background: #25D366; color: white; }
.link-wa:hover { background: #1da851; transform: translateY(-2px); }
.link-email { background: var(--navy); color: white; }
.link-email:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--navy-dark); padding: 28px 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.logo-footer { height: 50px; }
footer p { color: rgba(255,255,255,.4); font-size: .78rem; }

/* ── IMAGEN HERO INDEX ── */
.hero-img-wrap { position: relative; height: 320px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(.7); display: block; }
.hero-img-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(to top, rgba(15,36,56,.7) 0%, transparent 60%); }
.hero-img-overlay p { color: white; font-family: 'Playfair Display', serif; font-size: clamp(1rem, 2.5vw, 1.4rem); text-align: center; line-height: 1.6; padding: 0 5%; }

/* ── IMAGEN CURSO ── */
.curso-img-wrap { max-width: 760px; margin: 0 auto; padding: 0 5%; margin-top: -1px; }
.curso-img-wrap img { width: 100%; height: 260px; object-fit: cover; object-position: center 40%; border-radius: 0 0 var(--r) var(--r); display: block; }

@media (max-width: 640px) {
  .hero-img-wrap { height: 220px; }
  .curso-img-wrap img { height: 180px; }
}

/* ── PAGINA DE CURSO ── */
.curso-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: white; padding: 60px 5% 50px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; margin-bottom: 24px; transition: color .2s; }
.back-link:hover { color: white; }
.curso-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 4vw, 2.4rem); max-width: 700px; line-height: 1.3; margin-bottom: 14px; }
.curso-hero .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.meta-item { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 16px; font-size: .85rem; }
.curso-content { max-width: 760px; margin: 0 auto; padding: 50px 5%; }
.curso-content h2 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.4rem; margin: 32px 0 14px; }
.curso-content p, .curso-content li { font-size: .95rem; color: #444; line-height: 1.8; }
.curso-content ul, .curso-content ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.modulos { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.modulo { background: var(--cream); border-left: 3px solid var(--navy); border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: .9rem; color: var(--text); }
.modulo strong { color: var(--navy); }
.inscripcion-box { background: white; border: 2px solid var(--cream); border-radius: var(--r); padding: 28px; text-align: center; margin-top: 40px; box-shadow: 0 2px 20px rgba(27,61,92,.08); }
.inscripcion-box .precio-grande { font-size: 2.2rem; font-weight: 700; color: var(--navy); margin: 10px 0; }
.inscripcion-box p { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-dark); flex-direction: column; padding: 16px 5%; gap: 0; }
  .nav-links li a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-open .nav-links { display: flex; }
  footer { justify-content: center; text-align: center; }
  .curso-hero .meta { gap: 10px; }
}
