/* ================================
   SECCIÓN SERVICIOS - PÁGINA PRINCIPAL
   ================================ */

/* ===== SECCIÓN SERVICIOS ===== */
.services-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    display: none;
}

.services-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 121, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: calc(100% - 4rem);
    position: relative;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideInUp 0.8s ease-out;
}

.services-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, #3979ff, #60a5fa);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.services-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.services-title .highlight {
    color: #60a5fa;
}

.services-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(57, 121, 255, 0.3);
    box-shadow: 0 20px 40px rgba(57, 121, 255, 0.2);
}

.service-card.featured {
    border: 2px solid #3979ff;
    background: rgba(57, 121, 255, 0.1);
    position: relative;
}

.service-card.featured:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3979ff, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 25px rgba(57, 121, 255, 0.4);
}

.service-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-img {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    color: #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.service-features li:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

.service-features i {
    color: #3979ff;
    font-size: 0.8rem;
    width: 16px;
    height: 16px;
    background: rgba(57, 121, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-cta {
    text-align: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

/* ================================
   MEDIA QUERIES RESPONSIVAS
   ================================ */

/* Desactivar animaciones en tablets para mejor performance */
@media (min-width: 641px) and (max-width: 768px) {
    .services-section::after {
        animation: none;
    }
    
    .service-card {
        animation: none;
    }
}

/* Media Query para tablets y móviles grandes (max-width: 768px) */
@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }

    .services-container {
        padding: 0 1.5rem;
        width: calc(100% - 3rem);
    }

    .services-header {
        margin-bottom: 3rem;
    }

    .services-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }

    .services-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-card {
        padding: 2rem;
        border-radius: 15px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .service-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .service-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .service-features li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .services-cta {
        gap: 1rem;
        margin-top: 1rem;
    }
}

/* Media Query para móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .services-section {
        padding: 2.5rem 0;
    }

    .services-container {
        padding: 0 1rem;
        width: calc(100% - 2rem);
    }

    .services-header {
        margin-bottom: 2.5rem;
    }

    .services-subtitle {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
        margin-bottom: 0.8rem;
    }

    .services-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .services-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .services-grid {
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .service-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-icon-img {
        width: 30px;
        height: 30px;
    }

    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .service-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .service-features li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        gap: 0.6rem;
    }

    .service-features i {
        width: 14px;
        height: 14px;
        font-size: 0.7rem;
    }

    .services-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

/* Media Query para pantallas muy pequeñas (max-width: 360px) */
@media (max-width: 360px) {
    .services-section {
        padding: 2rem 0;
    }

    .services-container {
        padding: 0 0.8rem;
        width: calc(100% - 1.6rem);
    }

    .services-header {
        margin-bottom: 2rem;
    }

    .services-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .services-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.2rem;
        border-radius: 10px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .service-icon-img {
        width: 25px;
        height: 25px;
    }

    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .service-features li {
        font-size: 0.8rem;
        padding: 0.25rem 0;
        gap: 0.5rem;
    }

    .service-features i {
        width: 12px;
        height: 12px;
        font-size: 0.6rem;
    }
}

/* Media Query para tablets en orientación portrait */
@media (min-width: 641px) and (max-width: 768px) and (orientation: portrait) {
    .services-section {
        padding: 3.5rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2.2rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .services-title {
        font-size: 2.5rem;
    }
}

/* Media Query para tablets en orientación landscape */
@media (min-width: 641px) and (max-width: 768px) and (orientation: landscape) {
    .services-section {
        padding: 2.5rem 0;
    }

    .services-header {
        margin-bottom: 2rem;
    }

    .services-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .services-description {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.8rem;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .service-features li {
        font-size: 0.85rem;
    }
}
