/********** NAVBAR / APV Banner Premium **********/

/* Si no tienes la variable global, descomenta esto:
:root {
    --redgecotel: #c00000;
}
*/

.apv-banner-premium {
    background: linear-gradient(135deg, var(--redgecotel) 0%, #bc0202 50%, #a00101 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #ffc107;
    box-shadow: 0 4px 20px rgba(188, 2, 2, 0.25);
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.apv-banner-container {
    position: relative;
    z-index: 2;
    padding: 6px 0; /* altura reducida */
}

.apv-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: bg-shift 8s ease-in-out infinite;
}

/* Icono principal */
.apv-main-icon-wrapper {
    position: relative;
    margin-right: 16px;
}

.apv-main-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    position: relative;
    z-index: 2;
    animation: icon-float 3s ease-in-out infinite;
}

.apv-main-icon i {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.apv-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 20px;
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Contenido de texto */
.apv-content {
    flex: 1;
}

.apv-badge {
    margin-bottom: 4px;
}

.apv-badge-text {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
}

.apv-title {
    color: #fff;
    margin: 0 0 4px 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.apv-title-main {
    font-size: 1.05rem;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}

.apv-title-main strong {
    color: #ffc107;
    font-weight: 800;
}

.apv-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
    line-height: 1.2;
}

/* Botón ¿Qué es el APV? */
.apv-learn-more-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    line-height: 1.2;
}

.apv-learn-more-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Botón Descargar */
.apv-download-btn {
    position: relative;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #fff;
    padding: 8px 16px;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-right: 12px;
    line-height: 1.2;
}

.apv-btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apv-btn-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.apv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    color: #fff;
    text-decoration: none;
}

.apv-download-btn:hover .apv-btn-effect {
    left: 100%;
}

/* Botones acción (cerrar / no mostrar) */
.apv-actions {
    display: flex;
    gap: 6px;
}

.apv-close-btn,
.apv-never-show-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    line-height: 1;
    font-size: 0.8rem;
}

.apv-close-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg) scale(1.1);
}

.apv-never-show-btn {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.apv-never-show-btn:hover {
    background: rgba(220, 53, 69, 0.5);
    transform: scale(1.1);
}

/*** Modal APV ***/
.apv-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apv-feature-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.apv-benefit-icon {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apv-use-case-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-step {
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--redgecotel);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

/*** Animaciones banner ***/
@keyframes bg-shift {
    0%, 100% { transform: translateX(0) scale(1); }
    50%      { transform: translateX(10px) scale(1.02); }
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-5px) rotate(5deg); }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes slideInBanner {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes slideOutBanner {
    from { transform: translateY(0);     opacity: 1; }
    to   { transform: translateY(-100%); opacity: 0; }
}

.apv-banner-premium.show {
    display: block !important;
    animation: slideInBanner 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.apv-banner-premium.hiding {
    animation: slideOutBanner 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/*** Responsive ***/
@media (max-width: 991.98px) {
    .apv-main-icon {
        width: 45px;
        height: 45px;
    }

    .apv-main-icon i {
        font-size: 1.1rem;
    }

    .apv-title-main {
        font-size: 1rem;
    }

    .apv-download-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-right: 10px;
    }
}

@media (max-width: 767.98px) {
    .apv-banner-container {
        padding: 6px 0;
    }

    .apv-main-icon-wrapper {
        margin-right: 12px;
    }

    .apv-main-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .apv-title-main {
        font-size: 0.95rem;
    }

    .apv-subtitle {
        font-size: 0.75rem;
    }

    .apv-download-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        margin-right: 8px;
    }

    .apv-close-btn,
    .apv-never-show-btn {
        width: 32px;
        height: 32px;
    }

    .apv-never-show-option {
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    .apv-banner-premium .container {
        padding: 0 15px;
    }

    .apv-banner-premium .row {
        text-align: center;
    }

    .apv-banner-premium .d-flex {
        justify-content: center;
        margin-bottom: 8px;
    }

    .apv-content {
        text-align: center;
    }

    .apv-download-btn {
        margin: 0 auto 8px auto;
    }

    .apv-actions {
        justify-content: center;
    }

    .apv-main-icon-wrapper {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* Toast (mensaje verde de confirmación) */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0);     opacity: 1; }
    to   { transform: translateX(100%);  opacity: 0; }
}
