* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #eaeaea;
    color: #fff;
}
.textos h2 {
  font-size: 32px;
  font-weight: 300;
}


/* HEADER */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  z-index: 10;
  transition: background .3s, color .3s;
}
.nav1 {
  background: rgba(255,255,255,0.9);
  color: #222;
}
.nav2 {
  background: #fff;
  color: #000;
}
.contenedor-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 80px;
  gap: 1rem;
}
.logo img {
  height: 60px;
  display: block;
}
.enlaces ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.enlaces a {
  text-decoration: none;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  color: inherit;
  transition: color .2s;
}
.enlaces a:hover {
  color: var(--color1);
}
.enlaces a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--color1);
  transition: width .25s;
}
.enlaces a:hover::after,
.enlaces a.active::after {
  width: 100%;
}
.iconos button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* SLIDER GENERAL */

 .container_proyectos {
  position: relative;
  width: 250px;
  max-width: 800px;
  height: 250px; /* más baja */
  margin: 40px auto;
  overflow: hidden;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.item {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000cb; /* marco negro */
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.item.active {
  opacity: 1;
  z-index: 2;
}

/* La imagen se centra dentro del marco negro */
.item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* imagen completa */
  border-radius: 10px;
}

/* Ajuste del recuadro de texto */
.item .contenido {
  position: absolute;
  bottom: 20px;  /* margen inferior */
  left: 20px;    /* margen izquierdo */
  background: rgba(0,0,0,0.6);
  padding: 12px 15px;
  border-radius: 8px;
  color: #fff;
  max-width: 280px;
  text-align: left;
}

.item .contenido .name {
  font-size: 20px;
  font-weight: bold;
}

.item .contenido .des {
  margin-top: 8px;
  font-size: 14px;
}
.buttom {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.buttom button {
  margin: 0 5px;
  padding: 10px 15px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #000;
  cursor: pointer;
}

/* Texto sobre la imagen */
.item .contenido {
  background: rgba(0,0,0,0.6);
  padding: 15px;
  margin: 20px;
  border-radius: 8px;
  max-width: 300px;
}

.name {
  font-size: 24px;
  font-weight: bold;
}
.des {
  margin-top: 10px;
  font-size: 16px;
}

/* Botones flechas */
.buttom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.buttom button {
  margin: 0 10px;
  padding: 10px 15px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s, color 0.3s;
}

.buttom button:hover {
  background: #6e4f32;
  color: #fff;
}

@media(max-width:768px) {
  .container_proyectos {
    height: 300px;
  }
  .item .contenido {
    max-width: 220px;
    font-size: 0.9rem;
  }
}
/* FOOTER */
footer {
  position: relative;
  padding: 3rem 0 2rem;
  color: #fff;
}
.footer-bg {
  position: relative;
  background: url('img/arquitectura1.jpg') center/cover no-repeat;
  overflow: hidden;
}
.footer-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 35, 0.6);
  backdrop-filter: blur(8px);
  z-index: 0;
}
.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.branding {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
}
.logo-footer {
  width: 60px;
  flex: 0 0 auto;
}
.logo-footer img {
  width: 100%;
  display: block;
}
.titulo-footer {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-text {
  font-size: .9rem;
  opacity: .9;
  margin: .5rem 0 0;
}
.red-social {
  margin-top: .5rem;
}
.red-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  padding: 6px;
  text-decoration: none;
  transition: transform .2s;
}
.red-social a img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.2);
}
.red-social a:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1000px) {
  .textos h1 {
    font-size: 56px;
  }
  .textos h2 {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  .contenedor-nav {
    flex-wrap: wrap;
  }
 
  .enlaces ul {
    gap: .5rem;
    flex-wrap: wrap;
  }
 }
.proyecto {
  margin: 100px auto;
  max-width: 1000px;
  text-align: center;
}

.proyecto h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}


@media(max-width:768px) {
  .container_proyectos {
    height: 300px;
  }
  .item .contenido {
    max-width: 220px;
    font-size: 0.9rem;
  }
}

.container_proyectos {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px; /* más baja */
  margin: 40px auto;
  overflow: hidden;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.item {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000cb; /* marco negro */
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.item.active {
  opacity: 1;
  z-index: 2;
}

.item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* imagen completa */
}

@media(max-width:768px) {
  .container_proyectos {
    height: 300px;
  }
}

@media (max-width: 700px) {
  .enlaces {
    position: fixed;
    top: 80px;
    left: 0;
    background: #6e4f32;
    width: 0;
    height: 100%;
    overflow: hidden;
    transition: width .3s ease;
    z-index: 20;
    display: flex;
    flex-direction: column;
  }
  .enlaces ul {
    flex-direction: column;
    width: 100%;
  }
  .enlaces a {
    display: block;
    width: 100%;  
    padding: 18px;
    background: transparent !important;
    color: #fff;
    
  }
  .iconos {
    display: block;
  }
  .textos {
    padding-top: 160px;
  }
  .textos h1 {
    font-size: 48px;
  }
  .textos h2 {
    font-size: 24px;
  }
}


/* -------------------- SECCIÓN EMPRESAS CONFÍAN -------------------- */
.empresas-confianza {
  max-width: 1000px;
  margin: 120px auto 60px auto;
  padding: 30px;
  background: #f4f1ec; /* color tierra claro */
  border: 2px solid #6e4f32; /* borde tierra */
  border-radius: 10px;
  text-align: center;
}

.titulo-empresas {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.titulo-empresas::after {
  content: "";
  display: block;
  width: 80%;
  height: 3px;
  background: #6e4f32;
  margin: 8px auto 0 auto;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.logos-empresas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.logos-empresas img {
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logos-empresas img:hover {
  transform: scale(1.1);
}