/* --- Estilos Específicos para la Página de Servicios (services.php) --- */

/* Padding general para las secciones de la página "Servicios" */
.services-section-padding {
    padding-top: 10vh;
    padding-bottom: 10vh;
    padding-left: 8vw;
    padding-right: 8vw;
}

/* Hero de la página "Servicios" */
#services-hero {
    background-color: var(--background-section); /* O considera una imagen de fondo */
    /* background-image: url('./img/services/hero-servicios-bg.jpg'); */ /* Ejemplo */
    background-size: cover;
    background-position: center;
    text-align: center;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Para posible overlay */
}

/* Descomenta y ajusta si usas imagen de fondo con overlay */
/*
#services-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
*/

#services-hero .services-hero-content {
    max-width: 850px;
    position: relative; /* Para z-index si hay overlay */
    /* z-index: 2; */ /* Descomentar si hay overlay */
}

#services-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-light);
    font-family: var(--font-bold);
}

#services-hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-muted); /* O var(--text-light) si hay overlay oscuro */
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-primary);
}

/* Introducción a los servicios */
#services-intro .section-subtitle-line {
    /* Hereda de about-style.css o style.css si ya está definido globalmente */
    /* Si no, definir aquí: */
    /* display: flex; align-items: center; gap: 15px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 10px; font-family: var(--font-primary); */
}
#services-intro .section-subtitle-line.justify-content-center::after {
    flex-grow: 0; /* Para que no ocupe todo el espacio si se centra el span */
    width: 50px; /* Ancho fijo de la línea después del texto */
}
#services-intro .section-subtitle-line span { /* Para centrar el texto con la línea */
    margin: 0 auto; /* Centra el span si el flex container es justify-content-center */
}


#services-intro h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 25px;
    color: var(--text-light);
    font-family: var(--font-bold);
}

#services-intro p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0; /* El último párrafo */
    font-family: var(--font-primary);
}

.container-large { /* Para la lista detallada de servicios */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo para cada ítem de servicio detallado */
.service-item-detailed {
    display: flex;
    gap: 40px; /* Espacio entre icono y contenido */
    margin-bottom: 3rem; /* Espacio antes del <hr> o del siguiente ítem */
    padding-top: 2rem; /* Espacio superior dentro del ítem */
}

.service-icon-container {
    flex-shrink: 0; /* Evita que el contenedor del icono se encoja */
    width: 80px; /* Ancho del contenedor del icono */
    /* background-color: var(--background-dark); */ /* Fondo sutil si se desea */
    /* padding: 15px; */
    /* border-radius: 50%; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
}

.service-icon {
    width: 60px; /* Tamaño del icono */
    height: 60px;
    opacity: 0.85;
    /* Ajusta el color del SVG si es necesario, ej. filter: invert(1); */
}

.service-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-family: var(--font-bold);
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 10px;
}

.service-short-desc {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-family: var(--font-primary);
}

.service-benefits h4,
.service-components h4 {
    font-size: clamp(1.1rem, 2.2vw, 1.25rem);
    font-family: var(--font-bold);
    color: var(--text-light);
    margin-top: 20px;
    margin-bottom: 10px;
}

.service-benefits ul {
    list-style: none; /* O 'disc' si prefieres */
    padding-left: 0; /* O 20px si usas 'disc' */
    margin-bottom: 20px;
}

.service-benefits ul li {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 25px; /* Espacio para el pseudo-elemento */
    position: relative;
    font-family: var(--font-primary);
}

.service-benefits ul li::before {
    content: '✓'; /* O cualquier otro ícono/bullet */
    color: var(--circle-blue); /* Color del checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-components p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px; /* Espacio antes del botón CTA */
    font-family: var(--font-primary);
}

.btn-service-cta {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-muted);
    border-radius: 4px; /* O 0 si prefieres bordes rectos como otros botones */
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 15px;
}

.btn-service-cta:hover {
    background-color: var(--text-light);
    color: var(--background-dark);
    border-color: var(--text-light);
}

hr.service-divider {
    border: 0;
    height: 1px;
    background-color: #2a2a2a; /* Color sutil para el separador */
    margin-top: 3rem; /* Espacio después del botón/contenido del servicio */
    margin-bottom: 3rem; /* Espacio antes del siguiente servicio */
}
.service-item-detailed:last-of-type + hr.service-divider {
    display: none; /* No mostrar el último separador */
}


/* CTA Final de Servicios */
#services-cta-final h2 {
    font-family: var(--font-bold);
}
#services-cta-final p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: var(--font-primary);
}
#services-cta-final .btn-cta-final {
    font-family: var(--font-primary);
}

/* --- Ajustes Responsivos para services-style.css --- */
@media (max-width: 992px) {
    .services-section-padding {
        padding-top: 8vh;
        padding-bottom: 8vh;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    #services-hero {
        min-height: 45vh;
    }
}

@media (max-width: 767px) {
    .service-item-detailed {
        flex-direction: column; /* Apila icono y contenido en móviles */
        gap: 20px; /* Menor espacio cuando está apilado */
        text-align: center; /* Centra el contenido del servicio */
    }

    .service-icon-container {
        width: 100%; /* Ocupa todo el ancho para centrar el icono */
        margin-bottom: 10px;
    }
    .service-icon {
        margin: 0 auto; /* Centra el icono */
    }

    .service-content {
        text-align: left; /* Puedes mantenerlo a la izquierda o centrarlo (text-align: center;) */
    }
    .service-benefits ul {
        text-align: left;
    }
    .btn-service-cta {
        width: 100%; /* Ocupa todo el ancho en móvil */
        text-align: center;
        padding: 12px 20px;
    }


    #services-hero h1 {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }
    #services-hero .subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    #services-intro h2 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
}