/* ====== CSS EXCLUSIVO PARA PÁGINA DE SERVICIOS ====== */

/* Formas flotantes de fondo */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-secondary);
    opacity: 0.05;
    z-index: -1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -200px;
    animation: float-1 25s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -150px;
    animation: float-2 30s infinite ease-in-out;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: float-3 20s infinite ease-in-out;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 30px) rotate(120deg); }
    66% { transform: translate(20px, -20px) rotate(240deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 20px) rotate(240deg); }
}

/* Hero de servicios */
.services-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e6f0ff 100%);
}

.services-hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.services-hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: var(--gray-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Navegación entre servicios */
.services-nav {
    position: sticky;
    top: 120px;
    z-index: 999;
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.05);
    margin-bottom: 60px;
}

.services-nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
}

.services-nav-item a {
    padding: 12px 25px;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark-color);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-nav-item a:hover {
    background: rgba(0, 102, 204, 0.1);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.services-nav-item a.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.15);
}

.services-nav-item i {
    font-size: 1.2rem;
}

/* Contenedor de servicios */
.service-category {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.service-category:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.service-icon-large {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-right: 30px;
    position: relative;
}

.service-icon-large:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 160, 233, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.service-title h2 {
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 10px;
}

.service-title h2:after {
    left: 0;
    transform: none;
}

.service-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Subservicios */
.subservices {
    margin-bottom: 50px;
}

.subservice-item {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    border-left: 5px solid var(--secondary-color);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.subservice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

.subservice-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.subservice-title i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.subservice-title h3 {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.subservice-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Detalles del servicio */
.service-details {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.05);
}

.service-details h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 102, 204, 0.1);
}

.service-details ul, .service-details ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.service-details li {
    margin-bottom: 10px;
    color: var(--gray-color);
}

.detail-item {
    margin-bottom: 25px;
}

.price-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.15);
}

.time-tag {
    background: var(--gradient-accent);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
}

/* Botón de contacto */
.service-contact {
    text-align: center;
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para servicios */
@media (max-width: 1200px) {
    .subservice-content {
        grid-template-columns: 1fr;
    }
    
    .services-nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 992px) {
    .services-hero h1 {
        font-size: 3rem;
    }
    
    .services-hero p {
        font-size: 1.3rem;
    }
    
    .service-category {
        padding: 40px 30px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon-large {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .service-title h2 {
        text-align: center;
    }
    
    .service-title h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-hero p {
        font-size: 1.2rem;
    }
    
    .service-category {
        padding: 30px 20px;
    }
}