*{
    margin: 0;
    padding: 0;
    box-sizing: content-box;
}
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
}
.MenuBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e1e1e;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-links a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #e50914;
}
.social-icons img {
    height: 24px;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}
.social-icons img:hover {
    transform: scale(1.1);
}
#LG1{
    height: 44px;
    margin-right: 10px;
    border-radius: 50px;
}
.LinksS1{
    align-items: center;
    display: flex;
}
#LGSM{
    height: 62%;
    margin-right: 10px;
}
#LGSM1{
    height: 160%;
}
.Seccion1 {
    position: relative;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('background.jpeg') center/cover no-repeat;
}
.Seccion1 img {
    border-radius: 50%;
    border: 3px solid #e50914;
}
#IMGcentralS1{
    height: 100px;
    width: auto;
}
.Seccion2 {
    padding: 20px;
    color: #fff;
}
#TituloS2{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 36px;
}
#text1S2{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 42px;
}
.LibrosSection {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    align-items: stretch; /* ensures equal height cards */
}
.LibrosSection::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.LibroCard {
    min-width: 200px;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.LibroCard img,
.LibroCard canvas {
    flex-shrink: 0;
}
.LibroCard p {
    flex-grow: 1;
}
.BookTitle {
    font-weight: 600;
    margin: 10px 0;
    font-size: 16px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.VerMasBtn {
    background-color: #e50914;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    margin: 10px auto 0 auto;
    align-self: center;
}
.VerMasBtn:hover {
    background-color: #f40612;
}
.DerechosReservados{
    font-size: 10px;
    color: white;
    height: max-content;
    background-color: #ffb296;
    padding: 2px;
}

.pdf-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #222;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-overlay {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    padding: 10px;
    z-index: 999;
    width: 200px;
}
.nav-overlay.active {
    display: flex;
}
.nav-overlay a {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}
.nav-overlay a:hover {
    color: #e50914;
}
.close-overlay {
    display: none;
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

@media screen and (max-width: 600px) {
    .LibroInfo{
        width: 100%;
    }
    /* Removed flex-direction: column to keep horizontal scroll */
    /*
    .LibrosSection{
        flex-direction: column;
    }
    */
    .instaa{
    display: block !important;
    }
    #LGSM1, #LGSM {
        display: none;        
    }
}