/* Overlay del banner */
.banner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.banner-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Contenedor del banner */
.banner-popup {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 85%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botón de cerrar */
.banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.banner-close:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

/* Contenido del banner */
.banner-content {
    padding: 3rem 2rem 2rem;
    text-align: center;
    background: white;
}

/* Logo */
.banner-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
}

/* Título */
.banner-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: bold;
    line-height: 1.3;
}

/* Contenedor de imagen animada */
.banner-image-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.banner-image {
    max-width: 90%;
    max-height: 180px;
    object-fit: contain;
    opacity: 0;
    position: absolute;
    transition: opacity 0.5s ease-in-out;
}

.banner-image.active {
    opacity: 1;
}

/* Subtítulo */
.banner-subtitle {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Texto CTA */
.banner-cta {
    font-size: 1.6rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.banner-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .banner-popup {
        width: 90%;
    }

    .banner-content {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .banner-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .banner-logo {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }

    .banner-image-container {
        height: 150px;
        margin-bottom: 1.5rem;
    }

    .banner-image {
        max-height: 130px;
    }

    .banner-subtitle {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }

    .banner-cta {
        font-size: 1.4rem;
        padding: 1rem 2rem;
    }

    .banner-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .banner-popup {
        width: 95%;
    }

    .banner-title {
        font-size: 1.6rem;
    }

    .banner-logo {
        max-width: 180px;
    }

    .banner-image-container {
        height: 120px;
    }

    .banner-image {
        max-height: 100px;
    }

    .banner-subtitle {
        font-size: 1.5rem;
    }

    .banner-cta {
        font-size: 1.3rem;
        padding: 0.9rem 1.8rem;
    }
}