/**
 * Ventana modal «Eliminar videos publicitarios» (inicio y horóscopo).
 */
.ventana-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: eliminarAdsFadeIn 0.3s ease;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    box-sizing: border-box;
}

@keyframes eliminarAdsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ventana-info {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #8e44ad;
}

.info-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
}

.info-header i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.info-header h2 {
    font-size: 1.45rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.info-content {
    text-align: center;
}

.info-icon {
    margin-bottom: 1rem;
}

.info-icon i {
    font-size: 3rem;
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.info-message h3 {
    color: #f39c12;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.info-message p {
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.beneficios {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.beneficios h4 {
    color: #27ae60;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.beneficios ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.beneficios li {
    color: #fff;
    margin-bottom: 0.6rem;
    padding: 0.45rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #27ae60;
    font-size: 0.92rem;
}

.precio-info {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 15px;
    border: 2px solid #f39c12;
}

.precio-destacado {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
}

.precio-destacado .moneda {
    font-size: 1.35rem;
}

.precio-destacado .periodo {
    font-size: 0.95rem;
    color: rgba(243, 156, 18, 0.85);
}

.precio-explicacion {
    color: #fff;
    margin: 0;
    font-size: 0.88rem;
}

.precio-explicacion small {
    color: rgba(255, 255, 255, 0.75);
}

.info-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

@media (max-width: 768px) {
    .ventana-info .info-actions {
        margin-top: 1.5rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    /* Scroll visible: que se vea que hay más contenido hacia abajo (planes, términos, botones) */
    .ventana-info {
        overflow-y: scroll;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 215, 0, 0.65) rgba(0, 0, 0, 0.35);
    }
    .ventana-info::-webkit-scrollbar {
        width: 10px;
    }
    .ventana-info::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        margin: 6px 0;
    }
    .ventana-info::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(255, 215, 0, 0.75) 0%, rgba(142, 36, 170, 0.55) 100%);
        border-radius: 8px;
        border: 2px solid rgba(15, 10, 26, 0.55);
    }
    .ventana-info::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #ffd700 0%, #8e24aa 100%);
    }
}

.btn-suscribirse {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-suscribirse:hover {
    filter: brightness(1.08);
}

.btn-cerrar-info {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

/* Confirmación post-pago (inicio) */
.ventana-confirmacion-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.ventana-confirmacion {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 18px;
    padding: 1.75rem;
    max-width: 440px;
    width: 92%;
    border: 2px solid #27ae60;
    color: #fff;
    text-align: center;
}

.ventana-confirmacion .confirmacion-header h2 {
    color: #2ecc71;
    margin: 0.5rem 0 1rem;
    font-size: 1.25rem;
}

.ventana-confirmacion .confirmacion-content ul {
    text-align: left;
    padding-left: 1.2rem;
    margin: 0.75rem 0;
}

.ventana-confirmacion .btn-entendido {
    margin-top: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

/* Selección de plan (4 opciones) */
.eliminar-ads-plan-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 1rem 0 1.1rem;
    text-align: center;
}

@media (max-width: 420px) {
    .eliminar-ads-plan-list {
        grid-template-columns: 1fr;
    }
}

.eliminar-ads-plan-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.eliminar-ads-plan-option:hover {
    border-color: rgba(243, 156, 18, 0.65);
    transform: translateY(-1px);
}

.eliminar-ads-plan-option--selected {
    border-color: #f39c12;
    box-shadow: 0 0 0 1px rgba(243, 156, 18, 0.5), 0 6px 20px rgba(243, 156, 18, 0.2);
    background: rgba(243, 156, 18, 0.12);
}

.eliminar-ads-plan-option__price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f39c12;
}

.eliminar-ads-plan-option__dur {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.25;
}

.eliminar-ads-plan-hint {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem;
}

/* Botón unificado PayPal | Stripe (misma idea que biblia-tarot.html) */
#ventana-eliminar-ads-inicio-overlay .eliminar-ads-metodo-preferido {
    font-size: 0.9rem;
    opacity: 0.88;
    margin: 0.35rem 0 0.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
}

#ventana-eliminar-ads-inicio-overlay .eliminar-ads-pago-wrap {
    display: flex;
    justify-content: center;
    margin: 0.35rem 0 0.75rem;
    width: 100%;
}

#ventana-eliminar-ads-inicio-overlay .btn-pago-unificado-libro {
    display: flex;
    width: 100%;
    max-width: 100%;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

#ventana-eliminar-ads-inicio-overlay .btn-pago-unificado-libro__half {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 0.9rem 0.65rem;
    font-family: inherit;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1.2;
}

#ventana-eliminar-ads-inicio-overlay .btn-pago-unificado-libro__half:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#ventana-eliminar-ads-inicio-overlay .btn-pago-unificado-libro__half:not(:disabled):hover {
    filter: brightness(1.12);
}

#ventana-eliminar-ads-inicio-overlay .btn-pago-unificado-libro__half--paypal {
    background: linear-gradient(165deg, #009cde 0%, #0070ba 42%, #1546a0 100%);
}

#ventana-eliminar-ads-inicio-overlay .btn-pago-unificado-libro__half--stripe {
    background: linear-gradient(165deg, #8b84ff 0%, #635bff 48%, #4b3fd9 100%);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.28);
}

#ventana-eliminar-ads-inicio-overlay .btn-pago-unificado-libro__half.eliminar-ads-pago-half--selected:not(:disabled) {
    filter: brightness(1.14);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

@media (max-width: 380px) {
    #ventana-eliminar-ads-inicio-overlay .btn-pago-unificado-libro__half {
        padding: 0.72rem 0.4rem;
        font-size: 0.78rem;
        gap: 0.25rem;
    }
}
