body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('FONDO\ PAGINA.jpg'); /* Coloca tu imagen de fondo aquí */
    background-size: cover; /* Hace que la imagen cubra todo el fondo */
    background-position: center; /* Centra la imagen de fondo */
    background-repeat: no-repeat; /* Evita que la imagen de fondo se repita */
    position: relative;
}

.overlay {
    position: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 43, 43, 0.2); /* Color negro con transparencia */
    backdrop-filter: blur(1px); /* Aplica un desenfoque de px al fondo */
    z-index: -1; /* Coloca la capa de fondo por detrás del contenido */
}

.content {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.11);
    padding: 20px;
    border-radius: 10px;
}

.wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    height: auto;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.507);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 10px 20px 25px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.menu-button {
    margin: 0px;
    padding: 10px 20px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    text-align: center; /* Centra el texto */
    box-sizing: border-box; /* Incluye padding en el ancho total */
    font-family: Italiana; /* Cambia el tipo de letra */
    font-size: 14px;
    border-radius: 30px;
}

@font-face {
    font-family: Italiana;
    src: url(AvenirLTStd-Medium.otf);
  }

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Espacio entre los botones */
}

.menu-button span {
    position: absolute;
    display: block;
}

.menu-button:hover {
    background-color: #686868;
}

@media (min-width: 768px) {
    .menu-button {
        min-width: 300px; 
        max-width: 300px; 
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .wrapper {
        min-width: auto; /* Permite que los botones se ajusten en pantallas pequeñas */
        width: auto;
        white-space: normal; /* Permite que el texto se divida en varias líneas */
        padding: 40px 20px; /* Ajusta el padding en pantallas pequeñas */
    }
}

@media (max-width: 768px) {
    .menu-button {
        min-width: auto; /* Permite que los botones se ajusten en pantallas pequeñas */
        width: auto;
        white-space: normal; /* Permite que el texto se divida en varias líneas */
        padding: 14px 30px; /* Aumenta el padding para pantallas pequeñas */
    }
}

@media (max-width: 600px) {
    .logo {
        max-width: 500px;
    }
}

.logo {
    max-width: 350px; /* Limita el tamaño máximo del logo */
    height: auto;
    margin-bottom: 0px; /* Espacio entre el logo y los botones */
    display: block; /* Asegura que la imagen se comporte como un bloque */
}

.logo-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Añadir espacio entre los logos */
    width: 100%;
    margin-bottom: 10px;
}

button {
    width: 100px;        
    height: 70px;
    background: linear-gradient(to left top, #ffffffad 50%, #ffffffad 50%);
    border-style: none;
    color: #fff;
    font-size: 14px;
    letter-spacing: 3px;
    font-family: 'Lato';
    font-weight: 600;
    outline: none;
    cursor: pointer;
    position: relative;
    padding: 0px;
    overflow: hidden;
    transition: all .5s;
    box-shadow: 0px 5px 10px rgb(100, 100, 100);
}

button span {
    position: absolute;
    display: block;
}

button span:nth-child(1) {
    height: 3px;
    width: 200px;
    top: 0px;
    left: -200px;
    background: linear-gradient(to right, rgba(0,0,0,0), #ffffff);
    border-top-right-radius: 1px;
    border-bottom-right-radius: 1px;
    animation: span1 2s linear infinite;
    animation-delay: 1s;
}

@keyframes span1 {
    0% {
        left: -200px
    }
    100% {
        left: 200px;
    }
}

button span:nth-child(2) {
    height: 70px;
    width: 3px;
    top: -70px;
    right: 0px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), #ffffff);
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    animation: span2 2s linear infinite;
    animation-delay: 2s;
}

@keyframes span2 {
    0% {
        top: -70px;
    }
    100% {
        top: 70px;
    }
}

button span:nth-child(3) {
    height: 3px;
    width: 200px;
    right: -200px;
    bottom: 0px;
    background: linear-gradient(to left, rgba(0,0,0,0), #ffffff);
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
    animation: span3 2s linear infinite;
    animation-delay: 3s;
}

@keyframes span3 {
    0% {
        right: -200px;
    }
    100% {
        right: 200px;
    }
}

button span:nth-child(4) {
    height: 70px;
    width: 3px;
    bottom: -70px;
    left: 0px;
    background: linear-gradient(to top, rgba(0,0,0,0), #ffffff);
    border-top-right-radius: 1px;
    border-top-left-radius: 1px;
    animation: span4 2s linear infinite;
    animation-delay: 4s;
}

@keyframes span4 {
    0% {
        bottom: -70px;
    }
    100% {
        bottom: 70px;
    }
}

button:hover {
    transition: all .5s;
    transform: rotate(-1.5deg) scale(1.1);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.6);
}

button:hover span {
    animation-play-state: paused;
}

/*  footer   */
footer {
    background-color: #000000;
    color: #ffffff;
    font-size: 15px;
    bottom: 0;
    position: fixed;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;
    border-radius: 0 0 10px 10px;
}

footer p {
    margin: 10px 0;
    font-family: Arial, Helvetica, sans-serif;
}

@media only screen and (max-width: 600px) {
    .logo {
        max-width: 300px; /* Ajusta el tamaño máximo de los logos */
        margin: 5px; /* Reduce el margen */
    }

    .logo-container {
        flex-direction: row; /* Cambia la dirección de los logos a fila */
        align-items: center; /* Centra los logos */
        gap: 10px; /* Añadir espacio entre los logos */
    }

    .button-container {
        width: 100%; /* Asegura que el contenedor de botones use todo el ancho disponible */
        display: flex;
        flex-direction: column; /* Apila los botones verticalmente */
        align-items: center; /* Centra los botones */
        gap: 10px; /* Espacio entre los botones */
    }

    .menu-button {
        width: 50px; /* Asegura que los botones usen todo el ancho disponible */
        padding: 10px 20px; /* Ajusta el padding */
        font-size: 15px; /* Ajusta el tamaño de fuente */
    }

    footer {
        font-size: 14px; /* Ajusta el tamaño de fuente del pie de página */
    }
}

/* Añade estos estilos nuevos al CSS existente */

.button-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.menu-button {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* Ajusta los media queries para la responsividad */
@media (max-width: 768px) {
    .button-grid {
        gap: 10px;
    }
    
    .button-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .menu-button {
        width: 90%;
        max-width: none;
    }
}