/* ==========================================================
   JESUSILLAN.COM
   CONTRA-TIEMPO.CSS
   Versión limpia
   ========================================================== */


/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
    --contra-primary: #c7a65a;
    --contra-secondary: #efd18d;
    --contra-bg: #090909;
    --contra-panel: #111111;
    --contra-border: rgba(199, 166, 90, 0.22);
    --contra-text: rgba(255, 255, 255, 0.82);
    --contra-soft: rgba(255, 255, 255, 0.62);
}


/* ==========================================================
   PÁGINA
   ========================================================== */

.book-page {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at top,
            rgba(199, 166, 90, 0.05),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            #080808 0%,
            #0c0c0c 45%,
            #090909 100%
        );
}


/* ==========================================================
   FONDO GLOBAL
   ========================================================== */

.book-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(199, 166, 90, 0.03),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 18%,
            rgba(199, 166, 90, 0.025),
            transparent 24%
        ),
        radial-gradient(
            circle at 70% 78%,
            rgba(199, 166, 90, 0.03),
            transparent 26%
        );
}


/* ==========================================================
   HERO
   ========================================================== */

.hero.hero-book {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 20px;
    overflow: hidden;
}


/* ==========================================================
   HALO GENERAL DEL HERO
   ========================================================== */

.hero.hero-book::after {
    content: "";
    position: absolute;
    right: -260px;
    top: 50%;
    width: 900px;
    height: 900px;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(199, 166, 90, 0.06),
            rgba(199, 166, 90, 0.025),
            transparent 72%
        );
    filter: blur(65px);
    pointer-events: none;
}


/* ==========================================================
   HERO GRID
   ========================================================== */

.hero-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 54% 46%;
    align-items: center;
    gap: 35px;
}


/* ==========================================================
   HERO — IMAGEN DEL LIBRO
   ========================================================== */

.hero-book-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 720px;
    isolation: isolate;
}


/* ==========================================================
   RELOJ DE FONDO
   ========================================================== */

.hero-book-image::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 840px;
    height: 840px;
    transform: translate(-50%, -50%);
    background:
        url("../images/clock-bg-contra-tiempo.png")
        center / contain
        no-repeat;
    opacity: 0.18;
    z-index: 0;
}


/* ==========================================================
   HALO DORADO DEL LIBRO
   ========================================================== */

.hero-book-image::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 560px;
    height: 560px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(199, 166, 90, 0.18),
            rgba(199, 166, 90, 0.06),
            transparent 70%
        );
    filter: blur(60px);
    z-index: 1;
}


/* ==========================================================
   GLOW DEL MOCKUP
   ========================================================== */

.book-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 430px;
    height: 430px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.06),
            transparent 72%
        );
    filter: blur(40px);
    z-index: 2;
}


/* ==========================================================
   MOCKUP
   ========================================================== */

.book-mockup {
    position: relative;
    z-index: 3;
    width: min(560px, 96%);
    height: auto;
    filter: drop-shadow(
        0 45px 65px rgba(0, 0, 0, 0.60)
    );
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.mockup-link {
    display: inline-block;
    text-decoration: none;
}

.mockup-link:hover {
    cursor: pointer;
}

.book-mockup:hover {
    transform:
        translateY(-8px)
        scale(1.02);
    filter: drop-shadow(
        0 55px 80px rgba(0, 0, 0, 0.70)
    );
}


/* ==========================================================
   HERO — CONTENIDO
   ========================================================== */

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 620px;
}


/* ==========================================================
   CATEGORÍA
   ========================================================== */

.book-category {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    color: var(--contra-primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
}

.book-category::before {
    content: "";
    width: 60px;
    height: 1px;
    background: rgba(199, 166, 90, 0.55);
}


/* ==========================================================
   TÍTULO HERO
   ========================================================== */

.hero-content h1 {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(4rem, 6vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #ffffff;
    text-wrap: balance;
    text-shadow:
        0 12px 24px rgba(0, 0, 0, 0.45);
}


/* ==========================================================
   DIVISOR
   ========================================================== */

.hero-divider {
    width: 140px;
    height: 2px;
    margin: 34px 0;
    border-radius: 2px;
    background:
        linear-gradient(
            90deg,
            var(--contra-primary),
            transparent
        );
}


/* ==========================================================
   DESCRIPCIÓN HERO
   ========================================================== */

.hero-description {
    margin-top: 34px;
    max-width: 560px;
    color: var(--contra-text);
    font-size: 1.08rem;
    line-height: 2;
}


/* ==========================================================
   BOTONES HERO
   ========================================================== */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 46px;
    flex-wrap: wrap;
}


/* ==========================================================
   BOTÓN AMAZON
   ========================================================== */

.hero-buttons .btn-amazon {
    position: relative;
    overflow: hidden;
    min-width: 280px;
    height: 64px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-radius: 18px;
    text-decoration: none;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.03)
        );
    border: 1px solid rgba(199, 166, 90, 0.30);
    backdrop-filter: blur(14px);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.hero-buttons .btn-amazon:hover {
    transform: translateY(-5px);
    border-color: rgba(199, 166, 90, 0.75);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.16),
            rgba(199, 166, 90, 0.10)
        );
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(199, 166, 90, 0.28);
}

.hero-buttons .btn-amazon img {
    width: 240px;
    height: auto;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.hero-buttons .btn-amazon span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 22px;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-buttons .btn-amazon span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 24px;
    transform: translateY(-50%);
    background: rgba(199, 166, 90, 0.35);
}

.hero-buttons .btn-amazon span::after {
    content: "→";
    font-size: 1rem;
    transition: transform 0.35s ease;
}

.hero-buttons .btn-amazon:hover img {
    transform: scale(1.08);
    filter:
        drop-shadow(
            0 0 10px rgba(255, 200, 90, 0.55)
        );
}

.hero-buttons .btn-amazon:hover span::after {
    transform: translateX(4px);
}


/* ==========================================================
   EFECTO DE LUZ AMAZON
   ========================================================== */

.hero-buttons .btn-amazon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent
        );
    transform: skewX(-24deg);
    transition: left 0.75s ease;
}

.hero-buttons .btn-amazon:hover::before {
    left: 150%;
}


/* ==========================================================
   BOTÓN COMPARTIR
   ========================================================== */

.hero-buttons .btn-share {
    height: 68px;
    min-width: 280px;
    padding: 0 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.hero-buttons .btn-share:hover {
    color: var(--contra-primary);
    border-color: rgba(199, 166, 90, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.hero-buttons .btn-share svg {
    width: 19px;
    height: 19px;
}


/* ==========================================================
   INDICADOR DE SCROLL
   ========================================================== */

.scroll-indicator {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    animation: bounceArrow 2.4s infinite;
}

.scroll-indicator span {
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(199, 166, 90, 0.9);
    border-bottom: 2px solid rgba(199, 166, 90, 0.9);
    transform: rotate(45deg);
}

@keyframes bounceArrow {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.25;
    }

    50% {
        transform: translateY(12px);
        opacity: 1;
    }
}


/* ==========================================================
   ANIMACIONES HERO
   ========================================================== */

.hero-content {
    animation: heroFade 0.8s ease forwards;
}

.hero-book-image {
    animation: heroBook 1s ease forwards;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroBook {
    from {
        opacity: 0;
        transform:
            translateY(40px)
            scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* ==========================================================
   TRANSICIÓN HERO → SINOPSIS
   ========================================================== */

.hero-transition {
    position: relative;
    padding: 0;
    text-align: center;
}

.book-quote {
    max-width: 900px;
    margin: 90px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

.book-quote .line-1 {
    display: block;
    font-size: clamp(2.3rem, 4vw, 3.7rem);
    color: #e4d3a6;
}

.book-quote .divider {
    display: block;
    width: 90px;
    height: 1px;
    margin: 8px auto;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(199, 166, 90, 0.9),
            transparent
        );
}

.book-quote .line-2 {
    display: block;
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    color: #ffffff;
    line-height: 1.2;
}


/* ==========================================================
   SINOPSIS
   ========================================================== */

.synopsis {
    position: relative;
}

.synopsis-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: clamp(70px, 8vw, 130px);
    align-items: start;
    padding-top: 40px;
    padding-bottom: 20px;
    margin-top: 2rem;
}

.synopsis-content {
    max-width: 760px;
}

.synopsis-content .section-header {
    margin-bottom: 42px;
}

.synopsis-content .section-header h2 {
    font-family: var(--serif);
    font-size: clamp(46px, 5vw, 64px);
    font-weight: 500;
    line-height: 1;
    margin: 0;
    color: var(--text);
}

.synopsis-content p {
    margin: 0 0 2rem;
    color: var(--contra-text);
    font-size: 1.08rem;
    line-height: 2;
}

.synopsis-content p:first-of-type {
   font-size: 1.18rem;
    color: #ffffff; 
   
}

/* ==========================================================
   CONTRA TIEMPO — FRASE DESTACADA DE SINOPSIS
   ========================================================== */

.synopsis-section .synopsis-content p.highlight-text {
    margin-top: 3rem;
    margin-bottom: 0;
    padding-left: 28px;

    font-family: var(--font-title);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: .01em;

    color: var(--contra-primary);
}

.synopsis-section .synopsis-content p.highlight-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 2px;
    background: var(--contra-primary);
}

/* ==========================================================
   PORTADA DE SINOPSIS
   ========================================================== */

.book-cover-panel {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.book-cover-panel a {
    display: block;
    width: min(400px, 100%);
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.book-cover-panel a:hover {
    transform: translateY(-5px);
    filter: brightness(1.04);
}

.book-cover-panel img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.38);
}


/* ==========================================================
   PRIMERAS PÁGINAS
   ========================================================== */

.first-pages {
    position: relative;
    overflow: hidden;
    padding: 100px 0 65px;
}

.first-pages-intro {
    text-align: center;
    margin-bottom: 65px;
}

.first-pages-lead {
    margin: 0 0 10px;
    color: #aa9a79;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.first-pages-intro h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 500;
    line-height: 1.05;
    color: #f2ede4;
}


/* ==========================================================
   LIBRO ABIERTO
   ========================================================== */

.book-open {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    perspective: 1800px;
}

.first-page {
    display: block;
    width: 50%;
    position: relative;
    overflow: hidden;
    background: #eee9df;
    transition:
        transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.5s ease;
}

.first-page img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}


/* ==========================================================
   PÁGINA IZQUIERDA
   ========================================================== */

.first-page-left {
    transform-origin: right center;
    transform:
        perspective(1800px)
        rotateY(2deg);
    box-shadow:
        -12px 24px 45px rgba(0, 0, 0, 0.30),
        8px 12px 22px rgba(0, 0, 0, 0.18);
}


/* ==========================================================
   PÁGINA DERECHA
   ========================================================== */

.first-page-right {
    transform-origin: left center;
    transform:
        perspective(1800px)
        rotateY(-2deg);
    box-shadow:
        12px 24px 45px rgba(0, 0, 0, 0.30),
        -8px 12px 22px rgba(0, 0, 0, 0.18);
}


/* ==========================================================
   UNIÓN CENTRAL
   ========================================================== */

.book-open::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(80, 65, 45, 0.18);
    pointer-events: none;
    z-index: 3;
}

.book-open::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 28px;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.08) 25%,
            rgba(0, 0, 0, 0.22) 50%,
            rgba(0, 0, 0, 0.08) 75%,
            rgba(0, 0, 0, 0) 100%
        );
    filter: blur(4px);
    opacity: 0.65;
}


/* ==========================================================
   HOVER PÁGINAS
   ========================================================== */

.first-page-left:hover {
    transform:
        perspective(1800px)
        rotateY(1deg)
        translateY(-3px);
}

.first-page-right:hover {
    transform:
        perspective(1800px)
        rotateY(-1deg)
        translateY(-3px);
}


/* ==========================================================
   RESEÑAS
   ========================================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 45px;
    align-items: stretch;
}


/* ==========================================================
   TARJETA DE RESEÑA
   ========================================================== */

.review-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 34px 32px 30px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.review-card::before {
    content: "“";
    position: absolute;
    left: 24px;
    top: 8px;
    font-family: var(--font-title);
    font-size: 6rem;
    line-height: 1;
    color: rgba(199, 166, 90, 0.08);
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: rgba(199, 166, 90, 0.28);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.35);
}


/* ==========================================================
   ESTRELLAS
   ========================================================== */

.review-card .stars {
    margin-bottom: 1.4rem;
    color: var(--contra-primary);
    font-size: 1rem;
    letter-spacing: 0.35rem;
}


/* ==========================================================
   TÍTULO RESEÑA
   ========================================================== */

.review-title {
    position: relative;
    z-index: 2;
    margin: 0 0 20px;
    font-family: var(--font-title);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.04em;
    color: var(--contra-primary);
}


/* ==========================================================
   TEXTO RESEÑA
   ========================================================== */

.review-text-wrap {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--contra-text);
    font-size: 14px;
    line-height: 1.75;
}

.review-card:not(.expanded) .review-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.review-card.expanded .review-text {
    display: block;
}


/* ==========================================================
   AUTOR RESEÑA
   ========================================================== */

.review-author {
    margin-top: 25px;
    font-family: var(--font-title);
    font-size: 18px;
    font-style: italic;
    color: var(--contra-primary);
}


/* ==========================================================
   BOTÓN EXPANDIR RESEÑA
   ========================================================== */

.review-expand {
    align-self: center;
    width: 32px;
    height: 32px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 166, 90, 0.35);
    border-radius: 50%;
    background: transparent;
    color: var(--contra-primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.review-expand:hover {
    color: #f0dba8;
    background: rgba(199, 166, 90, 0.07);
    border-color: rgba(199, 166, 90, 0.65);
    transform: scale(1.08);
}

.review-card.expanded .review-expand {
    transform: rotate(45deg);
}


/* ==========================================================
   CTA COMPRA
   ========================================================== */

.cta-compra {
    position: relative;
    text-align: center;
    padding: 130px 0;
}

.cta-compra::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(199, 166, 90, 0.08),
            transparent 70%
        );
    pointer-events: none;
}

.cta-compra h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
}

.cta-compra p {
    max-width: 720px;
    margin: 0 auto 3rem;
    color: var(--contra-soft);
    line-height: 1.9;
}


/* ==========================================================
   FEATURES — POR QUÉ LEERLO
   ========================================================== */

.features {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 2rem;
}


/* ==========================================================
   FEATURE CARD
   ========================================================== */

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 2.6rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05),
            transparent 45%
        );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(199, 166, 90, 0.28);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::before {
    opacity: 1;
}


/* ==========================================================
   FEATURE ICON
   ========================================================== */

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.6rem;
    border-radius: 18px;
    background: rgba(199, 166, 90, 0.10);
    border: 1px solid rgba(199, 166, 90, 0.20);
    color: var(--contra-primary);
    font-size: 1.4rem;
}


/* ==========================================================
   FEATURE TITLE
   ========================================================== */

.feature-card h3 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.3;
}


/* ==========================================================
   FEATURE TEXT
   ========================================================== */

.feature-card p {
    margin: 0;
    color: var(--contra-soft);
    line-height: 1.9;
}


/* ==========================================================
   FICHA DEL LIBRO
   ========================================================== */

.book-data {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 70px;
    max-width: 1050px;
    margin: 55px auto 0;
    padding: 55px 65px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
    border: 1px solid rgba(199, 166, 90, 0.16);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);
}


/* ==========================================================
   FICHA — IMAGEN DE FONDO
   ========================================================== */

.book-data::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -210px;
    top: 50%;
    transform: translateY(-50%);
    background-image:
        url("../images/contra-tiempo.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    filter:
        grayscale(1)
        contrast(0.8);
    pointer-events: none;
}


/* ==========================================================
   FICHA — VELO
   ========================================================== */

.book-data::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent 25%,
            rgba(10, 10, 10, 0.25) 60%,
            rgba(10, 10, 10, 0.65)
        );
    pointer-events: none;
}


/* ==========================================================
   FICHA — PORTADA
   ========================================================== */

.book-data-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.book-data-cover a {
    position: relative;
    display: block;
    width: min(100%, 320px);
    text-decoration: none;
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.book-data-cover a::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -18px;
    height: 25px;
    background: rgba(0, 0, 0, 0.55);
    filter: blur(18px);
    opacity: 0.7;
    z-index: -1;
}

.book-data-cover img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.45);
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease,
        filter 0.45s ease;
}

.book-data-cover a:hover {
    transform: translateY(-6px);
}

.book-data-cover a:hover img {
    transform: scale(1.015);
    box-shadow:
        0 28px 55px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(199, 166, 90, 0.10);
}


/* ==========================================================
   INDICADOR AMAZON SOBRE LA PORTADA
   ========================================================== */

.book-data-cover a::before {
    content: "Comprar en Amazon  →";
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 8px);
    padding: 9px 14px;
    white-space: nowrap;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(15, 15, 15, 0.86);
    border: 1px solid rgba(199, 166, 90, 0.35);
    opacity: 0;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    z-index: 3;
}

.book-data-cover a:hover::before {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* ==========================================================
   FICHA — INFORMACIÓN
   ========================================================== */

.book-data-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ==========================================================
   FICHA — DATOS
   ========================================================== */

.book-data-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(199, 166, 90, 0.13);
}

.book-data-item:first-child {
    padding-top: 0;
}

.book-data-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.book-data-item strong {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(199, 166, 90, 0.72);
}

.book-data-item span {
    display: block;
    font-family: var(--font-title);
    font-size: 18px;
    line-height: 1.45;
    color: var(--contra-text);
}


/* ==========================================================
   TAGS / ¿QUÉ ENCONTRARÁS?
   ========================================================== */

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 45px auto 0;
    text-align: center;
}

.tags-cloud span {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: var(--contra-text);
    font-family: var(--font-title);
    font-size: 1.05rem;
    line-height: 1.5;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.tags-cloud span:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(199, 166, 90, 0.45);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.tags-cloud span:hover {
    color: var(--contra-primary);
    transform: translateY(-2px);
}


/* ==========================================================
   ACCIONES FINALES
   ========================================================== */

.final-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 3.5rem;
}


/* ==========================================================
   AMAZON — ACCIONES FINALES
   ========================================================== */

.final-actions .btn-amazon {
    position: relative;
    overflow: hidden;
    width: 494px;
    height: 76px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-radius: 38px;
    text-decoration: none;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.025)
        );
    border: 1px solid rgba(199, 166, 90, 0.30);
    backdrop-filter: blur(14px);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.final-actions .btn-amazon:hover {
    transform: translateY(-4px);
    border-color: rgba(199, 166, 90, 0.75);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.14),
            rgba(199, 166, 90, 0.08)
        );
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(199, 166, 90, 0.20);
}

.final-actions .btn-amazon img {
    width: 200px;
    height: auto;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.final-actions .btn-amazon span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 22px;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.final-actions .btn-amazon span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 24px;
    transform: translateY(-50%);
    background: rgba(199, 166, 90, 0.35);
}

.final-actions .btn-amazon span::after {
    content: "→";
    font-size: 1rem;
    transition: transform 0.35s ease;
}

.final-actions .btn-amazon:hover img {
    transform: scale(1.06);
    filter:
        drop-shadow(
            0 0 10px rgba(255, 200, 90, 0.45)
        );
}

.final-actions .btn-amazon:hover span::after {
    transform: translateX(4px);
}


/* ==========================================================
   COMPARTIR — ACCIONES FINALES
   ========================================================== */

.final-actions .btn-share {
    height: 76px;
    min-width: 280px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    cursor: pointer;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.final-actions .btn-share:hover {
    transform: translateY(-4px);
    color: var(--contra-primary);
    border-color: rgba(199, 166, 90, 0.35);
    background: rgba(255, 255, 255, 0.045);
}

.final-actions .btn-share svg {
    width: 19px;
    height: 19px;
}


/* ==========================================================
   LIBROS RELACIONADOS
   ========================================================== */

.related-books {
    position: relative;
    overflow: hidden;
}


/* ==========================================================
   CABECERA
   ========================================================== */

.related-books .section-intro {
    max-width: 620px;
    margin: 1.2rem auto 0;
    color: var(--contra-soft);
    line-height: 1.8;
    text-align: center;
}


/* ==========================================================
   GRID
   ========================================================== */

.related-books .related-books-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    width: 100%;
    max-width: 900px;
    margin: 5rem auto 0;
}


/* ==========================================================
   LIBRO RELACIONADO
   ========================================================== */

.related-books .related-book {
    position: relative;
    min-width: 0;
    text-align: center;
}


/* ==========================================================
   MOCKUP RELACIONADO
   ========================================================== */

.related-books .related-book-image {
    position: relative;
    display: block !important;
    width: 160px !important;
    max-width: 160px !important;
    margin: 0 auto !important;
    text-decoration: none;
    perspective: 1000px;
}

.related-books .related-book-image img {
    position: relative;
    z-index: 2;
    display: block !important;
    width: 160px !important;
    max-width: 160px !important;
    height: auto !important;
    max-height: 380px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    filter:
        drop-shadow(
            0 24px 35px rgba(0, 0, 0, 0.45)
        );
    transform:
        translateY(0)
        rotateY(0deg);
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}


/* ==========================================================
   SOMBRA MOCKUP RELACIONADO
   ========================================================== */

.related-books .related-book-image::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -18px;
    height: 35px;
    background: rgba(0, 0, 0, 0.55);
    filter: blur(18px);
    opacity: 0.65;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}


/* ==========================================================
   HOVER LIBRO RELACIONADO
   ========================================================== */

.related-books .related-book:hover .related-book-image img {
    transform:
        translateY(-10px)
        rotateY(-2deg);
    filter:
        drop-shadow(
            0 32px 45px rgba(0, 0, 0, 0.55)
        );
}

.related-books .related-book:hover .related-book-image::after {
    opacity: 0.85;
    transform: scaleX(0.9);
}


/* ==========================================================
   INFORMACIÓN LIBRO RELACIONADO
   ========================================================== */

.related-books .related-book-info {
    max-width: 430px;
    margin: 3rem auto 0;
}


/* ==========================================================
   ETIQUETA
   ========================================================== */

.related-books .related-book-label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--contra-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* ==========================================================
   TÍTULO
   ========================================================== */

.related-books .related-book-info h3 {
    margin: 0;
    color: var(--contra-text);
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
}


/* ==========================================================
   DESCRIPCIÓN
   ========================================================== */

.related-books .related-book-info p {
    max-width: 390px;
    margin: 1.2rem auto 0;
    color: var(--contra-soft);
    font-size: 0.95rem;
    line-height: 1.8;
}


/* ==========================================================
   ENLACE
   ========================================================== */

.related-books .related-book-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    color: var(--contra-primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.related-books .related-book-link span {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.related-books .related-book-link:hover {
    color: var(--contra-text);
    gap: 14px;
}

.related-books .related-book-link:hover span {
    transform: translateX(3px);
}


/* ==========================================================
   RESPONSIVE — 1200px
   ========================================================== */

@media (max-width: 1200px) {

    .hero-grid {
        gap: 45px;
    }

    .book-mockup {
        width: min(540px, 100%);
    }

    .hero-content h1 {
        font-size: 5rem;
    }
}


/* ==========================================================
   RESPONSIVE — 992px
   ========================================================== */

@media (max-width: 992px) {

    .hero.hero-book {
        min-height: auto;
        padding: 40px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-book-image {
        min-height: 480px;
        order: 1;
    }

    .hero-content {
        order: 2;
        margin: auto;
    }

    .book-category {
        justify-content: center;
    }

    .book-category::before {
        display: none;
    }

    .hero-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 35px;
    }

    .review-card {
        min-height: 0;
        padding: 30px 26px 28px;
    }

    .review-title {
        font-size: 22px;
    }
}


/* ==========================================================
   RESPONSIVE — 768px
   ========================================================== */

@media (max-width: 768px) {

    /* ------------------------------------------------------
       HEADER
       ------------------------------------------------------ */

    .site-header {
        position: relative;
        z-index: 100;
    }

    .header-container {
        min-height: 70px;
    }

    .site-logo {
        width: 58px;
        height: 58px;
    }

    .site-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


    /* ------------------------------------------------------
       HERO
       ------------------------------------------------------ */

    .hero.hero-book {
        padding: 90px 0 10px;
    }

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

    .hero-book-image {
        min-height: 300px;
    }

    .hero-book-image::before {
        width: 320px;
        height: 320px;
        opacity: 0.05;
    }

    .book-mockup {
        width: 82%;
        max-width: 320px;
        height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn-amazon,
    .hero-buttons .btn-share {
        width: 245px;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }


    /* ------------------------------------------------------
       QUOTE
       ------------------------------------------------------ */

    .book-quote {
        margin: 70px auto;
        padding: 0 15px;
    }

    .book-quote .line-1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .book-quote .line-2 {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }


    /* ------------------------------------------------------
       SINOPSIS
       ------------------------------------------------------ */

    .synopsis-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }

    .synopsis-content {
        width: 100%;
        min-width: 0;
    }

    .synopsis-content p {
        width: 100%;
        max-width: none;
    }

    .synopsis-content .section-header {
        margin-bottom: 30px;
    }

    .synopsis-content .section-header h2 {
        font-size: 46px;
    }

    .book-cover-panel {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .book-cover-panel img {
        display: block;
        width: min(78vw, 320px);
        max-width: 100%;
        height: auto;
    }


    /* ------------------------------------------------------
       PRIMERAS PÁGINAS
       ------------------------------------------------------ */

    .first-pages {
        padding: 80px 0 90px;
    }

    .first-pages-intro {
        margin-bottom: 42px;
    }

    .first-pages-lead {
        font-size: 13px;
    }

    .first-pages-intro h2 {
        font-size: 46px;
    }

    .book-open {
        max-width: 94vw;
        perspective: none;
    }

    .first-page {
        width: 50%;
    }

    .first-page-left,
    .first-page-right {
        transform: none;
        box-shadow:
            0 14px 28px rgba(0, 0, 0, 0.28);
    }

    .first-page-left:hover,
    .first-page-right:hover {
        transform: none;
    }

    .book-open::before {
        width: 1px;
        opacity: 0.7;
    }

    .book-open::after {
        width: 18px;
        filter: blur(3px);
        opacity: 0.5;
    }


    /* ------------------------------------------------------
       RESEÑAS
       ------------------------------------------------------ */

    .review-card {
        padding: 28px 23px 26px;
    }

    .review-title {
        font-size: 21px;
    }


    /* ------------------------------------------------------
       FICHA DEL LIBRO
       ------------------------------------------------------ */

    .book-data {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 40px;
        padding: 42px 25px;
    }

    .book-data-cover a {
        width: min(100%, 290px);
    }

    .book-data-info {
        width: 100%;
    }

    .book-data-item {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 18px 0;
    }

    .book-data-item strong {
        font-size: 9px;
        letter-spacing: 0.17em;
    }

    .book-data-item span {
        font-size: 17px;
    }

    .book-data::before {
        width: 360px;
        height: 360px;
        right: -170px;
        top: 20%;
        opacity: 0.025;
    }

    .book-data::after {
        background:
            linear-gradient(
                180deg,
                rgba(10, 10, 10, 0.15),
                rgba(10, 10, 10, 0.55)
            );
    }


    /* ------------------------------------------------------
       TAGS
       ------------------------------------------------------ */

    .tags-cloud {
        margin-top: 35px;
        max-width: 100%;
    }

    .tags-cloud span {
        font-size: 0.95rem;
        padding: 7px 12px;
    }

    .tags-cloud span:not(:last-child)::after {
        color: rgba(199, 166, 90, 0.35);
    }


    /* ------------------------------------------------------
       ACCIONES FINALES
       ------------------------------------------------------ */

    .final-actions {
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .final-actions .btn-amazon {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        height: 68px;
        padding: 0 20px;
        gap: 12px;
    }

    .final-actions .btn-amazon img {
        width: 150px;
        flex-shrink: 1;
    }

    .final-actions .btn-amazon span {
        padding-left: 16px;
        gap: 8px;
        font-size: 0.72rem;
        letter-spacing: 0.09em;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .final-actions .btn-amazon span::before {
        height: 22px;
    }

    .final-actions .btn-share {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        height: 68px;
    }


    /* ------------------------------------------------------
       LIBROS RELACIONADOS
       ------------------------------------------------------ */

    .related-books .related-books-grid {
        grid-template-columns: 1fr;
        gap: 70px;
        margin-top: 3.5rem;
    }

    .related-books .related-book-image {
        width: 150px !important;
        max-width: 150px !important;
    }

    .related-books .related-book-image img {
        width: 150px !important;
        max-width: 150px !important;
        max-height: 280px !important;
    }

    .related-books .related-book-info {
        margin-top: 2.5rem;
    }

    .related-books .related-book-info h3 {
        font-size: 2rem;
    }

    .related-books .related-book-info p {
        padding: 0 10px;
    }


    /* ------------------------------------------------------
       PREVIEW BOX
       ------------------------------------------------------ */

    .preview-box {
        padding: 2.2rem;
    }
}


/* ==========================================================
   RESPONSIVE — 480px
   ========================================================== */

@media (max-width: 480px) {

    /* ------------------------------------------------------
       HERO
       ------------------------------------------------------ */

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }


    /* ------------------------------------------------------
       QUOTE
       ------------------------------------------------------ */

    .book-quote {
        margin: 60px auto;
    }


    /* ------------------------------------------------------
       CTA
       ------------------------------------------------------ */

    .cta-compra {
        padding: 90px 0;
    }

    .cta-compra h2 {
        font-size: 2.2rem;
    }


    /* ------------------------------------------------------
       LIBROS RELACIONADOS
       ------------------------------------------------------ */

    .related-books .related-books-grid {
        gap: 60px;
    }

    .related-books .related-book-image {
        width: 120px !important;
        max-width: 120px !important;
    }

    .related-books .related-book-image img {
        width: 120px !important;
        max-width: 120px !important;
        max-height: 240px !important;
    }

    .related-books .related-book-info h3 {
        font-size: 1.8rem;
    }
}
