:root {
  --primary-color: #e74c3c;
  --secondary-color: #3498db;
  --dark-bg: #2c3e50;
  --card-bg: #34495e;
  --text-primary: #333;
  --text-secondary: #7f8c8d;
  --border-color: #ecf0f1;
  --hover-color: #c0392b;
  --success-color: #22c55e;
}

/* ===== ESTILOS PARA RECOMENDADOS ===== */
.seccion-recomendados {
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  margin: 1.5rem auto;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: calc(100% - 2rem); /* Limita el ancho en pantallas grandes */
  width: 100%;
  position: relative;
  overflow: hidden;
}

.seccion-recomendados::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c, #f39c12);
  background-size: 300% 100%;
  animation: gradient-shift 3s ease infinite;
}

.titulo-recomendados {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.scroll-recomendados-container {
  position: relative;
  width: 100%;
  padding: 0 1rem;
}

.scroll-recomendados {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding: 0 1rem;
}

.scroll-recomendados::-webkit-scrollbar {
  display: none;
}




/* Modificar la carta recomendada para altura fija */
.recomendado-card {
  flex: 0 0 260px; /* Ancho fijo para las cards */
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--success-color);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease forwards;
  animation-delay: calc(var(--delay, 0) * 0.15s);
  display: flex;
  flex-direction: column;
  height: 350px; /* Altura fija para todas las cartas recomendadas */
}

/* Ajustar el contenido para que ocupe el espacio disponible */
.recomendado-card > div:first-child {
  flex-shrink: 0; /* Evita que la imagen se reduzca */
}

.recomendado-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.3;
  flex-shrink: 0; /* Evita que el título se reduzca */
}

.recomendado-card p {
  font-size: 0.85rem;
  color: #7f8c8d;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Mostrar máximo 3 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1; /* Ocupa el espacio disponible */
}

/* Asegurar que el botón esté siempre al final */
.recomendado-card .btn-ver-menu {
  margin-top: auto; /* Empuja el botón hacia abajo */
  flex-shrink: 0; /* Evita que el botón se reduzca */
}








.recomendado-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Imagen del restaurante recomendado */
.recomendado-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.recomendado-card:hover img {
  transform: scale(1.03);
}





/* Botón ver menú */
.btn-ver-menu {
  width: 100%;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.btn-ver-menu:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Badge de estado abierto/cerrado */
.estado-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.estado-abierto {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.estado-cerrado {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Botones de scroll */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(231, 76, 60, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  background: #c0392b;
  transform: translateY(-50%) scale(1.1);
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .seccion-recomendados {
    margin: 1rem auto;
    border-radius: 12px;
    max-width: calc(100% - 1rem);
  }
  
  .titulo-recomendados {
    font-size: 1.3rem;
    margin: 0 1rem 1rem;
  }
  
  .scroll-recomendados {
    gap: 0.8rem;
    padding: 0.5rem;
    scroll-padding: 0 0.5rem;
  }
  
  .recomendado-card {
    flex: 0 0 220px;
    padding: 1rem;
  }
  
  .recomendado-card img {
    height: 120px;
  }
  
  .scroll-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .seccion-recomendados {
    padding: 1rem 0;
  }
  
  .titulo-recomendados {
    font-size: 1.2rem;
    flex-direction: row;
    gap: 0.3rem;
  }
  
  .recomendado-card {
    flex: 0 0 180px;
  }
  
  .recomendado-card h3 {
    font-size: 1rem;
  }
  
  .recomendado-card p {
    font-size: 0.8rem;
  }
  
  .btn-ver-menu {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .scroll-btn {
    display: none; /* Ocultar en móviles muy pequeños */
  }
}

/* Animaciones */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}


/*MODAL PARA ESTAS SEGURO DE CERRAR SESION*/

/* Modal de confirmación de cierre de sesión */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-message {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  min-width: 100px;
}

.modal-btn-cancel {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.modal-btn-cancel:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.modal-btn-confirm {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.modal-btn-confirm:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Responsive para el modal */
@media (max-width: 480px) {
  .modal-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .modal-icon {
    font-size: 3rem;
  }
  
  .modal-title {
    font-size: 1.3rem;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .modal-btn {
    width: 100%;
  }
}