/* Estilos para la página de Servicios */

/* Hero con fondo específico para la página de servicios */
.page-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 35, 64, 0.9), rgba(30, 117, 217, 0.8)), 
                url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg') center/cover no-repeat;
    z-index: -1;
}

/* Overlay con degradado blanco en la parte inferior */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%; /* Altura del degradado */
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 0;
}

.page-hero-content {
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.page-hero h1::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    color: white;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sección de introducción */
.services-intro {
    padding: 6rem 0 3rem;
    background-color: white;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gray);
    margin-top: 2rem;
}

/* Secciones de detalle de servicio */
.service-detail {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: white;
}

.service-detail.alt-bg {
    background-color: var(--light);
}

.service-detail::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 117, 217, 0.05) 0%, rgba(30, 117, 217, 0) 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    z-index: 1;
}

.service-detail::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 35, 64, 0.03) 0%, rgba(13, 35, 64, 0) 70%);
    bottom: -300px;
    left: -200px;
    border-radius: 50%;
    z-index: 1;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-text, .service-image {
    flex: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 117, 217, 0.1), rgba(30, 117, 217, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 15s linear infinite;
}

.service-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.service-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.service-text h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    bottom: 0;
    left: 0;
    border-radius: 50px;
}

.service-text p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 1.05rem;
}

.service-benefits li i {
    color: var(--accent);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.image-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(13, 35, 64, 0.2), rgba(30, 117, 217, 0.15));
    transition: var(--transition);
}

.image-container:hover .image-overlay {
    background: linear-gradient(to bottom right, rgba(13, 35, 64, 0.1), rgba(30, 117, 217, 0.05));
}

/* Estilo para el botón "Saber más" en las secciones de servicios */
.service-text .outline-btn {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.service-text .outline-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: right;
}

.service-text .outline-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-text .outline-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Sección de proceso */
.process-section {
    padding: 7rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 35, 64, 0.02), rgba(30, 117, 217, 0.02));
    top: 0;
    left: 0;
    z-index: 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
    z-index: 1;
}

.process-steps::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    top: 40px;
    left: 10%;
    z-index: -1;
    opacity: 0.3;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.15;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: var(--transition);
    border: 2px solid rgba(30, 117, 217, 0.1);
}

.step-icon i {
    font-size: 1.8rem;
    color: var(--secondary);
    transition: var(--transition);
}

.process-step:hover .step-icon {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.process-step:hover .step-icon i {
    color: white;
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: var(--transition);
}

.process-step:hover h4 {
    color: var(--secondary);
}

.process-step p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive para todas las secciones */
@media (max-width: 1200px) {
    .service-content {
        gap: 3rem;
    }
    
    .process-steps {
        flex-wrap: wrap;
    }
    
    .process-steps::after {
        display: none;
    }
    
    .process-step {
        flex-basis: 33.33%;
        margin-bottom: 3rem;
    }
}

@media (max-width: 992px) {
    .service-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .service-content.reverse {
        flex-direction: column;
    }
    
    .service-text, .service-image {
        width: 100%;
    }
    
    .process-step {
        flex-basis: 50%;
    }
    
    .page-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 40vh;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .service-detail {
        padding: 4rem 0;
    }
    
    .service-text h3 {
        font-size: 1.8rem;
    }
    
    .process-step {
        flex-basis: 100%;
    }
}

@media (max-width: 576px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.6rem;
    }
    
    .service-text h3 {
        font-size: 1.6rem;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
}