/* =========================================================
   MODAL DE PRESENTACIÓN DE LIBRO - MARIO NECULMAN
   Estilo premium, armonioso con el diseño corporativo
   ========================================================= */

.book-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.book-modal-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.book-modal-card {
    position: relative;
    width: 100%;
    max-width: 840px;
    background: linear-gradient(150deg, #0e172c 0%, #070c18 100%);
    border: 1px solid rgba(242, 198, 77, 0.32);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 
                0 0 35px rgba(242, 198, 77, 0.12);
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.book-modal-backdrop.is-visible .book-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Botón cerrar */
.book-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    z-index: 10;
    transition: all 0.25s ease;
    padding: 0;
}

.book-modal-close-btn:hover {
    background: #F2C64D;
    color: #0b1122;
    border-color: #F2C64D;
    transform: rotate(90deg);
}

.book-modal-close-btn:focus {
    outline: 2px solid #F2C64D;
    outline-offset: 2px;
}

/* Contenedor interno en 2 columnas */
.book-modal-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Columna izquierda: Imagen / Portada del Libro */
.book-modal-media {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    padding: 14px;
}

.book-modal-media img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    object-position: center center;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65);
    transition: transform 0.5s ease;
}

.book-modal-card:hover .book-modal-media img {
    transform: scale(1.02);
}

.book-modal-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(242, 198, 77, 0.95);
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070c18;
    font-size: 22px;
    padding-left: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 25px rgba(242, 198, 77, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 4;
}

.book-modal-media:hover .book-modal-play-badge {
    background: #ffffff;
    color: #070c18;
    border-color: #F2C64D;
    transform: translate(-50%, -50%) scale(1.14);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 35px rgba(242, 198, 77, 0.85);
}

/* Columna derecha: Contenido */
.book-modal-content {
    flex: 1;
    padding: 36px 36px 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F2C64D;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
}

.book-modal-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.book-modal-subtitle {
    font-size: 13px;
    color: #F2C64D;
    font-style: italic;
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.3px;
}

.book-modal-author {
    background: rgba(242, 198, 77, 0.08);
    border-left: 3px solid #F2C64D;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 14px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #e2e8f0;
}

.book-modal-author .author-item {
    display: block;
    margin-bottom: 2px;
    color: #ffffff;
}

.book-modal-author .author-item strong {
    color: #F2C64D;
}

.book-modal-author .collab-item {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
}

.book-modal-author .collab-item strong {
    color: #e2e8f0;
}

.book-modal-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #cfd6e4;
    margin-bottom: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}

/* Tags de formato */
.book-modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 12px;
    color: #9ab0d3;
    font-family: "Poppins", sans-serif;
}

.book-modal-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.book-modal-features i {
    color: #F2C64D;
}

/* Acciones / Botones */
.book-modal-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.book-modal-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F2C64D;
    color: #070c18 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 198, 77, 0.25);
    border: 1px solid #F2C64D;
}

.book-modal-btn-download:hover {
    background: #fff;
    color: #070c18 !important;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(242, 198, 77, 0.4);
}

.book-modal-btn-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 13px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.book-modal-btn-video i {
    color: #ff4444;
    font-size: 15px;
    transition: transform 0.25s ease;
}

.book-modal-btn-video:hover {
    background: rgba(242, 198, 77, 0.15);
    color: #F2C64D !important;
    border-color: #F2C64D;
    transform: translateY(-2px);
}

.book-modal-btn-video:hover i {
    transform: scale(1.15);
}

.book-modal-btn-dismiss {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    padding: 10px 14px;
    font-family: "Poppins", sans-serif;
    transition: color 0.25s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.book-modal-btn-dismiss:hover {
    color: #ffffff;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 767px) {
    .book-modal-backdrop {
        padding: 12px;
    }

    .book-modal-card {
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .book-modal-body {
        flex-direction: column;
    }

    .book-modal-media {
        flex: 0 0 auto;
        height: 240px;
        padding: 10px;
    }

    .book-modal-content {
        padding: 22px 20px 24px 20px;
    }

    .book-modal-title {
        font-size: 19px;
    }

    .book-modal-desc {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .book-modal-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .book-modal-btn-download,
    .book-modal-btn-video {
        width: 100%;
        text-align: center;
    }

    .book-modal-btn-dismiss {
        text-align: center;
        padding: 6px;
    }
}
