@font-face {
    font-family: 'ArchivoBlack';
    /* Nombre que le darás a tu fuente */
    src: url('../images/fonts/Archivo_Black/ArchivoBlack-Regular.ttf');
    /* Ruta relativa al archivo de fuente */
}

@font-face {
    font-family: 'Dancing';
    /* Nombre que le darás a tu fuente */
    src: url('../images/fonts/Dancing_Script/DancingScript-VariableFont_wght.ttf');
    /* Ruta relativa al archivo de fuente */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    background-image: linear-gradient(to right,
            rgb(167, 189, 193)0%,
            rgb(207, 223, 229) 40%,
            rgb(207, 208, 229) 75%,
            rgb(250, 248, 248)100%);
    /* background-color: rgb(250, 248, 248); */
    height: 200px;
}

main {
    flex: 1;
    /* Permite que el main ocupe el espacio restante */
    background-image: url('../images/fondo01.png');
    background-repeat: no-repeat;
    background-size: cover;
}

#inicio {
    background-image: radial-gradient(circle at 50% 50%, rgba(106, 24, 188, 0.3), rgba(217, 20, 20, 0.1));
    border-top: 8px double #bcbcbc;
    border-bottom: 8px double #bcbcbc;
    position: relative;

}

#menuDiv {
    width: 100%;
    height: 100%;
    /* Ajusta la altura al 100% del contenedor padre */
    position: absolute;
    top: 0;
    left: 0;
}

#buttonDiv {
    display: grid;
    grid-template-columns: 1fr 10fr 1fr;
    /* height: 100%; */


}

.buttonMenu {
    border-radius: 8px;
    border: 1px solid #ccc;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0 8px;
    margin-bottom: 20px;
    color: white;
    height: 25px;
    text-decoration: none;
}

.buttonMenu a {
    text-decoration: none;
    color: white;
}

.buttonMenu:hover {
    background-color: rgba(157, 203, 218, 0.2);
    color: white;
    border: 1px solid white;
    transition: background-color 0.3s ease;
}

@keyframes rotar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#fondoHeader {
    opacity: 0.5;
}

#fondoHeader02 img {
    width: 150px;
    border-radius: 80px;
    margin-left: 60px;
    animation: rotar 150s linear infinite;
}

.parrafoInicioClass {
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
    font-weight: bolder;
    font-size: 4em;
    font-family: Dancing;
    /* color: #2f0aa7; */
    color: white;
    text-shadow: 3px 3px 2px rgb(16, 37, 114);
}

#aparte {
    /* color: rgba(106, 24, 188, 1); */
    font-family: ArchivoBlack;
    text-shadow: -2px -2px 2px rgb(78, 78, 79);
    color: white;
    opacity: 0.3;
    margin-right: 50px;
}

footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
}

/* sección nueva */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.info {
    margin-bottom: 20px;
}

.footer-links li {
    display: inline;
    margin-right: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

footer {
    border-top: 1px solid #444;
}

/* RESPONSIVE DESIGN - Solo cambios para móvil */
@media (max-width: 768px) {
    #fondoHeader {
        display: none;
    }

    #fondoHeader02 {
        width: 100%;
    }

    #fondoHeader02 img {
        width: 50px;
        border-radius: 80px;
        margin-left: 5px;
    }

    header {
        justify-content: space-around;
    }

    /* Añadir funcionalidad hamburguesa al logo */
    #logoDiv {
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    #logoDiv:hover {
        transform: scale(1.05);
    }

    #logoDiv.active {
        transform: scale(0.95);
    }

    /* MENÚ MÓVIL DESLIZANTE DESDE LA IZQUIERDA */
    #menuDiv {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(106, 24, 188, 0.9) 0%,
            rgba(217, 20, 20, 0.8) 50%,
            rgba(167, 189, 193, 0.9) 100%);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }

    #menuDiv.menu-open {
        left: 0;
    }

    #buttonDiv {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px;
        gap: 20px;
        height: auto;
        grid-template-columns: none;
    }

    .buttonMenu {
        width: 100%;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        text-align: center;
        font-size: 1.1em;
        height: auto;
        margin-bottom: 0;
        transition: all 0.3s ease;
    }

    .buttonMenu:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: translateX(5px);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .buttonMenu a {
        color: white;
        font-weight: 500;
    }

    /* Ocultar los elementos <p> vacíos en móvil */
    #buttonDiv p {
        display: none;
    }
}

/* Breakpoint adicional para móviles muy pequeños */
@media (max-width: 480px) {
    #menuDiv {
        width: 250px;
    }
    
    #buttonDiv {
        padding: 70px 15px 15px;
    }
    
    .buttonMenu {
        padding: 12px 15px;
        font-size: 1em;
    }
}
