/* =====================================
   BASE
===================================== */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f0f0f;
  color: white;
}

.main-container {
  padding: 40px 20px;
}

/* =====================================
   HEADER
===================================== */

.header {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  padding: 15px 20px;
}

.section-title {
  flex: 1;
}

.section-title h1 {
  margin: 0;
  font-size: 24px;
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo {
  height: 160px;
}

.social-icons {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.social-icons img {
  width: 35px;
  height: 35px;
}

/* =====================================
   BUSCADOR CENTRADO
===================================== */

.search-box {
  display: grid;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.search-box input {
  width: 450px;
  max-width: 90vw;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

.search-box button {
  width: 200px;
  margin: 0 auto;
}

/* =====================================
   BOTONES
===================================== */

button {
  background: #ff003c;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

button:hover {
  background: #ff3366;
}

/* =====================================
   FILAS RESULTADOS TIPO NETFLIX
===================================== */

.results-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 15px;
  margin-bottom: 50px;
  scroll-behavior: smooth;
}

.results-row::-webkit-scrollbar {
  height: 8px;
}

.results-row::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

/* =====================================
   CARDS
===================================== */

.card {
  width: 200px;
  flex-shrink: 0;
  background: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  display: block;
}

.card-info {
  padding: 12px;
}

.card-info h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
}

.card-info p {
  margin: 0 0 10px 0;
  color: #aaa;
  font-size: 14px;
}

.btn-ver {
  width: 100%;
}

/* =====================================
   FICHA CENTRADA
===================================== */

.selected-content {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.detalle-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  background: #1c1c1c;
  padding: 40px;
  border-radius: 20px;
  max-width: 950px;
  width: 95%;
}

.detalle-wrapper img {
  width: 250px;
  border-radius: 14px;
}

.detalle-info h2 {
  margin-top: 0;
}
/* Centrar título últimas solicitudes */
.ultimas-titulo {
  text-align: center;
  margin-bottom: 20px;
}

.detalle-info p {
  line-height: 1.5;
}

.detalle-info input,
.detalle-info select {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  width: 280px;
}

.detalle-info button {
  margin-top: 15px;
  width: 200px;
}

/* =====================================
   TABLA ÚLTIMAS SOLICITUDES
===================================== */

#tablaSolicitudes {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

#tablaSolicitudes th,
#tablaSolicitudes td {
  padding: 10px;
  border-bottom: 1px solid #333;
  text-align: center;
}

/* =====================================
   ADMIN
===================================== */

.login-container {
  
  bottom: 20px;
  right: 20px;
}

/* =====================================
   RESPONSIVE TABLET
===================================== */

@media (max-width: 900px) {

  .detalle-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .detalle-wrapper img {
    margin: 0 auto;
  }

  .detalle-info input,
  .detalle-info select {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }
}
/* ===== Barra inferior títulos Cine y Series ===== */

/* ===== Barra inferior ancho completo ===== */

.results-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 12px;
  font-size: 22px;
}

.results-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #ff003c;
}
/* =====================================
   RESPONSIVE MÓVIL
===================================== */

@media (max-width: 600px) {

  .header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .logo {
	height: 120px;
  }
  .social-icons {
    justify-content: center;
  }

  .card {
    width: 160px;
  }

  .card img {
    width: 160px;
    height: 240px;
  }

  .results-row {
    gap: 15px;
  }

  .detalle-wrapper {
    padding: 25px;
  }

  .detalle-wrapper img {
    width: 200px;
  }

}
/* =====================================
   HISTORIAL SOLICITUDES
===================================== */

/* ==============================
   FRANJAS ORGANIZADAS EN GRID
============================== */

.franja-section {
  margin-bottom: 40px;
}

.franja-section h3 {
  border-bottom: 2px solid #ff003c;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.franja-section {
  display: block;
}

.franja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

/* ==============================
   CARDS COMPACTAS
============================== */

.historial-card {
  background: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  max-width: 150px;
  font-size: 13px;
}

.historial-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.historial-info {
  padding: 10px;
}

.historial-info h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
}

.historial-info p {
  margin: 2px 0;
  color: #ccc;
  font-size: 12px;
}

/* ==============================
   PANEL ADMIN DENTRO DE CARD
============================== */

.historial-card input {
  width: 100%;
  margin: 5px 0;
  padding: 6px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
}

.historial-card button {
  width: 100%;
  padding: 6px;
  font-size: 12px;
}

/* ==============================
   TABLA COMPLETADAS COMPACTA
============================== */

.completed-title {
  margin-top: 60px;
}

#tablaProgramadas {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto 60px auto;
  border-collapse: collapse;
  font-size: 12px;
}

#tablaProgramadas th,
#tablaProgramadas td {
  padding: 6px;
  border-bottom: 1px solid #333;
  text-align: center;
}

#tablaProgramadas th {
  background: #1a1a1a;
}

/* ==============================
   ADMIN PANEL FIJO
============================== */



.admin-panel button {
  padding: 10px 15px;
  font-size: 13px;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 768px) {

  .franja-section > div {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .historial-card img {
    height: 180px;
  }

  #tablaCompletadas {
    font-size: 11px;
  }

}
.login-container {
    max-width: 300px;
    margin: 60px auto 40px auto;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.login-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.login-container button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    font-size: 13px;
}

#btnBorrarSolicitudes {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    font-size: 12px;
}
/* =====================================
   INFO PETICIONES / PRECIOS
===================================== */

.info-box {
  background: #1c1c1c;
  padding: 25px;
  border-radius: 16px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.info-box h2 {
  margin-top: 0;
  font-size: 22px;
}

.info-box p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
}

.precios-box {
  background: #141414;
  padding: 20px;
  border-radius: 12px;
  margin-top: 15px;
}

.precios-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #ff003c;
}

.precios-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.precios-box li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #2a2a2a;
}

.precios-box li:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .info-box {
    width: 90vw;
    padding: 20px;
  }
}
/* =====================================
   TABLA PRECIOS ESTILO STREAMING
===================================== */

.tabla-precios {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tabla-precios tr {
  border-bottom: 1px solid #2a2a2a;
}

.tabla-precios tr:last-child {
  border-bottom: none;
}

.tabla-precios td {
  padding: 10px;
}

.tabla-precios .tipo {
  text-align: left;
  font-weight: 500;
  color: #ddd;
}

/* Badge rojo tipo etiqueta */

.badge-precio {
  background: #ff003c;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s ease;
}

/* Version más potente para semanas */

.badge-precio.destacado {
  background: linear-gradient(45deg, #ff003c, #ff6600);
}

/* Hover elegante */

.badge-precio:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255,0,60,0.6);
}

/* Responsive */

@media (max-width: 768px) {
  .tabla-precios td {
    padding: 8px 5px;
    font-size: 13px;
  }
}
/* =====================================
   CALENDARIO VISUAL 30 DÍAS
===================================== */

#calendario {
   max-width: 1577px;   /* Ajusta a tu gusto */
   margin: 0 auto;      /* Centrado horizontal */
}

.calendario-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.dia {
  background: #1c1c1c;
  border-radius: 14px;
  padding: 8px;
  height: 240px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.numero {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}

.dia.hoy {
  border: 2px solid #ff003c;
  box-shadow: 0 0 12px rgba(255,0,60,0.4);
}

/* =====================================
   CONTENEDOR EVENTOS
===================================== */

.eventos-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;

  /* 👇 SOLO CABEN 2 */
  width: 290px; 
  max-width: 100%;

  flex: 1;
  padding-bottom: 4px;
}

.eventos-grid::-webkit-scrollbar {
  height: 6px;
}

.eventos-grid::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

/* =====================================
   EVENTO
===================================== */

.evento {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.evento img {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.evento-info {
  font-size: 12px;
  font-weight: bold;
  margin-top: 6px;
  color: #ccc;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================
   +N INDICADOR
===================================== */

.evento-extra {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: #ff003c;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* =====================================
   RESPONSIVE MÓVIL
===================================== */

@media (max-width: 900px) {

  .calendario-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

@media (max-width: 600px) {

  .calendario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dia {
    background: #1c1c1c;
    border-radius: 10px;
    padding: 4px;
    height: 200px;
    
  }
  .evento {
    width: 100px;
  }

  .evento img {
    width: 90px;
    height: 125px;
  }

  .eventos-grid {
    width: 200px; /* 2 posters móviles */
    gap: 2px;
  }

}

}