/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
}

main, .section {
  flex: 1;
}

.body {
  font-family: Arial, sans-serif;
  text-align: justify;
  padding-bottom: 100px;
  line-height: 1.6;
  color: #333;
  font-size: 1rem;
  padding: 2rem;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #011b36;
  color: #ececec;
  padding: 1rem 0;
}

header h1 {
  text-align: center;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav ul li a,
nav a {
  text-decoration: none;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav a:hover {
  background-color: #ff7b00;
  color: #ffffff;
}

.section {
  padding: 4rem 0;
  background-color: #f4f4f4;
  min-height: 300px;
}

/* Botones flotantes */
.whatsapp, .instagram-float, .go-footer {
  position: fixed;
  right: 20px;
  padding: 10px 15px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
}
.whatsapp {
  bottom: 130px;
  background: #25d366;
  color: white;
}
.instagram-float {
  bottom: 80px;
  background: #e00707;
  color: white;
}
.instagram-float i {
  margin-top: 16px;
}
.go-footer {
  bottom: 30px;
  background-color: #202c3f;
  color: white;
  border-radius: 30px;
  transition: background-color 0.3s;
}
.go-footer:hover {
  background-color: #2c3e50;
}
.go-footer a {
  color: white;
  text-decoration: none;
}

/* Banner */
.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
}

h1 {
  text-align: center;
  color: #333;
}

/* Galería general */
.gallery-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 40px auto;
  justify-content: center;
}

.card,
.card-construccion {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover,
.card-construccion:hover {
  transform: scale(1.02);
}

.card img,
.card-construccion img {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}
.card img {
  height: 200px;
}
.card-construccion img {
  height: 220px;
}

.card-body,
.card-body-construccion {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  text-align: center;
}

/* Filtros */
.filtros {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 30px;
}

.btn-filtro {
  background-color: #005b96;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  width: 150px;
  text-align: center;
  flex-shrink: 0;
}

.btn-filtro:hover {
  background-color: #ddd;
}

.btn-filtro.activo {
  background-color: #333;
  color: white;
  font-weight: bold;
}

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
#lightbox.hidden {
  display: none;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
}
.hidden {
  display: none;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  height: 50px;
  margin-right: 40px;
}

.site-header h1 {
  font-size: 1.8rem;
  color: #ffffff;
}

/* Títulos */
.titulo-categoria,
.titulo-construccion {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 24px;
  color: #005a87;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

/* Proceso construcción */
.procesos-construccion .proceso-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}

.proceso-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.proceso-texto {
  flex: 1;
  min-width: 250px;
}
.proceso-texto h3 {
  color: #ebf1f3;
  margin-bottom: 10px;
}
.proceso-texto p {
  color: #444;
  line-height: 1.6;
}

/* Footer */
.main-footer h3,
.footer-section h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #fff;
}

.main-footer p,
.footer-section p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #ccc;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  color: #ccc;
  font-size: 0.9rem;
}

footer a {
  color: white;
  text-decoration: none;
}
footer a:hover {
  color: #ccc;
}

/* Servicios */
.servicios-contenedor {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  background-color: #f8f8f8;
}
.servicios-bloque {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}
.servicios-bloque img {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
}
.servicios-texto {
  flex: 1;
  padding: 20px;
}
.servicios-texto h2 {
  color: #c0392b;
  margin-top: 0;
}

.imagen-decorativa {
  margin: 40px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-section {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .servicios-bloque {
    flex-direction: column;
  }

  .logo {
    height: 40px;
    margin-right: 0;
  }

  .procesos-construccion .proceso-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .proceso-item img {
    max-width: 100%;
  }
}












