/* 
 * =============================================
 * STYLES FOR PLATOS SYSTEM - RESTAURANT THEME
 * =============================================
 * 
 * Este archivo contiene todos los estilos para el sistema de platos
 * Versión organizada y limpiada
 */

/* =============================================
 * 1. GRID PRINCIPAL DE PLATOS
 * =============================================
 */

.mis-platos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 15px 0;
}

.plato-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plato-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =============================================
 * 2. ELEMENTOS DE LA TARJETA DE PLATO
 * =============================================
 */

.plato-imagen {
  margin: -12px -12px 8px -12px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.plato-imagen img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.plato-nombre {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 4px 0 6px 0;
  line-height: 1.2;
}

.plato-descripcion {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 8px;
  flex-grow: 1;
  line-height: 1.3;
}

.plato-precio {
  font-size: 1rem;
  font-weight: 700;
  color: #b22222;
  margin-bottom: 8px;
}

/* =============================================
 * 3. ALÉRGENOS EN TARJETAS - CORREGIDO
 * =============================================
 */

.plato-alergenos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.plato-alergenos img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fafafa;
  padding: 2px;
  transition: transform 0.2s ease;
  display: block; /* Asegura que no haya espacio extra */
  margin: 0 auto; /* Centrado horizontal */
}

.plato-alergenos img:hover {
  transform: scale(1.15);
}


/* =============================================
 * 4. ACCIONES Y ESTADOS DEL PLATO
 * =============================================
 */

.plato-acciones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 6px;
  padding-top: 8px;
}

.estado-plato-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.estado-plato-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.estado-plato-checkbox input[type="checkbox"]:checked {
  background: #50983D;
  border-color: #50983D;
}

.estado-plato-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.botones-accion {
  display: flex;
  gap: 6px;
  align-items: center;
}

.boton-editar,
.boton-borrar {
  background: #B87234;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  min-width: 60px;
}

.boton-editar:hover,
.boton-borrar:hover {
  background: #50983D;
  transform: translateY(-1px);
}

.form-borrar-plato {
  margin: 0;
  display: inline;
  flex: 1;
}

/* =============================================
 * 5. FORMULARIOS DE PLATOS
 * =============================================
 */

.form-plato {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.form-plato h2 {
  color: #24421C;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  border-bottom: 3px solid #BF7234;
  padding-bottom: 12px;
}

.form-plato p {
  margin-bottom: 20px;
}

.form-plato label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #24421C;
  font-family: 'Poppins', sans-serif;
}

.form-plato input[type="text"],
.form-plato input[type="number"],
.form-plato textarea,
.form-plato select {
  width: 100%;
  max-width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-plato select {
  appearance: menulist;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  height: auto;
  min-height: 48px;
  line-height: 1.5;
}

.form-plato input:focus,
.form-plato textarea:focus,
.form-plato select:focus {
  border-color: #B87234;
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 114, 52, 0.1);
}

.form-plato textarea {
  min-height: 100px;
}

/* =============================================
 * 6. GRID DE ALÉRGENOS EN FORMULARIOS - CORREGIDO
 * =============================================
 */

.alergenos-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.alergeno-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
  min-height: 90px;
}

.alergeno-option img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  object-fit: contain;
  transition: all 0.3s ease;
  opacity: 0.6;
  display: block;
  margin-left: auto;  /* Nuevo: centrado horizontal */
  margin-right: auto; /* Nuevo: centrado horizontal */
}

.alergeno-option:hover {
  background: #f0f0f0;
  border-color: #007cba;
  transform: translateY(-2px);
}

.alergeno-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; /* Un poco más pequeño */
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  position: relative;
  margin-bottom: 5px; /* Menos espacio */
  transition: all 0.2s ease;
}

.alergeno-option input[type="checkbox"]:checked {
  background: #007cba;
  border-color: #007cba;
}

.alergeno-option input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px; /* Un poco más pequeño */
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.alergeno-option span {
  font-size: 0.75rem; /* Texto más pequeño para 7 columnas */
  font-weight: 500;
  color: #333;
  line-height: 1.1;
  text-align: center;
}

/* Estados de alérgenos seleccionados */
.alergeno-option.seleccionado {
  background: #e3f2fd;
  border-color: #007cba;
  box-shadow: 0 2px 6px rgba(0, 124, 186, 0.2);
}

.alergeno-option.seleccionado span {
  font-weight: 700;
  color: #007cba;
}

.alergeno-option.seleccionado img,
.alergeno-option:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.alergeno-option:active {
  transform: scale(0.95);
}

/* =============================================
 * 7. BOTONES DE FORMULARIOS
 * =============================================
 */

.plato-select-img {
  background: #B87234;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.plato-select-img:hover {
  background: #50983D;
  transform: translateY(-2px);
}

.boton-guardar {
  background: #B87234;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.boton-guardar:hover {
  background: #50983D;
  transform: translateY(-2px);
}

.acciones-formulario {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.acciones-formulario .boton-guardar,
.acciones-formulario .boton-borrar {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 160px;
  text-align: center;
  flex: 1;
}

.acciones-formulario .boton-guardar {
  background: #B87234;
  color: white;
}

.acciones-formulario .boton-guardar:hover {
  background: #50983D;
  transform: translateY(-2px);
}

.acciones-formulario .boton-borrar {
  background: #dc3545;
  color: white;
}

.acciones-formulario .boton-borrar:hover {
  background: #c82333;
  transform: translateY(-2px);
}

/* =============================================
 * 8. BOTONES DE NAVEGACIÓN Y FILTROS
 * =============================================
 */

.cartas-tipos {
  text-align: center;
  margin: 15px 0;
  padding: 10px;
  background: #ffffff00;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.boton-tipo-plato {
  display: inline-block;
  margin: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  background: #B87234;
  color: #fff;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 110px;
  text-align: center;
}

.boton-tipo-plato:hover {
  background: #50983D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(80, 152, 61, 0.3);
  color: #fff;
}

.boton-tipo-plato.active {
  background: #3d7a2d;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(61, 122, 45, 0.4);
  color: #fff;
}

.contenedor-boton-nuevo {
  text-align: center;
  margin: 5px 0;
}

.boton-nuevo-plato {
  display: inline-block;
  margin: 10px auto;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  background: #B87234;
  color: #24421C;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  font-size: 1rem;
}

.boton-nuevo-plato:hover {
  background: #50983D;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(80, 152, 61, 0.3);
  color: #ffffff;
}

/* =============================================
 * 9. GESTOR DE TIPOS DE CARTA
 * =============================================
 */

.gestor-tipos-carta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gestor-tipos-carta h3 {
  color: #24421C;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  border-bottom: 3px solid #BF7234;
  padding-bottom: 12px;
}

.nuevo-tipo-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tipos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas fijas en desktop */
  gap: 20px;
  margin-top: 20px;
}

.tipo-card {
  background: rgb(255, 255, 255);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tipo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #B87234;
}

.tipo-info h4 {
  color: #24421C;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 4px 0;
  font-size: 1.2rem;
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}

.tipo-slug {
  color: #666;
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  padding: 3px 6px;
  border-radius: 4px;
  display: block;
  margin: 4px 0;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 500;
  border: 1px solid #e9ecef;
}

.tipo-descripcion {
  color: #555;
  font-style: italic;
  margin: 4px 0;
  line-height: 1.3;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
}

.tipo-contador-container {
  text-align: center;
  margin: 6px 0;
}

.tipo-contador {
  color: #B87234;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  background: #FFF5EB;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  border: 1px solid #FFE4CC;
}

.tipo-acciones {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.boton-editar-tipo,
.boton-borrar-tipo {
  background: #B87234;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 80px;
  text-align: center;
}

.boton-editar-tipo:hover,
.boton-borrar-tipo:hover {
  background: #50983D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(80, 152, 61, 0.3);
}

/* Contenedor de botones de imagen */
.botones-imagen {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Botones de imagen - mismo tamaño */
.plato-select-img,
.plato-eliminar-img {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
    text-align: center;
    flex: 1;
}

.plato-select-img {
    background: #B87234;
    color: white;
}

.plato-select-img:hover {
    background: #50983D;
    transform: translateY(-2px);
}

.plato-eliminar-img {
    background: #dc3545;
    color: white;
}

.plato-eliminar-img:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.boton-crear {
  background: #B87234;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto 0 auto;
}

.boton-crear:hover {
  background: #50983D;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(80, 152, 61, 0.3);
}

/* =============================================
 * 10. ESTILOS PARA EL MODAL - CORREGIDOS
 * =============================================
 */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-contenido {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    margin: auto;
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.cerrar-modal:hover {
    color: #000;
}

.modal-contenido h3 {
    color: #24421C;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #BF7234;
    padding-bottom: 10px;
}

.modal-acciones {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.boton-cancelar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
    text-align: center;
}

.boton-cancelar:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* =============================================
 * 11. NOTIFICACIONES Y MENSAJES
 * =============================================
 */

.notice-success {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 4px;
  margin: 15px 0;
  border: 1px solid #c3e6cb;
}

/* =============================================
 * 12. DISEÑO RESPONSIVE
 * =============================================
 */

/* Pantallas grandes - 4 columnas platos, 4 columnas tipos, 7 columnas alérgenos */
@media (min-width: 1024px) {
  .mis-platos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  
  .tipos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .alergenos-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
  }
}

/* Tablets - 3 columnas platos, 4 columnas tipos, 5 columnas alérgenos */
@media (max-width: 1023px) and (min-width: 769px) {
  .mis-platos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .plato-card {
    padding: 10px;
  }
  
  .plato-imagen {
    margin: -10px -10px 6px -10px;
  }
  
  .plato-imagen img {
    height: 120px;
  }
  
  .tipos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .alergenos-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  
  .alergeno-option {
    padding: 8px 4px;
    min-height: 80px;
  }
  
  .alergeno-option img {
    width: 36px;
    height: 36px;
  }
  
  .alergeno-option span {
    font-size: 0.7rem;
  }
}

/* Tablets pequeñas y móviles grandes - 2 columnas platos, 2 columnas tipos, 4 columnas alérgenos */
@media (max-width: 768px) and (min-width: 481px) {
  .mis-platos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .plato-acciones {
    flex-direction: column;
    gap: 8px;
  }
  
  .estado-plato-checkbox {
    justify-content: center;
    width: 100%;
  }
  
  .botones-accion {
    width: 100%;
    justify-content: space-between;
  }
  
  .tipos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .alergenos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  
  .alergeno-option {
    padding: 6px 3px;
    min-height: 75px;
  }
  
  .alergeno-option img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
  }
  
  .alergeno-option span {
    font-size: 0.65rem;
  }
  
  .modal {
    align-items: flex-start;
    padding-top: 40px;
  }
  
  .modal-contenido {
    top: 0;
    transform: none;
    margin: 20px auto;
  }
}

/* Móviles pequeños - 2 columnas platos, 2 columnas tipos, 4 columnas alérgenos */
@media (max-width: 480px) {
  .mis-platos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .plato-card {
    padding: 8px;
  }
  
  .plato-imagen {
    margin: -8px -8px 4px -8px;
  }
  
  .plato-imagen img {
    height: 100px;
  }
  
  .plato-nombre {
    font-size: 0.9rem;
    margin: 2px 0 4px 0;
  }
  
  .plato-descripcion {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .plato-precio {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  .plato-alergenos img {
    width: 28px;
    height: 28px;
  }
  
  .tipos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .alergenos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  
  .alergeno-option {
    padding: 8px 4px;
    min-height: 70px;
  }
  
  .alergeno-option img {
    width: 30px;
    height: 30px;
  }
  
  .alergeno-option span {
    font-size: 0.7rem;
  }
  
  .botones-accion {
    flex-direction: column;
    gap: 6px;
  }
  
  .boton-editar,
  .boton-borrar {
    width: 100%;
    padding: 8px;
  }
  
  .gestor-tipos-carta {
    padding: 10px;
  }
  
  .nuevo-tipo-form {
    padding: 20px;
  }
  
  .tipo-acciones {
    flex-direction: column;
    align-items: center;
  }
  
  .boton-editar-tipo,
  .boton-borrar-tipo {
    width: 100%;
    max-width: 200px;
  }
}

/* Pantallas muy grandes - mantener 4 columnas platos, 4 columnas tipos, 7 columnas alérgenos */
@media (min-width: 1400px) {
  .mis-platos-grid {
    gap: 20px;
  }
  
  .plato-card {
    padding: 15px;
  }
  
  .plato-imagen {
    margin: -15px -15px 10px -15px;
  }
  
  .plato-imagen img {
    height: 160px;
  }
  
  .tipos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .alergenos-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
  }
  
  .alergeno-option {
    padding: 12px 8px;
    min-height: 95px;
  }
  
  .alergeno-option img {
    width: 46px;
    height: 46px;
  }
  
  .alergeno-option span {
    font-size: 0.8rem;
  }
}

/* =============================================
 * 13. LOGIN PERSONALIZADO - ACTUALIZADO
 * =============================================
 */

.contenedor-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background: transparent !important;
    padding-top: 0 !important; /* Eliminar padding superior del contenedor */
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px; /* Cambiado de 420px a 450px */
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0 !important; /* Eliminar margen superior */
    padding-top: 30px; /* Reducir padding superior */
}

/* Ocultar completamente el contenedor del logo */
.login-logo {
    display: none !important;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #24421C;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 8px 0;
}

.login-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.login-form {
    margin-bottom: 25px;
}

.form-grupo {
    margin-bottom: 20px;
}

.form-grupo label {
    display: block;
    margin-bottom: 8px;
    color: #24421C;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.form-grupo .input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.form-grupo .input:focus {
    border-color: #B87234;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 114, 52, 0.1);
}

.form-opciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.recordarme {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #555;
}

.recordarme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.recordarme input[type="checkbox"]:checked {
    background: #50983D;
    border-color: #50983D;
}

.recordarme input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.registro-link {
    color: #B87234;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.registro-link:hover {
    color: #50983D;
    text-decoration: underline;
}

.form-submit {
    text-align: center;
}

.boton-login {
    background: #B87234 !important;
    color: white;
    border: none !important;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(184, 114, 52, 0.3);
}

.boton-login:hover {
    background: #50983D !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 152, 61, 0.4);
}

.login-enlaces {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.olvido-contrasena {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.olvido-contrasena:hover {
    color: #B87234;
    text-decoration: underline;
}

.login-ya-conectado {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 40px auto;
}

.login-ya-conectado p {
    font-size: 1.1rem;
    color: #24421C;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.login-ya-conectado a {
    background: #B87234;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-ya-conectado a:hover {
    background: #50983D;
    transform: translateY(-2px);
}

/* Mensajes de error y éxito */
.login .message,
.login .success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-family: 'Poppins', sans-serif;
}

.login .error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-family: 'Poppins', sans-serif;
}

/* Responsive */
@media (max-width: 480px) {
    .contenedor-login {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 25px;
    }
    
    .login-header h1 {
        font-size: 1.7rem;
    }
    
    .form-opciones {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* =============================================
 * 14. BOTONES PRINCIPALES MEJORADOS - CORREGIDO
 * =============================================
 */

.contenedor-botones-principales {
    text-align: center;
    margin: 20px 0;
    display: flex;
    gap: 20px; /* Separación de 20px entre botones */
    justify-content: center; /* Centrado horizontal */
    flex-wrap: wrap;
}

.boton-principal {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    background: #B87234;
    color: white;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    font-size: 1rem;
    min-width: 160px;
}

.boton-principal:hover {
    background: #50983D;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(80, 152, 61, 0.3);
    color: #ffffff;
}

/* =============================================
 * 15. ESTILOS PARA IMPORTACIÓN MEJORADOS
 * =============================================
 */

.contenedor-importacion {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.importacion-info h2 {
    color: #24421C;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid #BF7234;
    padding-bottom: 12px;
}

.pasos-importacion {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #B87234;
}

.pasos-importacion h3 {
    color: #24421C;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.pasos-importacion ol {
    margin-left: 20px;
}

.pasos-importacion li {
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.estructura-csv {
    margin-bottom: 30px;
}

.estructura-csv h3 {
    color: #24421C;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.tabla-estructura {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}

.tabla-estructura th,
.tabla-estructura td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tabla-estructura th {
    background: #24421C;
    color: white;
    font-weight: 600;
}

.tabla-estructura tr:hover {
    background: #f8f9fa;
}

.form-importacion {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 2px dashed #B87234;
}

.campo-archivo {
    margin-bottom: 20px;
}

.campo-archivo label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #24421C;
    font-family: 'Poppins', sans-serif;
}

.campo-archivo input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-family: 'Poppins', sans-serif;
}

.campo-archivo input[type="file"]:focus {
    border-color: #B87234;
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 114, 52, 0.1);
}

.opciones-importacion {
    margin-bottom: 25px;
}

.opciones-importacion label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.acciones-importacion {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* ACTUALIZA los estilos existentes de .boton-importar y .boton-cancelar-importacion */

.boton-importar {
    background: #B87234 !important;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
}

.boton-importar:hover {
    background: #50983D !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(80, 152, 61, 0.3);
}

.boton-cancelar-importacion {
    background: #6c757d !important;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 160px;
    text-align: center;
    display: inline-block;
}

.boton-cancelar-importacion:hover {
    background: #545b62 !important;
    transform: translateY(-2px);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .contenedor-botones-principales {
        flex-direction: column;
        align-items: center;
    }
    
    .boton-principal {
        width: 100%;
        max-width: 300px;
    }
    
    .tabla-estructura {
        font-size: 0.9rem;
    }
    
    .tabla-estructura th,
    .tabla-estructura td {
        padding: 8px 10px;
    }
    
    .acciones-importacion {
        flex-direction: column;
        align-items: center;
    }
    
    .boton-importar,
    .boton-cancelar-importacion {
        width: 100%;
        max-width: 300px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contenedor-botones-principales {
        flex-direction: column;
        align-items: center;
    }
    
    .boton-nuevo-plato {
        width: 100%;
        max-width: 300px;
    }
    
    .tabla-estructura {
        font-size: 0.9rem;
    }
    
    .tabla-estructura th,
    .tabla-estructura td {
        padding: 8px 10px;
    }
    
    .acciones-importacion {
        flex-direction: column;
        align-items: center;
    }
    
    .boton-importar,
    .boton-cancelar-importacion {
        width: 100%;
        max-width: 300px;
    }
}

/* =============================================
 * 16. REFERENCIA DE ALÉRGENOS PARA IMPORTACIÓN
 * =============================================
 */

.alergenos-referencia {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #B87234;
}

.alergenos-referencia h3 {
    color: #24421C;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.alergenos-referencia p {
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.alergenos-grid.referencia {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.alergeno-referencia {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.alergeno-referencia:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alergeno-referencia img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
}

.nombre-alergeno {
    font-size: 0.75rem;
    font-weight: 600;
    color: #24421C;
    font-family: 'Poppins', sans-serif;
    word-break: break-word;
    text-align: center;
}

/* Responsive para referencia de alérgenos */
@media (max-width: 1024px) {
    .alergenos-grid.referencia {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .alergenos-grid.referencia {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .alergenos-grid.referencia {
        grid-template-columns: repeat(3, 1fr);
    }
}