/* ============================================================
   programa.css — RoboWorks Páginas de Programas
   Diseño premium para padres · Responsive · Sin precios
   ============================================================ */

:root {
  --prog-color:    #00a8e8;
  --prog-dark:     #0086bb;
  --prog-light:    #e0f5fd;
  --cyan:          #00a8e8;
  --orange:        #ff7b42;
  --green:         #10b981;
  --text:          #1e293b;
  --muted:         #64748b;
  --border:        #e2e8f0;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --r-sm:          10px;
  --r-md:          18px;
  --r-lg:          26px;
  --shadow-sm:     0 4px 14px rgba(0,0,0,.06);
  --shadow-md:     0 12px 36px rgba(0,0,0,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: 'Nunito', 'Poppins', sans-serif;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
}

/* ── HEADER ── */
.prog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.prog-header__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.prog-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.prog-brand img { width: 40px; height: 40px; object-fit: contain; }
.prog-brand-name { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.3rem; }
.prog-brand-name .r { color: var(--cyan); }
.prog-brand-name .w { color: var(--orange); }
.prog-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
}
.prog-header__nav a {
  padding: 8px 12px;
  border-radius: 50px;
  color: var(--muted);
  transition: .2s;
  white-space: nowrap;
}
.prog-header__nav a:hover { color: var(--cyan); background: var(--prog-light); }
.prog-header__nav .cta {
  color: #fff;
  background: var(--cyan);
  padding: 9px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0,168,232,.28);
}
.prog-header__nav .cta:hover {
  background: var(--prog-dark);
  transform: translateY(-1px);
}

/* ── HERO ── */
.prog-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 100px;
  background: linear-gradient(140deg, var(--prog-dark) 0%, var(--prog-color) 60%, #55d4f8 100%);
  color: #fff;
}
.prog-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.prog-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 10%;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.prog-hero__inner {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.prog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.prog-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 18px;
}
.prog-hero__sub {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.prog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #10b981;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 8px 24px rgba(16,185,129,.4);
  transition: .2s;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(16,185,129,.55); }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 13px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .92rem;
  transition: .2s;
  backdrop-filter: blur(6px);
}
.btn-back:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }

/* Stats strip */
.prog-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.prog-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* ── MAIN CONTENT ── */
.prog-body {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

/* Intro grid */
.prog-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}
.prog-intro-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.prog-intro-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.prog-intro-img:hover img { transform: scale(1.04); }
.prog-intro-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.prog-intro-text p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 16px;
}
.prog-age-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--prog-light);
  color: var(--prog-dark);
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: .84rem;
  margin-bottom: 18px;
  border: 1.5px solid var(--prog-color);
}

/* Section labels */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--prog-light);
  color: var(--prog-dark);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 680px;
}

/* ── APRENDEN GRID ── */
.learns-section {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 48px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.learns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.learn-card {
  padding: 22px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: .25s ease;
}
.learn-card:hover {
  border-color: var(--prog-color);
  box-shadow: 0 4px 20px rgba(0,168,232,.10);
  transform: translateY(-3px);
  background: var(--white);
}
.learn-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--prog-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prog-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.learn-card h4 {
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}
.learn-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── HERRAMIENTAS ── */
.tools-section {
  margin-bottom: 40px;
  padding: 40px 48px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
  transition: .2s;
}
.tool-chip:hover {
  border-color: var(--prog-color);
  background: var(--prog-light);
  color: var(--prog-dark);
}
.tool-chip i { color: var(--prog-color); font-size: .9rem; }

/* ── NIVEL / CERTIFICACIÓN ── */
.level-section {
  margin-bottom: 40px;
  padding: 40px 48px;
  background: linear-gradient(140deg, #0f1c2e, #1e3a5f);
  border-radius: var(--r-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.level-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(0,168,232,.12);
}
.level-section .section-eyebrow {
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
}
.level-section .section-title { color: #fff; }
.level-section .section-sub { color: rgba(255,255,255,.72); }
.level-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.level-badge {
  padding: 10px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 800;
  font-size: .88rem;
  color: #fff;
  backdrop-filter: blur(4px);
}
.level-badge.featured {
  background: rgba(255,123,66,.25);
  border-color: rgba(255,123,66,.55);
  color: #ffb399;
}
.cert-info {
  margin-top: 20px;
  padding: 18px 22px;
  background: rgba(255,255,255,.08);
  border-radius: var(--r-md);
  font-size: .88rem;
  color: rgba(255,255,255,.82);
  display: flex;
  gap: 12px;
  align-items: center;
}
.cert-info i { color: var(--orange); font-size: 1.2rem; flex-shrink: 0; }

/* ── POR QUÉ ELEGIRLO ── */
.why-section {
  margin-bottom: 40px;
  padding: 48px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.why-card {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: .25s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--prog-color);
}
.why-card i {
  font-size: 1.6rem;
  color: var(--prog-color);
  margin-bottom: 12px;
  display: block;
}
.why-card h4 { font-size: .95rem; margin-bottom: 6px; }
.why-card p { font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* ── CTA FINAL ── */
.prog-cta {
  border-radius: var(--r-lg);
  padding: 52px 48px;
  text-align: center;
  background: linear-gradient(140deg, var(--prog-dark), var(--prog-color));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.prog-cta::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.prog-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.prog-cta p { opacity: .84; margin-bottom: 28px; font-size: 1rem; }
.prog-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-wa-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #10b981;
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(16,185,129,.42);
  transition: .2s;
}
.btn-wa-lg:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(16,185,129,.55); }
.btn-ghost-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 15px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: .2s;
}
.btn-ghost-lg:hover { background: rgba(255,255,255,.25); }

/* ── FOOTER ── */
.prog-footer {
  background: #0a1622;
  padding: 44px 20px;
  text-align: center;
  color: #64748b;
}
.prog-footer h3 { color: #fff; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.5rem; margin-bottom: 8px; }
.prog-footer h3 span { color: var(--cyan); }
.prog-footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; margin: 18px 0 10px; }
.prog-footer-links a { color: #94a3b8; font-size: .88rem; transition: .2s; font-weight: 600; }
.prog-footer-links a:hover { color: var(--cyan); }
.prog-footer small { font-size: .82rem; color: #475569; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .prog-intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .prog-intro-img { aspect-ratio: 16/9; }
  .learns-section, .tools-section, .level-section, .why-section, .prog-cta { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .prog-hero { padding: 60px 20px 80px; }
  .prog-hero h1 { font-size: 1.9rem; }
  .prog-header__nav a:not(.cta) { display: none; }
  .prog-body { padding: 40px 0 60px; }
  .learns-section, .tools-section, .level-section, .why-section, .prog-cta { padding: 28px 20px; }
  .prog-cta-btns { flex-direction: column; align-items: center; }
  .btn-wa-lg, .btn-ghost-lg, .btn-wa, .btn-back { width: 100%; max-width: 340px; justify-content: center; }
}
@media (max-width: 420px) {
  .prog-hero h1 { font-size: 1.65rem; }
  .prog-stats { gap: 8px; }
  .prog-stat { font-size: .78rem; padding: 8px 12px; }
}

/* Animación entrada */
@keyframes fadeUp { from { opacity:0; transform: translateY(22px); } to { opacity:1; transform: translateY(0); } }
.fade-up { animation: fadeUp .65s ease forwards; opacity: 0; }
.fade-up:nth-child(1){animation-delay:.1s}.fade-up:nth-child(2){animation-delay:.2s}.fade-up:nth-child(3){animation-delay:.3s}.fade-up:nth-child(4){animation-delay:.4s}.fade-up:nth-child(5){animation-delay:.5s}.fade-up:nth-child(6){animation-delay:.6s}
