/* =========================================
   ESTILOS ESPECÍFICOS: PÁGINA DE PORTAFOLIO B2B
   ========================================= */

.text-white-force { color: #ffffff !important; }
.text-light-force { color: #e2e8f0 !important; }
.section-padding { padding: 80px 10%; }
.text-center { text-align: center; }
.section-title { color: var(--text-title); font-size: 2.5rem; margin-bottom: 10px; font-weight: 800; }
.sec-desc { color: var(--text-p); margin-bottom: 40px; font-size: 1.1rem; line-height: 1.6;}

/* --- HERO --- */
.hero-portafolio {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 160px 10% 80px 10%; text-align: center; position: relative; overflow: hidden;
}
.hero-portafolio::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(to bottom, transparent, #ffffff);
}
.hero-badge {
    display: inline-block; background: rgba(245, 158, 11, 0.2); color: var(--arcadian-gold);
    padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 800; letter-spacing: 1px;
    margin-bottom: 20px; border: 1px solid var(--arcadian-gold); position: relative; z-index: 2;
}
.hero-content { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.hero-content h1 { font-size: 3.8rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.hero-content p { font-size: 1.2rem; line-height: 1.6; }

/* --- BARRA DE MÉTRICAS (KPIs) --- */
.metrics-section { background-color: #ffffff; padding: 40px 10% 20px; position: relative; z-index: 10; margin-top: -60px; }
.metrics-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background: #ffffff; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0; max-width: 1200px; margin: 0 auto; overflow: hidden;
}
.metric-card { padding: 30px; text-align: center; border-right: 1px solid #f1f5f9; transition: all 0.3s ease; }
.metric-card:last-child { border-right: none; }
.metric-card:hover { background: #f8fafc; transform: translateY(-5px); }
.metric-card i { font-size: 2rem; color: var(--arcadian-blue); margin-bottom: 15px; }
.metric-card h3 { font-size: 2.5rem; font-weight: 800; color: #0f172a; margin-bottom: 5px; }
.metric-card p { font-size: 0.95rem; color: #64748b; font-weight: 700; text-transform: uppercase; margin: 0; }

/* =========================================
   CARRUSEL INFINITO DE CLIENTES (CORREGIDO PARA 1000x1000 A COLOR)
   ========================================= */
.clients-marquee-section { background-color: #ffffff; padding-top: 60px; border-bottom: 1px solid #e2e8f0; overflow: hidden; }

.marquee-container {
    width: 100%; overflow: hidden; position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex; align-items: center; gap: 80px; width: max-content;
    animation: scroll-marquee 45s linear infinite; padding: 30px 0;
}
.marquee-track:hover { animation-play-state: paused; }

.client-logo {
    height: 140px; /* Aumentado masivamente para compensar el cuadrado 1000x1000 */
    width: 140px;
    object-fit: contain;
    transition: all 0.3s ease; 
    cursor: pointer;
    /* Eliminamos el filtro de blanco y negro para que se vean a color */
}
.client-logo:hover { transform: scale(1.15); }

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   NOC (NETWORK OPERATIONS CENTER)
   ========================================= */
.noc-section { background-color: #070b19; color: white; position: relative; overflow: hidden; border-bottom: 5px solid var(--arcadian-blue); }
.noc-container { display: flex; align-items: center; gap: 50px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.noc-content { flex: 1.5; }
.noc-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(37, 211, 102, 0.1); color: #25D366; padding: 6px 15px; border-radius: 20px; font-weight: 800; font-size: 0.85rem; margin-bottom: 20px; border: 1px solid rgba(37, 211, 102, 0.3); letter-spacing: 1px; }
.noc-content h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; color: white; line-height: 1.2; }
.noc-content > p { color: #94a3b8; font-size: 1.1rem; line-height: 1.6; margin-bottom: 35px; }

.noc-features { display: flex; flex-direction: column; gap: 25px; }
.noc-item { display: flex; gap: 20px; align-items: flex-start; background: rgba(255,255,255,0.03); padding: 25px; border-radius: 15px; border: 1px solid rgba(42,110,242,0.2); transition: all 0.3s ease; }
.noc-item:hover { background: rgba(42,110,242,0.1); transform: translateX(10px); border-color: var(--arcadian-blue); }
.noc-item i { font-size: 2rem; color: var(--arcadian-blue); margin-top: 5px; }
.noc-item h4 { font-size: 1.2rem; color: white; font-weight: 800; margin-bottom: 8px; }
.noc-item p { color: #cbd5e1; font-size: 0.95rem; margin: 0; line-height: 1.5; }
.noc-item em { color: var(--arcadian-gold); font-style: normal; font-weight: 700; }

.noc-visual { flex: 1; display: flex; justify-content: center; align-items: center; padding: 20px; }
.noc-network-ring { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; border: 1px dashed rgba(42, 110, 242, 0.3); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulse-ring 4s infinite linear; }
.r1 { width: 150px; height: 150px; animation-delay: 0s; }
.r2 { width: 250px; height: 250px; animation-delay: 1.5s; border-style: solid; border-color: rgba(42, 110, 242, 0.1); }
.r3 { width: 350px; height: 350px; animation-delay: 3s; }
@keyframes pulse-ring { 
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; } 
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; } 
}

.network-center { 
    width: 90px; height: 90px; background: rgba(11, 19, 43, 0.9); 
    border: 3px solid var(--arcadian-blue); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; 
    color: var(--arcadian-blue); z-index: 5; box-shadow: 0 0 30px rgba(42, 110, 242, 0.5); 
}
.sat-node { 
    position: absolute; width: 45px; height: 45px; background: #0f172a; 
    border: 2px solid #25D366; border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; color: #25D366; font-size: 1.2rem; z-index: 10; 
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3); 
}
.sat-node.error-node { 
    border-color: #ef4444; color: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); 
    animation: error-blink 1s infinite; 
}
.s1 { top: 10%; left: 10%; }
.s2 { bottom: 15%; right: 10%; }
.s3 { top: 45%; right: -5%; }
@keyframes error-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.15); } }

/* =========================================
   CASOS DE ESTUDIO DESTACADOS (TROFEOS)
   ========================================= */
.case-studies-section { background-color: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.case-studies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }

.case-card {
    background: #ffffff; border-radius: 20px; border: 1px solid #e2e8f0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05); transition: all 0.3s ease; overflow: hidden;
    display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(42, 110, 242, 0.1); border-color: var(--arcadian-blue); }

.case-header { background: #0f172a; color: white; padding: 35px 30px; border-bottom: 4px solid var(--arcadian-blue); flex-shrink: 0; }
.case-badge { 
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); 
    color: #cbd5e1; padding: 6px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; 
    margin-bottom: 15px; letter-spacing: 0.5px; border: 1px solid rgba(255,255,255,0.2);
}
.case-header h3 { font-size: 1.5rem; font-weight: 800; margin: 0; line-height: 1.4; color: white; }

.featured-case .case-header { background: linear-gradient(135deg, #0b132b 0%, #1e3a8a 100%); border-bottom-color: var(--arcadian-gold); }
.featured-case .badge-dark { background: var(--arcadian-gold); color: #000; border-color: var(--arcadian-gold); }

.case-body { padding: 30px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.case-block { background: #f1f5f9; padding: 22px; border-radius: 12px; border-left: 4px solid #cbd5e1; flex: 1;}
.case-block:nth-child(1) { border-left-color: #ef4444; } 
.case-block:nth-child(2) { border-left-color: var(--arcadian-blue); background: #eff6ff;} 
.case-block:nth-child(3) { border-left-color: #10b981; background: #f0fdf4;} 
.featured-case .case-block:nth-child(2) { border-left-color: var(--arcadian-gold); background: #fffbeb; }

.case-block h5 { font-size: 1.05rem; color: #0f172a; margin-bottom: 8px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.case-block p { color: #475569; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* =========================================
   ANATOMÍA DE INGENIERÍA
   ========================================= */
.engineering-standards { background-color: #ffffff; border-bottom: 1px solid #e2e8f0; }
.standards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.standard-card { 
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 15px; padding: 35px 25px; 
    text-align: center; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}
.standard-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(42, 110, 242, 0.1); border-color: var(--arcadian-blue); background: white;}
.std-icon { font-size: 2.5rem; color: var(--arcadian-blue); margin-bottom: 20px; }
.standard-card h4 { font-size: 1.2rem; color: #0f172a; font-weight: 800; margin-bottom: 15px; }
.standard-card p { color: #475569; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* =========================================
   MÚSCULO LOGÍSTICO Y FLOTA
   ========================================= */
.coverage-section { background-color: #f1f5f9; border-bottom: 1px solid #e2e8f0; overflow: hidden; }
.coverage-container { display: flex; align-items: center; gap: 50px; max-width: 1200px; margin: 0 auto; }
.coverage-text { flex: 1.5; }
.coverage-text .section-title { text-align: left; }
.coverage-text .sec-desc { text-align: left; }

.coverage-features { display: flex; flex-direction: column; gap: 30px; }
.cov-feature { 
    display: flex; gap: 25px; align-items: flex-start; background: #ffffff; 
    padding: 30px; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.03); 
    border: 1px solid #e2e8f0; transition: all 0.3s ease; border-left: 4px solid var(--arcadian-blue);
}
.cov-feature:hover { transform: translateX(10px); border-left-color: var(--arcadian-gold); box-shadow: 0 15px 30px rgba(42,110,242,0.1); }
.cov-icon { 
    width: 65px; height: 65px; background: #eff6ff; color: var(--arcadian-blue); 
    border-radius: 15px; display: flex; align-items: center; justify-content: center; 
    font-size: 1.8rem; flex-shrink: 0; border: 1px solid #bfdbfe;
}
.cov-feature h4 { color: #0f172a; font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.cov-feature p { color: #475569; font-size: 0.95rem; line-height: 1.6; margin: 0; }
.cov-feature strong { color: var(--arcadian-blue); font-weight: 700; }

.coverage-visual { flex: 1; display: flex; justify-content: center; align-items: center; padding: 20px; }
.logistics-panel {
    width: 100%; max-width: 380px; height: 340px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 25px; position: relative; display: flex;
    align-items: center; justify-content: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15); border: 1px solid #334155;
    overflow: hidden;
}
.panel-grid {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px; opacity: 0.5;
}
.truck-wrapper {
    width: 130px; height: 130px; background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--arcadian-gold); border-radius: 25px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--arcadian-gold); position: relative; z-index: 2;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2); transform: rotate(-5deg); transition: all 0.3s ease;
}
.logistics-panel:hover .truck-wrapper { transform: rotate(0deg) scale(1.05); }

.log-badge {
    position: absolute; background: white; padding: 12px 20px;
    border-radius: 12px; font-weight: 800; font-size: 0.95rem;
    color: #0f172a; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 8px; z-index: 3; transition: all 0.3s ease;
}
.log-badge i { color: var(--arcadian-blue); font-size: 1.2rem; }
.badge-top { top: 40px; right: -20px; transform: translateX(-20px); border-left: 5px solid var(--arcadian-blue); }
.badge-bottom { bottom: 40px; left: -20px; transform: translateX(20px); border-left: 5px solid var(--arcadian-gold); }
.badge-bottom i { color: var(--arcadian-gold); }
.logistics-panel:hover .badge-top { transform: translateX(-30px); }
.logistics-panel:hover .badge-bottom { transform: translateX(30px); }

/* =========================================
   GALERÍA DINÁMICA
   ========================================= */
.gallery-section { background-color: #ffffff; }

.filter-container { margin-bottom: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.filter-btn {
    background: #f8fafc; color: #475569; border: 1px solid #cbd5e1;
    padding: 12px 25px; border-radius: 50px; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease; font-family: 'Inter', sans-serif; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.filter-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.filter-btn.active { background: var(--arcadian-blue); color: white; border-color: var(--arcadian-blue); box-shadow: 0 8px 20px rgba(42, 110, 242, 0.3); }

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; max-width: 1400px; margin: 0 auto;
}
.gallery-item {
    position: relative; border-radius: 16px; overflow: hidden;
    height: 260px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 19, 43, 0.8); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.3s ease; backdrop-filter: blur(2px);
}
.gallery-overlay i { color: var(--arcadian-gold); font-size: 3rem; transform: scale(0.5); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

/* =========================================
   CALL TO ACTION (CTA) FINAL
   ========================================= */
.cta-portafolio {
    background: linear-gradient(135deg, #0b132b 0%, #1e3a8a 100%);
    padding: 100px 10%; text-align: center; color: white; border-top: 5px solid var(--arcadian-gold);
}
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; color: var(--arcadian-gold); }
.cta-content p { font-size: 1.15rem; line-height: 1.6; margin-bottom: 40px; color: #cbd5e1; }

.btn-cta-gold {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--arcadian-gold); color: #000; padding: 20px 45px;
    border-radius: 12px; font-size: 1.15rem; font-weight: 800; text-decoration: none;
    transition: all 0.3s ease; box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}
.btn-cta-gold:hover { background: #f59e0b; transform: translateY(-5px); box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5); color: #ffffff;}

/* --- RESPONSIVIDAD MÓVIL --- */
@media (max-width: 1024px) {
    .noc-container { flex-direction: column; text-align: center; }
    .noc-features { text-align: left; }
    .coverage-container { flex-direction: column; }
    .coverage-text .section-title, .coverage-text .sec-desc { text-align: center; }
    .coverage-visual { display: none; }
}

@media (max-width: 900px) {
    .metrics-grid { grid-template-columns: 1fr 1fr; border-radius: 15px; }
    .metric-card { border-right: none; border-bottom: 1px solid #f1f5f9; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .metrics-section { margin-top: 0; padding-top: 40px; }
    .noc-content h2 { font-size: 2.2rem; }
    .case-studies-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .cta-content h2 { font-size: 2.2rem; }
    .cov-feature { flex-direction: column; align-items: center; text-align: center; }
}