@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;700&display=swap');

:root {
  --purple-deep: #5c0a86;
  --purple-mid: #8547a4;
  --purple-light: #b47fd4;
  --gold: #e0a240;
  --gold-light: #f0c070;
  --red: #c91f37;
  --white: #ffffff;
  --bg: #0f0b14;
  --card: #1a1225;
  --text: #f0eaf8;
  --muted: #9b8aaa;
  --border: rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── NAV ─── */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: rgba(92,10,134,0.15);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.2);
}

.nav-logo-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
}

.nav-logo-badge .red { color: #e8001c; }
.nav-logo-badge .mujer { color: #ffffff; }

/* ─── HERO ─── */
.hero {
  background:
    linear-gradient(160deg, rgba(92,10,134,0.82) 0%, rgba(45,0,80,0.80) 50%, rgba(26,0,48,0.88) 100%),
    url('https://www.baneco.com.bo/assets/content/img/images/landing/redmujer/65942e44d7e7e.jpg') center 30% / cover no-repeat;
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(232,0,28,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(224,162,64,0.15);
  border: 1px solid rgba(224,162,64,0.4);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* ─── CARD ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* ─── FORM ─── */
.form-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(133,71,164,0.2);
}

.form-input option { background: #1a1225; }

.radio-group {
  display: flex;
  gap: 12px;
}

.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.9rem;
}

.radio-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(224,162,64,0.1);
}

.radio-option input { accent-color: var(--gold); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a0030;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(224,162,64,0.35); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ─── INFO BADGE CURSO ─── */
.curso-info {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.info-pill {
  background: rgba(92,10,134,0.25);
  border: 1px solid rgba(133,71,164,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.info-pill .icon { font-size: 1.1rem; flex-shrink: 0; }
.info-pill .label { color: var(--muted); font-size: 0.7rem; display: block; }

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ─── ALERT ─── */
.alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

.alert-error { background: rgba(201,31,55,0.15); border: 1px solid rgba(201,31,55,0.4); color: #f87185; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }

/* ─── FOOTER ─── */
.footer {
  text-align: center;
  padding: 30px 24px;
  color: var(--muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
}

.footer a { color: var(--purple-light); text-decoration: none; }

/* ─── LOADING ─── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #1a0030;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── GRACIAS PAGE ─── */
.gracias-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px 24px;
  text-align: center;
}

.gracias-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 28px;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gracias-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.gracias-container p {
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ─── CURSOS LIST ─── */
.cursos-grid {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
}

.curso-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.curso-card:hover {
  transform: translateY(-2px);
  border-color: rgba(133,71,164,0.5);
}

.curso-card-body { padding: 20px; }
.curso-card-titulo { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.curso-card-meta { color: var(--muted); font-size: 0.82rem; display: flex; gap: 12px; flex-wrap: wrap; }
.curso-card-registros {
  display: inline-block;
  background: rgba(224,162,64,0.12);
  border: 1px solid rgba(224,162,64,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
}
