/* Reset general */
@font-face {
  font-family: 'MontserratExtraBold';
  src: url('../Fonts/Montserrat-ExtraBold.otf') format('truetype');
  font-weight: 800;
  font-style: normal;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* para evitar scroll horizontal */
}
/* Body específico para Galería */
body {
  font-family: 'Arial', sans-serif;
  color: #000;
  background-color: #fff; /* fondo blanco para Galería */
  background-image: none;  /* elimina cualquier imagen heredada */
  line-height: 1.5;
}

/* ================= HEADER / NAVBAR ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header .logo img {
  height: 100px;   /* igual que en nosotros y servicios */
  width: auto;
  display: block;
  filter: none;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;          
  justify-content: center;  
  gap: 30px;                
  padding: 0;
}

header nav a {
  font-family: 'Century Gothic', Arial, sans-serif;
   font-weight: bold; 
  color: #282e62;
  text-decoration: none;
  font-size: 22px;
  transition: 0.3s;
}

header nav a:hover {
  opacity: 0.7;
}

header nav a.activo {
   color: #6091cc;  
  border-bottom: 3px solid #6091cc;
  padding-bottom: 5px;
  background-color: transparent;
  border-radius: 0;
}

header nav a.contacto {
  color: #fff;
  background-color: #3054a0;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

header nav a.contacto:hover {
  background-color: #001a4d;
}

/* ================= HERO GALERÍA ================= */
.hero-galeria {
  position: relative;
  height: 50vh;          
  min-height: 220px;     
  background: url('../images/galerialanding.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
  padding: 0;
  color: #fff;
}

.hero-contenido-galeria {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding-left: 20%;  /* igual que hero-servicios */
  text-align: left;
  /* quitamos el overlay azul */
  
}

.hero-contenido-galeria h1 {
   font-size: 3.5em;
  margin-bottom: 10px;
  color: white;
  
  position: relative;
  display: inline-block;
  z-index: 1;
}
.titulo-galeria .croquis {
  position: absolute;
  top: 12px; /* desplaza hacia abajo el croquis */
  left: 0;
  width: 100%;
  color: transparent;
  -webkit-text-stroke: 0.4px #fff;   /* contorno blanco */
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  text-align: center;
  z-index: -1;
}

.hero-contenido-galeria h1::after {
  content: "";
  display: block;
  width: 100px;       /* igual que en hero-servicios */
  height: 5px;
  background: #fff;
  margin-top: 8px;
  border-radius: 2px;
}

.hero-contenido-galeria h1::before {
  content: "";
  position: absolute;
  top: 20px;          /* igual que hero-servicios */
  height: 150px;
  left: -50px;
  width: 5px;
  background: #fff;
  border-radius: 3px;
  opacity: 0.9;
  z-index: 0;
}

.hero-contenido-galeria p {
  font-size: 1.1em;
  padding-left: 1%;
  line-height: 1.4;
  max-width: 380px;
  word-wrap: break-word;
}


/* ================= SECCIÓN GALERÍA ================= */
/* ================= SECCIÓN GALERÍA ================= */ 
/* ================= SECCIÓN GALERÍA ================= */
/* ================= SECCIÓN GALERÍA ================= */
.seccion-galeria {
  width: 100vw;          
  height: auto;          
  padding: 20px 0;       
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: #fff;
}

/* ================= GALERÍA GRID ================= */
/* Revisa y ajusta esta sección en tu CSS */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas */
  grid-template-rows: repeat(5, 1fr);    /* 5 filas iguales */
  gap: 10px;
  width: 100%;
  height: 200vh; 
  margin: 20px auto;               
  padding-left: 80px;              
  padding-right: 80px;             
  box-sizing: border-box;    }
/* ================= BLOQUES INDIVIDUALES ================= */
.box {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;       /* corta cualquier exceso de imagen */
  border: none;
  outline: none;
  position: relative;
}

/* ================= IMÁGENES DENTRO DE CADA BOX ================= */
.box img {
  width: 100%;
  height: 100%;    /* llena la caja manteniendo proporción */
  display: block;
   object-fit: cover;  
  object-position: top; /* ⬅️ Prioriza la parte superior de la imagen */}

/* ================= ASIGNACIÓN DE POSICIÓN DE CADA BOX ================= */
.img1 { grid-column: 1 / 2; grid-row: 1 / 4; }
.img2 { grid-column: 2 / 4; grid-row: 1 / 2; }
.img3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.img4 { grid-column: 2 / 4; grid-row: 2 / 3; }
.img5 { grid-column: 1 / 2; grid-row: 4 / 5; }
.img6 { grid-column: 2 / 3; grid-row: 3 / 5; }
.img7 { grid-column: 3 / 4; grid-row: 3 / 6; }
.img8 { grid-column: 4 / 5; grid-row: 2 / 4; }
.img9 { grid-column: 1 / 3; grid-row: 5 / 6; }
.img10 { grid-column: 4 / 5; grid-row: 4 / 6; } /* imagen más alta */
.img11 { grid-column: 1 / 2; grid-row: 6 / 7; }
.img12 { grid-column: 2 / 3; grid-row: 6 / 7; }
.img13 { grid-column: 3 / 5; grid-row: 6 / 7; }
/* ================= RESPONSIVE MÓVIL (≤768px) ================= */

.galeria-grid .box:nth-child(10) {
  grid-row: span 2; /* ocupa 2 filas en vez de 1 */
}
.galeria-grid .box, 
.galeria-grid .box img {
  border: none;       /* elimina cualquier borde */
  outline: none;      /* por si hubiera outline */
}
/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;                /* oculto por defecto */
  position: fixed;
  z-index: 9999;                /* siempre al frente */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);  /* fondo oscuro */
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.lightbox .cerrar {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .cerrar:hover {
  color: #ff0000;
}
.whatsapp-icon {
  display: none; /* oculto por defecto */
}
.galeria-texto-intro {
  font-family: "Century Gothic", Arial, sans-serif;
  font-weight: normal; /* Regular */
  font-size: 1.1em;    /* opcional, ajusta tamaño */
  text-align: center;  /* opcional, si lo quieres centrado */
  max-width: 900px;    /* opcional, para no hacerlo demasiado largo */
  margin: 20px auto;   /* centra el párrafo */
  line-height: 1.6;    /* más legible */
}
.galeria-texto-intro::after {
  content: "";
  display: block;
  width: 120px;             /* largo de la línea */
  height: 4px;              /* grosor de la línea */
  background-color: #3054a0; /* azul */
  margin: 10px auto 0;      /* separación y centrado */
  border-radius: 2px;       /* bordes redondeados */
}
/* ================= RESPONSIVE GALERÍA ================= */
@media (max-width: 768px) {
  /* Header / Navbar móvil */
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  header .logo img {
    height: 80px;
  }

  header nav ul {
    gap: 15px;
  }

  header nav a {
    font-size: 16px;
  }

  header nav a.contacto {
    font-size: 14px;
    padding: 6px 12px;
  }

  /* Hero Galería móvil */
  .hero-galeria {
    height: 30vh;
    min-height: 180px;
  }

  .hero-galeria .hero-contenido-galeria {
    padding-left: 5%;
    justify-content: center;
    align-items: flex-start;
  }

  .hero-galeria .hero-contenido-galeria h1 {
    font-size: 2em;  
     margin-left: 50px; 
     margin-top: 50px;     
  }

  .hero-galeria .hero-contenido-galeria h1::before {
    height: 100px;
    left: -37px;
    top: 20px;
  }

  .hero-galeria .hero-contenido-galeria h1::after {
    width: 60px; 
    margin-top: 8px;
  }

  .hero-galeria .hero-contenido-galeria p {
    font-size: 0.95em;
    max-width: 280px;
    margin-top: -1px;  /* 👈 súbelo (ajusta el número según necesites) */
    margin-left: 60px; 
  }

  /* Galería grid móvil: una columna */
    /* 🔹 Galería grid móvil */
  .galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px;
    height: auto; /* evita estirarse */
  }

  /* 🔹 Resetear posiciones de desktop */
  .galeria-grid .box {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1 / 1; /* todas cuadradas */
    overflow: hidden;
  }

  .galeria-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
  }


  /* Icono de WhatsApp móvil */
  .whatsapp-icon {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }

  .whatsapp-icon img {
    width: 60px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
}
