:root {
    --brand-red: #dc3545;        
    --text-main: #212529;        
    --text-sub: #495057;         
    --light-bg: #f8f9fa;         
    --border-color: #dee2e6;
}

.coming-soon-container {
    position: relative;          
    background: #ffffff;         
    border-radius: 8px;
    padding: 55px 40px 40px 40px; 
    max-width: 1000px;
    margin: 30px auto;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--text-main);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    border: 1px solid var(--border-color);
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.badge-status {
    position: absolute;
    top: 0;
    left: 0;
    background: #17a2b8;        
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px 0 8px 0; 
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

.product-image-box {
    text-align: center;
    background: #ffffff; 
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ajuste proporcional para la proporción 384x543 px */
.main-image-zoom-container {
    position: relative;
    overflow: hidden; 
    cursor: zoom-in;
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}

.ebook-img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 0.1s ease, transform-origin 0.1s ease; 
}

.thumbnails-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
}

/* Miniaturas adaptadas exactamente a la proporción vertical de 384x543 */
.thumb-box {
    width: 65px;
    height: 92px; 
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumb-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.5;                
    transition: opacity 0.2s ease; 
}

.thumb-box:hover img {
    opacity: 0.8;
}

.thumb-box:hover {
    border-color: #a0aec0;
}

.thumb-box.active {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 1px var(--brand-red);
}

.thumb-box.active img {
    opacity: 1;                  
}

/* ==========================================
   LADO DERECHO: DETALLES Y LANZAMIENTO (CORREGIDO)
   ========================================== */

.product-details-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.series-tag {
    display: inline-block;
    color: var(--brand-red);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background-color: rgba(220, 53, 69, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.product-details-box h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin: 0 0 16px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.product-details-box h2 small {
    font-size: 1.05rem;
    color: var(--text-sub);
    font-weight: 400;
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}

.product-description {
    color: var(--text-sub);
    line-height: 1.65;
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-list li {
    font-size: 0.92rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.check-icon {
    color: #28a745;
    font-weight: 800;
    margin-right: 10px;
    font-size: 1.05rem;
    line-height: 1;
    margin-top: 2px;
}

.ecu-pricing-loyalty-box {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 25px;
    gap: 18px;
}

.ecu-price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 6px;
    min-width: 100px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #718096;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    text-decoration: none;
}

.ecu-loyalty-message {
    flex: 1;
}

.ecu-loyalty-message p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--text-sub);
}

.ecu-loyalty-message span {
    color: #2f855a;
    font-weight: 700;
    background: #c6f6d5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
}

.box-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.download-instruction {
    font-size: 0.82rem !important;
    color: #6c757d !important;
}

.btn-login-unlock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #007bff; 
    color: #ffffff !important;
    text-decoration: none;
    text-align: center;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.btn-login-unlock:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.28);
}

/* ==========================================
   MODAL LIGHTBOX (ZOOM INTERACTIVO)
   ========================================== */

.image-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.92);
    z-index: 99999;
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-modal-overlay.active {
    display: flex;
}

.modal-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.modal-viewport:active {
    cursor: grabbing;
}

.modal-viewport img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 6px;
}

.modal-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100000;
}

.modal-btn {
    background: #ffffff;
    border: none;
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.1s;
}

.modal-btn:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 100000;
}

.modal-close-btn:hover {
    background: var(--brand-red);
}

/* ==========================================
   DISEÑO RESPONSIVO
   ========================================== */

@media (max-width: 768px) {
    .coming-soon-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .coming-soon-container {
        padding: 45px 20px 20px 20px;
        margin: 15px;
    }
    .product-details-box h2 {
        font-size: 1.75rem;
    }
    .ecu-pricing-loyalty-box {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .ecu-price-tag {
        width: auto;
    }
    .modal-controls {
        bottom: 15px;
    }
    .modal-close-btn {
        top: 15px;
        right: 15px;
    }
}