/* styles.css */
@import url('carta.css');
@import url('galeria.css');
@import url('index.css');
@import url('contacto.css');
@import url('entretenimiento.css');

/* ========== ESTILOS GENERALES ========== */

body {
    font-family: Arial, sans-serif;
    background-color: #f3e9e9;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========== ENCABEZADO ========== */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f3e9e9;
    padding: 10px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px;
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

/* ========== MENÚ DE NAVEGACIÓN ========== */

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* ========== CUERPO PRINCIPAL ========== */

main {
    margin-top: 0px;
    min-height: 100vh;
    background-color: white;
    background-image: url('/static/img/fondo/fondo.jpg');
    background-size: cover;
    background-repeat: repeat;
    background-position: center top;
    padding-bottom: 100px; /* Para evitar que se pegue al footer */
}

/* ========== FOOTER ========== */

footer {
    text-align: center;
    padding: 10px;
    background-color: #a59595;
    color: #333;
    box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    bottom: 0;
    width: 100%;
}

/* ========== MEDIA QUERIES ========== */

/* Para móviles */
@media (max-width: 768px) {
    main {
        background-size: contain; /* La imagen se ajustará sin cortarse */
        background-position: center;
    }

    /* Encabezado */
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 0;
    }

    .social-icons {
        order: 1; /* Mover redes arriba */
    }

    .logo {
        order: 2;
        margin: 10px 0;
    }

    nav {
        order: 3;
        width: 100%;
    }

    /* Menú de navegación */
    nav ul {
        display: flex;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan en varias líneas */
        justify-content: space-around; /* Distribuye el espacio entre los elementos */
        gap: 10px; /* Espacio entre elementos */
    }

    nav ul li {
        flex: 1 1 30%; /* Cada elemento ocupa el 30% del ancho disponible */
        text-align: center;
        margin: 5px 0;
    }

    /* Asegura que solo haya 3 elementos en la primera fila */
    nav ul li:nth-child(-n+3) {
        flex-basis: 30%; /* Ancho fijo para los primeros 3 elementos */
    }

    /* Asegura que los últimos 2 elementos ocupen el 45% del ancho */
    nav ul li:nth-child(n+4) {
        flex-basis: 45%; /* Ancho fijo para los últimos 2 elementos */
    }

    /* Footer */
    footer {
        position: fixed;
        bottom: 0;
        width: 100%;
    }
}