/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 56px; /* Para compensar el navbar fijo */
}

/* Barra de navegación */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.navbar-brand i {
    color: #ffc107;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Botón de menú en móviles */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
}

/* Botón de añadir restaurante */
#addRestaurantBtn {
    white-space: nowrap;
    transition: all 0.3s ease;
}

#addRestaurantBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 2rem 0 4rem 0;
    position: relative;
    z-index: 1;
}

/* Caja de búsqueda */
.search-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem !important;
}

.search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.search-box .input-group-text {
    border-right: none;
    background-color: #fff;
    border-radius: 8px 0 0 8px;
    padding: 0.5rem 0.75rem;
    color: #6c757d;
}

.search-box .form-control {
    border-left: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    font-size: 1rem;
    height: auto;
    border-color: #dee2e6;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.search-box .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.search-box .btn-primary:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Sección de restaurantes destacados */
.featured-restaurants {
    padding: 1.5rem 0 3rem 0;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
}

/* Tarjetas de restaurantes */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1rem;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Estilos para las estrellas de valoración */
.rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

/* Efecto hover para los botones */
.btn-hover:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background-color: #343a40;
    padding: 2rem 0;
}

/* Estilos para pantallas medianas (tablets) */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .search-box {
        padding: 1.25rem !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    #addRestaurantBtn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Estilos para pantallas pequeñas (móviles) */
@media (max-width: 767.98px) {
    body {
        padding-top: 56px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-box {
        padding: 1rem !important;
        margin: 0 0.5rem;
    }
    
    .search-box .input-group-text {
        padding: 0.5rem 0.75rem;
    }
    
    .search-box .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-box .btn-primary {
        padding: 0.5rem 1rem;
    }
    
    .search-box .btn-primary span {
        display: none;
    }
    
    .search-box .btn-primary i {
        margin-right: 0 !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        background-color: #343a40;
        padding: 1rem;
        margin: 0.5rem -1rem;
        border-radius: 0.25rem;
    }
    
    #addRestaurantBtn {
        margin-top: 0.5rem;
    }
}
