body {
    font-family: Arial;
    background-color: black;
    color: white;
    width: 100%;
}

header {
    background-color: darkred;
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style: none;        
    display: flex;           
    justify-content: center;
    background: linear-gradient(to right, black, darkred);
    padding: 15px;
    margin: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;

    padding: 8px 15px;
    border-radius: 5px;

    transition: all 0.3s ease;
}

nav ul li a {
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #00aaff;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    background: red;
    color: white;

    box-shadow: 0 0 10px red;
    transform: scale(1.1);
}

img {
    width: 300px;
    margin: 10px;
}

.personaje {
    position: relative;
    display: inline-block;
}

.descripcion {
    text-align: center;
    margin-top: 20px;
}

.descripcion p {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.personaje:hover .descripcion {
    opacity: 1;
}

footer {
    text-align: center;
    margin-top: 20px;
}

.inicio {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("../img/fondo1.jpg");
}

.historia {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("../img/fondo2.jpg");
}

.personajes {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("../img/fondo3.jpg");
}

.galeria {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("../img/fondo4.jpg");
}

.contacto {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("../img/fondo5.jpg");
}

body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: brightness(0.9); 
}

.logo {
    width: 400px;
    max-width: 90%;
}

header {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("../img/header.jpg");
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 20px 10px;
}

.logo {
    width: 400px;
    max-width: 90%;
    filter: drop-shadow(0px 0px 10px red);
}

.titulo-nordico {
    font-family: 'Cinzel', serif;
    font-size: 60px;
    text-align: center;
    letter-spacing: 6px;
    color: #e6e6e6;
    text-transform: uppercase;

    text-shadow: 
        0px 0px 5px #ffffff,
        0px 0px 10px #00aaff,
        0px 0px 20px #0077ff,
        0px 0px 40px #003366;

    margin: 20px 10px;
}

.titulo-nordico::after {
    content: "";
    display: block;
    width: 220px;
    height: 3px;
    background: linear-gradient(to right, transparent, #00aaff, transparent);
    margin: 15px auto;
}

.inicio-contenido {
    display: flex;
    align-items: flex-start; 
    justify-content: space-around;
    height: 80vh;
    padding: 40px 20px;
}

.texto {
    max-width: 500px;
}

.texto p {
    font-size: 18px;
    margin: 20px 0;
}

.boton {
    display: inline-block;
    padding: 10px 20px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.boton:hover {
    background: darkred;
    box-shadow: 0px 0px 10px red;
}

.imagen img {
    width: 350px;
    transition: 0.3s;
}

.imagen img:hover {
    transform: scale(1.05);
}

.video-section {
    text-align: center;
    margin-top: 30px;
}

video {
    display: block;
    margin: 20px auto;
    width: 60%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.contenedor-personajes {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center; 
    margin-top: 20px;
}

.personaje {
    position: relative;
    width: 300px;
    cursor: pointer;
}

.personaje img {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 0 20px rgba(0,0,0,0.8); 
}

.personaje .descripcion {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;

    opacity: 0;
    transition: 0.4s;
    border-radius: 0 0 10px 10px;
}

.personaje:hover .descripcion {
    opacity: 1;
}

.boton {
    margin: 5px;
}

.formulario {
    max-width: 400px;
    margin: 40px auto;
    padding: 25px;

    background: rgba(0, 0, 0, 0.75);
    border-radius: 12px;

    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.formulario label,
.formulario p {
    display: block;
    margin-top: 10px;
}

.formulario input,
.formulario select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: none;
}

.formulario input[type="radio"],
.formulario input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.formulario button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;

    background: red;
    color: white;
    border: none;
    border-radius: 5px;

    cursor: pointer;
    transition: 0.3s;
}

.formulario button:hover {
    background: darkred;
    box-shadow: 0 0 10px red;
}

.formulario {
    backdrop-filter: blur(6px);
}

nav ul li a.activo {
    color: white;
    background: red;
    padding: 8px 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px red;
}

.formulario {
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.formulario:hover {
    transform: scale(1.01);
}

.galeria-contenedor {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.galeria-contenedor img {
    width: 300px;
    border-radius: 10px;
    transition: 0.3s;
}

.galeria-contenedor img {
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

.botones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.2);

    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: url("../img/humo.png"); /* imagen de humo */
    background-size: cover;

    opacity: 0.1;
    animation: moverHumo 60s linear infinite;

    z-index: -1;
}

@keyframes moverHumo {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-500px, -300px);
    }
}

.galeria-contenedor img {
    width: 300px;
    border-radius: 10px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.galeria-contenedor img:hover {
    transform: scale(1.35) translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
    z-index: 2;
    filter: brightness(1.1);
}

.galeria-contenedor {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    overflow: visible; 
}

.galeria-contenedor:hover img {
    opacity: 0.5;
}

.galeria-contenedor img:hover {
    opacity: 1;
}

