/* ===========================================================
   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 */
.page-libros {
    background: #f5f5f8;
    color: #222;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header simple para la sección de libros */
.site-header {
    background: #111827;
    color: #fff;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.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: 2.5rem 1.5rem 3.5rem;
}

.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: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative; /* necesario para las badges absolutas */
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
}

.book-cover {
    width: 100%;
    height: 260px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.book-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #111827;
}

/* Sinopsis (texto + transición para el expandir/contraer) */
.book-sinopsis {
    font-size: 0.93rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
}

/* ----------------- 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;
}