/* ======== CONFIGURACIÓN GENERAL ======== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #ffe6f7;
    color: #333;
    line-height: 1.6;
}
/* ======== BACKGROUND ======== */
body{
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    image-rendering: auto;
    font-family: 'Arial', sans-serif;
    color: #572364;
    margin: 0;
}


/* ======== ENCABEZADO ======== */
header {
    background-color: #7b0099;
    color: white;
    text-align: center;
    padding: 15px 0;
    border-bottom: 5px solid #ff66cc;
}

header .logo {
    width: 250px;
    height: auto;
}




/* ======== MENÚ DE NAVEGACIÓN ======== */
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
    padding: 5px 10px;
    border-radius: 6px;
}


/* ======== CUERPO PRINCIPAL ======== */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

main h2 {
    color: #7b0099;
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

main p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* ======== IMÁGENES ======== */
.img-index {
    display: block;
    margin: 25px auto;
    width: 60%;
    max-width: 420px;
    height: auto;
    border-radius: 10px;
    border: 3px solid #ff66cc;
    object-fit: cover;
}

main img {
    display: block;
    margin: 20px auto;
    width: 70%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    border: 3px solid #ff66cc;
    object-fit: cover;
}


/* ======== PIE DE PÁGINA ======== */
footer {
    background-color: #7b0099;
    color: white;
    text-align: center;
    padding: 10px 0;
    border-top: 5px solid #ff66cc;
    font-size: 0.95em;
}

/* ======== SECCIÓN: PERSONAJES ======== */
.personajes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.personaje {
    background-color: #fff0fa;
    border: 2px solid #ff66cc;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}


.personaje img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #ff66cc;
    margin: 10px auto;
    display: block;
}



.personaje h3 {
    color: #7b0099;
    margin-top: 10px;
}

.personaje p {
    font-size: 0.95em;
}

/* ======== SECCIÓN: CURIOSIDADES ======== */
.curiosidades {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.curiosidades h2 {
    text-align: center;
    color: #7b0099;
    font-size: 2em;
    margin-bottom: 20px;
}

.curio-box {
    background-color: #fff0fa;
    border: 2px solid #ff66cc;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.curio-box h3 {
    color: #7b0099;
    margin-bottom: 10px;
}

.curio-box p {
    color: #333;
}

.img-curiosidades {
    display: block;
    margin: 25px auto;
    width: 70%;
    max-width: 500px;
    border-radius: 10px;
    border: 3px solid #ff66cc;
}


/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    main {
        margin: 15px;
        padding: 15px;
    }

    .personajes-grid {
        grid-template-columns: 1fr;
    }
}
