/* Estilos generales para la página de Servicios */
.services-hero {
    position: relative;
    height: 73vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/services-hero.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(200, 243, 143);
    opacity: 20%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero-scroll i {
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Sección de servicios */
.services-grid-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
}

.services-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #e0e0e0;
    color: #555;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-btn:hover {
    background: #d0d0d0;
}

.tab-btn.active {
    background: #e74c3c;
    color: white;
}

.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    perspective: 1000px;
    height: 300px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-front, .service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-front {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.service-back {
    background: #2c3e50;
    color: white;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-front p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.service-badge {
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: auto;
}

.service-back h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-back ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-back ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.service-back ul li i {
    color: #e74c3c;
    margin-right: 10px;
    margin-top: 3px;
}

.service-cta {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: center;
    width: 100%;
}

.service-cta:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

/* Sección de características */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Sección de proceso */
.process-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 4px;
    background: #e74c3c;
    z-index: 1;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
}

.step-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Sección de testimonios */
.testimonials-section {
    padding: 80px 20px;
    background-color: #f9fafc;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    display: block; /* Asegura que ocupe toda la línea */
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f97316;
}
.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    display: block; /* Hace que ocupe su propia línea */
    margin-top: 10px;
    position: relative;
}


.testimonials-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.section-header {
    margin-bottom: 40px;
}


.testimonios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Arial', sans-serif;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    position: relative;
    display: block;
}

.section-subtitle::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 15px auto 0;
}

/* Estilos del slider */
.testimonios-slider {
    position: relative;
    overflow: hidden;
}

.testimonios-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonio {
    min-width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonio-content {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-right: -80px;
    position: relative;
    z-index: 2;
}

.testimonio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonio-text::before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 4rem;
    color: #3498db;
    opacity: 0.2;
    position: absolute;
    left: -15px;
    top: -20px;
}

.testimonio-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
    margin-right: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.author-info h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.author-info p {
    margin: 5px 0 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.testimonio-image {
    flex: 1;
    position: relative;
    z-index: 1;
    margin-left: -80px;
}

.testimonio-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s;
}

/* Controles del slider */
.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #3498db;
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    color: #3498db;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: #3498db;
    color: white;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonio {
        flex-direction: column;
    }
    
    .testimonio-content {
        margin-right: 0;
        margin-bottom: -50px;
    }
    
    .testimonio-image {
        margin-left: 0;
        margin-top: -50px;
        width: 100%;
        max-width: 400px;
    }
    
    .testimonio-image img {
        transform: none;
    }
}

@media (max-width: 768px) {
    .testimonios-container {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .testimonio-content {
        padding: 30px;
    }
    
    .testimonio-text {
        font-size: 1rem;
        padding-left: 25px;
    }
    
    .testimonio-text::before {
        font-size: 3rem;
        left: -10px;
        top: -15px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .author-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .testimonio-content {
        padding: 25px 20px;
    }
    
    .testimonio-text {
        padding-left: 20px;
    }
    
    .testimonio-text::before {
        font-size: 2.5rem;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}

/* Sección CTA */
.services-cta {
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/cta-services.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary {
    background: #e74c3c;
    color: white;
}

.primary:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.secondary {
    border: 2px solid white;
    color: white;
}

.secondary:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-hero {
        height: 60vh;
    }
    
    .process-steps::before {
        left: 30px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .services-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}