@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

body {
    color: #8A2BE2;
    background-image: url('../icono/85163.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    scrollbar-color: #8A2BE2 #0c0c0c;
    scrollbar-width: thin;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #8A2BE2;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    margin: 2%;
}

h2 {
    font-size: 1.8rem;
}

p {
    text-align: center;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #8A2BE2;
    line-height: 1.5;
    margin-bottom: 1rem;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.container {
    background-color: rgba(0, 0, 0, 0.7);
    margin: 2% auto;
    padding: 3%;
    max-width: 1000px;
    border-radius: 8px;
}

nav a {
    text-decoration: none;
    color: #8A2BE2;
    display: block;
    padding: 15px 20px;
    font-family: 'Quicksand', sans-serif;
}

header {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin: 2% auto;
    max-width: 1000px;
    border-radius: 8px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.0);
}

nav ul {
    display: flex;
}

nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #AD83E2;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.9);
        position: absolute;
        top: 80px;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    nav ul.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: #8A2BE2;
        font-family: 'Quicksand', sans-serif;
    }
    .container {
        margin: 5% auto;
        padding: 5%;
    }
    header {
        margin: 5% auto;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}

#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 4em;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
    pointer-events: all;
}
#splashScreen.hidden {
    opacity: 0;
    pointer-events: none;
}

.logo {
    animation: fadeInScale 2s ease-out forwards;
    transform-origin: center center;
    max-width: 80px;
    height: auto;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    text-align: center;
    margin-bottom: 1.5rem;
}

h1:hover {
    transform: scale(1.02);
    color: #AD83E2;
}

.modal-biografia {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 15px;
}
.modal-contenido {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    position: relative;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cerrar-modal {
    position: sticky;
    top: 0;
    float: right;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #AD83E2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 10000;
    padding: 5px;
}
.cerrar-modal:hover {
    color: white;
}

hr {
    border: 0;
    height: 1px;
    background: #8A2BE2;
    margin: 20px 0;
}

.modal-contenido h1,
.modal-contenido h2 {
    text-align: left;
}
.modal-contenido ul {
    margin-left: 20px;
    list-style-type: disc;
}
.modal-contenido ul li {
    margin-bottom: 8px;
}
.modal-contenido img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}
.modal-contenido p {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}