/* Extracted from views/comparador/index.php */
@layer pages {

/* ═══════════════════════════════════════════════════════════════════════════
   QUANTUM APEX — Comparador Hub Styles
   ═══════════════════════════════════════════════════════════════════════════ */
   
/* Hero Section */
.qx-hero {
    position: relative;
    min-height: var(--gc-hero-sm);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(165deg,
        var(--gc-slate-950, #020617) 0%,
        var(--gc-slate-900, #0f172a) 25%,
        #1e1b4b 50%,
        #312e81 75%,
        #1e1b4b 100%
    );
}

/* Animated mesh gradient background */
.qx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139,92,246,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(236,72,153,0.1) 0%, transparent 50%);
    animation: meshFloat 12s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    25% { transform: translate(2%, -2%) scale(1.02); }
    50% { transform: translate(-1%, 2%) scale(0.98); opacity: 0.8; }
    75% { transform: translate(1%, -1%) scale(1.01); }
}

/* Living grid pattern */
.qx-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99,102,241,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; background-size: 50px 50px; }
    50% { opacity: 0.6; background-size: 52px 52px; }
}

/* Floating orbs */
.qx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.qx-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 60%);
    top: -10%;
    left: 10%;
    animation: orbFloat1 15s ease-in-out infinite;
}

.qx-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 60%);
    bottom: 0%;
    right: 15%;
    animation: orbFloat2 12s ease-in-out infinite;
}

.qx-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236,72,153,0.25) 0%, transparent 60%);
    top: 40%;
    left: 50%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, 20px); }
    66% { transform: translate(-20px, 40px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, -30px); }
    66% { transform: translate(20px, -20px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 30px); }
}

/* Badge pulsante */
.qx-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: rgba(99,102,241,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: var(--gc-radius-full, 9999px);
}

.qx-badge__dot {
    position: relative;
    width: 8px;
    height: 8px;
}

.qx-badge__dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gc-indigo-light, #818cf8);
    border-radius: 50%;
    animation: dotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.qx-badge__dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gc-indigo-lighter, #a5b4fc);
    border-radius: 50%;
}

@keyframes dotPing {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Title gradient animation */
.qx-title-gradient {
    background: linear-gradient(135deg, 
        #818cf8 0%, 
        #c084fc 25%, 
        #f472b6 50%, 
        #818cf8 75%, 
        #c084fc 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPARISON CARDS — Holographic Premium
   ═══════════════════════════════════════════════════════════════════════════ */
.qx-card {
    position: relative;
    background: linear-gradient(145deg, 
        rgba(30,27,75,0.8) 0%, 
        rgba(15,23,42,0.9) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--gc-radius-3xl, 24px);
    padding: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}

.qx-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99,102,241,0.1) 0%, 
        transparent 50%,
        rgba(139,92,246,0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.qx-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-gradient, linear-gradient(90deg, #6366f1, #8b5cf6));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.qx-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(99,102,241,0.4);
    box-shadow: 
        0 25px 60px -12px rgba(99,102,241,0.25),
        0 10px 30px -8px rgba(0,0,0,0.3);
}

.qx-card:hover::before {
    opacity: 1;
}

.qx-card:hover::after {
    transform: scaleX(1);
}

/* Icon VS Badge */
.qx-vs-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.qx-icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--gc-radius-2xl, 16px);
    position: relative;
    transition: all 0.3s ease;
}

.qx-icon-box--primary {
    background: linear-gradient(135deg, var(--icon-color-1, #3b82f6) 0%, rgba(var(--icon-rgb-1, 59,130,246),0.6) 100%);
    box-shadow: 0 8px 20px -4px rgba(var(--icon-rgb-1, 59,130,246), 0.4);
}

.qx-icon-box--secondary {
    background: rgba(51,65,85,0.8);
    border: 1px solid rgba(71,85,105,0.5);
}

.qx-icon-box svg {
    width: 26px;
    height: 26px;
    color: white;
}

.qx-vs-badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 2px solid rgba(99,102,241,0.5);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gc-indigo-lighter, #a5b4fc);
    margin-left: -12px;
    margin-right: -12px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.qx-card:hover .qx-icon-box--primary {
    transform: scale(1.08) rotate(-3deg);
}

.qx-card:hover .qx-icon-box--secondary {
    transform: scale(1.05) rotate(3deg);
    background: rgba(71,85,105,0.9);
}

/* Tag premium */
.qx-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    border-radius: var(--gc-radius-full, 9999px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Stats chips */
.qx-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.qx-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--gc-radius-full, 9999px);
    font-size: 0.75rem;
    color: var(--gc-indigo-lighter, #a5b4fc);
}

.qx-stat svg {
    width: 12px;
    height: 12px;
}

/* CTA Arrow */
.qx-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.qx-cta svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qx-card:hover .qx-cta {
    color: var(--gc-indigo-lighter, #a5b4fc);
}

.qx-card:hover .qx-cta svg {
    transform: translateX(6px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOOLS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.qx-tool {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(30,27,75,0.5);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--gc-radius-2xl, 16px);
    transition: all 0.3s ease;
}

.qx-tool:hover {
    background: rgba(30,27,75,0.8);
    border-color: rgba(99,102,241,0.3);
    transform: translateX(8px);
}

.qx-tool__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(139,92,246,0.1) 100%);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: var(--gc-radius-xl, 12px);
    transition: all 0.3s ease;
}

.qx-tool:hover .qx-tool__icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(99,102,241,0.3) 0%, rgba(139,92,246,0.2) 100%);
}

.qx-tool__icon svg {
    width: 22px;
    height: 22px;
    color: var(--gc-indigo-lighter, #a5b4fc);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.qx-cta-section {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(30,27,75,0.9) 0%, 
        rgba(49,46,129,0.7) 50%,
        rgba(30,27,75,0.9) 100%
    );
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--gc-radius-4xl, 32px);
    overflow: hidden;
}

.qx-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(166, 33, 38,0.3) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.qx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gc-primary, #a62126) 0%, var(--gc-primary-hover, #a62126) 100%);
    color: var(--gc-white, #fff);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--gc-radius-full, 9999px);
    box-shadow:
        0 10px 30px -5px rgba(166, 33, 38,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.qx-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 15px 40px -5px rgba(166, 33, 38,0.5),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.qx-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid rgba(166, 33, 38,0.5);
    color: var(--gc-red-300, #fca5a5);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--gc-radius-full, 9999px);
    transition: all 0.3s ease;
}

.qx-btn-secondary:hover {
    background: rgba(166, 33, 38,0.1);
    border-color: rgba(166, 33, 38,0.8);
    color: white;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .qx-hero::before,
    .qx-grid,
    .qx-orb,
    .qx-title-gradient,
    .qx-badge__dot::before {
        animation: none;
    }
    
    .qx-card,
    .qx-tool {
        transition: none;
    }
}

} /* end @layer pages */
