/* Ajustes generales */
body {
  padding-top: 70px;
  /* Evita que el navbar tape el contenido */
  background-color: #f4f4f4;
  font-family: Arial, sans-serif;
}

/* Animación de aparición para la descripción de la empresa */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sección general con imagen de fondo */
.section-background {
  background: url("../img/body_background.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

/* Agregar capa oscura para mejorar la legibilidad */
.section-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Oscurece el fondo */
  z-index: 1;
}

/* Asegurar que el contenido esté sobre la capa oscura */
.section-content {
  position: relative;
  z-index: 2;
}

/* Ajustar los títulos */
.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Ajustar la lista de servicios */
.service-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.service-list li {
  background: rgba(173, 216, 230, 0.8);
  /* Celeste claro con transparencia */
  color: #003366;
  /* Azul oscuro para mejor legibilidad */
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 18px;
  text-shadow: none;
  transition: transform 0.3s ease, background 0.3s ease;
  border-left: 5px solid #0077b6;
  /* Azul marino para un efecto de énfasis */
}

.service-list li:hover {
  background: rgba(144, 202, 249, 0.9);
  /* Un celeste más vibrante al pasar el cursor */
  transform: scale(1.05);
}

/* Navbar en celeste */
.navbar {
  background-color: #0099cc;
  /* Celeste */
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.navbar-nav .nav-link {
  font-weight: bold;
  color: #ffffff !important;
  text-transform: uppercase;
  /* Opcional: hacer las letras mayúsculas */
  transition: color 0.3s ease;
  /* Suave transición de color */
}

.navbar-nav .nav-link:hover {
  color: #ffdd57 !important;
  /* Amarillo suave al pasar el cursor */
}

.hero {
  height: 100vh;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
}

.nav-link {
  transition: color 0.3s ease-in-out;
}

.nav-link:hover {
  color: #f8b400 !important;
}

footer {
  background-color: #3d86ad;
  /* Mismo color celeste del navbar */
  color: white;
  /* Texto blanco para contraste */
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

/* Fondo con imagen debajo del navbar */
.hero {
  background: url("../img/body_background.jpg") no-repeat center center/cover;
  height: 100vh;
  /* Ocupa toda la pantalla */
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  /* Texto en blanco para mejor contraste */
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Oscurecer un poco el fondo para mejorar legibilidad */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Asegurar que el contenido esté sobre la capa oscura */
.hero-text,
.hero-logo {
  position: relative;
  z-index: 2;
}

/* Ajuste del logo y texto */
.hero-logo {
  width: 375px;
  height: auto;
  margin-bottom: 20px;
}

/* Ajustes para el texto */
.hero-text {
  font-size: 30px;
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  /* Efecto de sombra */
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.5s;
  margin: 0 auto;
  text-align: center;
}

/* Clase de animación */
.animate-text {
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

/* Estilo para el enlace de WhatsApp */
.whatsapp-link {
  text-decoration: none;
  font-size: 1rem;
  color: #25d366;
  /* Color oficial de WhatsApp */
  font-weight: bold;
}

.whatsapp-link:hover {
  color: #20b857;
  /* Un poco más oscuro al pasar el cursor */
}

.whatsapp-link i {
  margin-right: 6px;
  font-size: 1.2rem;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: none;
  /* Oculto hasta que se haga scroll */
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-icon img {
  transition: transform 0.3s ease-in-out;
}

.whatsapp-icon:hover img {
  transform: scale(1.1);
}

/* Estilo para las imágenes de los empleados */
.empleado-imagen {
  width: 230px;
  /* Tamaño de la imagen */
  height: 230px;
  /* Tamaño de la imagen */
  border-radius: 50%;
  /* Hace la imagen redonda */
  border: 5px solid #00bfff;
  /* Borde celeste claro */
  object-fit: contain;
  /* Asegura que la imagen mantenga su forma */
}

.is-valid {
  border-color: #28a745;
  /* Verde para campos válidos */
}

.is-invalid {
  border-color: #dc3545;
  /* Rojo para campos inválidos */
}
