@font-face {
  font-family: 'Iwona';
  src: url('fonts/Iwona-Regular.ttf') format('truetype');
}

body {
  font-family: 'Iwona', sans-serif;
}

/* Hero con degradado azul petróleo */
#inicio {
    background: linear-gradient(135deg, #0a4679,  #027056);
  height: 150px;               /* Cambia este valor según lo que necesites */
  display: flex;
  align-items: center;
  padding: 20px;  
}

/* Tamaño del logo */
.logo-inicio {
  max-height: 100%;      /* Que no supere el alto disponible */
  height: 150px;         /* Ajusta esta altura según el alto del hero */
  width: auto;           /* Mantiene proporción */
}
#servicios {
  background-image: url('../img/fondo.jpg'); /* Ajusta la ruta si está en otra carpeta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white; /* Asegura buen contraste del texto */
  position: relative;
  z-index: 1;
}

/* (Opcional) capa oscura para mejorar contraste */
#servicios::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Cambia la opacidad según necesites */
  z-index: 0;
}

/* (Opcional) asegura que el contenido esté sobre la capa oscura */
#servicios .container {
  position:relative;
  z-index: 1;
}
#contacto {
  background-image: url('../img/fondo.jpg'); /* Usa la misma imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  z-index: 1;
    width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.1rem;  /* o menos */
  padding-bottom: 5rem;
  form {
  position: relative;
  top: -90px; /* mueve hacia arriba */
}
}

#contacto::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Misma opacidad que en #servicios */
  z-index: 0;
}

#contacto .container {
  position: relative;
  z-index: 1;
}
#servicios,
#contacto {
  background-attachment: fixed; /* Efecto parallax simple */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background 1s ease-in-out;
}
.seccion-fondo {
  background-image: url('../img/fondo.jpg'); /* Ajusta el nombre según tu imagen */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: background 0.5s ease-in-out;
  color: white;
}
.seccion-fondo {
  background-image: url('../img/fondo.jpg'); /* Ajusta ruta si es necesario */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
  color: white;
  padding: 60px 0;
}

.seccion-fondo::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* superposición oscura */
  z-index: -1;
}

.seccion-fondo p,
.seccion-fondo h2 {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* sombra de texto para mejorar contraste */
}
.img-collage {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.img-collage:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}
#collage-imagenes img {
  width: 100%;              /* Hace que ocupe todo el ancho disponible */
  height: 210px;            /* Forza una altura uniforme */
  object-fit: cover;        /* Recorta manteniendo proporciones sin deformar */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
   transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

#collage-imagenes img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  filter: brightness(1.05) contrast(1.05);
}
.seccion-fondo .lead {
  font-size: 1.0rem;  /* Ajusta el tamaño aquí */
  line-height: 1.6;
}
fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.carousel-caption {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
  
}
.carousel-caption.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centra en ambos ejes */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 0.3) 100%);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  color: white;
  text-align: center;
  width: 90%;
  max-width: 900px;
  z-index: 2;
}

/* Asegura que los textos no se recorten */
.carousel-caption.centered p {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0;
  overflow-wrap: break-word;
}

/* Opcional: mejora en móviles */
@media (max-width: 576px) {
  .carousel-caption.centered {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    bottom: 5%;
  }

  .carousel-caption.centered h2 {
    font-size: 1.3rem;
  }

  .carousel-caption.centered p {
    font-size: 0.9rem;
  }
}

/* Tamaño del título */
.carousel-caption.centered h5 {
  font-family: 'Iwona', sans-serif;
  font-size: 2.5rem; /* Puedes probar con 2.5rem o más si deseas mayor impacto */
  font-weight: bold;
  margin-bottom: 0.8rem;
}

/* Tamaño del texto */
.carousel-caption.centered p {
  font-family: 'Iwona', sans-serif;
  font-size: 1.2rem; /* Ajusta a 1.4rem o más si lo ves pequeño */
  line-height: 1.6;
}
.carousel-item img {
  width: 100%;
  height: 550px; /* Puedes ajustar a 400px o 600px según tu diseño */
  object-fit: cover;
  object-position: center;
}
.carousel-item img {
  border-radius: 20px; /* Contorno redondeado */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Sombra suave */
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
}
/* Móviles pequeños (hasta 576px) */
@media (max-width: 768px) {
  .carousel-caption.centered {
    padding: 1rem;
    max-width: 95%;
  }

  .carousel-caption.centered h5 {
    font-size: 1.5rem;
  }

  .carousel-caption.centered p {
    font-size: 1rem;
  }

  .logo-inicio {
    height: 90px;
  }

  #inicio {
    flex-direction: column;
    justify-content: center;
    height: auto;
    text-align: center;
  }

  .whatsapp-icon {
    width: 50px;
    height: 50px;
  }

  #contacto {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }

  #collage-imagenes img {
    height: 140px;
  }

  .seccion-fondo {
    padding: 30px 0;
  }
}
.carousel-caption.centered {
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.3); /* Más opacidad */
  padding: 0.2rem 1.0rem;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  color: #ffffff;
  text-align: left;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); /* Mejora contraste sobre imagen */
}

.carousel-caption.centered h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.carousel-caption.centered p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .carousel-caption.centered {
    top: auto;
    bottom: 5%;
    transform: translateX(-50%);
    padding: 1rem;
    font-size: 0.9rem;
    text-align: left;
  }
  .carousel-caption.centered h2 {
    font-size: 1.4rem;
  }

  .carousel-caption.centered p {
    font-size: 0.9rem;
  }
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-size: 100% 100%;
  filter: drop-shadow(2px 2px 3px black);
}

.custom-carousel-control {
  background-color: rgba(0, 0, 0, 0.3);  /* Fondo oscuro translúcido */
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.custom-carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.6);  /* Más oscuro al pasar el mouse */
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

footer {
  margin-top: auto;
}
.carousel-indicators {
  bottom: 20px;
  z-index: 10;
}

.carousel-indicators [data-bs-target] {
  background-color: #fff; /* blanco visible */
  width: 15px;
  height: 15px;
  border-radius: 50%;
  opacity: 0.6;
}

.carousel-indicators .active {
  opacity: 1;
}
@media (max-width: 768px) {
  .carousel-indicators {
    bottom: -20px; /* Mueve los círculos más abajo del carrusel */
  }

  .carousel-caption {
    padding-bottom: 60px; /* Deja espacio para los puntos */
  }
}

.g-recaptcha {
  background-color: rgba(255, 255, 255, 0.9);  /* semi-transparente */
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: inline-block;
  position: relative;
  z-index: 10;
}