body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  margin: auto;
}

header {
  background: #000;
  color: #fff;
  padding: 2px !important;
  padding-bottom: 0px !important;
  text-align: center;
  width: 100%;
}
.header .h1{
  margin-bottom: 0px !important;
}
.h1{
    margin-top: 0px !important;
}
.curso-container {
  padding: 0px 10px;
  display: flex;
  justify-content: center;
}

.curso-box {
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.curso-left, .curso-right {
  flex: 1 1 400px;
  padding: 20px;
}

.curso-left img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.curso-left p {
  font-size: 15px;
  line-height: 1.6;
}

.curso-right h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #111;
}

.precio {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #c62828;
}

.precio .oferta {
  font-weight: bold;
  font-size: 1.3rem;
  color: red;
}

.botones-pago {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  padding: 12px;
  text-align: center;
  font-weight: bold;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
}

.morado { background: #6a1b9a; }
.amarillo { background: #fbc02d; color: black; }
.azul { background: #0288d1; }
.verde { background: #2e7d32; }

footer {
  background: #02103f !important;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
.curso-descripcion {
  max-height: 250px;
  max-width: 543px;
  overflow-y: auto;
  padding: 10px;
  line-height: 1.6;
  border: 1px solid black !important;
  border-radius: 5px;
  user-select: none;
  cursor: grab;
  background: #fdfdfd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.curso-descripcion.scrolling {
  cursor: grabbing;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-contenido {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}


.qr-img {
  max-width: 100%;
  max-height: 200px; /* puedes ajustar según tu diseño */
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .curso-box {
    flex-direction: column;
  }

  .curso-left, .curso-right {
    padding: 10px;
  }
}
.buscador-box {
  position: relative;
  width: 100%;
  max-width: 300px;
}

/* CONTADOR */
#contador {
  margin: 20px auto;
  text-align: center;
}

#contador .contador-titulo {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #444;
}

#contador .contador-cajas {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Para que en pantallas chicas se acomode */
}

#contador .caja {
  background: #222;
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  min-width: 80px;
  text-align: center;
  flex: 1 1 70px; /* Se adapta al espacio */
}

#contador .caja span {
  font-size: 28px;
  font-weight: bold;
  display: block;
}

#contador .caja div {
  font-size: 14px;
  margin-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  #contador .contador-cajas {
    gap: 10px;
  }

  #contador .caja {
    padding: 10px;
    min-width: 60px;
  }

  #contador .caja span {
    font-size: 22px;
  }

  #contador .caja div {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .curso-left img {
    max-height: 250px;
    object-fit: cover;
  }
}
@media (max-width: 768px) {
  .curso-box {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .curso-descripcion {
    max-height: 400px;
  }
}
@media (max-width: 600px) {
  header h1 {
    font-size: 1.1rem !important;
    line-height: 1.2;
    padding: 0 5px;
  }
}
@media (max-width: 600px) {
  .curso-descripcion {
    height: 350px;     /* Tamaño fijo */
    max-height: none;  /* Evita que el max limite el tamaño */
  }
}

html, body{
  max-width:100%;
  overflow-x:hidden;
}
