/* Importar fuentes */
@import url('https://fonts.cdnfonts.com/css/space-age');
@font-face {
    font-family: 'EspaceAge';
    src: url('https://umbralesdeltiempo.cl/assets/fuentes/space_age.ttf?v=1.0') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fuentes/Roboto/static/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Estilos generales */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: url('assets/imagenes/HomeFondo.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Space Age', sans-serif;
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700;
}

h1 {
    font-size: 3em;
    text-align: center;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}


/* Encabezado */

header {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #00d9ff;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav a:hover {
    color: #00d9ff;
    text-shadow: 0 0 5px #00d9ff;
}

nav a:hover::after {
    transform: scaleX(1);
}


/* Secciones principales */

main {
    padding: 20px;
}

section {
    padding: 50px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    border: 1px solid #ffd700;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    position: relative;
}

section h2 {
    font-size: 2em;
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700;
    margin-bottom: 20px;
}

section p {
    font-size: 1em;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}


/* Introducción */

#introduccion {
    padding-top: 140px;
    text-align: center;
}

#introduccion p {
    font-size: 1.1em;
    text-align: justify;
    line-height: 1.8;
}


/* Libros */

.libro {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.libro img {
    max-width: 200px;
    height: auto;
    margin-right: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.libro-descripcion {
    flex-grow: 1;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}


/* Botones genéricos */

.btn-generico {
    background-color: #0454e9;
    margin-left: 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    text-align: center;
    flex-grow: 1;
}

.btn-generico:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn-dorado {
    background-color: #ffd700;
    color: #000;
}

.btn-dorado:hover {
    background-color: #ccac00;
}


/* Personajes */

.personaje {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
    width: 80%;
    margin: 30px auto;
    position: relative;
    padding-bottom: 30px;
    border-bottom: 2px solid #ffd700;
}

.personaje img {
    max-width: 200px;
    height: auto;
    margin-left: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.personaje h3 {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 10px;
}

.personaje-descripcion {
    flex-grow: 1;
    text-align: justify;
    color: #fff;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}


/* Rasgos y habilidades */

.personaje-rasgos,
.personaje-habilidades {
    margin-top: 15px;
}

.personaje-rasgos h4,
.personaje-habilidades h4 {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 10px;
}

.personaje-rasgos ul,
.personaje-habilidades ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.personaje-rasgos li,
.personaje-habilidades li {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.personaje-rasgos li:hover,
.personaje-habilidades li:hover {
    background: #00d9ff;
    transform: scale(1.1);
}


/* Opiniones */

#opiniones {
    text-align: center;
    padding: 50px;
    background: rgba(0, 0, 0, 0.7);
}

#opiniones p {
    font-size: 1.1em;
    margin-bottom: 20px;
}


/* Autor */

.autor-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
}

.autor-descripcion {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.autor-descripcion p {
    font-size: 1em;
    line-height: 1.6;
}


/* Footer */

footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
    filter: brightness(1) invert(0);
    transform: scale(1.2);
}

footer p {
    font-size: 0.9em;
    opacity: 0.8;
}


/* Página de contacto */

#contacto {
    text-align: center;
    padding: 50px;
    margin: 20px auto;
    width: 90%;
    border: 2px solid #ffd700;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.opciones-contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* Mayor espacio entre los enlaces */
    margin-top: 40px;
    /* Espacio superior adicional */
}

.titulo-con-imagen {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.imagen-superpuesta {
    width: 30%;
    height: auto;
    margin-bottom: 10px;
}

.enlace-contacto {
    color: #ffffff;
    text-decoration: none;
    font-family: 'EspaceAge', sans-serif;
    font-size: 1.2em;
    position: relative;
    padding: 10px 20px;
    /* Espaciado interno */
    border-radius: 5px;
    /* Bordes redondeados */
    background: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro semitransparente */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    /* Sombra dorada */
    transition: all 0.3s ease;
    /* Transición suave */
}

.enlace-contacto::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5;
    width: 100%;
    height: 2px;
    background-color: #ffd700;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.enlace-contacto:hover {
    color: #00d9ff;
    /* Cambia el color del texto al pasar el mouse */
    text-shadow: 0 0 10px #00d9ff, 0 0 20px #00d9ff;
    /* Brillo azul neón */
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
    /* Sombra azul intensa */
    transform: scale(1.05);
    /* Efecto de escala */
}

.enlace-contacto:hover::after {
    transform: scaleX(1);
}


/* Responsive */

@media (max-width: 768px) {
    /* Encabezado */
    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    nav a {
        font-size: 1.1em;
    }
    .libro,
    .personaje {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .libro img,
    .personaje img {
        margin: 0 auto 20px;
    }
    /* Sección de contacto */
    .opciones-contacto {
        gap: 20px;
        /* Reduce el espacio en pantallas pequeñas */
    }
    /* Footer */
    .social-icons {
        flex-direction: column;
        gap: 10px;
    }
    .social-icons img {
        width: 40px;
        height: 40px;
    }
}