.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

.hero-primaria {
  background: #f5f9ff;
}

.hero-primaria .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-primaria h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.hero-benefits li {
  margin-bottom: 0.5rem;
}
.hero-features {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
}

.hero-features li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta.primary {
  background: #f7931e;
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
}
.hero-cta.secondary {
  border: 2px solid #1e40af;
  color: #1e40af;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
}
.btn-primary {
  background: #1e40af;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 0.5rem;
}

.btn-secondary {
  background: transparent;
  color: #1e40af;
  border: 2px solid #1e40af;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
}
.grid-niveles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-niveles article {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.grid-niveles article:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}

.grid-niveles h3 {
  color: #1e40af;
  margin-bottom: .6rem;
}

.metodologia .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.metodologia article {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .2s ease;
}

.metodologia article:hover {
  transform: translateY(-4px);
}

.metodologia h3 {
  color: #1e40af;
  margin-bottom: .4rem;
}
.metodologia p{color:#000;}
.beneficios h2{text-align: center;}
.beneficios ul {
  max-width: 700px;
  margin: auto;
}

.beneficios li {
  background: #f5f9ff;
  padding: .8rem 1rem;
  border-radius: 8px;
    list-style: none;
}

.cluster-link {
  background: #f8fafc;
  padding: 2.5rem 1rem;
}

.cluster-box {
  max-width: 820px;
  margin: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.cluster-box h3 {
  color: #1e40af;
  font-size: 1.4rem;
  margin-bottom: .8rem;
}

.cluster-box p {
  font-size: 1rem;
  opacity: .9;
  margin-bottom: 1.4rem;
}
.form-box {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.4rem;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  text-align: center;
}
.form-simple {
  max-width: 520px;
  margin: 1.2rem auto 0;
  display: grid;
  gap: .8rem;
}
.form-simple input, .form-simple select {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
}

.cta-final {
  background: #1e40af;
  color: #fff;
  text-align: center;
    padding:3.5rem 1rem;
}
.cta-final h2{
    font-size:2rem;
    margin-bottom:0.6rem;
}
.btn-sec{
  background:#f7931e; color:#fff; font-weight:700; border-radius:10px;
  padding:.85rem 1.4rem; display:inline-flex; align-items:center; gap:.5rem;
}
.cta-final a {
  display: inline-block;
  margin-top: 1rem;
}
.cta-final p{
    max-width:600px;
    margin:auto;
    opacity:0.95;
}

/*.faq details {
  margin-bottom: 1rem;
}*/

.faq details{
  max-width:900px; margin:0 auto .8rem; background:#fff; border-radius:12px;
  padding:1rem 1.1rem; box-shadow:0 4px 14px rgba(0,0,0,.06);  
}
.faq details summary{
  font-weight:600; position:relative;cursor:pointer; list-style:none; color:#1e3c72; font-size:18px; padding-right:25px;
}
.faq details summary::after {
    content: "▾"; /* Flecha elegante */
    position: absolute;
    right: 0;
    top: 0;
    font-size: 28px;
    transition: transform 0.3s ease;
    color: #004080;
}
.faq details[open] summary::after {
    transform: rotate(180deg);
}
.faq details[open] summary { color:#f7931e; }
.faq details p { margin-top:.6rem; }
.cta-soft {
  background: #f1f5ff;
  text-align: center;
  padding: 3rem 1rem;
}

.cta-soft h2 {
  color: #1e40af;
  margin-bottom: .6rem;
}

/* =====================================================
   TABLA CURSOS – RESPONSIVE + UX
===================================================== */

.tabla-cursos {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* CABECERA */
.tabla-cursos th {
  background: #0d6efd;
  color: white;
  text-align: left;
  padding: 14px;
  font-weight: 600;
}

/* CELDAS */
.tabla-cursos td {
  padding: 14px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

/* FILAS */
.tabla-cursos tbody tr:hover {
  background: #f4f8ff;
}

.tabla-cursos td:last-child {
  text-align: center;
}

.btn-table {
  background: #1e40af;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn-table:hover {
  background: #f7931e;
}

/* =====================================================
   RESPONSIVE (MÓVIL)
===================================================== */

@media (max-width: 768px) {

  .tabla-cursos {
    border-radius: 0;
    box-shadow: none;
  }

  .tabla-cursos thead {
    display: none;
  }

  .tabla-cursos,
  .tabla-cursos tbody,
  .tabla-cursos tr,
  .tabla-cursos td {
    display: block;
    width: 100%;
  }

  .tabla-cursos tr {
    margin-bottom: 16px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
  }

  .tabla-cursos td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
  }

  .tabla-cursos td:last-child {
    border-bottom: none;
  }

  /* Etiquetas tipo tarjeta */
  .tabla-cursos td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #0d6efd;
    margin-right: 10px;
    white-space: nowrap;
  }
}
.seo-primaria,
.cambridge-junior,
.local-primaria {
  background: #f8fafc;
}

.seo-primaria h2,
.cambridge-junior h2,
.local-primaria h2 {
  color: #1e40af;
  margin-bottom: 0.8rem;
}

.cambridge-junior ul {
  max-width: 700px;
  margin: 1rem auto;
}

.cambridge-junior li {
  margin-bottom: 0.5rem;
}

