/* =========================================================
   Curso / Taller — plantilla reutilizable para páginas dentro
   de Capacitaciones (embajadores.html, tdah-en-ninos.html, y
   los próximos cursos).

   Cómo reutilizar para un curso nuevo:
   1. Copiar capacitaciones/tdah-en-ninos.html como base.
   2. Elegir un tema de color: reutilizar body.theme-amber (celeste),
      body.theme-orange (naranja intenso) o crear un bloque nuevo aquí,
      definiendo --crs / --crs-2 / --crs-light / --crs-soft / --crs-text / --crs-rgb.
   3. Si se agrega un tema nuevo, también sumar su propio
      "body.theme-X .curso-hero::after" con el fill igual a --cream.
   4. Todas las secciones (.curso-*) ya quedan estilizadas.
   ========================================================= */

/* ---------- TEMA: celeste (compartido con Embajadores) ---------- */
body.theme-amber {
  --crs:        #5AC8FF;
  --crs-2:      #1E93C9;
  --crs-light:  #eaf7ff;
  --crs-soft:   #bfe8ff;
  --crs-text:   #1E93C9;
  --crs-rgb:    90,200,255;
  --cream:      #f5fbff;
  background: var(--cream);
}
body.theme-amber .site-header { background: var(--crs); }
body.theme-amber .nav-links a { color: white; }
body.theme-amber .nav-links a.active { border-bottom-color: white; }
body.theme-amber .nav-toggle span,
body.theme-amber .nav-toggle span::before,
body.theme-amber .nav-toggle span::after { background: white; }

/* ---------- TEMA: naranja intenso (igual que la portada) ---------- */
body.theme-orange {
  --crs:        #E65100;
  --crs-2:      #BF360C;
  --crs-light:  #FFE8D9;
  --crs-soft:   #FFC9A3;
  --crs-text:   #C64510;
  --crs-rgb:    230,81,0;
  --cream:      #FFF4EC;
  background: var(--cream);
}
body.theme-orange .site-header { background: var(--crs); }
body.theme-orange .nav-links a { color: white; }
body.theme-orange .nav-links a.active { border-bottom-color: white; }
body.theme-orange .nav-toggle span,
body.theme-orange .nav-toggle span::before,
body.theme-orange .nav-toggle span::after { background: white; }
body.theme-orange .curso-hero::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C300,70 900,0 1200,35 L1200,70 L0,70 Z' fill='%23fff4ec'/%3E%3C/svg%3E") no-repeat center bottom / cover;
}

/* ---------- BREADCRUMB ---------- */
.curso-breadcrumb {
  padding: 22px 0;
  font-size: 14px;
  color: #6b7280;
}
.curso-breadcrumb a { color: var(--crs-text); font-weight: 600; }
.curso-breadcrumb a:hover { text-decoration: underline; }

/* ---------- HERO ---------- */
.curso-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 60px;
  background: linear-gradient(160deg, var(--crs-light) 0%, var(--crs-soft) 100%);
  text-align: center;
}
.curso-hero-blob {
  position: absolute;
  right: -80px; top: -40px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(var(--crs-rgb), 0.14);
  z-index: 0;
}
.curso-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.curso-hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a2e;
  margin-bottom: 18px;
}
.curso-accent {
  color: var(--crs-text);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
  text-decoration-color: rgba(var(--crs-rgb), 0.4);
}
.curso-hero .lead {
  font-size: clamp(17px, 1.8vw, 21px);
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.curso-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 22px;
  border-radius: 100px;
  background: white;
  color: var(--crs-text);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(var(--crs-rgb), 0.22);
  flex-wrap: wrap;
  justify-content: center;
}
.curso-badge svg { width: 17px; height: 17px; flex-shrink: 0; }
.curso-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C300,70 900,0 1200,35 L1200,70 L0,70 Z' fill='%23f5fbff'/%3E%3C/svg%3E") no-repeat center bottom / cover;
  z-index: 2;
}

/* ---------- FOTO DESTACADA (debajo del hero, contraste completo) ---------- */
.curso-photo-section { padding: 50px 0 10px; }
.curso-photo {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
}
@media (max-width: 700px) {
  .curso-photo { aspect-ratio: 4 / 3; border-radius: 20px; }
}

/* ---------- INTRO ---------- */
.curso-intro {
  padding: 30px 0 20px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.curso-intro p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 18px;
}
.curso-intro p:last-child { margin-bottom: 0; }

/* ---------- SECCIÓN GENÉRICA ---------- */
.curso-section { padding: 56px 0; }
.curso-section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.curso-section-sub {
  text-align: center;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #6b7280;
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

/* ---------- MÓDULOS (¿Qué aprenderás?) ---------- */
.curso-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.curso-module {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: white;
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 4px 24px rgba(var(--crs-rgb), 0.1);
}
.curso-module-num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--crs);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.curso-module h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.curso-module ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
}
.curso-module ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.55;
}
.curso-module ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--crs);
}

@media (max-width: 900px) {
  .curso-modules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .curso-modules { grid-template-columns: 1fr; }
  .curso-module { padding: 26px; }
}

/* ---------- CHIPS (¿A quién está dirigido?) ---------- */
.curso-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.curso-chip {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--crs-soft);
  background: white;
  color: var(--crs-text);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- CHECKLIST (¿Por qué participar?) ---------- */
.curso-checklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
.curso-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: #374151;
  line-height: 1.5;
}
.curso-checklist .check {
  flex: none;
  width: 24px; height: 24px;
  color: var(--crs-text);
}
.curso-checklist .check svg { width: 100%; height: 100%; display: block; }
@media (max-width: 700px) {
  .curso-checklist { grid-template-columns: 1fr; }
}

/* ---------- PONENTE / CONFERENCISTA ---------- */
.curso-speaker {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 820px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 4px 30px rgba(var(--crs-rgb), 0.12);
}
.curso-speaker-photo {
  flex: none;
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.curso-speaker h3 { font-size: 22px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; }
.curso-speaker .curso-speaker-role { font-size: 14px; font-weight: 700; color: var(--crs-text); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .03em; }
.curso-speaker p { font-size: 15.5px; color: #4b5563; line-height: 1.65; margin: 0; }
.curso-speaker-note { display: block; margin-top: 12px; font-size: 13px; font-style: italic; color: #9ca3af; }
@media (max-width: 640px) {
  .curso-speaker { flex-direction: column; text-align: center; gap: 20px; padding: 30px 24px; }
  .curso-speaker-photo { width: 140px; height: 140px; }
}

/* ---------- INFORMACIÓN DEL TALLER (tiles) ---------- */
.curso-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.curso-info-card {
  background: white;
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(var(--crs-rgb), 0.1);
}
.curso-info-card svg { width: 30px; height: 30px; color: var(--crs-text); margin-bottom: 10px; }
.curso-info-card .curso-info-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}
.curso-info-card .curso-info-value { font-size: 16px; font-weight: 700; color: #1a1a2e; line-height: 1.3; }
@media (max-width: 860px) { .curso-info-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- BENEFICIOS (mini cards) ---------- */
.curso-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto 20px;
}
.curso-benefit-card {
  background: var(--crs-light);
  border-radius: 18px;
  padding: 26px 22px;
}
.curso-benefit-card svg { width: 26px; height: 26px; color: var(--crs-text); margin-bottom: 12px; }
.curso-benefit-card p { font-size: 14.5px; color: #374151; line-height: 1.5; margin: 0; }
.curso-note {
  text-align: center;
  font-size: 13.5px;
  font-style: italic;
  color: #9ca3af;
  max-width: 620px;
  margin: 0 auto;
}
@media (max-width: 860px) { .curso-benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .curso-benefits-grid { grid-template-columns: 1fr; } }

/* ---------- INSCRIPCIONES (banda de registro) ---------- */
.curso-register-section {
  position: relative;
  padding: 90px 0 90px;
  background: var(--crs);
  text-align: center;
}
.curso-register-section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C300,0 900,70 1200,35 L1200,0 L0,0 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center top / cover;
}
.curso-register-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.curso-register-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
}
.curso-register-inner p {
  color: rgba(255,255,255,0.92);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  margin-bottom: 30px;
}
.curso-register-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}
.curso-register-pills span {
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  color: var(--crs-text);
  font-weight: 700;
  font-size: 16px;
  padding: 17px 36px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,0.24); }

/* ---------- Animación scroll-reveal ---------- */
@keyframes cursoFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.curso-module,
.curso-info-card,
.curso-benefit-card { opacity: 0; }
.curso-module.animate-in,
.curso-info-card.animate-in,
.curso-benefit-card.animate-in { animation: cursoFadeUp 0.6s cubic-bezier(.2,.7,.3,1) forwards; }
