/* Base */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.section { padding: 2rem 0; }
h1, h2, h3 { line-height: 1.2; }
.sub { opacity: .9; max-width: 800px; margin-top: .6rem; }
.lead { font-size: 1.05rem; max-width: 900px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; border-radius: 10px; padding: .9rem 1.4rem; font-weight: 700; }
.btn-primary { background: #f7931e; color: #fff; }
.btn-primary:hover { filter: brightness(.95); }
.btn-secondary { border: 2px solid #1e40af; color: #1e40af; background: transparent; }
.btn-secondary:hover { background: #1e40af; color: #fff; }

/* HERO */
.hero-ja { background: #f5f9ff; padding: 2.5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero-copy h1 { font-size: 2.3rem; margin-bottom: .8rem; color: #0f172a; }
.hero-lead { font-size: 1.1rem; margin-bottom: 1rem; }
.hero-features { list-style: none; padding: 0; margin: 1.1rem 0 1.6rem; }
.hero-features li { margin-bottom: .55rem; }
.hero-cta-group { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.hero-proof { display: flex; gap: .7rem; flex-wrap: wrap; font-size: .95rem; opacity: .9; }
.hero-proof span { background: #fff; border-radius: 999px; padding: .35rem .7rem; box-shadow: 0 6px 16px rgba(0,0,0,.06); }

.hero-media img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.10); }

/* Cards */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.2rem; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.2rem; }

.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.card h3 { color: #1e40af; margin-bottom: .6rem; }

.checklist { list-style: none; padding: 0; margin: .8rem 0 0; }
.checklist li { margin-bottom: .45rem; position: relative; padding-left: 1.2rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }

/* Levels grid */
.grid-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.3rem; }
.level-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.level-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.level-card h3 { margin: .6rem 0 .6rem; color: #0f172a; }
.badge {
  display: inline-flex;
  background: #1e40af;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .9rem;
}
.muted { opacity: .85; }

.cta-inline { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* Form */
.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;
}
.microcopy { font-size: .9rem; opacity: .8; margin-top: .2rem; }

/* Local */
.local { background: #f8fafc; }

/* FAQ */
.faq .faq-item {
  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 summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 26px;
  color: #1e3c72;
}
.faq summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 26px;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin-top: .7rem; }

/* CTA Final */
.cta-final-ja {
  background: #1e40af;
  color: #fff;
  text-align: center;
  padding: 3.2rem 1rem;
}
.cta-final-ja h2 { font-size: 2rem; margin-bottom: .6rem; }
.cta-final-ja p { max-width: 700px; margin: 0 auto 1.2rem; opacity: .95; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .grid-levels { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2rem; }
}
/* =====================================================
   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;
  }
}