/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* Estilos del contenedor principal */
.detalle-establecimiento {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Título principal */
.detalle-establecimiento h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #007bff;
    text-align: center;
}

/* Logo del establecimiento */
.detalle-establecimiento .establecimiento-logo {
    width: 120px; /* Ajusta el tamaño del logo */
    margin: 0 auto 20px;
    display: block;
    border-radius: 10px;
}

/* Estilos de la imagen de la fachada */
.detalle-establecimiento .fachada {
    width: 100%;
    height: 300px; /* Reducción del tamaño de la fachada */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Información del establecimiento */
.detalle-establecimiento p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* Estilo para las secciones de información destacada (dirección, teléfono, etc.) */
.detalle-establecimiento p strong {
    color: #333;
    font-weight: bold;
}

/* Estilo para los botones de acción */
.detalle-establecimiento .btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.detalle-establecimiento .btn:hover {
    background-color: #0056b3;
}

/* Estilo de las secciones */
.detalle-establecimiento .section-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    text-decoration: underline;
}

.detalle-establecimiento .section-content {
    font-size: 16px;
    margin-bottom: 25px;
}

/* Header */
header {
    background-color: #333333;
    color: #fff;
    padding: 10px 0;
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px 20px;
}

.navbar .logo img {
    height: 80px;
}

/* Estilo base para el menú */
nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    position: relative;
    justify-content: center; /* Centrado de los elementos */
    align-items: left;
    z-index: 1000; /* Asegura que el menú esté en su lugar normal en pantallas grandes */
    margin-top: 30px;

}
nav ul.nav-active {
    display: flex;
}

nav ul li {
    margin-left: 20px;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    text-decoration: none;
    margin-top: 5px;
}

/* Estilo del botón de hamburguesa */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    z-index: 2000;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
}



/* Media queries para adaptarlo a pantallas más pequeñas */
@media (max-width: 768px) {
    .detalle-establecimiento h2 {
        font-size: 28px;
    }

    .detalle-establecimiento p {
        font-size: 14px;
    }

    .detalle-establecimiento .btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    /* Ajustar el tamaño de la fachada en pantallas más pequeñas */
    .detalle-establecimiento .fachada {
        height: 200px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%); /* Ocultar el menú */
        transition: transform 0.3s; /* Agregar transición */
        z-index: 1000; /* Asegurar que el menú esté por encima de todo */
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 24px;
        color: #fff;
    }

    .menu-toggle {
        display: flex;
    }

    /* Estilo cuando el menú está activo */
    nav ul.nav-active {
        transform: translateY(0);
    }
    .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: 8px;
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: -8px;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 24px;
        color: #fff;
        text-decoration: none;
        font-weight: 300;
    }
}