/* Banner promocional Empresa Certificada - Incluir con _banner_empresa_certificada.php */

@keyframes bannerCertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes bannerCertFadeOut {
    to {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }
}
@keyframes bannerCertPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(245,158,11,0.4); }
    50% { box-shadow: 0 4px 28px rgba(245,158,11,0.55); }
}
@keyframes bannerCertFeatIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes bannerCertVisualFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.banner-certificada-wrapper {
    animation: bannerCertSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.banner-certificada-wrapper.banner-closing {
    animation: bannerCertFadeOut 0.35s ease-out forwards;
}
.banner-certificada-wrapper.banner-closed {
    display: none !important;
}

.banner-certificada {
    width: 100%;
    max-width: 900px;
    padding: 28px 36px;
    padding-top: 44px;
    background: linear-gradient(135deg, #1f1a0f 0%, #332a1a 50%, #281f0d 100%);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05);
}
.banner-certificada .banner-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.banner-certificada .banner-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: scale(1.05);
}
.banner-certificada::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(245,158,11,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.banner-certificada::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(251,191,36,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.banner-certificada .banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.banner-certificada .banner-content {
    flex: 1;
    min-width: 260px;
}
.banner-certificada .banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
    animation: bannerCertFeatIn 0.5s ease-out 0.2s both;
}
.banner-certificada .banner-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    animation: bannerCertFeatIn 0.5s ease-out 0.25s both;
}
.banner-certificada .banner-title span { color: #fcd34d; }
.banner-certificada .banner-desc {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    animation: bannerCertFeatIn 0.5s ease-out 0.3s both;
}
.banner-certificada .banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}
.banner-certificada .banner-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
    animation: bannerCertFeatIn 0.5s ease-out both;
}
.banner-certificada .banner-feat:nth-child(1) { animation-delay: 0.4s; }
.banner-certificada .banner-feat:nth-child(2) { animation-delay: 0.5s; }
.banner-certificada .banner-feat:nth-child(3) { animation-delay: 0.6s; }
.banner-certificada .banner-feat svg {
    flex-shrink: 0;
    color: #fbbf24;
}
.banner-certificada .banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
    animation: bannerCertFeatIn 0.5s ease-out 0.55s both, bannerCertPulse 2.5s ease-in-out 1.2s infinite;
}
.banner-certificada .banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,158,11,0.5);
    animation: none;
}
.banner-certificada .banner-cta svg {
    width: 20px;
    height: 20px;
}
.banner-certificada .banner-visual {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(251,191,36,0.15));
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    animation: bannerCertFeatIn 0.6s ease-out 0.35s both;
}
.banner-certificada .banner-visual svg {
    width: 70px;
    height: 70px;
    color: rgba(255,255,255,0.9);
    animation: bannerCertVisualFloat 3s ease-in-out 1s infinite;
}
@media (max-width: 640px) {
    .banner-certificada { padding: 24px 20px; }
    .banner-certificada .banner-inner { flex-direction: column; text-align: center; }
    .banner-certificada .banner-content { min-width: 100%; }
    .banner-certificada .banner-features { justify-content: center; }
    .banner-certificada .banner-visual { width: 100px; height: 100px; }
    .banner-certificada .banner-visual svg { width: 50px; height: 50px; }
}
