.hero {
  position: relative;
  background: url("../img/montallantas-hero.jpg") center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin: 50px auto 20px;
}
.main-contentmon {
 margin: 5px auto 5px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-inner h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-inner p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

.btn-cta {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ff6600;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-cta:hover {
  background-color: #e65500;
}

/* --- Buscador --- */
.buscador-seccion {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}

.buscador-seccion input {
  width: 90%;
  max-width: 600px;
  padding: 12px 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}

.buscador-seccion input:focus {
  border-color: #ff6600;
  box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
  outline: none;
}

/* --- Services Grid --- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto 10px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  margin: 0 auto 10px;
  padding: 30px 20px;
  width: 270px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.service-card i {
  font-size: 2.2rem;
  color: #ff6600;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.price {
  font-weight: bold;
  color: #ff6600;
  font-size: 1rem;
}

/* --- Gallery Section --- */
/* --- Gallery Section (versión compacta) --- */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px;
  background: #0a0f1c; /* tono oscuro acorde al resto del sitio */
  color: #fff;
  border-radius: 12px;
}

/* Imagen principal */
.gallery-preview {
  position: relative;
  max-width: 600px; /* reducido de 800px */
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-preview img {
  width: 100%;
  height: 320px; /* más pequeño, mantiene buena proporción */
  object-fit: cover;
  display: block;
}

/* Texto sobre la imagen */
.preview-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.preview-caption strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #4fc3f7; /* azul suave para resaltar título */
}

.preview-caption span {
  font-size: 0.85rem;
  color: #ccc;
}

/* Miniaturas */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumb img {
  width: 100px; /* más pequeñas */
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  transition: 0.3s;
  border: 2px solid transparent;
}

.thumb:hover img {
  transform: scale(1.05);
  border-color: #2563eb; /* azul oscuro del sitio */
}

/* Versión responsive */
@media (max-width: 600px) {
  .gallery-preview img {
    height: 220px;
  }

  .thumb img {
    width: 80px;
    height: 55px;
  }
}


/* --- Final Call To Action --- */
.final-cta {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.final-cta p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
}

.final-cta .btn-cta {
  background-color: #ff6600;
  padding: 14px 30px;
  border-radius: 6px;
  transition: 0.3s;
}

.final-cta .btn-cta:hover {
  background-color: #e65500;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .hero {
    height: 45vh;

  }

  .hero-inner h1 {
    font-size: 1.9rem;
  }

  .services-grid {
    gap: 20px;
  }

  .service-card {
    width: 90%;
  }

  .gallery-thumbs img {
    width: 100px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero-inner h1 {
    font-size: 1.5rem;
  }

  .btn-cta {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .preview-caption strong {
    font-size: 1rem;
  }
}
