/* ============================================================================
   ADUAPORTIX HERO & MARQUEE - Hero Section & Live Notifications
   Parte de la Fase 3 de Refactorización.
   ============================================================================ */

/* ==================== MARQUEE BANNER (CINTA) ==================== */
.aduaportix-marquee {
    width: 100%;
    background: var(--ix-bg-card);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--ix-border);
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 990;
    will-change: transform;
}

.adx-mode-fading_feed.aduaportix-marquee {
    height: 32px;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}

.adx-mode-fading_feed .aduaportix-marquee-content {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
    animation: none !important;
    position: relative;
}

.adx-mode-fading_feed .aduaportix-marquee-item {
    position: absolute;
    inset: 0;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.adx-mode-fading_feed .pedimento {
    background: transparent !important;
    padding: 0 !important;
    color: var(--ix-text-3) !important;
    margin-left: 5px;
}

.adx-mode-fading_feed .aduaportix-marquee-item.is-active {
    opacity: 1;
    pointer-events: auto;
}

.aduaportix-marquee-content {
    display: flex;
    white-space: nowrap;
    gap: 2rem;
    will-change: transform;
    animation: aduaportixMarquee var(--adx-marquee-speed, 80s) linear infinite;
}

@keyframes aduaportixMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.aduaportix-marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ix-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    border-radius: var(--ix-r-sm);
}

/* ==================== LIVE TOASTS & PILLS ==================== */
#adx-live-toast-container {
    position: fixed;
    top: calc(15px + var(--adx-header-height) + var(--adx-live-pill-gap));
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999 !important;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    width: 100%;
    max-width: 500px;
    padding-top: var(--adx-live-pill-gap);
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#adx-live-toast-container.adx-scrolled {
    top: calc(15px + var(--adx-header-height) + var(--adx-live-pill-gap)) !important;
}

.adx-toast {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 12px;
    min-height: 26px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: auto;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    animation: adx-swipe-in-left var(--adx-lp-entry, 0.7s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Estilo de Ofuscación de Precio (Refinamiento Visual) */
.adx-price-masked {
    filter: blur(4px);
    opacity: 0.35;
    user-select: none;
    background: rgba(16, 185, 129, 0.15);
    padding: 0 4px;
    border-radius: 4px;
    margin-right: 2px;
}

.adx-status-dot {
    width: 6px; height: 6px;
    background: #10b981; border-radius: 50%;
    box-shadow: 0 0 6px #10b981; margin-right: 6px;
    animation: adx-dot-pulse 1.5s infinite;
}

@keyframes adx-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ==================== HERO SECTION ==================== */
.aduaportix-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 2.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.88) 0%, var(--ix-bg) 100%);
    padding-top: calc(15px + var(--adx-header-height) + 20px);
}

.adx-info-mode-pill_toasts .aduaportix-hero {
    padding-top: calc(15px + var(--adx-header-height) + var(--adx-live-pill-gap) + var(--adx-live-pill-height) + 20px);
}

.aduaportix-hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    top: -150px;
    right: -80px;
    pointer-events: none;
    animation: ixGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes ixGlowPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.aduaportix-hero-content {
    max-width: 680px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.aduaportix-hero-title {
    font-size: clamp(1.7rem, 5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.05em;
    text-transform: none;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3887ff 0%, #a88bff 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    display: block;
    text-align: center;
}

/* Descripción colapsable */
.adx-hero-desc-container {
    position: relative;
    cursor: pointer;
    margin: 0 auto 1.5rem;
    max-width: 520px;
    padding: 5px 0;
    transition: var(--ix-transition);
}

.adx-hero-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

.adx-hero-desc-container.is-expanded .adx-hero-desc {
    -webkit-line-clamp: unset;
    display: block;
    mask-image: none;
    -webkit-mask-image: none;
}

.adx-hero-expand-icon {
    display: flex;
    justify-content: center;
    color: var(--ix-accent-cyan);
    margin-top: 10px;
    transition: transform 0.4s ease;
}

.adx-hero-desc-container.is-expanded .adx-hero-expand-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .aduaportix-hero {
        padding-top: calc(15px + var(--adx-header-height) + 35px) !important;
    }
    .adx-info-mode-pill_toasts .aduaportix-hero {
        padding-top: calc(15px + var(--adx-header-height) + var(--adx-live-pill-gap) + var(--adx-live-pill-height) + 35px) !important;
    }
}