/* -------------------- RESET -------------------- */
:root {
  --color1: #4c4a42; /* gris oscuro */
  --gris-claro: #e5e5e5;
  --fondo: #f2f2f2;
  --titulos: 33px;
  --subtitulos: 18px;
  --margenes: 60px;
  --espacios: 10px;
  --espacios-contenido: 45px;
  --texto-secundario: #86877b;
  --gradient-start: #6e4f32af;
  --gradient-mid: #a58967a9;
  --gradient-end: #cdc8bc79;
  --radius: 8px;
  --transition: .25s ease;
  --max-width: 1000px;
  --breakpoint-md: 900px;
  --breakpoint-sm: 700px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background: var(--fondo);
  color: #222;
  line-height: 1.4;
}


/* -------------------- NAV -------------------- */
/* 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;
}

/* -------------------- FORMULARIO -------------------- */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px; /* deja espacio al nav */
}

form {
  background: #fff;
  padding: 40px 50px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 500px;
}

form h2 {
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  color: #444;
  font-weight: 600;
  font-size: 14px;
}

input, textarea {
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 14px;
  transition: border 0.3s;
}

input:focus,
textarea:focus {
  border: 1px solid #a58967;
}

textarea {
  resize: none;
}

/* Botón */
.btn {
  background: #6e4f32;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #cdc8bc;
}

/* -------------------- 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;
  }
}

