/* =========================================================
   Embajadores de Esperanza — amber theme
   ========================================================= */

body.theme-amber {
  --amb:        #5AC8FF;
  --amb-2:      #1E93C9;
  --amb-light:  #eaf7ff;
  --amb-soft:   #bfe8ff;
  --amb-text:   #1E93C9;
  --cream:      #f5fbff;
  background: var(--cream);
}

body.theme-amber .site-header { background: var(--amb); }
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; }

/* ---------- HERO ---------- */
.emb-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 40px;
  background: linear-gradient(160deg, #eaf7ff 0%, #dcf1ff 100%);
  text-align: center;
}
.emb-blob {
  position: absolute;
  right: -80px; top: -40px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(90,200,255,0.14);
  z-index: 0;
}
.emb-hero-inner { position: relative; z-index: 1; }
.emb-icon { width: 200px; height: 200px; margin: 0 auto 24px; }
.emb-icon img { width: 100%; height: 100%; object-fit: contain; }
.emb-hero h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: #1a1a2e;
  margin-bottom: 20px;
}
.amber-accent {
  color: var(--amb-text);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
  text-decoration-color: rgba(90,200,255,0.4);
}
.emb-hero .lead {
  font-size: clamp(17px, 1.8vw, 22px);
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}
.emb-badge {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(90,200,255,0.14);
  color: var(--amb-text);
  font-weight: 700;
  font-size: 15px;
}
.emb-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='%23dcf1ff'/%3E%3C/svg%3E") no-repeat center bottom / cover;
  z-index: 2;
}

/* ---------- ANIMACIONES ---------- */
@keyframes embSlideLeft {
  from { opacity: 0; transform: translateX(-70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes embSlideRight {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}
.emb-card { opacity: 0; }
.emb-card.animate-left  { animation: embSlideLeft  0.65s cubic-bezier(.2,.7,.3,1) forwards; }
.emb-card.animate-right { animation: embSlideRight 0.65s cubic-bezier(.2,.7,.3,1) forwards; }

/* ---------- ¿QUÉ ES UN EMBAJADOR? ---------- */
.programa-emb-section {
  position: relative;
  padding: 30px 0 160px;
  background: linear-gradient(180deg, #dcf1ff 0%, #eaf7ff 100%);
}
.programa-emb-section::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,0 C400,70 800,0 1200,50 L1200,70 L0,70 Z' fill='%235AC8FF'/%3E%3C/svg%3E") no-repeat center bottom / cover;
  z-index: 2;
}
.programa-emb-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.programa-emb-sub {
  text-align: center;
  font-size: clamp(15px, 1.5vw, 19px);
  color: #6b7280;
  max-width: 660px;
  margin: 0 auto 56px;
  line-height: 1.6;
}
.emb-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.emb-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(90,200,255,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.emb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(90,200,255,0.18);
}
.emb-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(90,200,255,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.emb-card-icon svg { width: 26px; height: 26px; color: var(--amb-text); }
.emb-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.emb-card p { font-size: 15px; color: #4b5563; line-height: 1.6; }

@media (max-width: 860px) {
  .emb-cards-grid { grid-template-columns: 1fr; }
}

/* ---------- CAMINO DE FORMACIÓN ---------- */
.formacion-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--amb);
  border-radius: 24px;
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  color: white;
}
.formacion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://shigra.app/FundacionEsperanza/sillonnaranja.jpg') center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.4;
  z-index: 0;
}
.formacion-card h3,
.formacion-card .formacion-steps {
  position: relative;
  z-index: 1;
}
.formacion-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 36px;
  color: white;
}
.formacion-steps {
  display: grid;
  gap: 24px;
}
.formacion-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.formacion-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.formacion-step h4 { font-size: 17px; font-weight: 700; color: white; margin-bottom: 4px; }
.formacion-step p { font-size: 15px; color: rgba(255,255,255,0.9); line-height: 1.55; margin: 0; }

/* ---------- SIENTES EL LLAMADO (form) ---------- */
.llamado-section {
  position: relative;
  padding: 110px 0 110px;
  background: var(--amb);
}
.llamado-section::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,20 C300,70 900,0 1200,50 L1200,70 L0,70 Z' fill='%23f5fbff'/%3E%3C/svg%3E") no-repeat center bottom / cover;
  z-index: 2;
}
.llamado-inner { position: relative; z-index: 3; }
.llamado-inner h2 {
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.llamado-inner .llamado-sub {
  text-align: center;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
}
.llamado-form {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #374151;
  background: white;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--amb); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--amb-soft);
  font-size: 14px;
  color: var(--amb-text);
  cursor: pointer;
  transition: background .2s, color .2s;
  user-select: none;
}
.tag:hover, .tag.active { background: var(--amb); color: white; border-color: var(--amb); }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--amb);
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  width: 100%;
  transition: background .2s, transform .2s;
}
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { background: var(--amb-2); transform: translateY(-2px); }
.form-trust { display: flex; gap: 20px; margin-top: 20px; font-size: 13px; color: #6b7280; flex-wrap: wrap; justify-content: center; }

@media (max-width: 640px) {
  .llamado-form { padding: 24px; }
}

/* ---------- CTA FINAL ---------- */
.emb-cta-section {
  position: relative;
  padding: 110px 0 100px;
  text-align: center;
  background: #eaf7ff;
}
.emb-cta-inner {
  position: relative;
  z-index: 1;
  background: var(--amb);
  border-radius: 32px;
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(90,200,255,0.3);
  overflow: hidden;
  text-align: center;
}
.emb-cta-img {
  position: absolute;
  inset: 0;
  background: url('https://shigra.app/FundacionEsperanza/familialuz.jpg') center / cover no-repeat;
  opacity: 0.35;
  border-radius: 32px;
}
.emb-cta-inner h2 {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.emb-cta-inner p {
  font-size: clamp(16px, 1.8vw, 21px);
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.btn-emb-cta {
  display: inline-block;
  background: white;
  color: var(--amb-text);
  font-weight: 700;
  font-size: 18px;
  padding: 18px 48px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-emb-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.emb-cta-inner h2,
.emb-cta-inner p,
.emb-cta-inner .btn-emb-cta {
  position: relative;
  z-index: 2;
}
