/* Reset de márgenes y paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body general */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Esto asegura que el body ocupe al menos el 100% de la altura de la ventana */
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #1e3c72, #2a5298); /* Degradado azul */
    color: #fff;
}

/* Encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.3s ease;
}

/* Logo */
.logoinicio {
    max-width: 100px;
}

/* Menú normal (para escritorio) */
nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: inline-block;
    border-radius: 5px;
}

nav ul li a:hover {
    background: rgba(169, 169, 169, 0.3);
}

/* Estilos para el main */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
    
}

.hero {
    text-align: center;
    padding: 80px 30px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    margin-top: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero .btn {
    text-decoration: none;
    background-color: #3155A7;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    
}

.hero .btn:hover {
    background-color: #4a7eb6;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 50px 0;
    margin-top: 50px;
}

footer p {
    font-size: 1rem;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    /* Ocultar el menú normal en móviles */
    nav ul {
        display: none;
    }
    
    /* Mostrar el menú hamburguesa en móviles */
    .hamburguer-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .hamburguer-menu .bar {
        width: 30px;
        height: 4px;
        background-color: #fff;
        margin: 5px 0;
        transition: 0.4s;
    }

    /* Menú desplegable cuando se hace clic en el hamburguesa */
    .nav-links {
        list-style-type: none;
        display: none;
        flex-direction: column;
        padding: 0;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        text-align: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateY(0);
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
        opacity: 0;
        animation: slideIn 0.3s forwards;
    }

    .nav-links li:nth-child(1) {
        animation-delay: 0.2s;
    }

    .nav-links li:nth-child(2) {
        animation-delay: 0.3s;
    }

    .nav-links li:nth-child(3) {
        animation-delay: 0.4s;
    }

    .nav-links li:nth-child(4) {
        animation-delay: 0.5s;
    }

    .nav-links li:nth-child(5) {
        animation-delay: 0.6s;
    }

    .nav-links li:nth-child(6) {
        animation-delay: 0.7s;
    }

    /* Efecto de deslizamiento */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Estilos para el main */
    main {
        padding: 20px;
    }
}
