/* ==========================================================================
   Tecnologia.css - Estilos Premium (Glassmorphism & Neon)
   ========================================================================== */

/* --- Page Hero --- */
.page-header {
    padding: calc(100px + var(--spacing-xl)) 0 var(--spacing-lg);
    background: radial-gradient(circle at top center, rgba(11, 92, 171, 0.15) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(11, 92, 171, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 92, 171, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px);
    animation: gridMove 20s linear infinite;
}

.page-header .subtitle {
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.alt-bg {
    background-color: var(--color-surface);
}

/* --- Ecosystem Map --- */
.ecosystem-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

/* Sequence Infrastructure */
.sequence-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 0;
}

.sequence-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
}

.sequence-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(11, 92, 171, 0.4), transparent 50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sequence-card:hover {
    transform: translateY(-8px);
    border-color: rgba(11, 92, 171, 0.3);
    box-shadow: 0 15px 30px rgba(11, 92, 171, 0.15);
    background: var(--color-surface);
}

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

.sequence-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    transition: transform 0.4s ease, color 0.4s ease;
}

.sequence-card:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(11, 92, 171, 0.4);
}

.sequence-card span {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
}

.sequence-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0;
    max-width: 120px;
    line-height: 1.4;
}

.sequence-arrow {
    color: rgba(11, 92, 171, 0.3);
    font-size: 1.8rem;
    animation: pulseArrow 2s infinite;
}

@keyframes pulseArrow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); color: var(--color-primary); }
}

@media (max-width: 768px) {
    .sequence-container {
        flex-direction: column;
    }
    .sequence-arrow i {
        transform: rotate(90deg);
    }
}

/* --- Tech Detail Grids --- */
.tech-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-detail__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-detail__content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tech-detail__content p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- Tech Features Lists --- */
.tech-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.tech-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tech-features li:hover {
    background: rgba(11, 92, 171, 0.1);
    border-color: rgba(11, 92, 171, 0.3);
    transform: translateX(10px);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.05);
}

.tech-features li i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* --- Visual Panels (Glassmorphism Isometric) --- */
.visual-panel {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 70%), var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 40px rgba(11, 92, 171, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.5s ease;
}

.visual-panel::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle, rgba(11, 92, 171, 0.2) 0%, transparent 60%);
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.visual-panel:hover {
    transform: translateY(-10px) rotate3d(1, 1, 0, 5deg);
    box-shadow: 0 30px 60px rgba(11, 92, 171, 0.1), inset 0 0 60px rgba(11, 92, 171, 0.2);
    border-color: rgba(11, 92, 171, 0.3);
}

.visual-panel:hover::after {
    opacity: 1;
}

.visual-panel i {
    font-size: 6rem;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    filter: drop-shadow(0 10px 15px rgba(11, 92, 171, 0.3));
}

.visual-panel:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 15px 25px rgba(11, 92, 171, 0.5));
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .tech-detail__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .tech-detail__content {
        order: 2;
    }

    .visual-panel {
        order: 1;
        max-width: 300px;
    }

    .tech-features li {
        text-align: left;
    }
}
