/* ===========================================================
   ESTILOS ESPECÍFICOS PARA LA PÁGINA Libros.html
   (header, hero, grid de libros, badges y "Ver más")
   =========================================================== */

/* Fondo general y tipografía base de la página de libros */
/* Fondo oscuro clásico de Netflix */
.page-libros {
    background-color: #141414;
    color: #e5e5e5;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Modificamos el header para que se funda con la oscuridad */
.site-header {
    background: transparent;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    box-shadow: none;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.main-nav a.active {
    background: #f97316;
    color: #111827;
}

/* ----------------- HERO LIBROS ----------------- */

/* ----------------- HERO LIBROS — ESTILO EDITORIAL PREMIUM ----------------- */

.hero-libros {
    padding: 4.5rem 1.5rem 3.2rem;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 55%),
        radial-gradient(circle at bottom right, rgba(248, 250, 252, 0.06), transparent 55%),
        linear-gradient(135deg, #020617, #020617 30%, #111827 70%, #020617 100%);
    color: #f9fafb;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* halo suave dorado atrás, muy sutil */
.hero-libros::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at top, rgba(251, 191, 36, 0.12), transparent 60%);
    opacity: 0.7;
    filter: blur(2px);
    pointer-events: none;
}

.hero-libros-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* línea pequeña superior: “SDSCreaciones · Ficción adulta” */
.hero-kicker {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(249, 250, 251, 0.65);
    margin-bottom: 0.9rem;
}

/* título principal “Mis libros” con look editorial */
.hero-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2.9rem;
    line-height: 1.1;
    margin: 0;
    color: #f9fafb;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* pequeño subrayado dorado bajo el título */
.hero-title::after {
    content: "";
    display: block;
    width: 110px;
    height: 3px;
    border-radius: 999px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
}

/* leve efecto de degradado en el texto del título */
.hero-title span {
    background: linear-gradient(120deg, #fefce8, #fde68a, #fed7aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* texto de apoyo */
.hero-subtitle {
    margin: 1.4rem auto 0;
    max-width: 640px;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(249, 250, 251, 0.92);
}

/* ajuste en mobile */
@media (max-width: 640px) {
    .hero-libros {
        padding: 3.2rem 1.25rem 2.7rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}


/* ----------------- CATÁLOGO LIBROS ----------------- */

.catalogo-libros {
    padding: 2rem 0; /* Quitamos el padding lateral para que el carrusel toque los bordes */
}

/* Títulos de las categorías (ej: "Thrillers Psicológicos") */
.row-title {
    font-size: 1.4rem;
    color: #e5e5e5;
    font-weight: 600;
    margin: 0 0 0.5rem 4%;
    text-align: left;
}

/* Contenedor del scroll horizontal */
.netflix-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding: 10px 4% 30px 4%;
    scroll-behavior: smooth;
}

/* Ocultamos la barra de scroll para un look más limpio */
.netflix-row::-webkit-scrollbar {
    display: none;
}
.netflix-row {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.catalogo-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.catalogo-inner h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.catalogo-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #6b7280;
}

/* ----------------- GRID DE LIBROS ----------------- */

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.book-card {
    background: transparent; /* Quitamos el fondo blanco */
    box-shadow: none; /* Quitamos la sombra estática */
    padding: 0;
    flex: 0 0 auto; /* Evita que las tarjetas se encojan */
    width: 220px; /* Ancho fijo para el carrusel */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, z-index 0.3s ease;
    position: relative;
}

/* Efecto de escala al pasar el mouse */
.book-card:hover {
    transform: scale(1.08);
    z-index: 10;
}

/* Ajustes de la portada y el video */
.cover-wrapper {
    width: 100%;
    height: 330px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    position: relative;
    margin-bottom: 10px;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
}

/* Textos dentro de la tarjeta adaptados a la oscuridad */
.book-title {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
    text-align: left;
}

.book-sinopsis {
    color: #a3a3a3 !important;
    font-size: 0.85rem !important;
    text-align: left;
}

/* Botones más sutiles para no distraer de la portada */
.book-links {
    margin-top: 10px;
    justify-content: flex-start;
}

.btn-book {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.75rem !important;
}

/* Botón dorado hermoso */
.ver-mas-link {
    color: #d4af37 !important;
    font-weight: 700 !important;
    font-size: 0.96rem !important;
    cursor: pointer !important;
    display: block;
    margin-top: 4px;
}

.ver-mas-link:hover {
    color: #c19a2e !important;
    text-decoration: underline;
}
/* ----------------- BOTONES DE PLATAFORMA ----------------- */

.book-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.btn-book {
    flex: 1 1 30%;
    padding: 0.5rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Colores de cada botón (podés ajustarlos si querés) */
.btn-gplay {
    background: #1d4ed8;
    color: #f9fafb;
}

.btn-amazon {
    background: #f59e0b;
    color: #111827;
}

.btn-kobo {
    background: #ffffff;
    color: #111827;
    border: 1px solid #9ca3af;
}

/* ----------------- FOOTER ----------------- */

.site-footer {
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* ----------------- BADGES (+18 / PRÓXIMAMENTE) ----------------- */

/* Estilo base para ambas etiquetas */
.book-warning-badge, 
.book-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    z-index: 2;
}

/* Advertencia (+18) */
.book-warning-badge {
    background-color: #d9534f;
}

/* Estado (Próximamente) – por defecto, debajo si también hay +18 */
.book-status-badge {
    background-color: #428bca;
    top: calc(10px + 30px);
}

/* Ajuste cuando están ambas */
.book-card[data-advertencia][data-estado] .book-status-badge {
    top: 44px;
}

/* ----------------- LOGO DE TEXTO (si lo usás en este header) ----------------- */

.logo-text {
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #ffffff;
}

/* En pantallas chicas ocultamos el texto y dejamos solo el logo redondo (si existe) */
@media (max-width: 640px) {
    .logo-text {
        display: none;
    }
}

@media (min-width: 641px) {
    .logo-text {
        font-size: 1.05rem;
    }
}

/* ===========================================================
   BOTÓN "VER MÁS / VER MENOS" PARA LAS SINOPSIS
   =========================================================== */

.ver-mas-btn {
    font-weight: 600;
    color: #0077cc;
    cursor: pointer;
    display: inline-block;
    margin-top: 4px;
    transition: color 0.2s ease, transform 0.15s ease;
    font-size: 0.95em;
}

.ver-mas-btn:hover {
    color: #005fa3;              /* Azul un poquito más fuerte */
    transform: translateY(-2px); /* Levanta apenas el texto */
}

.ver-mas-btn:active {
    transform: translateY(0px) scale(0.97); /* efecto de “click” */
}
/* PRECIO DESTACADO */
.book-price {
    font-weight: 600;
    color: #f97316;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* BADGE NUEVO */
.book-new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f97316;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 3;
}

/* BOTONES MÁS GRANDES Y SEXYS */
.btn-book {
    padding: 0.7rem 0.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 600;
}

/* NEWSLETTER */
.newsletter {
    background: #111827;
    color: #f9fafb;
    padding: 3.5rem 1.5rem;
    text-align: center;
}
.newsletter h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.newsletter-form {
    max-width: 480px;
    margin: 1.5rem auto 0;
    display: flex;
    gap: 0.8rem;
}
.newsletter-form input {
    flex: 1;
    padding: 0.9rem;
    border-radius: 999px;
    border: none;
}
.newsletter-form button {
    padding: 0.9rem 1.8rem;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}
/* ===========================================================
   AJUSTES PARA CELULAR (MOBILE RESPONSIVE)
   =========================================================== */
@media (max-width: 640px) {
    .books-grid {
        /* Forzamos a que sea 1 sola columna centrada */
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center; /* Centra las tarjetas en la pantalla */
        gap: 2.5rem; /* Un poco más de aire entre libro y libro */
    }

    .book-card {
        width: 100%;
        max-width: 320px; /* Tamaño ideal para que ocupe casi toda la pantalla sin desbordar */
        margin: 0 auto;
    }

    .cover-wrapper {
        height: 460px; /* Altura más generosa para que la portada se luzca como un póster */
        width: 100%;
    }

    /* TRUCO PARA LOS BOTONES: Los ponemos en una mini-grilla de 2x2 */
    .book-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .btn-book {
        width: 100%;
        margin: 0;
        padding: 0.6rem 0.2rem !important; /* Ajustamos padding para que entre el texto */
    }
    
    /* Hacemos que el botón de "Compra directa" (el último) ocupe todo el ancho abajo */
    .btn-book:last-child {
        grid-column: span 2;
        padding: 0.8rem 0.5rem !important; /* Más grandecito para destacar */
    }
}