* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Lato', sans-serif;
    background-color: #fff;
}

h1, h2, h3, h4, h5{
    font-family: 'Poppins', sans-serif;
}
/* BOTÓN DE WHATSAPP FIJO */
.whatsapp-icon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    /* Hace el movimiento más suave */
}

.whatsapp-icon img {
    width: 70px;
}
/* Top bar */
.top-bar {
    display: flex;
    justify-content: space-around;
    background-color: #ffb133;
    padding: 10px 0;
    color: #2B161B;
    font-weight: bold;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 1.3em;
}

.top-bar .city span {
    display: block;
    font-weight: normal;
    font-size: 1rem;
    margin-top: 4px;
}
.top-bar .city {
    border:#272725 2px solid;
    cursor:pointer;
    border-radius: 5px;
    padding: 5px 10px;
    min-width: 250px;;
    transition: color 0.5s;
}
.top-bar .city:hover {
    color: #f2f2f2; /* o el color que combine con tu diseño */
}

/* Sticky Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
}

.logo {
    height: 60px;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav input {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
}

.btn-cotizar {
    background-color: #ffb133;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
    text-decoration: none;
    color: #000;
}

.btn-cotizar:hover {
    background-color: #e09124;
}

/* Slider */
.banner-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
    margin-top: -90px;
    /* espacio para el header fijo */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-text {
    position: absolute;
    bottom: 20%;
    left: 60px;
    color: #ffa726;
    font-size: 2rem;
    line-height: 1;
    font-weight: bold;
    max-width: 700px;
    text-shadow: 2px 2px 6px #000;
    z-index: 3;
}

.banner-text p {
    color: white;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 10px;
}



.contact-buttons {
    background: #000;
    padding: 20px;
    text-align: center;
}

.contact-buttons section {
    border: #fff 1px solid;
    border-radius: 20px;
    margin: 10px 5px;
    padding: 15px 10px;
}

.contact-buttons a {
    display: inline-block;
    margin: 0 10px;
}

.contact-buttons img {
    max-width: 250px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.contact-buttons img:hover {
    transform: scale(1.05);
    opacity: 1;
}


.productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background: #fff;
}

.card {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    width: 280px;
    aspect-ratio: 390 / 756;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    padding-bottom: 2px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    /* 🎯 AQUÍ LA MAGIA */
    transition: filter 0.3s ease;
}

.card:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.card-footer {
    text-align: center;
}

.card-footer p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: bold;
}

.card-footer small {
    font-size: 1rem;
    display: block;
    margin-top: 2px;
}

.card-footer img {
    margin-top: 10px;
    width: 120px;
    cursor: pointer;
}

.nota {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 600;

}


.impacto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFB600;
    padding: 4rem 2rem 0rem 2rem;
    flex-wrap: wrap;
}

.impacto__contenido {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
    color: white;
    max-width: 600px;
}

.impacto__contenido h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 1rem;
}

.impacto__contenido p {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}

.impacto__imagen-contenedor {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impacto__imagen {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


.clientes-banner {
    background-color: #e0e0e0;
    padding: 50px 0 0 0;
    margin: 0;
    text-align: center;
}

/* Carrusel de logos */
.logos-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
}

.logos-track {
    display: inline-block;
    animation: scroll-left 25s linear infinite;
}

.logos-track img {
    height: 180px;
    margin: 0 50px;
    vertical-align: middle;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Título centrado */
.clientes-titulo {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 80%;
    margin: auto;
}

.clientes-titulo h2 {
    font-size: 24px;
    margin: 0;
}

.destacado {
    color: #ffd01e;
    /* Amarillo dorado */
}

/* Secciones izquierda y derecha */
.servicio {
    flex: 1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    position: relative;
    height: 12rem;
}

.izquierda {
    background-image: url('../IMG/fondo-amarillo.png');
    justify-content: flex-start;
    text-align: left;
    background-position: left center;
}

.derecha {
    background-image: url('../IMG/fondo-gris.png');
    justify-content: flex-end;
    text-align: right;
    background-position: right center;
}

.servicio .contenido {
    padding: 30px;
}

.servicio h3 {
    font-size: 2rem;
    margin: 0 0 10px;
}

.izquierda h3 span {
    color: #000;
    font-weight: bold;
}

.derecha h3 span {
    color: #ffd700;
    font-weight: bold;
}

.btn-menu img {
    max-width: 250px;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.btn-menu img:hover {
    transform: scale(1.05);
    opacity: 1;
}

.que-hacemos {
    background-color: #faf8f9;
    color: #2b1b1c;
    padding: 60px 150px;
}

.que-hacemos .titulo {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.que-hacemos h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.que-hacemos hr {
    border: none;
    border-top: 2px solid #ccc;
    margin: 0;
}

.que-hacemos .descripcion {
    margin-top: 100px;
    width: 50%;
    max-width: 400px;
    margin-left: auto;
    text-align: justify;
}

.que-hacemos .descripcion p {
    font-size: 16px;
    line-height: 1.6;
}


.servicios-detalle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.servicios-detalle .bloque {
  flex: 1 1 25%;
  padding: 50px;
  color: white;
  box-sizing: border-box;
}

.servicios-detalle .bloque:nth-child(1) {
  background-color: #656364; /* Gris claro */
}

.servicios-detalle .bloque:nth-child(2) {
  background-color: #50504e;
}

.servicios-detalle .bloque:nth-child(3) {
  background-color: #3b3b39;
}

.servicios-detalle .bloque:nth-child(4) {
  background-color: #272725; /* Gris oscuro */
}

.servicios-detalle h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.servicios-detalle p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: justify;
}

.servicios-detalle hr {
  border: none;
  border-top: 3px solid #fff;
  width: 10%;
  margin-left: 0;
}


.numeros {
  align-items: center;
  padding: 4rem 10rem;
  background-color: #f7f3f4;
}
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.numeros__contenido {
  flex: 1 1 300px;
  max-width: 500px;
}

.numeros__contenido h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c1a1a;
  margin-bottom: 1rem;
}

.numeros__contenido p {
  font-size: 1rem;
  color: #444;
}

.numeros__cifras {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
  padding: 2rem 0;
}

.cifra h3 {
  font-size: 2rem;
  color: #d9352a;
  margin: 0;
}

.cifra p {
  font-weight: bold;
  color: #444;
  margin-top: 0.5rem;
}

.obras {
  background-color: #f7f3f4;
  padding: 3rem 1rem;
  text-align: center;
}

.obras__contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.obra {
  position: relative;
  flex: 1 1 300px;
  max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.obra img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Etiquetas flotantes */
.etiqueta {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
}

/* Posiciones específicas */
.abajo-izquierda {
  bottom: 10px;
  left: 10px;
}

.arriba-centro {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.abajo-derecha {
  bottom: 10px;
  right: 10px;
}

.obra:hover .etiqueta, .obra:hover .abajo-derecha , .obra:hover .arriba-centro, .obra:hover .abajo-izquierda{
  width: 100%;
  height: 100%;
  top: 0;
  bottom:0;
  right: 0;
  left:0;
  transform: translateX(0);
  text-align: center;
  vertical-align: middle;
  padding: 50% 0;
  font-size: 1.5rem;
  background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
}

/* Botón con imagen */
.obras__boton {
  margin-top: 2rem;
}

.obras__boton img {
  width: 220px;
  height: auto;
  transition: transform 0.3s ease;
}

.obras__boton img:hover {
  transform: scale(1.05);
}


/* Sección amarilla */
.mensaje-final {
  background-color: #ffb600; /* color amarillo */
  padding: 4rem 2rem;
  text-align: center;
  color: #2b161b;
}

.mensaje-final .container{
    display: block;
}

.mensaje-final .subtitulo {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.mensaje-final h2 {
  font-size: 2.1rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Footer */
.footer {
  background-color: #000;
  color: #fff;
  padding: 3rem 1rem;
}

.footer__contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer__logo {
  max-width: 300px;
}

.footer__logo img {
  width: 180px;
  margin-bottom: 0.5rem;
}

.footer__logo p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.redes a {
  margin-right: 12px;
  font-size: 1.4rem;
  color: #f8b731;
  transition: color 0.3s ease;
  display: inline-block;
}

.redes a:hover {
  color: #fff; /* o algún otro efecto */
}

/* Contacto */
.footer__contacto i{
    color:#d71d20;
    padding-right: 4px;
}
.footer__contacto h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer__contacto p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}
/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-text {
        font-size: 1.8rem;
        left: 30px;
        bottom: 30px;
    }

    .btn-cotizar {
        padding: 8px 15px;
    }

    .top-bar {
        flex-direction: column;
        font-size: 1.2rem;
    }


    .impacto {
        flex-direction: column;
        padding: 2rem 0rem 0rem 0rem;
    }

    .impacto__imagen-contenedor {
        min-width: 100vw;
        max-height: 300px;
    }

    .impacto__imagen {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .impacto__contenido {
        text-align: center;
        padding: 1rem 0;
    }


    .que-hacemos {
        padding: 20px 50px;
        text-align: center;
    }

    .que-hacemos .descripcion {
        max-width: 80%;
        width: 100%;
        margin-top: 50px;
        margin: auto;
    }

    .que-hacemos h2 {
        text-align: center;
    }

    .que-hacemos hr {
        margin: 0 auto;
    }

  .servicios-detalle .bloque {
    flex: 1 1 100%;
    padding: 30px 20px;
  }

  .servicios-detalle hr {
    margin-left: auto;
    margin-right: auto;
  }

  .servicios-detalle h3 {
    text-align: center;
  }

  .servicios-detalle p {
    text-align: justify;
  }


  .numeros {
    flex-direction: column;
    text-align: center;
  }

  .numeros__cifras {
    grid-template-columns: 1fr 1fr;
  }

  .footer__contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}