/* ============================================ */
/* SERVICIOS - DISEÑO HORIZONTAL DESKTOP / VERTICAL MOBILE */
/* ============================================ */

/* Sección de servicios - FULL WIDTH */
.services-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

/* Contenedor interno */
.services-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header */
.services-section .section-tag {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 8px;
}

.services-section .section-number {
    font-size: 14px;
    color: #666;
    margin-left: 12px;
}

.services-section h2 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    color: #fff;
    margin: 16px 0 80px 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

/* Grid de servicios - VERTICAL en desktop (filas) */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
}

/* Tarjetas de servicio - HORIZONTAL en desktop */
.service-card {
    background: transparent;
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    padding: 0;
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Alternar orden de imagen/contenido */
.service-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* Imagen del servicio - GRANDE en desktop */
.service-image {
    flex: 1;
    width: 50%;
    height: 520px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    flex-shrink: 0;
    will-change: transform;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Contenido del servicio */
.service-content {
    flex: 1;
    width: 50%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.service-content p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
}

/* Lista de características */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.service-list li {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    padding: 16px 0;
    padding-left: 32px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    line-height: 1.5;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card:hover .service-list li::before {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.8);
}

/* Botón CTA */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.service-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.service-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.service-cta:hover svg {
    transform: translateX(4px);
}

/* RESPONSIVE */
@media (max-width: 1280px) {
    .services-grid {
        gap: 60px;
    }
    
    .service-card {
        gap: 50px;
    }
    
    .service-image {
        height: 480px;
    }
    
    .service-content h3 {
        font-size: 38px;
    }
}

@media (max-width: 1024px) {
    .services-section {
        padding: 80px 0;
    }
    
    .services-grid {
        gap: 50px;
    }
    
    .service-card {
        gap: 40px;
    }
    
    .service-image {
        height: 420px;
    }
    
    .service-content h3 {
        font-size: 34px;
    }
    
    .service-content p {
        font-size: 17px;
    }
    
    .service-list li {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
        margin-left: 0;
        width: 100%;
    }
    
    .services-section .container {
        padding: 0 20px;
    }
    
    .services-section h2 {
        margin-bottom: 40px;
    }
    
    /* CAMBIAR A VERTICAL EN MÓVIL */
    .services-grid {
        gap: 40px;
    }
    
    .service-card {
        flex-direction: column !important;
        gap: 24px;
    }
    
    .service-image {
        width: 100%;
        height: 280px;
    }
    
    .service-content {
        width: 100%;
    }
    
    .service-content h3 {
        font-size: 28px;
    }
    
    .service-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .service-list {
        margin-bottom: 28px;
    }
    
    .service-list li {
        font-size: 15px;
        padding: 12px 0;
        padding-left: 28px;
    }
}

/* Animaciones GSAP - Initial state */
.service-card {
    will-change: transform, opacity;
}

.service-content h3,
.service-content p,
.service-list li,
.service-cta {
    will-change: transform, opacity;
}
