/* ----------------------- */
/* -- BODY y CONSTANTES -- */
/* ----------------------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&display=swap');
* {
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace;
}
body {
    background-color: #ddd;
}
p {
    line-height: 1.5;
    font-size: 1.1rem;
}


h1 {
    font-size: 2.5em;
    font-weight: 900 !important;
    font-family: Verdana, Geneva, Tahoma, sans-serif !important;
}



/* ------------ */
/* -- HEADER -- */
/* ------------ */
/* Estilo del Header */
#header {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #333;
    box-shadow: 0px 0px 5px 1px #000000b6;
    color: #fff;
    font-family: Arial, sans-serif;
    position: fixed;
    top: 0;
}
/* Estilos del Título dentro del Header */
#header h1 {
    font-size: 1.5rem;
    color: #E9DEAF;
    margin: 0;
}
/* Contenedor del Conmutador de Tema */
.theme-toggle {
    display: flex;
    margin-right: 0;
    align-items: center;
}
/* Estilos del Conmutador de Tema */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
#input {
    opacity: 0;
    width: 0;
    height: 0;
}
/* Estilos del Slider en Estado Normal y Activado */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(#5b5b5b, #555555);
    transition: 0.4s;
    border-radius: 34px;
}
#input:checked + .slider {
    background-image: linear-gradient(#00000065, #8d8d8d);
}
#input:focus + .slider {
    box-shadow: 0 0 1px #ffe600;
}
/* Control del Toggle (Círculo dentro del Slider) */
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #D4D0BC;
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: inset 8px -4px 1px 0 #FAF8ED;
}
#input:checked + .slider:before {
    transform: translateX(26px);
    background-image: radial-gradient(#E9DEAF, #fff261);
    box-shadow: none;
}











/* ---------- */
/* -- MAIN -- */
/* ---------- */
/* Contenido Principal */
#main {
    width: 100%;
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

#cont {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Animación del Título de Sección */
#h1_section {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    animation: colores 5s infinite;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Tarjeta de Libro con Tamaño Medio */
.caja_art {
    width: 280px;  /* Ancho ajustado a tamaño medio */
    padding: 15px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #ddd;
    box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.1), 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.caja_art:hover {
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.2), 0px 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* Estilo del Título de Libro */
.h2_art {
    width: 90%;
    margin-bottom: 10px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 1.3rem;
    color: #333;
    text-align: center;
}
.h2_art_white {
    color: #fff;
}

/* Descripción de ISBN */
.p_arts {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}
.p_arts_n {
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

/* Imagen del Libro */
.imagen_art {
    width: 90%;
    height: 180px; /* Altura media ajustada */
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Enlace de Descarga en Modo Claro */
.links_dia, .links_dia:link, .links_dia:visited {
    color: #333;
    text-decoration: none;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    box-shadow: 0px -3px 3px rgba(155, 155, 155, 0.2);
    transition: all 0.2s ease;
}
.links_dia:hover {
    color: #555;
    background-color: #e0e0e0;
    box-shadow: 0px -4px 6px rgba(53, 53, 53, 0.25);
}

/* Enlace de Descarga en Modo Oscuro */
.links_noche, .links_noche:link, .links_noche:visited {
    color: #fff;
    background-color: #444;
    box-shadow: 0px -3px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}
.links_noche:hover {
    color: #ddd;
    background-color: #333;
    box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.3);
}

/* Estilos Comunes para el Enlace de Descarga */
.links {
    width: 100%;
    height: 45px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0 0 8px 8px;
    padding: 10px;
}

.scroll-trigger {
    width: 100%;
    height: 1px;
}






/* ------------ */
/* -- FOOTER -- */
/* ------------ */
/* Estilos del Footer */
#footer {
    width: 100%;
    padding: 20px 10px;
    background-color: rgba(56, 56, 56, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Información de Contacto o Descripción */
#info_footer {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

#h2_footer {
    color: #fff;
    font-size: 1.4rem;
    margin: 0;
}

/* Contenedor de Elementos en el Footer (por ejemplo, iconos sociales) */
#cont_elems {
    width: 60%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Estilos de los Iconos SVG en el Footer */
.svg_ratio {
    width: 2.1rem;
    height: 2.1rem;
    fill: #fff;
    border-radius: 5px;
    border: 2px solid #34373a50;
    transition: all 0.4s ease-out;
}
.svg_ratio:hover {
    border: 1px solid #fbffd775;
    background-color: #ffffff28;
    box-shadow: 0px 0px 5px 1px #ffffff;
}
.svg_ratio:active {
    border: 1px solid #00000068;
    box-shadow: 0px 0px 10px 1px #8dccc175;
}

/* Copyright */
#copyr {
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Responsividad del Footer */
@media only screen and (max-width: 600px) {
    #cont_elems {
        width: 80%;
    }
    #h2_footer {
        font-size: 1.2rem;
    }
}

@media only screen and (min-width: 900px) {
    #main {
        max-width: 1200px;
    }
}
