@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background: #fff;
    padding-top: 90px; /* Para compensar el menú fijo */
    overflow-x: hidden;
    overflow-y: auto;
}

/* MENÚ FIJO */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #fff;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu .logo img {
    height: 80px;
}

.menu .navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu .navbar ul {
    display: flex;
    gap: 60px;
}

.menu .navbar ul li a {
    color: #5a8d23;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    transition: all 0.1s ease;
}

.menu .navbar ul li a:hover {
    color: #66b413;
    border-bottom: 3px solid #6fca0d;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: #5a8d23;
    cursor: pointer;
}

.menu-toggle img {
    height: 35px;
    width: 35px;
}

/* Estilos para el botón flotante de WhatsApp */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: all 0.3s ease;
}

.float-wa:hover {
    background-color: #128C7E;
}

/* CARRUSEL */
.carousel {
    margin-top: 0; /* El padding-top del body ya compensa el menú fijo */
    width: 100%;
    height: 80vh; /* ocupa casi toda la pantalla */
    position: relative;
    overflow: hidden;
}

.carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* mantiene proporciones sin pixelar */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

/* Botón de cotización opcional */
.quote-button {
    background-color: #17a2b8;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s;
}

.quote-button:hover {
    background-color: #117a8b;
}

/* SECCIÓN HERO */
.hero {
    padding: 50px 5%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.text-content {
    flex: 1;
    padding-right: 30px;
    position: relative;
}

/* Barras verticales (verde y gris) */
.bars {
    display: flex;
    position: absolute;
    left: 0;
    height: 80px;
    width: 16px;
}

.bars::before {
    content: '';
    width: 8px;
    height: 100%;
    background-color: #5a8d23; /* Barra verde */
}

.bars::after {
    content: '';
    width: 8px;
    height: 100%;
    background-color: #666; /* Barra gris */
}

.text-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    margin-left: 25px; /* Espacio para las barras */
}

.text-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #555;
    margin-left: 25px; /* Espacio para las barras */
}

.text-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-left: 25px; /* Espacio para las barras */
}

.image-content {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-content img {
    max-width: 100%;
    height: auto;
}

/* QUIENES SOMOS */
.quienes-somos {
    background: #ffffff;
    padding: 60px;
    display: flex;
    justify-content: center;
}

.quienes-card {
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    padding: 40px;
    max-width: 1300px;
    width: 100%;
    align-items: center;
    gap: 70px;
}

/* CONTENEDOR DE IMAGEN */
.quienes-img {
    flex: 1;
    position: relative;
}

/* Fondo gris detrás de la imagen */
.img-bg {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 90%;
    height: 100%;
    background-color: #666;
    border-radius: 5px;
    z-index: 0;
}

.quienes-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-color: #000;
    border-radius: 5px;
}

/* TEXTO */
.quienes-texto {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quienes-texto h2 {
    font-size: 36px;
    color: #000;
    margin-bottom: 20px;
}

.quienes-texto h2 span {
    color: #5a8d23;
}

.quienes-texto p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-btn {
    align-self: flex-start;
    background-color: #5a8d23;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.info-btn:hover {
    background-color: #4a761c;
}

/* NUESTROS SERVICIOS */
.nuestro_servicios {
    padding: 40px;
    background-color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
}

.nuestro_card {
    max-width: 1200px;
    margin: 0 auto;
}

.nosotros-texto h1 {
    background-color: #5a8d23;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.nosotros-texto h1 span {
    font-weight: 1100;
}

.proyectos-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.proyecto {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.proyecto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.proyecto h4 {
    position: relative;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 15px auto;
    text-align: center;
    display: inline-block;
}

.proyecto h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%; /* ahora ocupa todo el texto */
    height: 3px;
    background-color: #5a8d23;
}

.proyecto p {
    padding: 0 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* EXPERIENCIA */
.experiencia {
    background-color: #f6f6f6;
    padding: 50px 20px;
}

.container-experiencia {
    max-width: 1200px;
    margin: 0 auto;
}

.container-experiencia h2 {
    display: flex;
    align-items: center;
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 700;
}

.container-experiencia .barra {
    width: 5px;
    height: 30px;
    background-color: #333;
    margin-right: 10px;
}

.texto-verde {
    color: #5a8d23;
}

.texto-negro {
    color: #111;
    margin-right: 8px;
}

.logos-experiencia {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.logo-box {
    background-color: #5a8d23;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 60px;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.categorias-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.categorias-titulo {
    color: #5a8d23;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.categoria-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(92, 219, 7, 0.1);
}

.categoria-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.categoria-title {
    color: #186818;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

/* SECCIÓN PORTADA */
.seccion-portada {
    display: flex;
    flex-direction: row-reverse; /* Imagen a la izquierda en pantallas grandes */
    align-items: flex-end;
    justify-content: center;
    gap: 40px;
    padding: 90px 20px 0;
    flex-wrap: wrap;
    background: #f7f7f7;
}

.imagen-fondo img {
    max-width: 100%; /* Asegura que la imagen no se desborde del contenedor */
    width: 100%; /* Ajusta el ancho de la imagen al 100% del contenedor */
    height: auto; /* Mantiene la proporción original de la imagen */
    margin-bottom: -5px; /* Empuja la imagen contra el footer */
    object-fit: cover; /* Asegura que la imagen se ajuste sin distorsionarse */
}

.contenido-texto {
    align-self: flex-start; /* Sube el texto */
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-left: 4px solid #5a8d23;
}

.contenido-texto h2 {
    font-size: 35px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.barra {
    display: inline-block;
    width: 10px;
    height: 40px;
    background: #5a8d23;
    margin-right: 10px;
    vertical-align: middle;
}

.contenido-texto h2 strong {
    font-weight: bold;
    color: #000;
}

.contenido-texto h2 .verde {
    color: #5a8d23;
    font-weight: 600;
}

.contenido-texto p {
    font-size: 20px;
    color: #222;
    line-height: 1.6;
}

/* FOOTER */
/* Footer Styles */
.footer {
    background-color: #76a934;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
}

.footer-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 20px;
    flex: 1;
    min-width: 250px;
}

.footer-box i {
    font-size: 36px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-box p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.footer-social i {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-social i:hover {
    transform: translateY(-5px);
}

  /* Responsive Media Queries - Following your structure */
@media screen and (max-width: 992px) {
    .footer-title {
    font-size: 26px;
    }
    
    .footer-content {
    gap: 10px;
    }
    
    .footer-box {
    padding: 0 10px;
    }
}

@media screen and (max-width: 768px) {
    .footer {
    padding: 30px 15px;
    }
    
    .footer-title {
      font-size: 24px;
      margin-bottom: 25px;
    }
    
    .footer-box {
      min-width: 200px;
    }
    
    .footer-box i {
      font-size: 32px;
    }
    
    .footer-box p {
      font-size: 14px;
    }
  }
  
  @media screen and (max-width: 576px) {
    .footer {
      padding: 25px 15px;
    }
    
    .footer-title {
      font-size: 22px;
      margin-bottom: 20px;
    }
    
    .footer-content {
      flex-direction: column;
      gap: 25px;
    }
    
    .footer-box {
      width: 100%;
      margin-bottom: 0;
    }
    
    .footer-social {
      margin-top: 25px;
      gap: 20px;
    }
    
    .footer-social i {
      font-size: 22px;
    }
  }


            
            /* Estilos responsive */
            @media screen and (max-width: 1200px) {
                .categorias-grid {
                    grid-template-columns: repeat(3, 1fr);
                }
            }
            
            @media screen and (max-width: 992px) {
                .categorias-grid {
                    grid-template-columns: repeat(2, 1fr);
                }
            }
            
            @media screen and (max-width: 768px) {
                .categorias-titulo {
                    font-size: 24px;
                }
            }
            
            @media screen and (max-width: 576px) {
                .categorias-grid {
                    grid-template-columns: 1fr;
                }
                
                .categorias-titulo {
                    font-size: 22px;
                    margin-bottom: 20px;
                }
                
                .categoria-card {
                    padding: 20px 10px;
                }
                
                .categoria-img {
                    width: 80px;
                    height: 80px;
                }
            }

/* RESPONSIVE STYLES */
@media screen and (max-width: 1200px) {
    .quienes-card {
        gap: 40px;
        padding: 30px;
    }
    
    .contenido-texto h2 {
        font-size: 30px;
    }
    
    .contenido-texto p {
        font-size: 18px;
    }
}

@media screen and (max-width: 992px) {

    .menu {
        padding: 0 20px;
    }
    
    .menu .navbar ul {
        gap: 30px;
    }
    
    .quienes-card {
        flex-direction: column;
    }
    
    .quienes-img {
        margin-bottom: 20px;
    }
    
    .img-bg {
        left: -1;
    }
    
    .proyectos-container {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .menu {
        height: 70px;
    }
    
    .menu .logo img {
        height: 60px;
    }
    
    .menu .navbar {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: white;
        overflow: hidden;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .menu .navbar.active {
        height: auto;
    }
    
    .menu .navbar ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
    }
    
    .menu .navbar ul li {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .text-content {
        padding-right: 0;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .bars {
        position: relative;
        margin-bottom: 15px;
    }
    
    .text-content h2, 
    .text-content h3, 
    .text-content p {
        margin-left: 0;
    }
    
    .quienes-somos {
        padding: 30px 15px;
    }
    
    .seccion-portada {
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
    }
    
    .imagen-fondo img {
        margin-bottom: 20px;
    }
    
    .contenido-texto {
        max-width: 90%;
        box-shadow: none;
        padding: 20px;
    }
}

@media screen and (max-width: 576px) {
    .menu {
        padding: 0 15px;
    }
    
    .carousel {
        height: 50vh;
    }
    
    .quienes-texto h2 {
        font-size: 28px;
    }
    
    .quienes-texto p {
        font-size: 16px;
    }
    
    .nosotros-texto h1 {
        font-size: 24px;
        padding: 15px;
    }
    
    .proyecto {
        min-width: 100%;
    }
    
    .container-experiencia h2 {
        font-size: 22px;
    }
    
    .logo-box {
        width: 150px;
        height: 50px;
    }
}