/* ==========================================
   SERVICES SECTION - DESKTOP
   Con gradiente de fusión + blobs naranjas pequeños
   ========================================== */

.services-section {
    width: 100%;
    padding: 150px 20px 100px;
    margin-top: -100px;
    position: relative;
    overflow: hidden;
    
    /* FONDO: Gradiente fusión + 3 blobs pequeños + negro */
    background: 
        linear-gradient(
            to bottom,
            rgba(10, 5, 2, 1) 0%,
            rgba(10, 5, 2, 1) 10%,
            rgba(10, 5, 2, 0.95) 20%,
            rgba(10, 5, 2, 0.7) 35%,
            transparent 50%
        ), /* GRADIENTE DE FUSIÓN ARRIBA */
        radial-gradient(circle at 25% 10%, rgba(255, 92, 0, 0.3) 5%, transparent 25%), /* BLOB 1: Más pequeño */
        radial-gradient(circle at 65% 15%, rgba(255, 92, 0, 0.35) 15%, transparent 25%), /* BLOB 2: Más pequeño */
        radial-gradient(circle at 80% 120%, rgba(255, 92, 0, 0.35) 10%, transparent 50%), /* BLOB 3: Más pequeño */
        #000000; /* BASE NEGRA */
}

/* TÍTULO - Centrado con max-width */
.services-title {
    max-width: 1300px;
    margin: 0 auto 60px;
    color: white;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
    font-family: 'Domi', sans-serif;
    position: relative;
    z-index: 2;
}

/* ISOTIPO IZQUIERDO - Pequeño, arriba, ligeramente cortado */
.services-title::before {
    content: '';
    position: absolute;
    top: 200px;
    left: -299px;
    width: 400px;
    height: 400px;
    background-image: url(../images/isotipo-m.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    z-index: -1;
    pointer-events: none;
    filter: blur(16px);
}

/* ISOTIPO DERECHO - Pequeño, arriba, ligeramente cortado */
.services-title::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -150px;
    width: 400px;
    height: 400px;
    background-image: url(../images/isotipo-m.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    z-index: -1;
    pointer-events: none;
    filter: blur(16px);
}

.services-title .highlight {
    color: #ff4d00;
}

/* GRID DE TARJETAS - Centrado con max-width */
.cards-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* BASE DE TARJETAS */
.card {
    height: 280px;
    border-radius: 40px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-number {
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    font-family: 'Domi', sans-serif;
}

.card-content {
    margin-top: auto;
}

.card-content h3 {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Domi', sans-serif;
}

.card-content p {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.8;
    font-family: 'Domi', sans-serif;
    font-weight: 400;
}

/* TARJETA NARANJA (02 - Destacada) */
.orange-card {
    color: white;
    background: linear-gradient(135deg, #ff8c00 0%, #ff4d00 50%, #b33600 100%);
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Brillo superior derecho */
.orange-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 1;
}

/* ISOTIPO DE FONDO EN LA TARJETA NARANJA */
.orange-card .logo-overlay {
    position: absolute;
    top: 55%;
    left: 55%;
    transform: translate(30%, -110%);
    width: 90px;
    height: 141px;
    background-image: url(../images/isotipo-m.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    filter: brightness(0) invert(1);
}

/* TARJETA BLANCA */
.white-card {
    background: white;
    color: #0a0a0a;
}

.white-card .card-number {
    color: #ff4d00;
}

/* TARJETA GLASS (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.glass-card .card-number {
    color: rgba(255, 255, 255, 0.4);
}

/* RESPONSIVIDAD - TABLET */
@media (max-width: 1100px) {
    .services-section {
        margin-top: -80px;
        padding: 120px 20px 80px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card {
        height: 350px;
    }
    
    /* Isotipos proporcionalmente más pequeños */
    .services-title::before,
    .services-title::after {
        width: 300px;
        height: 300px;
        top: -40px;
    }
    
    .services-title::before {
        left: -280px;
    }
    
    .services-title::after {
        right: -280px;
    }
    
    /* Isotipo en tarjeta naranja */
    .orange-card .logo-overlay {
        width: 80px;
        height: 150px;
    }
}

/* RESPONSIVIDAD - MOBILE */
@media (max-width: 600px) {
    .services-section {
        padding: 100px 20px 60px;
        margin-top: -60px;
    }
    
    .services-title {
        margin-bottom: 40px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        height: 300px;
        padding: 30px 25px;
        border-radius: 30px;
    }
    
    .card-number {
        font-size: 60px;
    }
    
    .card-content h3 {
        font-size: 22px;
    }
    
    .card-content p {
        font-size: 14px;
    }
    
    /* Isotipos más pequeños en mobile */
    .services-title::before,
    .services-title::after {
        width: 200px;
        height: 200px;
        top: -30px;
    }
    
    .services-title::before {
        left: -200px;
    }
    
    .services-title::after {
        right: -200px;
    }
    
    /* Isotipo en tarjeta naranja más pequeño */
    .orange-card .logo-overlay {
        width: 70px;
        height: 120px;
    }
}