:root {
    --primary-color: #20b2aa;
    --secondary-color: #48cae4;
    --accent-color: #00b4d8;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

.services-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-attachment: fixed;
    background-size: cover; /* Cubre todo el alto y ancho */
    background-position: center top; /* Inicia desde arriba */
    background-repeat: no-repeat;
    min-height: 100%; /* Se ajusta al contenido */
    display: block;
    overflow-x: hidden;
}

.services-wrapper:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.4), rgba(72, 202, 228, 0.4));
    z-index: 1;
}

.services-section {
    position: relative;
    z-index: 2;
    min-height: 100%; /* Asegura que cubra todo el contenido */
    padding: 80px 0;
}

.services-content {
    position: relative;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.section-title p {
    font-size: 1.1rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.service-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.card-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color)aa, var(--accent-color)aa);
    opacity: 0.8;
}

.read-more-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-50%) translateY(-2px);
}

.service-content {
    padding: 30px;
}

.service-button {
    text-align: center;
    margin-top: 20px;
}

.service-button .read-more-btn {
    position: static;
    transform: none;
    display: inline-block;
}

.services-list {
    padding: 0;
    list-style: none;
}

.services-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-dark);
}

.services-list li:last-child {
    margin-bottom: 0;
}

.services-list .fa-check-circle {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-wrapper {
        background-attachment: scroll;
        min-height: auto; /* Ajusta al contenido en móviles */
    }

    .services-section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .card-image {
        height: 200px;
    }

    .service-card {
        margin-bottom: 30px;
    }

    .service-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .card-header {
        padding: 20px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-image {
        height: 150px;
    }

    .services-list {
        padding: 0;
    }

    .services-list li {
        font-size: 0.95rem;
    }

    .service-content {
        padding: 15px;
    }
}