body {
    background: url('../img/fondo.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    position: relative;
    overflow-y: auto; 
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.menu-container,
.tarjeta {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    margin: 20px; 
    text-align: center; 
    max-width: 900px; 
    margin: 20px auto; 
}

/* Header común */
.tarjeta-header,
.menu-header {
    background-color: #004aad;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    text-align: center; 
    font-family: 'Playfair Display', serif;
}

.tarjeta-contenido-adicional h1 {
    font-size: 1.5em;
    margin-bottom: 15px;
    animation: cambioColor 5s infinite;
}

.tarjeta-contenido-adicional p {
    font-size: 1.2em;
    margin: 3px 0; 
    line-height: 1.6;
}

@keyframes cambioColor {
    0% { color: #004aad; } /* Color inicial */
    50% { color: #acb0cf; } /* Primer color de cambio */
    100% { color: #004aad; } /* Vuelve al color inicial */
}

.tarjeta-contenido,
.menu-contenido {
    text-align: center; 
}

/* Estilos específicos para pantallas más pequeñas */
@media (max-width: 768px) {
    .tarjeta-contenido,
    .menu-contenido {
        /* Ajustes responsivos para pantallas más pequeñas */
        font-size: 14px; /* Ajusta el tamaño del texto según tus preferencias */
        /* Otros estilos responsivos que desees agregar */
    }
}

.tarjeta-logo,
.menu-logo {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.tarjeta-descripcion,
.menu-descripcion {
    font-family: 'Playfair Display', serif;
    margin: 15px 0; 
}

.tarjeta-contenido-adicional,
.menu-contenido-adicional {
    margin-top: 20px;
    color: #2a2a2a;
    font-family: 'Playfair Display', serif;
}


@media (max-width: 768px) {
    .tarjeta-header h1,
    .menu-header h1 {
        font-size: 1.5em;
    }

    .tarjeta,
    .menu-container {
        max-width: 100%; 
    }
}

/* Loader */
#g-load {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.load {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #1e60b7;
    border-top: 3px solid transparent;
    position: relative;
    animation: rotate 0.8s linear infinite; 
}


@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    text-align: center;
    background-color: #fff;
    border: 5px solid #004aad;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

.popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none; 
}
@media (max-width: 767px) {
    .popup {
        width: 90%;
    }
}

.redes-sociales {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 40px;
}

.red-social-icon {
    background-color: #000000;
    color: #fff;
    border-radius: 50%;
    padding: 15px; /* Ajusta el espacio interno para un círculo más grande */
    font-size: 20px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px; /* Ajusta el margen entre los íconos */
}

.red-social-icon:hover {
    background-color: #c1c1c192;
}

@media (max-width: 768px) {
    .redes-sociales {
        flex-wrap: wrap; /* Permite que los íconos se envuelvan en pantallas más pequeñas */
        justify-content: center; /* Centra los íconos en pantallas más pequeñas */
    }

    .red-social-icon {
        margin: 5px; /* Ajusta el margen entre los íconos en pantallas más pequeñas */
    }
}
