/* Estilos para la página de servicios */

/* Hero Section */
.services-hero {
    position: relative;
    background-image: url('/static/img/services-hero.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 7rem 1rem;
    overflow: hidden;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.services-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease both;
}

.services-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease both;
    animation-delay: 0.3s;
}

.services-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 1.5s ease both;
    animation-delay: 0.6s;
}

/* Sección de resumen de servicios */
.services-overview {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

/* Encabezados de sección */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.title-separator {
    width: 80px;
    height: 3px;
    margin: 0.5rem auto 1.5rem;
    background-color: var(--primary-color);
    position: relative;
    display: flex;
    justify-content: center;
}

.title-separator span {
    height: 8px;
    width: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: -2.5px;
}

/* Grid de tarjetas de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link i {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Sección de enfoque */
.approach-section {
    padding: 5rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.approach-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.approach-text h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.approach-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.approach-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.approach-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.approach-point {
    display: flex;
    align-items: flex-start;
}

.point-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.point-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.point-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.point-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.approach-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Secciones de detalle de servicio */
.service-detail {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.service-detail.alt-bg {
    background-color: var(--light-bg);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail-content.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.service-detail-image:hover img {
    transform: scale(1.02);
}

.service-detail-text {
    padding: 1rem;
}

.service-detail-text .service-icon {
    margin: 0 0 1.5rem;
}

.service-detail-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.8rem;
}

.service-detail-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-features {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.feature-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-cta {
    margin-top: 2rem;
}

/* Casos de éxito */
.success-stories {
    padding: 5rem 0;
    background-color: white;
    position: relative;
}

.stories-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.story-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.story-image {
    height: 100%;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text {
    padding: 2rem;
}

.story-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.story-category {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.story-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-results {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.result-item {
    text-align: center;
}

.result-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.stories-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.stories-prev, .stories-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.stories-prev:hover, .stories-next:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Sección de proceso */
.process-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    position: relative;
}

.process-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background-color: var(--primary-color);
}

.process-step {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 5px rgba(52, 152, 219, 0.2);
}

.step-content {
    flex-grow: 1;
    padding-top: 0.8rem;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Call to Action */
.services-cta-section {
    position: relative;
    padding: 5rem 0;
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.overlay-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0.8;
    transform: skewY(-3deg);
    transform-origin: top right;
    z-index: 1;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries */
@media (max-width: 992px) {
    .services-title {
        font-size: 2.5rem;
    }
    
    .services-subtitle {
        font-size: 1.2rem;
    }
    
    .approach-content,
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .approach-content .approach-image {
        order: -1;
    }
    
    .approach-points {
        grid-template-columns: 1fr;
    }
    
    .story-content {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-content.reverse {
        direction: ltr;
    }
    
    .story-results {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .services-title {
        font-size: 1.8rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .services-cta {
        flex-direction: column;
    }
    
    .service-detail-text h2 {
        font-size: 1.6rem;
    }
}