/* ========================= */
/* HERO DELUXE ANIMADO */
/* ========================= */

.hero-libro-deluxe {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
}

.hero-libro-deluxe .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url('../assets/images/bg-textura-galaxia.jpg') repeat;
    background-size: cover;
    filter: brightness(0.4) blur(4px);
    animation: move-bg 30s linear infinite;
    z-index: 0;
}

.hero-libro-deluxe .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fade-in 2s ease forwards;
    opacity: 0;
}

.hero-libro-deluxe h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-libro-deluxe h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #00CFFD;
}

.hero-libro-deluxe p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.hero-libro-deluxe .boton-cta {
    display: inline-block;
    margin-top: 20px;
    background: #FFD700;
    color: #14213D;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-libro-deluxe .boton-cta:hover {
    transform: scale(1.05);
    background: #ffc400;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* Animaciones */
@keyframes move-bg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* Responsive */
@media(max-width:768px){
    .hero-libro-deluxe h1 { font-size: 2.2rem; }
    .hero-libro-deluxe h2 { font-size: 1.2rem; }
}

/* ========================= */
/* NARRATIVA */
/* ========================= */

.narrativa-libro.deluxe {
    position: relative;
    background: #f8f8f8 url('../assets/images/papel-textura-claro.png');
    background-size: cover;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.05), inset 0 -20px 40px rgba(0,0,0,0.05);
}

.narrativa-libro::before, .narrativa-libro::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.2) 100%);
    pointer-events: none;
}

.narrativa-libro::before {
    left: 0;
}

.narrativa-libro::after {
    right: 0;
    transform: scaleX(-1);
}

.narrativa-libro #particles-narrativa {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.narrativa-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.ornamento {
    font-size: 2rem;
    color: #00CFFD;
    margin-bottom: 10px;
}

.narrativa-libro h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #14213D;
    position: relative;
    display: inline-block;
}

.narrativa-libro h3::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 80px;
    height: 3px;
    background: #00CFFD;
    border-radius: 2px;
}

.narrativa-libro p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

/* Fade */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}





/* ========================= */
/* PORTADA PARALLAX */
/* ========================= */

.portada-libro {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(to bottom, #111, #222);
    overflow: hidden;
}

.portada-container {
    perspective: 1200px;
    will-change: transform;
}

.portada-deluxe {
    width: clamp(250px, 30vw, 400px);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    transform: translateY(0px);
}

.portada-deluxe:hover {
    transform: rotateX(5deg) rotateY(-5deg) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}


/* ========================= */
/* TESTIMONIOS */
/* ========================= */

.testimonios-carousel {
    background: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.testimonios-carousel h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.carousel-container {
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 20px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 1s ease-in-out;
}

.testimonio-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.testimonio-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonio-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.testimonio-item strong {
    color: #0077B6;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #0077B6;
}


/* ========================= */
/* PREVIEW PDF */
/* ========================= */

.preview-libro {
    background: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
}

.preview-libro h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.preview-libro p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #666;
}

/* --- Marco y simulación de libro --- */
.preview-container {
    display: flex;
    justify-content: center;
}

.preview-frame {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 15px;
    overflow: hidden;
}

.preview-frame::before,
.preview-frame::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0));
    z-index: 1;
}

.preview-frame::before {
    left: 0;
}

.preview-frame::after {
    right: 0;
}

.preview-frame iframe {
    width: clamp(320px, 90vw, 900px);
    height: clamp(500px, 75vh, 800px);
    border: none;
    border-radius: 5px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}



/* Responsive */
@media(max-width:768px) {
    .preview-frame iframe {
        height: 400px;
    }
}




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

.cta-libro {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta-libro .cta-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-libro h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-libro p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-libro .boton-compra {
    background: #FFD700;
    color: #14213D;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
}

.cta-libro .boton-compra:hover {
    transform: scale(1.05);
    background: #ffc400;
}

.cta-libro .garantia {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* ========================= */
/* RESPONSIVE POWER */
/* ========================= */

@media(max-width: 768px) {

    .testimonios-container {
        flex-direction: column;
    }

    .testimonio {
        width: 90%;
    }

    .portada-libro img {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .preview-mockup iframe {
        height: 300px;
    }

}










