/* ======================================================================================== */
/*                                   SECCIÓN DE SERVICIOS                                   */
/* ======================================================================================== */

#servicios {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    overflow: hidden;
}

#servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Títulos de sección */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700 0%, #ffa500 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #5a6c7d;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas de servicio */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #e8edf2;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 165, 0, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #ffd700;
    box-shadow: 0 10px 24px rgba(255, 165, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

/* Animación de revelación */
.service-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Wrapper del icono */
.service-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 6px 14px rgba(255, 165, 0, 0.25);
    z-index: 1;
}

.service-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffa500 0%, #ffd700 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon-wrapper::before {
    opacity: 1;
}

.service-icon-wrapper i {
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotateY(360deg);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.35);
}

.service-card:hover .service-icon-wrapper i {
    transform: scale(1.1);
}

/* Título del servicio */
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.service-card:hover h3 {
    color: #ffa500;
}

/* Descripción del servicio */
.service-card p {
    font-size: 0.88rem;
    color: #5a6c7d;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.3rem;
    }
}

@media (max-width: 768px) {
    #servicios {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.2rem;
        padding: 0 15px;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-icon-wrapper {
        width: 65px;
        height: 65px;
    }

    .service-icon-wrapper i {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.05rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .service-card {
        padding: 1.4rem 0.9rem;
    }

    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .service-icon-wrapper i {
        font-size: 1.6rem;
    }
}

/* Animación para dispositivos que soportan reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}