/* ========================================
   BANNER IA - CSS OPTIMIZADO PARA MÓVIL
   ======================================== */

/* Reset y configuración base */
.banner-ia-wrapper {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 70px;
}

    .banner-ia-wrapper:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

/* Fondo con gradiente */
.banner-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03) 0%, rgba(108, 117, 125, 0.02) 100%);
    pointer-events: none;
}

/* ========================================
   CONTENIDO PRINCIPAL
   ======================================== */

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    gap: 1rem;
}

/* Sección principal (icono + texto) */
.banner-main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0; /* Para permitir text-overflow */
}

/* Sección de acciones (badges + gratis) */
.banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ========================================
   ICONO PRINCIPAL
   ======================================== */

.ai-icon-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(13, 110, 253, 0.25);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .ai-icon-circle:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
    }

    .ai-icon-circle::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 3s infinite;
        pointer-events: none;
    }

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.banner-main-icon {
    font-size: 1.2rem;
    color: white;
    z-index: 1;
    position: relative;
}

/* ========================================
   TEXTO DEL BANNER
   ======================================== */

.banner-text {
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
    color: #212529;
}

    .banner-title .text-primary {
        background: linear-gradient(135deg, #0d6efd, #6610f2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
    }

.banner-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

.banner-description {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

/* ========================================
   BADGES Y ACCIONES
   ======================================== */

.feature-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(13, 110, 253, 0.15);
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

    .feature-badge:hover {
        background: rgba(13, 110, 253, 0.12);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    }

    .feature-badge i {
        font-size: 0.7rem;
        margin-right: 0.375rem;
    }

.badge-text {
    font-size: 0.75rem;
}

.gratis-badge .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    border-radius: 12px;
}

/* ========================================
   ELEMENTOS DECORATIVOS
   ======================================== */

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(108, 117, 125, 0.03));
    animation: float 6s ease-in-out infinite;
}

.deco-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    right: 10%;
}

.deco-2 {
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 15%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(180deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (max-width: 991.98px) {
    .banner-content {
        padding: 0.875rem 1rem;
    }

    .ai-icon-circle {
        width: 44px;
        height: 44px;
    }

    .banner-main-icon {
        font-size: 1.1rem;
    }

    .banner-title {
        font-size: 1rem;
    }

    .banner-subtitle {
        font-size: 0.8rem;
    }

    .feature-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .badge-text {
        font-size: 0.7rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MÓVIL
   ======================================== */

@media (max-width: 767.98px) {
    .banner-ia-wrapper {
        min-height: 65px;
        border-radius: 10px;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .banner-content {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .banner-main {
        gap: 0.75rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .ai-icon-circle {
        width: 40px;
        height: 40px;
    }

    .banner-main-icon {
        font-size: 1rem;
    }

    .banner-title {
        font-size: 0.95rem;
        margin-bottom: 0.125rem;
    }

    .banner-subtitle {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .feature-badges {
        gap: 0.375rem;
    }

    .feature-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.45rem;
        border-radius: 12px;
    }

        .feature-badge i {
            font-size: 0.6rem;
            margin-right: 0.25rem;
        }

    .badge-text {
        font-size: 0.65rem;
    }

    .gratis-badge .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MÓVIL PEQUEÑO
   ======================================== */

@media (max-width: 575.98px) {
    .banner-ia-wrapper {
        min-height: 60px;
        border-radius: 8px;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .banner-content {
        padding: 0.625rem 0.875rem;
        gap: 0.625rem;
    }

    .banner-main {
        gap: 0.625rem;
        margin-bottom: 0.375rem;
    }

    .ai-icon-circle {
        width: 36px;
        height: 36px;
    }

    .banner-main-icon {
        font-size: 0.9rem;
    }

    .banner-title {
        font-size: 0.875rem;
    }

    .banner-subtitle {
        font-size: 0.7rem;
    }

    .feature-badges {
        gap: 0.25rem;
    }

    .feature-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.375rem;
        border-radius: 10px;
    }

        .feature-badge i {
            font-size: 0.55rem;
            margin-right: 0.2rem;
        }

    .badge-text {
        font-size: 0.6rem;
    }

    .gratis-badge .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - PAISAJE MÓVIL
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .banner-ia-wrapper {
        min-height: 50px;
    }

    .banner-content {
        padding: 0.5rem 0.875rem;
        flex-wrap: nowrap;
    }

    .banner-main {
        margin-bottom: 0;
        width: auto;
        flex: 1;
    }

    .banner-actions {
        width: auto;
        flex-shrink: 0;
    }

    .ai-icon-circle {
        width: 32px;
        height: 32px;
    }

    .banner-main-icon {
        font-size: 0.8rem;
    }

    .banner-title {
        font-size: 0.8rem;
    }

    .banner-subtitle {
        font-size: 0.65rem;
    }

    .feature-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }

    .gratis-badge .badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.35rem;
    }
}

/* ========================================
   OPTIMIZACIONES DE PERFORMANCE
   ======================================== */

.banner-ia-wrapper,
.ai-icon-circle,
.feature-badge {
    will-change: transform;
}

/* Reducir animaciones en dispositivos de bajo rendimiento */
@media (prefers-reduced-motion: reduce) {
    .ai-icon-circle::before,
    .deco-circle {
        animation: none;
    }

    .banner-ia-wrapper:hover,
    .ai-icon-circle:hover,
    .feature-badge:hover {
        transform: none;
    }
}

/* ========================================
   ESTADOS INTERACTIVOS MEJORADOS
   ======================================== */

.ai-icon-circle:active {
    transform: scale(0.95);
}

.feature-badge:active {
    transform: translateY(0) scale(0.95);
}

/* Touch targets mejorados para móvil */
@media (max-width: 767.98px) {
    .ai-icon-circle {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .feature-badge {
        min-height: 32px;
        touch-action: manipulation;
    }
}

/* ========================================
   MODO OSCURO
   ======================================== */

@media (prefers-color-scheme: dark) {
    .banner-ia-wrapper {
        background: linear-gradient(135deg, #212529 0%, #343a40 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .banner-gradient-bg {
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(108, 117, 125, 0.04) 100%);
    }

    .banner-title {
        color: #f8f9fa;
    }

    .banner-subtitle,
    .banner-description {
        color: #adb5bd;
    }

    .feature-badge {
        background: rgba(13, 110, 253, 0.15);
        border-color: rgba(13, 110, 253, 0.25);
    }

        .feature-badge:hover {
            background: rgba(13, 110, 253, 0.2);
        }
}
