* {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    margin: 0;
    padding: 0;
    font-size: 22px;
}

body {
    position: relative;
    background: url('img/fondo gris.jpg') no-repeat center fixed;
    background-size: cover;
}

.fondo-opaco {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}


.header-layer {
    position: absolute;
    width: 120%;
    height: 50px;
    transform: skewY(-5deg);
}

.header .layer1 {
    background: linear-gradient(to right, #5C0000, #8B0000);
    top: 0;
    left: 0;
}

.header .layer2 {
    background: linear-gradient(to right, #A00000, #C00000);
    top: 20px;
    left: -10px;
    transform: skewY(-5deg);
}

.header .layer3 {
    background: linear-gradient(to right, #D02020, #FF3030);
    top: 40px;
    left: -20px;
    transform: skewY(-5deg);
}

/* ==== ESTILOS BASE (pantalla grande) ==== */
.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
}

.logo img {
    height: 70px;
    border-radius: 50%;
    margin-left: -50px;
    margin-right: 300px;
    transition: transform 0.3s ease-in-out;
    background: white;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    gap: 40px;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.nav-links li:last-child {
    margin-left: auto;
    margin-right: 40px;
}

.nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Hover casi transparente (10% de opacidad) */
    border-radius: 10px;
}


.slider-frame {
    width: 100%;
    overflow: hidden;
    margin: 1px 0;
    z-index: 0; /* Aseguramos que el slider esté por debajo del header */
}


.slider-frame ul {
    display: flex;
    padding: 0;
    width: 700%;
    animation: slide 20s infinite;
    position: relative;
    z-index: 0; /* Aseguramos que las imágenes del slider no se superpongan al header */
}

.slider-frame ul li {
    list-style: none;
    width: 100%;
}

.slider-frame img {
    width: 100%;
    height: 480px;
}
@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


.slider-frame {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.slider-frame ul {
    display: flex;
    width: 710%; /* Para que el bucle sea fluido */
    animation: slide 30s linear infinite; /* Movimiento infinito y sin saltos */
}

.slider-frame ul li {
    list-style: none;
    width: 14.2857%; /* 100% / 7 imágenes */
    flex-shrink: 0;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Se mueve la mitad del ul */
}




.titulocentral{
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}
.parrafo {
    border: 3px solid rgb(246, 244, 244);
    max-width: 1000px; /* Aumentado para hacer el cuadro más ancho */
    margin: 20px auto;
    font-size: 18px; /* Opcional: Aumenta el tamaño del texto */
    color: #fffbfb;
    padding: 70px; /* Aumentado para dar más espacio interno */
    border-radius: 60px; /* Ajustado para que siga teniendo esquinas redondeadas */
    position: relative;
    z-index: 1;
    text-align: center;
}

.parrafo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 60px; /* Mantiene la forma redondeada */
    background: radial-gradient(circle at 30% 30%, red 30%, green 70%);
    opacity: 0.8;
    z-index: -1;
}


.casos-estudio {
    padding: 40px 20px; /* Aumentado el espacio alrededor de las tarjetas */
    margin-bottom: 40px; /* Aumenta la separación entre las tarjetas y el footer */
}
.casos-estudio h2 {
    text-align: center;
    margin-bottom: 20px; /* Aumenta la separación entre el título y las tarjetas */
    color: #000;
    font-size: 40px; /* Aumenta el tamaño del texto */
    margin-top: -10px;
}
div h2{ 
    text-align: center;
   margin-top: 15px;
    color: #000;
    font-size: 40px;
 }
.casos-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.caso {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    text-align: left;
}

.caso img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.texto {
    padding: 15px;
}

.texto h2 {
    font-size: 18px;
    color: #000;
}

.texto p {
    font-size: 14px;
    line-height: 35px;
    color: #555;
}






.footer {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #1b3d0f;
    overflow: hidden;
    margin-top: auto;
}

.footer-layer {
    position: absolute;
    width: 120%;
    height: 60px;
    transform: skewY(-5deg);
}

.footer .layer1 {
    background: linear-gradient(to right, #0d330d, #136c13);
    bottom: 0;
    left: 0;
}

.footer .layer2 {
    background: linear-gradient(to right, #1f7a1f, #3ea93e);
    bottom: 20px;
    left: -10px;
    transform: skewY(-5deg);
}

.footer .layer3 {
    background: linear-gradient(to right, #3ca73c, #5cc75c);
    bottom: 40px;
    left: -20px;
    transform: skewY(-5deg);
}

.infofooter {
    font-size: 15px;
    font-weight: bold; /* Cambiado de 300 a bold */
    color: white;
    text-align: center;
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
    line-height: 15px;
}


.header {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #8B0000;
    overflow: hidden;
}

.header-layer {
    position: absolute;
    width: 120%;
    height: 60px;
    transform: skewY(-5deg);
}

.header .layer1 {
    background: linear-gradient(to right, #5C0000, #8B0000);
    top: 0;
    left: 0;
}

.header .layer2 {
    background: linear-gradient(to right, #A00000, #C00000);
    top: 20px;
    left: -10px;
    transform: skewY(-5deg);
}

.header .layer3 {
    background: linear-gradient(to right, #D02020, #FF3030);
    top: 40px;
    left: -20px;
    transform: skewY(-5deg);
}

.caso {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.caso:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.imagen-container {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.imagen-caso {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.imagen-caso:hover {
    transform: scale(1.1);
}

/* Estilos para pantallas más pequeñas (hasta 768px) */
/* ==== ESTILOS BASE (pantalla grande) ==== */


/* Aseguramos que la sección Proyectos se muestre correctamente */

@media (max-width: 768px) {
    * {
        font-size: 16px;
    }

    body {
        font-size: 16px;
    }

    .header {
        height: auto; /* Permite que la altura se ajuste al contenido */
        padding-bottom: 3px; /* Reducimos el padding inferior del header */
        position: relative;
    }

    .header-layer {
        height: 15px; /* Reducimos la altura de las capas */
        position: absolute;
        width: 100%;
        left: 0;
        transform: skewY(-5deg);
    }

    .header .layer1 {
        background: linear-gradient(to right, #5C0000, #8B0000);
        top: 0;
    }

    .header .layer2 {
        background: linear-gradient(to right, #A00000, #C00000);
        top: 3px; /* Ajustamos la posición de la capa */
        left: -2px; /* Ajustamos la posición de la capa */
    }

    .header .layer3 {
        background: linear-gradient(to right, #D02020, #FF3030);
        top: 6px; /* Ajustamos la posición de la capa */
        left: -2px; /* Ajustamos la posición de la capa */
    }

    .logo img {
        height: 35px; /* Reducimos la altura del logo */
        margin-left: 0;
        margin-right: 0;
        display: block;
        margin: 3px auto; /* Reducimos los márgenes */
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 3px; /* Reducimos el padding del navbar */
        position: relative;
        z-index: 100;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        gap: 2px; /* Reducimos el espacio entre los enlaces */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 8px 0; /* Reducimos el padding vertical de los enlaces */
        box-sizing: border-box;
        font-size: 14px; /* Reducimos el tamaño de la fuente */
        font-weight: bold;
        text-decoration: none;
        color: white;
        border-radius: 2px;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(0, 0, 0, 0.1); /* Mantenemos el hover */
        border-radius: 5px; /* Reducimos el radio del borde */
    }
    .parrafo {
        padding: 20px;
        font-size: 14px;
        max-width: 90%;
    }
}

.clientes {
    padding: 40px 20px;
    text-align: center;
    margin-top: -50px;
}

.titulocentral {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #101111;
}

.logos-clientes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 20px;
}

.logo-box {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.05);
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Mejora visual al hacer hover en el logo */
.logo-box img:hover {
    filter: grayscale(0%);
}

/* === Responsive para móviles === */
@media (max-width: 600px) {
    .clientes {
        padding: 20px 10px;
    }

    .titulocentral {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .logos-clientes {
        gap: 15px;
        padding: 20px;
    }

    .logo-box {
        width: 90px;
        height: 90px;
        padding: 5px;
    }
}
