/* ============================================================
   modales-portada.css - Estilos específicos para modales de
   alérgenos, legales y portada (pantalla completa)
   El Bocadón · Hamburguesería
   ============================================================ */

/* ============================================================
   CONTENEDOR PRINCIPAL DEL MODAL
   ============================================================ */
.modal-fullscreen .modal-editar-producto-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 2rem 2rem 3rem !important;
  box-sizing: border-box;
  position: relative;
  min-height: 100vh;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
  .modal-fullscreen .modal-editar-producto-content {
    padding: 1.5rem 1rem 2.5rem !important;
  }
}

/* ============================================================
   CRUCETA DE CIERRE (X) - FIJADA Y SIN INTERFERIR
   ============================================================ */
.modal-fullscreen .modal-close-x {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 100001 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #c0392b !important;
  color: white !important;
  border: none !important;
  font-size: 1.8rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.2s !important;
}

.modal-fullscreen .modal-close-x:hover {
  transform: scale(1.05) !important;
}

.modal-fullscreen .modal-close-x:active {
  transform: scale(0.95) !important;
}

/* En móviles, la cruceta se reduce ligeramente */
@media (max-width: 480px) {
  .modal-fullscreen .modal-close-x {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.4rem !important;
    top: 12px !important;
    right: 12px !important;
  }
}

/* ============================================================
   CABECERA DEL MODAL
   ============================================================ */
.modal-fullscreen .modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0e6d8;
  width: 100%;
}

.modal-fullscreen .modal-header i {
  font-size: 2.5rem;
  color: #d4af37;
  display: block;
  margin-bottom: 0.3rem;
}

.modal-fullscreen .modal-header h2 {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: #2c1810;
  margin: 0;
}

.modal-fullscreen .modal-header p {
  color: #666;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* ============================================================
   CUERPO DEL MODAL - SCROLL INTERNO
   ============================================================ */
.modal-fullscreen .modal-body {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
  flex: 1;
}

/* ============================================================
   TABLAS DE ALÉRGENOS (reutiliza clases de estadisticas.css)
   ============================================================ */
.modal-fullscreen .estadisticas-tabla {
  width: 100%;
  min-width: 500px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid #f0e6d8;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}

.modal-fullscreen .estadisticas-tabla-header {
  display: flex;
  background: #fef9f0;
  border-bottom: 2px solid #e8d5c4;
  font-weight: 700;
  font-size: 0.85rem;
  color: #3e2a21;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-fullscreen .estadisticas-tabla-header .col {
  padding: 0.8rem 1rem;
  flex: 1;
  min-width: 80px;
}

.modal-fullscreen .estadisticas-tabla-header .col:last-child {
  text-align: right;
}

.modal-fullscreen .estadisticas-tabla-fila {
  display: flex;
  border-bottom: 1px solid #f0e6d8;
  transition: background 0.15s;
}

.modal-fullscreen .estadisticas-tabla-fila:hover {
  background: #fef9f0;
}

.modal-fullscreen .estadisticas-tabla-fila:last-child {
  border-bottom: none;
}

.modal-fullscreen .estadisticas-tabla-fila .col {
  padding: 0.7rem 1rem;
  flex: 1;
  min-width: 80px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #3e2a21;
  word-break: break-word;
}

.modal-fullscreen .estadisticas-tabla-fila .col:last-child {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* ============================================================
   BADGES DE ALÉRGENOS
   ============================================================ */
.estadisticas-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.estadisticas-badge.rojo {
  background: #fdedec;
  color: #e74c3c;
  border: 1px solid #f5c6cb;
}

.estadisticas-badge.amarillo {
  background: #fef9e7;
  color: #f39c12;
  border: 1px solid #f7dc6f;
}

.estadisticas-badge.verde {
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
}

/* ============================================================
   NOTA INFORMATIVA (dentro del modal)
   ============================================================ */
.modal-fullscreen .modal-nota {
  background: #fef9f0;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border-left: 4px solid #d4af37;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #555;
  width: 100%;
  box-sizing: border-box;
}

.modal-fullscreen .modal-nota i {
  color: #d4af37;
  margin-right: 6px;
}

/* ============================================================
   LEYENDA DE ALÉRGENOS
   ============================================================ */
.modal-fullscreen .modal-leyenda {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  width: 100%;
}

.modal-fullscreen .modal-leyenda .estadisticas-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
}

/* ============================================================
   MODALES LEGALES (RGPD, COOKIES, AVISO LEGAL, CONDICIONES)
   ============================================================ */
.modal-fullscreen .modal-legal-body {
  font-family: 'Montserrat', sans-serif;
  color: #3e2a21;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0.5rem;
}

.modal-fullscreen .modal-legal-body p {
  margin-bottom: 0.8rem;
}

.modal-fullscreen .modal-legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.modal-fullscreen .modal-legal-body a {
  color: #8B5A2B;
  text-decoration: underline;
}

.modal-fullscreen .modal-legal-body a:hover {
  color: #5C3A1A;
}

.modal-fullscreen .modal-legal-body .fecha-actualizacion {
  font-size: 0.9rem;
  color: #888;
  margin-top: 1rem;
}

/* ============================================================
   RESPONSIVE - TABLAS Y MODALES
   ============================================================ */

/* Tablets */
@media (max-width: 992px) {
  .modal-fullscreen .estadisticas-tabla {
    min-width: 400px;
  }
  .modal-fullscreen .estadisticas-tabla-header .col,
  .modal-fullscreen .estadisticas-tabla-fila .col {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  .modal-fullscreen .modal-header h2 {
    font-size: 1.8rem;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .modal-fullscreen .modal-editar-producto-content {
    padding: 1.5rem 1rem 2rem !important;
  }
  .modal-fullscreen .estadisticas-tabla {
    min-width: 320px;
  }
  .modal-fullscreen .estadisticas-tabla-header .col,
  .modal-fullscreen .estadisticas-tabla-fila .col {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    min-width: 60px;
  }
  .modal-fullscreen .modal-header h2 {
    font-size: 1.5rem;
  }
  .modal-fullscreen .modal-header p {
    font-size: 0.85rem;
  }
  .modal-fullscreen .modal-legal-body {
    font-size: 0.9rem;
  }
  .estadisticas-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.6rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .modal-fullscreen .modal-editar-producto-content {
    padding: 1rem 0.8rem 1.5rem !important;
  }
  .modal-fullscreen .estadisticas-tabla {
    min-width: 280px;
  }
  .modal-fullscreen .estadisticas-tabla-header .col,
  .modal-fullscreen .estadisticas-tabla-fila .col {
    padding: 0.4rem 0.4rem;
    font-size: 0.7rem;
    min-width: 50px;
  }
  .modal-fullscreen .modal-header h2 {
    font-size: 1.2rem;
  }
  .modal-fullscreen .modal-header i {
    font-size: 2rem;
  }
  .modal-fullscreen .modal-legal-body {
    font-size: 0.85rem;
  }
  .estadisticas-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
  }
  .modal-fullscreen .estadisticas-tabla-fila .col {
    flex-wrap: wrap;
    gap: 0.2rem;
  }
}

/* ============================================================
   UTILIDADES PARA EL CONTENIDO DEL MODAL
   ============================================================ */
.modal-fullscreen .text-center {
  text-align: center;
}
.modal-fullscreen .mt-1 {
  margin-top: 0.5rem;
}
.modal-fullscreen .mb-1 {
  margin-bottom: 0.5rem;
}
.modal-fullscreen .w-100 {
  width: 100%;
}