/* ============================================================
   PÁGINA DE CURSOS
   Estilos específicos que complementan style.css sin modificarlo.
   ============================================================ */

.cursos-hero {
  min-height: 88vh;
}

.cursos-hero .hero-content p {
  max-width: 760px;
}

.etiqueta {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 191, 255, 0.12);
  border: 1px solid rgba(0, 191, 255, 0.35);
  color: #7ddcff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-acciones {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.hero-acciones .btn {
  margin-top: 0;
}

.btn-secundario {
  background: transparent;
  border: 2px solid #00bfff;
  color: #ffffff;
}

.btn-secundario:hover {
  background: rgba(0, 191, 255, 0.15);
}

/* TARJETAS DE CURSO */

.cards-cursos {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.curso-card {
  height: 100%;
}

.curso-card h4 {
  margin: 25px 0 10px;
  color: #ffffff;
  font-size: 17px;
}

.curso-meta {
  color: #9ca3af !important;
  font-size: 15px;
}

.precio {
  margin: 18px 0 5px;
  color: #00bfff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.temario,
.lista-detalle,
.materiales-lista {
  margin: 0;
  padding-left: 22px;
  color: #d5d5d5;
  line-height: 1.7;
}

.temario li,
.lista-detalle li,
.materiales-lista li {
  margin-bottom: 10px;
}

.temario li::marker,
.materiales-lista li::marker {
  color: #00bfff;
}

.lista-detalle {
  list-style: none;
  padding-left: 0;
  margin: 20px 0 5px;
}

.lista-detalle li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lista-detalle li:last-child {
  border-bottom: 0;
}

.resultado,
.software {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 191, 255, 0.08);
  border-left: 4px solid #00bfff;
}

.curso-card .btn {
  margin-top: 25px;
}

/* CLASE GRATIS */

.clase-gratis {
  max-width: 760px;
  margin: 0 auto;
}

.clase-gratis .btn {
  margin-top: 25px;
}

/* PAQUETE */

.curso-paquete {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid #00bfff;
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.14), rgba(17, 24, 39, 0.95) 55%);
}

.curso-paquete .precio {
  font-size: 54px;
}

.ahorro {
  color: #7ddcff !important;
  font-weight: 600;
}

.curso-paquete .btn {
  margin-top: 25px;
}

/* ACORDEONES */

.acordeon {
  max-width: 900px;
  margin: 0 auto 15px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.acordeon[open] {
  border-color: rgba(0, 191, 255, 0.45);
}

.acordeon summary {
  position: relative;
  padding: 20px 60px 20px 25px;
  color: #00bfff;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.acordeon summary::-webkit-details-marker {
  display: none;
}

.acordeon summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  color: #00bfff;
  font-size: 24px;
  line-height: 1;
}

.acordeon[open] summary::after {
  content: "−";
}

.acordeon summary:focus-visible {
  outline: 2px solid #00bfff;
  outline-offset: -2px;
}

.acordeon-contenido {
  padding: 0 25px 25px;
}

.acordeon-contenido h3 {
  margin: 20px 0 10px;
  color: #ffffff;
  font-size: 18px;
}

.acordeon-contenido h3:first-child {
  margin-top: 0;
}

.acordeon-contenido p {
  color: #d5d5d5;
  line-height: 1.7;
}

.acordeon-contenido a {
  color: #00bfff;
}

.aviso {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
}

/* CÓMO INSCRIBIRTE */

.pasos .card {
  height: 100%;
}

.paso-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #00bfff;
  color: #061019;
  font-size: 20px;
  font-weight: 700;
}

.pasos .card a {
  color: #00bfff;
  font-weight: 600;
}

.nota-inscripcion {
  margin-top: 35px;
  text-align: center;
  color: #d5d5d5;
  font-size: 17px;
}

.nota-inscripcion strong {
  color: #ffffff;
}

/* CONTACTO */

#contacto .contact a {
  color: #00bfff;
  text-decoration: none;
}

#contacto .contact a:hover {
  text-decoration: underline;
}

/* BOTÓN FLOTANTE DE WHATSAPP */

.whatsapp-flotante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: #25d366;
  color: #072d15;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, background 0.3s;
}

.whatsapp-flotante:hover {
  transform: translateY(-3px) scale(1.03);
  background: #20bd5a;
}

.whatsapp-flotante:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* ANCLAS CON NAVBAR FIJA */

section[id] {
  scroll-margin-top: 90px;
}

/* RESPONSIVE */

@media (max-width: 768px) {

  .cursos-hero {
    min-height: auto;
  }

  .hero-acciones {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-acciones .btn {
    width: 100%;
    text-align: center;
  }

  .cards-cursos {
    grid-template-columns: 1fr;
  }

  .precio {
    font-size: 36px;
  }

  .curso-paquete .precio {
    font-size: 46px;
  }

  .acordeon summary {
    padding: 18px 50px 18px 20px;
  }

  .acordeon summary::after {
    right: 20px;
  }

  .acordeon-contenido {
    padding: 0 20px 22px;
  }

  .whatsapp-flotante {
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
    font-size: 14px;
  }

}
