/* services/services.css - Xpress Logistics 2026 */

/* --- SECTION CONTAINER --- */
.section-services {
    padding: 100px 0; /* Espaciado vertical sólido */
    background: #FFFFFF; /* Aseguramos fondo blanco puro */
    position: relative;
    z-index: 10;
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    grid-template-rows: repeat(2, 340px); 
    gap: 24px; 
}

/* --- CARD BASE STYLES --- */
.card {
    background: #F9FAFB; /* --xp-bg-light */
    border-radius: 32px; 
    padding: 40px;
    position: relative; 
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); 
    border: 1px solid rgba(0,0,0,0.08); /* --xp-border */
    
    /* 🔒 FIX CRÍTICO: Aseguramos que el texto base sea oscuro en tarjetas claras */
    color: #0B1021; 
}

/* --- FEATURED CARD (Nacional - Dark Blue) --- */
.card.featured { 
    grid-column: span 2; 
    grid-row: span 2; 
    
    /* Estilos específicos Dark Mode */
    color: white; 
    border: none;
    background: #001C5B; /* Navy profundo */
}

.card.featured .card-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Imagen de logística profesional */
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card.featured .card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #001C5B 0%, rgba(0, 28, 91, 0.9) 50%, rgba(0, 28, 91, 0.4) 100%);
    z-index: 1;
}

.card.featured:hover .card-bg-img { 
    transform: scale(1.08); 
}

/* --- WIDE CARD (Empresas) --- */
.card.wide { 
    grid-column: span 2; 
}

.card-grid-wide { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 30px; 
    align-items: end; 
}

.card-action-right { text-align: right; }
.card-action-right .card-link { justify-content: flex-end; }

/* --- INTERACTIVITY & HOVER --- */
.card:not(.featured):hover { 
    transform: translateY(-10px); 
    box-shadow: 0 40px 80px rgba(0,0,0,0.08); 
    background: white; 
    border-color: rgba(255, 105, 0, 0.3); /* Sutil borde naranja al hover */
}

.card-inner { 
    position: relative; 
    z-index: 2; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

/* --- ICON CONTAINER --- */
.card-icon-container { 
    width: 56px; height: 56px; 
    background: white; 
    border-radius: 18px; 
    display: flex; align-items: center; justify-content: center; 
    margin-bottom: 20px; 
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); 
    color: #0B1021;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card.featured .card-icon-container { 
    background: rgba(255,255,255,0.15); 
    color: #FF6900; 
    backdrop-filter: blur(10px); 
}

.card:hover .card-icon-container { 
    background: #FF6900; 
    color: white; 
    transform: scale(1.1) rotate(-5deg); 
}

/* --- TYPOGRAPHY & COLORS --- */
.card-content h3 { 
    font-size: 26px; 
    font-weight: 700; 
    margin-bottom: 16px; 
    letter-spacing: -0.02em; 
    color: inherit; 
}

.card.featured h3 { 
    font-size: 38px; 
    line-height: 1; 
    color: white !important;
}

.card-content p { 
    font-size: 15px; 
    line-height: 1.6; 
}

.card.featured p { 
    color: rgba(255,255,255,0.8) !important; 
    font-size: 17px; 
    max-width: 400px; 
}

/* 🔒 BLINDAJE DE COLOR (Solución al texto invisible) */
.card:not(.featured) .card-content h3 {
    color: #0B1021 !important; /* Navy estricto */
}

.card:not(.featured) .card-content p {
    color: #667085 !important; /* Gris profesional estricto */
}

/* --- LINKS & DETAILS --- */
.card-link { 
    font-weight: 700; 
    font-size: 14px; 
    color: #0066CC; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: 0.3s; 
    margin-top: 20px;
    text-decoration: none;
}

.card.featured .card-link { 
    color: #FF6900; 
    font-size: 16px; 
}

.card-link:hover { gap: 14px; }

.card-tech-detail { 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 11px; 
    opacity: 0.4; 
    text-transform: uppercase; 
    position: absolute; 
    top: 0; right: 0; 
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .bento-grid { 
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: auto; 
    }
    .card { height: 380px; }
    .card.featured { grid-column: span 2; }
    .card-grid-wide { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .card.featured, .card.wide { 
        grid-column: span 1; 
        height: 420px; 
    }
    .card-action-right { text-align: left; }
    .card-action-right .card-link { justify-content: flex-start; }
}