/* ============================================
   HS BOOK PAGE - CSS para páginas individuales de libros
   Diseño: portada izquierda, info derecha, testimonios abajo
   ============================================ */

.hs-book-page {
    margin: 0 auto;
    padding: 0;
    background: #f8fafc;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Hero / Grid principal ---- */
.hs-book-page-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 70px;
    align-items: start;
}

@media (max-width: 900px) {
    .hs-book-page-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
}

/* ---- Izquierda: Portada + Botón ---- */
.hs-book-page-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hs-book-page-cover {
    width: 100%;
    max-width: 320px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hs-book-page-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* Botón BUY THE BOOK minimalista */
.hs-book-page-buy {
    display: inline-block;
    color: #e11d48;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 2px solid #e11d48;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.hs-book-page-buy:hover {
    color: #be123c;
    border-bottom-color: #be123c;
}

/* ---- Derecha: Info ---- */
.hs-book-page-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 0;
}

.hs-book-page-badge {
    display: inline-block;
    color: #e11d48;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-top: 2px solid #e11d48;
    border-bottom: 2px solid #e11d48;
    padding: 8px 0;
    width: fit-content;
}

.hs-book-page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin: 8px 0 0;
    letter-spacing: -0.5px;
}

.hs-book-page-author {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.hs-book-page-author strong {
    color: #334155;
    font-weight: 600;
}

.hs-book-page-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0ea5e9;
    margin: 4px 0 0;
    letter-spacing: 0.5px;
}

.hs-book-page-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin: 8px 0 0;
}

.hs-book-page-desc p {
    margin: 0;
}

/* ---- Video ---- */
.hs-book-page-video {
    margin-top: 16px;
    width: 100%;
}

.hs-book-page-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Testimonios ---- */
.hs-book-page-testimonials {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 40px 80px;
}

.hs-book-page-testimonials-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 40px;
    letter-spacing: 0.5px;
}

.hs-book-page-slider {
    position: relative;
    overflow: hidden;
}

.hs-book-page-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 24px;
}

.hs-book-page-testi-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 900px) {
    .hs-book-page-testi-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 600px) {
    .hs-book-page-testi-card { flex: 0 0 100%; }
}

.hs-book-page-testi-stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 2px;
}

.hs-book-page-testi-text {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
    margin: 0;
}

.hs-book-page-testi-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.hs-book-page-testi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.hs-book-page-testi-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.hs-book-page-testi-role {
    font-size: 11px;
    color: #94a3b8;
    margin: 2px 0 0;
}

/* Flechas slider */
.hs-book-page-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    z-index: 10;
}

.hs-book-page-slider-arrow:hover {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
}

.hs-book-page-slider-arrow.prev { left: -10px; }
.hs-book-page-slider-arrow.next { right: -10px; }

@media (max-width: 768px) {
    .hs-book-page-slider-arrow.prev { left: 4px; }
    .hs-book-page-slider-arrow.next { right: 4px; }
}

/* Dots */
.hs-book-page-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.hs-book-page-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hs-book-page-slider-dot.active {
    background: #0ea5e9;
    width: 24px;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .hs-book-page-title { font-size: 28px; }
    .hs-book-page-price { font-size: 20px; }
    .hs-book-page-testimonials-title { font-size: 18px; }
}
/* ---- Testimonios ---- */
.hs-book-page-testimonials {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 40px 80px;
}

.hs-book-page-testimonials-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 40px;
    letter-spacing: 0.5px;
}

.hs-book-page-slider {
    position: relative;
    overflow: hidden;
}

.hs-book-page-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 24px;
}

.hs-book-page-testi-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 900px) {
    .hs-book-page-testi-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 600px) {
    .hs-book-page-testi-card { flex: 0 0 100%; }
}

.hs-book-page-testi-stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 2px;
}

.hs-book-page-testi-text {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
    margin: 0;
}

.hs-book-page-testi-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.hs-book-page-testi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.hs-book-page-testi-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.hs-book-page-testi-role {
    font-size: 11px;
    color: #94a3b8;
    margin: 2px 0 0;
}

/* Flechas slider - mitad adentro, mitad afuera */
.hs-book-page-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    z-index: 10;
}

.hs-book-page-slider-arrow:hover {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
}

.hs-book-page-slider-arrow.prev { left: -22px; }
.hs-book-page-slider-arrow.next { right: -22px; }

@media (max-width: 768px) {
    .hs-book-page-slider-arrow.prev { left: -16px; }
    .hs-book-page-slider-arrow.next { right: -16px; }
}

/* Dots */
.hs-book-page-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.hs-book-page-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hs-book-page-slider-dot.active {
    background: #0ea5e9;
    width: 24px;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .hs-book-page-title { font-size: 28px; }
    .hs-book-page-price { font-size: 20px; }
    .hs-book-page-testimonials-title { font-size: 18px; }
}
