/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --primary-color: #c62828;
    --bg-dark: #0e0e0e;
    --bg-card: #181818;
    --text-main: #f5f5f5;
    --text-dim: rgba(245, 245, 245, 0.85);
    --transition: all 0.3s ease;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   COMPONENTES GLOBALES (BOTONES)
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 22px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--primary-color);
    color: #fff;
}

.btn.primary:hover {
    background: #a51d1d;
    transform: translateY(-2px);
}

.btn.secondary {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

.btn.secondary:hover {
    background: #fff;
    color: #000;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    background: url('/images/guerrero-interior.webp') no-repeat center center / cover;
    background-attachment: scroll;
    will-change: transform;
    /* Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.hero h1 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 800;
}

.hero p {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
section {
    padding: 80px 20px;
    text-align: center;
}

h2 {
    font-weight: 800;
    margin-bottom: 20px;
}

/* FILOSOFÍA Y MANIFIESTO */
.philosophy {
    background-color: #0b0b0b;
}

.manifesto {
    background-color: #050505;
}

.philosophy-content,
.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-text,
.manifesto-text {
    font-weight: 500;
    color: #e0e0e0;
}

.philosophy-text p+p,
.manifesto-text p+p {
    margin-top: 20px;
}

/* =========================================
   COLECCIÓN DE LIBROS
   ========================================= */
.books {
    background-color: #111;
    padding: 100px 20px;
    text-align: center;
}

.books-container {
    max-width: 1100px;
    margin: 0 auto;
}

.books h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.books-intro {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 50px;
}

/* Grid */
.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Tarjeta */
.book-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    justify-content: space-between;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Cover */
.book-cover {
    width: 190px;
    margin-bottom: 25px;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Texto */
.book-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.book-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 30px;
    text-align: center;
}

/* Acciones */
.book-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

/* Coming soon */
.coming-soon {
    background: transparent;
    border: 1px dashed #444;
    opacity: 0.75;
    justify-content: center;
}

.coming-soon-content {
    text-align: center;
}

.coming-soon-tag {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* Botones superiores */
.book-actions-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

/* Botón físico */
.physical-btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-radius: 6px;
    font-weight: 700;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: var(--transition);
}

/* Hover botón físico */
.physical-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Desktop */
@media (min-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .books h2 {
        font-size: 2.6rem;
    }

    .book-card {
        padding: 45px 35px;
    }

    .book-description {
        font-size: 1.05rem;
    }
}

/* =========================================
   REVIEWS (TESTIMONIOS)
   ========================================= */
.reviews {
    background-color: #0b0b0b;
}

.review {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.review.active {
    display: block;
    opacity: 1;
}

.stars {
    color: #f5c518;
    margin-bottom: 10px;
}

/* =========================================
   AUTOR
   ========================================= */
.author {
    background-color: #0b0b0b;
    padding: 100px 20px;
}

.author-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

/* Imagen */
.author-image {
    display: flex;
    justify-content: center;
}

.author-image img {
    width: 240px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

/* Contenido */
.author-content {
    text-align: left;
}

.author-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.author-intro {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dim);
}

.author-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #e0e0e0;
}

/* Frase final */
.author-highlight {
    margin-top: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.6;
}

/* Desktop */
@media (min-width: 768px) {
    .author-container {
        grid-template-columns: 1fr 2fr;
        gap: 80px;
    }

    .author-image img {
        width: 280px;
    }

    .author-content h2 {
        font-size: 2.4rem;
    }

    .author-content p {
        font-size: 1.05rem;
    }
}

/* =========================================
   PARA QUIÉN ES / PARA QUIÉN NO ES
   ========================================= */
.who-is {
    background-color: #050505;
    padding: 100px 20px;
}

.who-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

/* Bloques */
.who-block {
    background: #0f0f0f;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: left;
}

.who-block h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Listas */
.who-block ul {
    list-style: none;
    padding: 0;
}

.who-block ul li {
    font-size: 1rem;
    padding-left: 26px;
    margin-bottom: 14px;
    position: relative;
    line-height: 1.6;
}

/* Íconos */
.who-block.yes ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.who-block.no ul li::before {
    content: "✖";
    position: absolute;
    left: 0;
    color: #777;
    font-weight: 700;
}

/* Desktop */
@media (min-width: 768px) {
    .who-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .who-block {
        padding: 50px 40px;
    }

    .who-block h3 {
        font-size: 1.6rem;
    }

    .who-block ul li {
        font-size: 1.05rem;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #050505;
    padding: 70px 20px 50px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Frase */
.footer-quote {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 30px;
}

/* Redes */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

/* Hover */
.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Copyright */
.footer-copy {
    font-size: 0.85rem;
    color: #777;
}

.footer-social a,
.footer-social a:hover,
.footer-social a:focus,
.footer-social a:active {
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}

.cta {
    background-color: #050505;
    background-image: radial-gradient(circle at center,
            rgba(198, 40, 40, 0.12),
            transparent 70%);
    padding: 140px 20px;
    text-align: center;
}

/* Desktop */
@media (min-width: 768px) {
    .footer-quote {
        font-size: 1.1rem;
    }
}

/* =========================================
   RESPONSIVE (DESKTOP)
   ========================================= */
@media (min-width: 768px) {

    /* Hero */
    .hero {
        text-align: left;
        justify-content: flex-start;
        padding-left: 80px;
        background-position: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-actions {
        flex-direction: row;
    }

    /* Grids */
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .who-container {
        grid-template-columns: 1fr 1fr;
    }

    .author-container {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }

    /* Typography */
    .philosophy-text {
        font-size: 1.3rem;
    }

    .manifesto-text {
        font-size: 2.2rem;
    }

    section {
        padding: 100px 20px;
    }
}

/* =========================================
   SOCIAL BANNER (NEON SUTIL)
   ========================================= */
.social-banner {
    background-color: #060606;
    border-bottom: 1px solid #111;
}

.social-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

/* Íconos */
.social-banner a {
    color: #eaeaea;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

/* Hover neon sutil */
.social-banner a:hover {
    color: var(--primary-color);
    text-shadow:
        0 0 6px rgba(198, 40, 40, 0.6),
        0 0 12px rgba(198, 40, 40, 0.35);
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {
    .social-banner-inner {
        height: 38px;
        gap: 18px;
    }

    .social-banner a {
        font-size: 0.95rem;
    }
}

/* =========================================
   PLAYLIST SPOTIFY
   ========================================= */
.playlist {
    background-color: #080808;
    padding: 100px 20px;
    text-align: center;
}

.playlist-container {
    max-width: 900px;
    margin: 0 auto;
}

.playlist h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.playlist-intro {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

/* Embed */
.playlist-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Mobile */
@media (max-width: 768px) {
    .playlist {
        padding: 80px 20px;
    }

    .playlist h2 {
        font-size: 1.9rem;
    }
}

/* Banner oculto por defecto */
.tiktok-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0b0b0b;
    color: #fff;
    padding: 14px 42px 14px 16px;
    font-size: 14px;
    text-align: center;
    z-index: 99999;
    border-bottom: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);

    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

/* Cuando se muestra */
.tiktok-banner.show {
    transform: translateY(0);
}

.tiktok-banner strong {
    color: #f5c542;
    /* o tu color principal */
}

.tiktok-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.tiktok-close:hover {
    opacity: 1;
}

/* Empuja el contenido solo cuando el banner está visible */
body.has-tiktok-banner {
    padding-top: 70px;
}

/* 🚫 NO mostrar en desktop */
@media (min-width: 768px) {
    .tiktok-banner {
        display: none !important;
    }
}
