/* public/css/styles.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFFFFF; /* ⚪ Blanco: Fondo súper limpio y moderno */
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #C1121F; /* 🔴 Rojo oscuro: Atractivo y abre el apetito */
    padding: 15px 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFD166; /* 🟡 Amarillo vibrante que hace un contraste hermoso y elegante contra el azul marino */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Sombra para darle profundidad */
}

/* =========================================
   NAVBAR (NUEVO DISEÑO DIVIDIDO)
   ========================================= */
.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-user-links {
    font-size: 18px;
}

.nav-user-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
    transition: 0.3s;
}

.nav-user-links a:hover {
    color: #FFD166;
}

.navbar-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.navbar-bottom a {
    color: #CAF0F8;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}

.navbar-bottom a:hover {
    color: #FFD166;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding: 8px;
    width: 250px;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-bar button {
    background: transparent;
    border: none;
    color: #FFD166;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

.search-bar button:hover {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .navbar-top, .navbar-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .nav-user-links a {
        margin: 0 10px;
    }
}

/* =========================================
   NUEVO LOGO TIPO INSIGNIA (BADGE)
   ========================================= */
.logo-badge {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.logo-badge:hover {
    transform: scale(1.05);
}

.logo-icon {
    color: #FFD166;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    margin-right: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes animacionLogo {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(15deg) scale(1.15); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.logo-icon i,
.logo-icon img {
    animation: animacionLogo 1.5s infinite ease-in-out;
}

.logo-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3)); /* Mantiene la sombra de profundidad */
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #FFD166;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text span {
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contenedor {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
}

.contenedor h2 {
    color: #C1121F; /* 🔴 Rojo oscuro */
}

.contenedor p {
    color: #555555; /* Un gris neutro para que la vista no se canse al leer */
    font-size: 18px; 
    margin-bottom: 30px;
}

.btn-llamativo {
    background-color: #F77F00; /* 🟠 Naranja vibrante: Excelente para llamar a la acción */
    color: #FFFFFF; /* ⚪ Blanco: Para el texto del botón */
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(247, 127, 0, 0.3);
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.foto-restaurante, .foto-platillo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.placeholder-img {
    width: 100%;
    height: 180px;
    background: #f4f7f6;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.btn-llamativo:hover {
    background-color: #C1121F; /* 🔴 Rojo oscuro */
    transform: scale(1.05);
}
/* Estilos para la lista de locales (Tarjetas) */
.grid-locales {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tarjeta-local {
    background-color: #FFFFFF;
    border: none;
    border-top: 5px solid #FFD166; /* Borde amarillo superior */
    border-radius: 20px;
    padding: 25px;
    width: 320px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardEntrance 0.6s ease-out forwards;
}

.tarjeta-local:hover {
    transform: translateY(-15px) scale(1.02); /* Efecto de flotar más dinámico */
    box-shadow: 0 20px 40px rgba(193, 18, 31, 0.15);
    border-top-color: #FF9F1C; /* Cambia a naranja al pasar el mouse */
}

.tarjeta-local:hover .foto-restaurante,
.tarjeta-local:hover .foto-platillo,
.tarjeta-local:hover .placeholder-img {
    transform: scale(1.05); /* Efecto de Zoom en la imagen */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: #FF9F1C; /* Pinta el ícono vacío de naranja */
}

.tarjeta-local h3 {
    color: #C1121F; /* Rojo oscuro */
    margin-top: 0;
}

.tarjeta-local p {
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.etiqueta-estado {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.estado-abierto {
    background-color: #8AC926; /* Verde agradable */
}

.estado-cerrado {
    background-color: #7f8c8d; /* Gris para cerrado */
}

/* Nuevo estilo para el botón "Volver al inicio" */
.btn-volver-inicio {
    background: linear-gradient(135deg, #C1121F 0%, #780000 100%);
    color: #FFFFFF !important;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(193, 18, 31, 0.3);
    animation: floatButton 3s infinite ease-in-out;
}

.btn-volver-inicio:hover {
    background: linear-gradient(135deg, #F77F00 0%, #C1121F 100%);
    color: #FFFFFF;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(247, 127, 0, 0.4);
}

.btn-volver-inicio::before {
    content: '←';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-volver-inicio:hover::before {
    transform: translateX(-5px);
}

@keyframes floatButton {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}