/* Estilos para la página de servicios con fondo transparente */

/* Hacer que el fondo del body tenga la imagen de fondo */
body.landing #page-wrapper {
    background-image: url("../../images/servicios6.jpg") !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    position: relative !important;
    z-index: 0 !important;
}

/* Eliminar el overlay blanco en toda la página */
body.landing #page-wrapper::before {
    content: none !important; /* Desactivamos el pseudo-elemento */
}

/* Estilo específico para la sección de servicios - ahora con fondo blanco semitransparente */
#services {
    position: relative;
    z-index: 1;
    padding: 6em 0 4em 0;
    background-color: rgba(255, 255, 255, 0.85) !important; /* Fondo blanco con 85% de opacidad */
    width: 100% !important; /* Asegurar que ocupe todo el ancho */
    max-width: 100% !important; /* Eliminar cualquier restricción de ancho máximo */
    margin: 0 !important; /* Eliminar cualquier margen */
}

/* Cambiar el color del texto del encabezado para mejor contraste con fondo blanco */
#services .major h2 {
    color: #2e3842 !important; /* Color oscuro para el título */
}

#services .major p {
    color: #4E4852 !important; /* Color gris oscuro para el subtítulo */
}

/* Asegurarnos de que la clase features mantenga su diseño en cuadrícula */
.features {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Restablecer el ancho de los elementos li al 50% para mostrarlos en 2 columnas */
.features li {
    width: 50% !important;
    display: block !important;
    position: relative !important;
    text-align: left !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(33, 178, 166, 0.2) !important;
    padding: 4em 4em 2em 6em !important; /* Mantener el padding original */
    margin: 0 !important; /* Eliminar márgenes que puedan causar saltos */
    box-sizing: border-box !important; /* Asegurar que el padding no aumente el ancho */
}

/* Asegurar que los elementos li tengan las esquinas redondeadas correctas */
.features li:nth-child(1) {
    border-top-left-radius: 8px !important;
}

.features li:nth-child(2) {
    border-top-right-radius: 8px !important;
}

.features li:nth-last-child(1) {
    border-bottom-right-radius: 8px !important;
}

.features li:nth-last-child(2) {
    border-bottom-left-radius: 8px !important;
}

.features li:hover {
    background-color: rgba(255, 255, 255, 0.9) !important; /* Más opaco al pasar el cursor */
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    z-index: 2 !important; /* Asegura que el elemento elevado esté por encima de los demás */
}

/* Texto oscuro para mejor legibilidad en fondo claro */
.features li h3, .features li p {
    color: #2e3842 !important;
    position: relative;
    z-index: 2;
    text-shadow: none !important;
}

/* Color turquesa para los iconos */
.features li .icon {
    position: relative;
    z-index: 2;
    color: #21b2a6 !important;
    text-shadow: none !important;
}

/* Asegurar que los iconos estén correctamente posicionados */
.features li:before {
    display: block;
    color: #21b2a6 !important;
    position: absolute;
    left: 1.75em;
    top: 2.75em;
    font-size: 1.5em;
}

/* Corregir el comportamiento responsivo para pantallas medianas */
@media screen and (max-width: 980px) {
    .features li {
        padding: 3em 2em 1em 2em !important;
        text-align: center !important;
    }
    
    .features li:before {
        left: 0;
        margin: 0 0 1em 0;
        position: relative;
        top: 0;
    }
}

/* Corregir el comportamiento responsivo para pantallas pequeñas */
@media screen and (max-width: 736px) {
    .features li {
        padding: 3em 1em 1em 1em !important;
        width: 100% !important; /* A pantalla completa en móviles */
        margin-bottom: 1em !important; /* Espacio entre elementos en móviles */
    }
}

/* Estilos para el header y footer */
#header {
    background-color: rgba(46, 56, 66, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#header.alt {
    background-color: rgba(46, 56, 66, 0.5) !important;
}

#menu {
    background-color: rgba(33, 178, 166, 0.95) !important;
}

#footer {
    background-color: rgba(29, 36, 42, 0.9) !important;
    position: relative;
    z-index: 2;
}

/* Asegurar que el wrapper no tenga fondo sólido pero mantenga su estructura */
.wrapper {
    background-color: transparent !important;
}