/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #000000;
  color: #333;
}

/* CABECERA */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}
.header .logo img {
  width: 150px;
  height: 50px;
  object-fit: contain;
}
.menu {
  flex: 1;
  text-align: center;
}
.menu a {
  color: #fff;
  text-decoration: none;
  margin: 0 20px;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s;
}
.menu a:hover {
  color: #f1c40f;
}
.cart-icon {
  position: relative;
  cursor: pointer;
}
.cart-icon img {
  filter: hue-rotate(45deg) brightness(1.3); /* amarillo */
}
#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* BARRA BUSCADOR */
.search-bar {
  margin-top: 120px; /* debajo de cabecera fija */
  width: 100%;
  height: 50px;
  background: #2c2c2c;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-bar input {
  width: 500px;
  height: 30px;
  border-radius: 20px;
  border: none;
  padding: 0 35px 0 15px;
  font-size: 14px;
  outline: none;
}
.search-bar .lupa {
  margin-left: -30px;
  cursor: pointer;
  color: #000;
  font-size: 16px;
}

/* CONTENEDOR GENERAL */
.contenedor {
  width: 95%;
  margin: 40px auto;
}
.seccion {
  margin: 20px 0;
  font-size: 22px;
  font-weight: bold;
  color: white;
}

/* GRID CURSOS */
.grid-cursos {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* fijo en 5 columnas */
  gap: 20px;
}
.curso-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.curso-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.curso-card:hover {
  transform: scale(1.2); /* Zoom in 20% */
  z-index: 10;
}
.curso-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.curso-card:hover .overlay {
  opacity: 1;
}
.curso-card .icon {
  font-size: 2rem;
  margin-bottom: 5px;
}

/* BOTÓN CARGAR MÁS */
#btn-cargar-mas {
  display: block;
  margin: 30px auto;
  background: red;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}
#btn-cargar-mas:hover {
  background: darkred;
}

/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
.footer a {
  color: #f1c40f;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* ROTADOR */
.rotador {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}
.rotador img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 10px;
}
.rotador img.active {
  display: block;
  animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.rotador-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}
.rotador-btn:hover {
  background-color: rgba(0,0,0,0.7);
}
.rotador-btn.prev { left: 15px; }
.rotador-btn.next { right: 15px; }

/* BOTÓN WHATSAPP */
.whatsapp {
  display: inline-block;
  padding: 12px 25px;
  background-color: #03863e;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid #064c44;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.whatsapp:hover {
  background-color: #25D366;
  color: #fff;
}

/* ESTILOS MEDIOS DE PAGO */
.contenedor-medios {
  width: 90%;
  margin: 100px auto;
  text-align: center;
  color: #000000;
}
.titulo-medios {
  font-size: 32px;
  color: #f1c40f;
  margin-bottom: 10px;
}
.subtitulo-medios {
  font-size: 18px;
  margin-bottom: 40px;
  color: #ccc;
}
.grid-medios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.medio-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.medio-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}
.medio-card img {
  max-width: 360px;
  height: auto;
  margin-bottom: 15px;
}
.medio-card h3 {
  font-size: 20px;
  color: #f1c40f;
  margin-bottom: 10px;
}
.medio-card p {
  font-size: 15px;
  line-height: 1.4;
  margin: 5px 0;
}
.btn-pago {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #3498db;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-pago:hover {
  background: #2980b9;
}

/* BOTÓN LOGIN */
.login {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ffffff;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid #ffdd00;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin-right: 20px;
}
.login:hover {
  background-color: #fffbd1;
  color: #fff;
}

/* ============================= */
/* ESTILOS PARA DETALLE DE CURSO */
/* ============================= */
.detalle-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 6rem 5% 3rem; /* margen arriba por cabecera fija */
  background-color: #111;
  color: #f1f1f1;
  min-height: 100vh;
}
.detalle-main {
  background: #1b1b1b;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.afiche-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}
.afiche-wrap img.afiche {
  max-width: 100%;
  border-radius: 8px;
}
.detalle-descripcion h2,
.detalle-requisitos h3,
.detalle-temario h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  color: #ffd700;
}
.detalle-temario ul {
  list-style: none;
  padding-left: 0;
}
.detalle-temario li {
  margin: 0.4rem 0;
  padding-left: 1rem;
}
.detalle-sidebar {
  position: sticky;
  top: 6rem; /* altura cabecera */
  align-self: start;
}
.sidebar-box {
  background: #1f1f1f;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  text-align: center;
}
.sidebar-box .curso-titulo {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.sidebar-box .meta {
  font-size: 0.9rem;
  color: #bbb;
  margin: 0.3rem 0;
}
.sidebar-box .precio {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 1rem 0;
  color: #4caf50;
}
.sidebar-box .gratis {
  color: #00e676;
}
.btn-add {
  background: #ff5722;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-add:hover {
  background: #e64a19;
}
.beneficios {
  margin-top: 1.5rem;
  text-align: left;
  font-size: 0.9rem;
  color: #ddd;
}
.beneficios p {
  margin: 0.3rem 0;
}
@media (max-width: 900px) {
  .detalle-layout {
    grid-template-columns: 1fr;
  }
  .detalle-sidebar {
    position: relative;
    top: 0;
    margin-top: 2rem;
  }
}

/* ============================= */
/* MINI CARRITO LIMPIO Y FUNCIONAL */
/* ============================= */
#cart {
  position: fixed;
  top: 90px;              /* debajo de la cabecera */
  right: 20px;
  width: 320px;
  background: #111;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 15px;
  color: #fff;
  display: none;
  z-index: 2000;          /* encima del menú */
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
#cart h3 {
  margin-bottom: 10px;
  font-size: 18px;
  text-align: center;
  color: #f1c40f;
}
#cart ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  max-height: 200px;
  overflow-y: auto;
}
#cart ul li {
  font-size: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}
#cart p {
  font-size: 16px;
  margin: 10px 0;
  font-weight: bold;
  text-align: right;
}
#cart .cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
#cart .btn-cart {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}
#cart .btn-cart.ver {
  background: #f1c40f;
  color: #000;
}
#cart .btn-cart.finalizar {
  background: #27ae60;
  color: #fff;
}
/* ============================= */
/* ESTILOS PARA LA PÁGINA CARRITO */
/* ============================= */

.tabla-carrito {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #1b1b1b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.tabla-carrito th,
.tabla-carrito td {
  padding: 12px 15px;
  text-align: center;
  color: #f1f1f1;
}

.tabla-carrito th {
  background: #222;
  color: #ffd700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tabla-carrito tr:nth-child(even) {
  background: #2a2a2a;
}

.tabla-carrito tr:hover {
  background: #333;
}

.tabla-carrito td button {
  background: #444;
  border: none;
  color: #fff;
  padding: 6px 10px;
  margin: 0 3px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.tabla-carrito td button:hover {
  background: #666;
}

/* Botón eliminar 🗑 */
.tabla-carrito td button:last-child {
  background: #e74c3c;
}
.tabla-carrito td button:last-child:hover {
  background: #c0392b;
}

/* Vaciar carrito */
button.vaciar-btn {
  background: #e74c3c;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-right: 10px;
}

button.vaciar-btn:hover {
  background: #c0392b;
}

/* Botón Finalizar compra (consistente con sidebar detalle) */
a.btn-cart.finalizar {
  display: inline-block;
  padding: 10px 18px;
  background: #28a745;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

a.btn-cart.finalizar:hover {
  background: #218838;
}

/* Total alineado */
#carrito-contenido p {
  font-size: 1.1rem;
  color: #ffd700;
}

/* MÉTODOS DE PAGO */
.metodos-pago {
  margin-top: 2rem;
  text-align: center;
  color: #000000;
}
.metodos-pago h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ffd700;
}

.grid-metodos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /*gap: 1.5rem;*/
  justify-items: center;
}

.metodo-card {
  background: #ffffff;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000000;
}

.metodo-card:hover {
  border-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(255,215,0,0.3);
}

.metodo-card input {
  display: none;
}

.metodo-card img {
  max-width: 100px;
  margin-bottom: 0.8rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.metodo-card span {
  display: block;
  font-size: 0.95rem;
  font-weight: bold;
}

/* Cuando está seleccionado */
.metodo-card input:checked + img,
.metodo-card input:checked + img + span {
  filter: brightness(1.2);
  color: #ff0000;
}

/* ========================= */
/*    TOP 5 – Netflix FINAL  */
/* ========================= */

.top-carousel {
    display: flex;
    justify-content: center;
    gap: 55px;
    padding: 40px 20px;
    overflow: visible; /* SIN SCROLL */
}

/* Tarjeta */
.top-item {
    position: relative;
    width: 220px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover estilo Netflix */
.top-item:hover {
    transform: scale(1.12);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* Imagen */
.top-item img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Número grande Netflix */
.top-number {
    position: absolute;
    left: -50px;
    bottom: 0;
    font-size: 158px;
    font-weight: 900;
    line-height: 1.3;
    color: rgba(255,255,255,0.18);
    -webkit-text-stroke: 3px rgba(255,255,255,0.40);
    text-shadow: 0 0 10px rgba(0,0,0,0.9);
    pointer-events: none;
    font-family: 'Impact', 'Arial Black', sans-serif;
    z-index: 1;
}

/* Título del curso */
.top-title {
    margin-top: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #e8e8e8;
    text-align: left;
    width: 220px;
    padding-left: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
/* TRAILER EN DETALLE DE CURSO */
.trailer-box {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* ========== ESTILOS PARA PÁGINAS NOSOTROS, CURSOS, DIPLOMADOS, MEDIOS ========== */
.hero-nosotros {
    margin-top: 150px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-nosotros h1 {
    font-size: 42px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nosotros-section {
    width: 85%;
    margin: 60px auto;
    color: #fff;
}

.nosotros-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    border-left: 5px solid #f1c40f;
    padding-left: 10px;
    color: #f1c40f;
}

.nosotros-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.propuesta {
    background: #111;
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

.propuesta ul {
    list-style: none;
    padding: 0;
}

.propuesta ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 16px;
}

.propuesta ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #f1c40f;
    font-weight: bold;
}

.galeria-nosotros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 60px auto;
}

.galeria-nosotros img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.galeria-nosotros img:hover {
    transform: scale(1.05);
}

.trailer-box {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.trailer-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #f2f2f2;
}

.trailer-video iframe,
.trailer-video video {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    object-fit: cover;
}

.trailer-video.no-video {
    width: 100%;
    height: 220px;
    background: #1f1f1f;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #444;
}

.no-video-placeholder {
    text-align: center;
    color: #777;
}

.no-video-placeholder p {
    font-size: 48px;
    margin-bottom: 10px;
}

.no-video-placeholder span {
    font-size: 14px;
    color: #999;
}


