/* ==========================================================================
   TÍTULOS, DEGRADADOS Y HIGHLIGHTS
   ========================================================================== */
.section-title { 
    font-size: clamp(2rem, 5vw, 3rem); 
    margin-bottom: 1rem; 
    letter-spacing: -1.5px; 
    font-weight: 800; 
    background: linear-gradient(135deg, #ffffff 30%, var(--tech-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: filter 0.4s ease;
    filter: drop-shadow(0 0 0px rgba(0, 168, 255, 0));
}

.section-header.revealed .section-title:hover {
    filter: drop-shadow(0 0 15px rgba(0, 168, 255, 0.5)) !important;
}

.section-desc { 
    color: #888; 
    line-height: 1.6; 
    max-width: 100%; 
    font-size: 1.05rem; 
}

.text-gradient { 
    background: linear-gradient(to right, #fff, var(--tech-blue)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.neon-highlight { 
    color: var(--tech-blue); 
    text-shadow: 0 0 12px rgba(0, 168, 255, 0.6); 
    font-weight: 800; 
}

.cyber-highlight {
    color: #b2ebf2; 
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.4);
}

/* ==========================================================================
   EFECTOS GLOBALES (GLOW, REVEAL, CASCADA)
   ========================================================================== */
.glow-target { 
    position: relative; 
    overflow: hidden; 
    transition: 0.3s; 
    border: 1px solid rgba(255,255,255,0.05); 
}

.glow-target::before { 
    content: ""; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: radial-gradient( 800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--tech-glow), transparent 40% ); 
    opacity: 0; 
    transition: 0.3s; 
    z-index: 1; 
    pointer-events: none; 
}

.glow-target:hover::before { opacity: 1; }
.glow-target:hover { border-color: rgba(0, 168, 255, 0.4); }

.scroll-reveal { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: opacity, transform;
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

.scroll-reveal-3d { 
    opacity: 0; 
    transform: scale(0.9) translateY(40px); 
    filter: blur(15px); 
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); 
}
.scroll-reveal-3d.revealed { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }

.decode-text { opacity: 0; transform: translateY(20px); filter: blur(10px); }
.decode-text.revealed { animation: cyberRevealDesc 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.section-header .section-title {
    opacity: 0; transform: translateX(-30px); filter: blur(10px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, filter 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.section-header.revealed .section-title { opacity: 1; transform: translateX(0); filter: blur(0px) drop-shadow(0 0 0px transparent); transition: filter 0.4s ease; }

.section-header .section-desc { opacity: 0; transform: translateY(20px); filter: blur(10px); }
.section-header.revealed .section-desc { animation: cyberRevealDesc 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.4s; }

@keyframes cyberRevealDesc {
    0% { opacity: 0; transform: translateY(20px); filter: blur(10px); color: var(--tech-blue); }
    40% { color: #fff; }
    100% { opacity: 1; transform: translateY(0); filter: blur(0px); color: #888; }
}

.reveal-up { opacity: 0; transform: translateY(30px); animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   COMPONENTES UI: BOTONES
   ========================================================================== */
.btn-cta-single {
    background: var(--tech-blue); color: #fff; padding: 1.1rem 2.8rem; border-radius: 6px;
    font-weight: 700; text-decoration: none; font-size: 1rem; position: relative;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; animation: pulseGlow 3s infinite;
}
@keyframes pulseGlow { 
    0%, 100% { box-shadow: 0 0 15px rgba(0, 168, 255, 0.3); } 
    50% { box-shadow: 0 0 30px rgba(0, 168, 255, 0.6); } 
}
.btn-cta-single:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 0 40px rgba(0, 168, 255, 0.8); background: #00b8ff; }
.btn-cta-single::after { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%); opacity: 0; transition: 0.4s; pointer-events: none; }
.btn-cta-single:hover::after { opacity: 1; transform: scale(0.5); }

.cyber-action-btn, .cyber-action-badge {
    font-family: 'Fira Code', Consolas, monospace; font-size: 0.85rem; font-weight: 800; letter-spacing: 1px;
    padding: 0.6rem 1.2rem; border-radius: 6px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.cyber-action-btn { color: var(--tech-blue); background: rgba(0, 168, 255, 0.05); border: 1px solid rgba(0, 168, 255, 0.3); }
.cyber-action-btn:hover { background: rgba(0, 255, 204, 0.1); border-color: #00ffcc; color: #00ffcc; box-shadow: 0 0 20px rgba(0, 255, 204, 0.4), inset 0 0 10px rgba(0, 255, 204, 0.1); transform: translateY(-3px); }
.cyber-action-badge.lock-badge { color: #666; background: rgba(255, 255, 255, 0.02); border: 1px dashed rgba(255, 255, 255, 0.1); cursor: not-allowed; }

.btn-primary { 
    background: var(--tech-blue); color: #fff; padding: 1.1rem; border: none; border-radius: 6px; 
    font-weight: 700; cursor: pointer; transition: 0.3s; font-family: 'Fira Code', monospace; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary:hover { background: #008ecc; box-shadow: 0 0 15px rgba(0, 168, 255, 0.4); }
.btn-primary:disabled { background: #333; color: #888; cursor: not-allowed; box-shadow: none; }

.btn-secondary { 
    background: transparent; color: #fff; padding: 1.1rem; border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.3s; font-family: 'Fira Code', monospace; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.4); }

/* ==========================================================================
   COMPONENTES UI: BENTO GRID SIMÉTRICO
   ========================================================================== */
.bento-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
}

@media (min-width: 768px) and (max-width: 1023px) { 
    .bento-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (min-width: 1024px) { 
    .bento-grid { 
        grid-template-columns: repeat(3, 1fr); 
        align-items: center;
    } 
}

.bento-card { 
    background: rgba(15, 18, 22, 0.4); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.5); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    border-radius: 12px; 
    padding: 2rem 1.8rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    position: relative;
    height: 100%; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
    .bento-card.bento-flagship {
        transform: translateY(-4px) scale(1.02);
        background: rgba(18, 24, 32, 0.55);
        border-top: 1px solid rgba(0, 168, 255, 0.7);
        border-left: 1px solid rgba(0, 168, 255, 0.15);
        border-right: 1px solid rgba(0, 168, 255, 0.15);
        border-bottom: 1px solid rgba(0, 0, 0, 0.6);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 168, 255, 0.12), inset 0 1px 0 rgba(0, 168, 255, 0.1);
        z-index: 5;
    }
    
    .bento-grid .bento-card.bento-flagship:hover {
        filter: blur(0px) brightness(1.15) !important;
        transform: translateY(-8px) scale(1.04) !important;
        border-top: 1px solid var(--tech-blue) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 168, 255, 0.25) !important;
    }
}

.bento-header { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 0.8rem; 
    margin-bottom: 1.2rem; 
}

/* CAJA CONTENEDORA AMPLIADA PARA DAR MAYOR ESCALA A LOS ICONOS */
.bento-icon-wrapper { 
    width: 64px; 
    height: 64px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

/* TAMAÑO MAXIMIZADO DE VECTORES EN AZUL NEÓN */
.bento-icon-svg {
    width: 56px;
    height: 56px;
    transition: 0.3s;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.6));
}

/* EQUILIBRIO ÓPTICO DEL VS CODE: Achicado para empatar masa visual con el resto */
.bento-icon-svg.icon-vsc {
    width: 44px;
    height: 44px;
}

.bento-card:hover .bento-icon-svg {
    filter: drop-shadow(0 0 18px rgba(0, 168, 255, 0.9));
}

.bento-hidden { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-visible { opacity: 1; transform: translateY(0) scale(1); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }

.bento-grid:hover .bento-visible { filter: blur(4px) brightness(0.6); transform: translateY(0) scale(0.98); }
.bento-grid .bento-visible:hover { filter: blur(0px) brightness(1.1); transform: translateY(0) scale(1.02); border-top: 1px solid rgba(0, 168, 255, 0.6); box-shadow: 0 25px 50px rgba(0,0,0,0.8), inset 0 1px 0 rgba(0, 168, 255, 0.2); z-index: 10; }

.bento-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-content h3 { font-size: 1.25rem; margin-bottom: 0; color: #fff; line-height: 1.2; text-align: center; }

/* TEXTO JUSTIFICADO MANTENIDO */
.bento-content p { 
    color: #999; 
    font-size: 0.9rem; 
    line-height: 1.5; 
    margin-bottom: 0; 
    text-align: justify; 
}

/* COMPRESIÓN DEL MARGEN SUPERIOR DEL BOTÓN */
.soluciones-action {
    text-align: center;
    margin-top: 1.8rem; 
    width: 100%;
}

.icon-live-dot { width: 14px; height: 14px; background: var(--tech-blue); border-radius: 50%; box-shadow: 0 0 10px var(--tech-blue), 0 0 20px var(--tech-blue); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

/* ==========================================================================
   COMPONENTES UI: FORMULARIOS BASE
   ========================================================================== */
.input-group { position: relative; margin-bottom: 1.5rem; }
.input-group input, .input-group textarea { 
    width: 100%; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #00ffcc; padding: 1.2rem; border-radius: 6px; outline: none; transition: all 0.3s ease;
    font-family: 'Fira Code', Consolas, monospace; font-size: 0.95rem;
}
.input-group input::placeholder, .input-group textarea::placeholder { color: #555; font-family: 'Inter', sans-serif; }
.input-group input:focus, .input-group textarea:focus { 
    border-color: var(--tech-blue); box-shadow: 0 0 15px rgba(0, 168, 255, 0.2), inset 0 0 10px rgba(0, 168, 255, 0.1); 
    background: rgba(0, 168, 255, 0.02);
}
.error-msg { display: none; color: #ff5f56; font-size: 0.8rem; margin-top: 0.5rem; font-family: 'Fira Code', monospace; }