@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    padding: -20px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 2px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.8);
}

nav .logo {
    width: 200px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    font-family: 'Montserrat', serif;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 1.5rem;
    position: relative;
}

nav a {
    text-decoration: none;
    color: #221712;
    padding: 1rem 0;
    transition: color 0.3s ease;
}

nav a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(110, 110, 110);
    transition: width 0.3s ease;
}

nav a:hover {
    color: rgb(110, 110, 110);
}

nav a:hover::before {
    width: 100%;
}

.contenedor {
    text-align: center;
    max-width: 80%;
    color: black;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contenedor.activo {
    opacity: 1;
    transform: translateY(0);
}

.contenedor h1 {
    opacity: 0;
    color: white;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 4.5rem;
    margin: 0;
    transform: translateY(30px);
    transition: opacity 2.5s ease-out, transform 2.5s ease-out;
}

.contenedor.activo h1 {
    opacity: 1;
    transform: translateY(0);
    color: white;
}

.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* 3 barras */
#checkbox {
    display: none;
}

.toggle {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition-duration: .3s;
}

.bars {
    width: 100%;
    height: 4px;
    background-color: rgb(0, 0, 0);
    border-radius: 5px;
    transition-duration: .3s;
}

#checkbox:checked+.toggle .bars {
    margin-left: 13px;
}

#checkbox:checked+.toggle #bar2 {
    transform: rotate(135deg);
    margin-left: 0;
    transform-origin: center;
    transition-duration: .3s;
}

#checkbox:checked+.toggle #bar1 {
    transform: rotate(45deg);
    transition-duration: .3s;
    transform-origin: left center;
}

#checkbox:checked+.toggle #bar3 {
    transform: rotate(-45deg);
    transition-duration: .3s;
    transform-origin: left center;
}

/* Fin de 3 barras */

.toggle {
    display: none;
}

/**********************************/
/* INICIO DE LINEA DE NEGOCIO */
/**********************************/
.business-line-section {
    width: 100%;
    box-sizing: border-box;
    padding: 5rem 2rem;
    /* Espacio vertical y horizontal */
}

.container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
}

/* --- 1. Encabezado (Título y Resumen) --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid #e0e0e0;
    /* Divisor gris claro */
    padding-bottom: 2rem;
}

/* Lado Izquierdo: Título */
.header-title {
    flex: 1;
    min-width: 250px;
}

.header-title h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #222222;
    /* Negro suave */
    margin: 0;
    line-height: 1.2;
    border-left: 5px solid #a0a0a0;
    /* Acento gris medio */
    padding-left: 1.5rem;
}

/* Lado Derecho: Resumen */
.header-summary {
    flex: 2;
    /* Más espacio para el texto */
}

.header-summary p {
    font-size: 1.7rem;
    font-weight: 300;
    color: #555555;
    /* Gris oscuro para texto */
    line-height: 1.7;
    margin: 0;
}

/* --- 2. Cuadrícula de Servicios (Los 4 puntos) --- */
.business-grid {
    display: grid;
    /* 4 columnas en desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Tarjeta individual de servicio */
.grid-item {
    background-color: #ffffff;
    /* Fondo blanco puro */
    border: 1px solid #e0e0e0;
    /* Borde gris claro */
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto formal al pasar el mouse */
.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* Icono SVG */
.item-icon {
    width: 60px;
    height: 60px;
    color: white;
    /* Gris medio (acento) */
    margin: 0 auto 1.5rem auto;
    background-color: #6c757d;
}

.item-content h3 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #222222;
    margin: 0 0 0.5rem 0;
}

.item-content p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* --- Responsive (Móviles y Tablets) --- */

/* Tablets */
@media (max-width: 992px) {
    .business-grid {
        /* 2 columnas en tablet */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        /* Apila título y resumen */
        gap: 1.5rem;
        border-bottom: none;
        padding-bottom: 0;
    }

    .header-title h2 {
        font-size: 2.25rem;
    }

    .header-summary p {
        font-size: 1.3rem;
        line-height: 1.7;
        margin: 0;
    }

    .business-grid {
        /* 1 columna en móvil */
        grid-template-columns: 1fr;
    }
}

/*****************************************/
/* FIN DE LINEA DE NEGOCIO */
/*****************************************/

/*****************************************/
/* INICIO PROYECTOS */
/*****************************************/

.circular-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Altura de la sección */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    padding: 2rem 0;
    box-sizing: border-box;
}

/* --- El Video de Fondo --- */
/* --- MODIFICADO: Ahora es una Imagen de Fondo --- */
#carousel-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
    /* Efecto para que no compita con el texto */
    filter: blur(8px) brightness(0.6);
    /* Transición suave al cambiar de imagen */
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}


/* --- Capa oscura sobre el video (para legibilidad) --- */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.07);
    /* Azul HERA oscuro con transparencia */
    z-index: 2;
}

/* --- 2. Layout del Contenido (Izquierda y Derecha) --- */
.carousel-content-layout {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    flex-wrap: wrap;
    /* Para responsive */
}

/* --- 2a. Columna de Información (Izquierda) --- */
.carousel-info {
    flex: 1;
    min-width: 300px;
    padding-right: 3rem;
    box-sizing: border-box;
}

.carousel-info h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease-out;
}

.carousel-info p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
    max-width: 500px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease-out 0.1s;
}

/* --- 2b. Área del Slider (Derecha) --- */
.carousel-slider-area {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contenedor de los 3 círculos */
.circle-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.slide-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    /* Estado por defecto (previo y siguiente) */
    opacity: 0.6;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* El círculo activo (central) */
.slide-circle.active {
    width: 140px;
    height: 140px;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Controles (Flechas) */
.carousel-arrows {
    display: flex;
    gap: 1rem;
}

.arrow-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #555555;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 900;
    color: rgb(89, 89, 89);
    margin-bottom: 2.5rem;
    /* Espacio entre título y tarjetas */
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .circular-carousel-wrapper {
        height: auto;
        padding: 3rem 1rem;
    }

    .carousel-content-layout {
        flex-direction: column;
    }

    .carousel-info {
        text-align: center;
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .slide-circle {
        width: 80px;
        height: 80px;
    }

    .slide-circle.active {
        width: 110px;
        height: 110px;
    }
}

/*****************************************/
/* FIN DE PROYECTOS */
/*****************************************/

/*****************************************/
/* INICIO NOSOSTROS */
/*****************************************/
.about-section-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 4rem 2rem;
    /* Espacio vertical y horizontal */
}

.about-container {
    /* max-width: 1200px; */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    /* Para responsive */
    background-color: #ffffff;
    /* Fondo blanco para el contenido */
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    /* Para que el radius afecte al video */
}

/* --- Columna Izquierda: Texto --- */
.about-text {
    flex: 1;
    /* Ocupa 50% */
    min-width: 320px;
    /* Ancho mínimo antes de apilar */
    padding: 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #3f3f3f;
    /* Azul corporativo HERA */
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    border-left: 5px solid #3c3c3c;
    padding-left: 1.5rem;
}

.about-text h3 {
    font-size: 1.7rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 1rem 0;
}

.about-text p {
    font-size: 1.4rem;
    font-weight: 300;
    color: #555;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* --- Columna Derecha: Video --- */
.about-video {
    flex: 1;
    /* Ocupa 50% */
    min-width: 520px;
    min-height: 500px;
    background-color: #ffffff;
}

.about-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegura que el video cubra el espacio */
    display: block;
    /* Elimina espacio fantasma */
}

/* --- Responsive (Móviles) --- */
@media (max-width: 768px) {
    .about-section-wrapper {
        padding: 2rem 1rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-text {
        order: 1;
        /* El texto va primero */
        padding: 2rem;
    }

    .about-video {
        order: 2;
        /* El video va después */
        height: auto;
        /* Dejamos que la altura sea automática */
        /* Reseteamos los mínimos de desktop */
        min-width: unset;
        min-height: unset;
        background-color: #ffffff;
    }

    /* --- ESTA ES LA REGLA CLAVE --- */
    /* Anulamos el 'height: 100%' y 'object-fit: cover' del modo desktop */
    .about-video video {
        height: auto;
        /* El video define su propia altura */
        object-fit: contain;
        /* Muestra el video completo, puede dejar barras */
        /* Si prefieres que llene el ancho y se corte lo que sobre de alto: */
        /* object-fit: cover; */
        /* Si quieres que llene el ancho 100% y se vea completo (sin barras): */
        /* object-fit: unset; */
        background-color: #ffffff;
    }

    .about-text h1 {
        font-size: 2.25rem;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }
}

/*****************************************/
/* FIN DE NOSOSTROS */
/*****************************************/

/*****************************************/
/* INICIO DE NUESTROS CLIENTES */
/*****************************************/
.logo-carousel-wrapper {
    width: 100%;
    background-color: #ffffff;
    /* MODIFICADO: Fondo blanco */
    padding: 4rem 0;
    box-sizing: border-box;
    border-top: 1px solid #e0e0e0;
    /* MODIFICADO: Borde gris sutil */
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    /* Oculta el glow que se sale */
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    color: #555555;
    /* MODIFICADO: Color de texto oscuro */
    text-align: center;
    margin-bottom: 3.5rem;
    /* Más espacio */
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: none;
    /* MODIFICADO: Sin sombra */
}

/* --- El truco del carrusel infinito --- */
.logo-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Máscara con degradado para que los logos aparezcan y desaparezcan suavemente */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.logo-track {
    display: flex;
    animation: scroll 60s linear infinite;
    width: calc(220px * 34);
    /* (170px logo + 50px gap) * 17 logos * 2 copias */
}

/* Pausar en hover */
.logo-carousel-wrapper:hover .logo-track {
    animation-play-state: paused;
}

/* --- Estilo de cada Logo (Efecto "Glassmorphism") --- */
.logo-item {
    height: 80px;
    /* Un poco más altos */
    width: 170px;
    /* Un poco más anchos */
    margin: 0 25px;
    /* Separación */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    /* --- MODIFICADO: Quitado Glassmorphism, puesto estilo tarjeta --- */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    /* Borde del tarjeta */
    border-radius: 10px;

    transition: all 0.3s ease;
}

/* --- Efecto Hover (Neón) --- */
.logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    /* Levantar */
    background: #ffffff;
    border-color: #0d47a1;
    /* MODIFICADO: Borde azul corporativo */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    /* MODIFICADO: Sombra sutil */
}

.logo-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    /* Look profesional en blanco y negro */
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}

/* Recupera el color en hover */
.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* --- Animación de Scroll --- */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* Mueve el track la distancia de la primera mitad (17 logos) */
        transform: translateX(calc(-220px * 17));
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .logo-item {
        height: 60px;
        width: 130px;
        margin: 0 20px;
    }

    @keyframes scroll {
        from {
            transform: translateX(0);
        }

        to {
            /* (130px + 40px) * 17 */
            transform: translateX(calc(-170px * 17));
        }
    }
}
/*****************************************/
/* FIN DE NUESTROS CLIENTES */
/*****************************************/
/*****************************************/
/* INICIO DE FOOTER */
/*****************************************/
.site-footer {
    background-color: #4e4e4e;
    /* Azul corporativo muy oscuro */
    color: #dddddd;
    /* Texto gris-azulado claro */
    padding: 4rem 2rem 0 2rem;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    /* 4 columnas en desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    /* Espacio entre columnas */
}

/* --- Estilos comunes para las columnas --- */
.footer-column {
    padding: 0 1rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    /* Títulos en blanco */
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #d1d1d1;
    /* Línea de acento azul */
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-column p,
.footer-column li {
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

.footer-column a {
    color: #dbdcdd;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
    padding-left: 5px;
    /* Pequeño efecto de hover */
}

/* --- Columna 1: Logo, Frases, Misión/Visión --- */
.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-phrase {
    font-style: italic;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 0.5rem;
    border-left: 3px solid #eaebec;
    padding-left: 1rem;
}

.footer-phrase:last-of-type {
    margin-bottom: 2rem;
}

.footer-mission-vision h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin: 1.5rem 0 0.5rem 0;
}

/* --- Columna 2: Navegación --- */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 1rem;
}

/* --- Columna 3: Contacto --- */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.footer-contact-list .icon {
    width: 18px;
    height: 18px;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 5px;
    /* Alinear con el texto */
}

/* --- Columna 4: Mapa --- */
.footer-map {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    /* <--- AÑADIDO: Necesario para posicionar el botón */
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) opacity(0.8);
    transition: filter 0.3s ease;
}

.footer-map:hover iframe {
    filter: grayscale(0%) opacity(1);
}

/* --- NUEVO: Botón "Cómo Llegar" sobre el mapa --- */
.footer-map-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    background-color: white;
    color: #0d47a1;
    /* Azul corporativo */
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Evita que el texto se parta */
}

.footer-map-button:hover {
    transform: translateX(-50%) scale(1.05);
    background-color: #000000;
}

/* --- Sub-Footer (Copyright y Redes) --- */
.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.sub-footer p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
/* --- Responsive --- */

/* Tablets */
@media (max-width: 992px) {
    .footer-container {
        /* 2 columnas */
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column.map {
        /* El mapa ocupa todo el ancho en 2da fila */
        grid-column: 1 / -1;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .footer-container {
        /* 1 columna */
        grid-template-columns: 1fr;
    }

    .footer-column {
        padding: 0;
        /* Sin padding lateral */
    }

    .sub-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-social-links {
        order: -1;
        /* Redes primero */
    }
}

/*****************************************/
/* FIN DE FOOTER */
/*****************************************/


/*****************************************/
/* RESPONSIVE MOBILE */
/*****************************************/
@media (max-width: 768px) {
    nav ul {
        display: none;
        /* Ocultar el menú por defecto en móviles */
        flex-direction: column;
        position: absolute;
        top: 60px;
        /* Ajusta según sea necesario */
        left: 0;
        background-color: transparent;
        /* Fondo del menú */
        width: 100%;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
        /* Mostrar el menú al activar */
    }

    .toggle {
        display: flex;
        /* Mostrar el toggle en móviles */
    }

    nav li {
        margin: 50px 0;
        /* Espaciado para elementos de menú en móvil */
        text-align: center;
        /* Centrar texto */
    }

    .hero {
        padding: 0 2%;
        /* Reduce el padding para móviles */
    }

    .back-video {
        position: absolute;
        top: 50%;
        /* Centrar verticalmente */
        left: 50%;
        /* Centrar horizontalmente */
        width: 100%;
        /* Ancho completo */
        height: 100%;
        /* Altura completa */
        object-fit: cover;
        /* Asegura que el video cubra el contenedor sin distorsión */
        transform: translate(-50%, -50%);
        /* Centrar el video */
        z-index: -1;
        /* Asegurar que esté detrás de otros elementos */
    }

    nav {
        padding: 25px 5%;
        /* Ajustar padding en móviles */
        font-size: 0.9rem;
        /* Tamaño de fuente más pequeño en móviles */
    }

    nav .logo {
        width: 150px;
        /* Tamaño del logo más pequeño */
    }

    nav ul {
        flex-direction: column;
        /* Cambiar a columna en móviles */
        display: none;
        /* Ocultar el menú por defecto */
        position: absolute;
        top: 90px;
        /* Ajustar según sea necesario */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.3);
        /* Fondo del menú */
        padding: 30px 0;
    }

    nav ul.active {
        display: flex;
        /* Mostrar el menú al activar */
    }

    nav li {
        margin: 10px 0;
        /* Ajustar margen para elementos en móvil */
        text-align: center;
        /* Centrar texto */
    }

    .contenedor {
        padding: 0 5%;
        /* Añadir padding para evitar que el texto toque los bordes */
    }

    .contenedor h1 {
        font-size: 7vw;
        /* Adaptar tamaño del texto */
        color: #fff;
    }


    .contenedor a {
        font-size: 3vw;
        /* Tamaño de fuente responsive */
        padding: 10px 4vw;
        /* Ajustar padding del botón */
    }

    /* Linea de negocio */
    .business-line-section {
        padding: 20px 0;
        /* Reducir el espaciado superior e inferior */
        margin-bottom: 0;
    }

    .line-title-container {
        flex-direction: column;
        /* Cambiar a columna */
        align-items: center;
        /* Centrar elementos */
        margin-bottom: 20px;
        /* Reducir el margen inferior */
    }

    .line-title {
        flex-basis: 100%;
        /* Hacer que ocupe el 100% del ancho */
        text-align: center;
        /* Centrar el texto */
    }

    .line-title h2 {
        font-size: 28px;
        /* Reducir tamaño de fuente */
    }

    .description-container {
        flex-basis: 100%;
        /* Hacer que ocupe el 100% del ancho */
        display: block;
        /* Cambiar a bloque */
        position: static;
        /* Eliminar posición absoluta */
        margin-top: 20px;
        /* Añadir margen superior */
    }

    .description-container .vertical-line {
        display: none;
        /* Ocultar línea vertical en pantallas pequeñas */
    }

    .description {
        font-size: 16px;
        /* Reducir tamaño de fuente */
        padding-left: 0;
        /* Eliminar padding */
        text-align: center;
        /* Centrar texto */
    }

    .progress-container {
        flex-direction: row;
        /* Mantener alineación horizontal */
        flex-wrap: wrap;
        /* Permitir que los elementos se envuelvan */
    }

    .progress-item {
        flex-basis: 50%;
        /* Cambiar a 50% para dos elementos por fila */
        margin-bottom: 20px;
        /* Añadir margen inferior */
    }

    .progress-circle {
        width: 80px;
        /* Reducir tamaño del círculo */
        height: 80px;
        /* Reducir tamaño del círculo */
    }

    .item-icon {
        width: 40px;
        /* Reducir tamaño del icono */
        height: 40px;
        /* Reducir tamaño del icono */
    }

    .progress-item h4 {
        font-size: 12px;
        /* Reducir tamaño de fuente */
    }

    /* Fin de linea de negocio*/

    /* Galería de Imágenes */
    .imagen-con-texto {
        width: 100%;
        /* Ancho completo en pantallas pequeñas */
        margin: 0;
        /* Sin margen en pantallas pequeñas */
    }

    .texto-sobre-imagen {
        opacity: 0;
        /* Mantener oculto inicialmente */
    }

    /* Fin Galería de Imágenes */

    /* Acerca de Nosotros*/
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        padding-right: 0;
        padding-bottom: 20px;
    }

    .about-image {
        width: 90%;
        /* Ancho de la imagen en pantallas pequeñas */
        max-width: 400px;
        /* Ancho máximo para la imagen */
    }

    .about-us h2 {
        font-size: 28px;
        /* Tamaño de fuente más pequeño para el título */
        margin-bottom: 30px;
        /* Espacio debajo del título */
    }

    .about-text p {
        font-size: 18px;
        /* Tamaño de fuente más pequeño para el texto */
    }

    /* Fin Acerca de nosotros*/

    /*Clientes*/
    .slider-area h2 {
        font-size: 28px;
        /* Tamaño de fuente más pequeño para el título */
        margin-bottom: 20px;
        /* Espacio debajo del título */
    }

    .logos {
        padding: 40px 0;
        /* Reducir el padding en pantallas pequeñas */
    }

    .logos-slide img {
        height: 40px;
        /* Tamaño más pequeño para los logos */
        margin: 0 20px;
        /* Espacio reducido entre los logos */
    }

    .logos:before,
    .logos::after {
        width: 100px;
        /* Reducir el ancho de los gradientes en pantallas pequeñas */
    }

    /* Fin clientes */

}