/* 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 {
  max-width: 100%;
  overflow-x: hidden;  /* evita scroll horizontal */
}

body {
  background: #fff;
  color: #000;
  font-family: 'Arial', sans-serif;
  line-height: 1.5;
}

/* ================= HEADER Y 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;   
  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;
}

/* ================= HERO ================= */
.hero-servicios {
  position: relative;
  height: 50vh;          
  min-height: 220px;     
  background: url('../images/servicioslanding.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
  padding: 0;
  color: #fff;
}

.hero-contenido {
  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%;
  text-align: left;
}

.hero-contenido h1 {
  font-size: 3.5em;
  margin-bottom: 10px;
  color: white;
  
  position: relative;
  display: inline-block;
  z-index: 1;
}
.titulo-servicios .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 h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  background: #fff;
  margin-top: 8px;
  border-radius: 2px;
}
.hero-contenido h1::before {
  content: "";
  position: absolute;
  top: 20px;
  height: 150px;
  left: -50px;
  width: 5px;
  background: #fff;
  border-radius: 3px;
  opacity: 0.9;
  z-index: 0;
}

.hero-contenido p {
  font-size: 1.1em;
  padding-left: 1%;
  line-height: 1.4;
  max-width: 380px;
  word-wrap: break-word;
}


/* ================= SECCIÓN SERVICIOS ================= */
/* ================= SECCIÓN SERVICIOS: 3 arriba / 2 abajo ================= */
.seccion-servicios {
  width: 100%;
  padding: 40px 20px;
  background-color: #fff;
  box-sizing: border-box;
}

.servicios-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;               /* espacio entre fila 1 y fila 2 */
  align-items: center;
}
/* Solo la segunda imagen de la fila de 3 */
.fila-3 .servicio-item:nth-child(2) img {
  margin-top: -27px; /* súbela un poco, ajusta el valor a gusto */
}
.fila-2 .servicio-item:nth-child(1) img {
  transform: translateY(-5px); /* mueve hacia arriba */
}
/* Bajar la imagen 5 (fila de 2, segunda columna) */
/* Bajar la imagen 5 (fila de 2, segunda columna) */
.fila-2 .servicio-item:nth-child(2) img {
  transform: translateY(60px); /* mueve hacia abajo */
}
.fila {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: stretch;
  box-sizing: border-box;
}

/* ===== primera fila: 3 columnas ===== */
.fila-3 {
  justify-content: space-between; /* reparte las 3 imágenes a lo largo */
}
.fila-3 .servicio-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 columnas con gap de 20px */
  max-width: calc((100% - 40px) / 3);
}

/* ===== segunda fila: 2 columnas centradas ===== */
.fila-2 {
  justify-content: center; /* centra las 2 imágenes */
}
.fila-2 .servicio-item {
  flex: 0 0 35%;   /* en vez de 50%, cada una ocupa 35% */
  max-width: 35%;
}
.fila-2 .servicio-item:nth-child(1) img {
  width: 90%;   /* reduce tamaño, prueba 80% o 60% */

  display: block;
}

/* estilo de las tarjetas/imágenes */
.servicio-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.imagen-recortada {
  height: 550px;   /* controla cuánto se corta la foto */
  overflow: hidden;    /* recorta lo que se pase */
  width: 100%;
}

.imagen-recortada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; 
  display: block;
}

.ver-mas {
  margin-top: 10px;
  font-weight: bold;
  text-decoration: none;
  color: #282e62;
  font-size: 16px;
}
.ver-mas:hover {
  text-decoration: underline;
}
.lightbox {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  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);
  animation: zoomIn 0.3s ease;
}
.whatsapp-icon {
  
  display: none;
}
.hint-text {
  display: none;
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 5px;
}
/* Animación suave */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
.hint-text {
    display: block;
  }

  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-servicios {
    height: 30vh;     
    min-height: 180px;
  }

  .hero-contenido h1 {
    font-size: 2em;
  }

  .hero-contenido h1::before {
    height: 100px;
    left: -15px;
  }

  .hero-contenido p {
    font-size: 0.95em;
    padding-left: 5%;
    max-width: 280px;
  }

  /* servicios en responsive: 1 por fila */
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicios-grid .fila-dos {
    grid-template-columns: 1fr;
  }
   .fila-2 .servicio-item:last-child img {
    position: relative;
    top: -50px; /* súbela 20px, ajusta este valor a tu gusto */
  }
  /* Bajar imagen 2 */
  .fila-3 .servicio-item:nth-child(2) img {
    position: relative;
    top: 20px; /* bájala 20px, ajusta el valor según necesites */
  }
  .whatsapp-icon {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
  }

  .whatsapp-icon img {
    width: 60px;   /* tamaño ajustable */
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  .texto-hero {
    padding-top: 65px; /* menos que en escritorio, ajusta a gusto */
  }
.texto-hero h1::before {
    top: 20px;    /* baja la barra */
    left: -40px;  /* opcional, la mueve horizontal */
    height: 100px; /* también puedes ajustar la altura */
  }
  .texto-hero h1::after {
    bottom: -30px; /* línea más atrás/arriba */
    width: 60px;   /* si quieres hacerla más corta en móvil */
  }


}