/* ------------------- BASE / GENERALES ------------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.grande {
  font-size: 18px ; /* tamaño más grande que el predeterminado */
}

.mediano {
  font-size: 16px;
}

.text-justify {
  text-align: justify;
}

/* ------------------- NAVBAR ------------------- */
.navbar {
  background-color: transparent !important; /* transparente al inicio */
  opacity: 0;
  transform: translateY(-50px);
  animation: showNavbar 1s ease forwards;
  animation-delay: 0.5s;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  padding: 0.7rem 1rem;
}

/* Estado al hacer scroll */
.navbar.scrolled {
  background-color: #f7f8fa !important; /* color sólido */
  
}

/* Estilos de enlaces */
.navbar-brand, .nav-link {
  color: #ffffff !important; /* blanco cuando está transparente */
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Cambiar a negro cuando la navbar es sólida */
.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand {
  color: #000000 !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Hover */
.nav-link:hover {
  color: rgb(20, 255, 27) !important;
}

/* Subrayado animado */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: rgb(13, 118, 16);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Animación de entrada */
@keyframes showNavbar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------- BANNER ------------------- */
.banner-video {
  position: relative;
  height: 100dvh; /* altura completa de la pantalla */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner-video .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.banner-video .container {
  position: relative;
  z-index: 2;
}

/* Animaciones */
.banner-video h1 {
  font-size: 3rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1.5s ease forwards;
  animation-delay: 0.5s; /* aparece medio segundo después */
}

/* Subtítulo */
.banner-video .lead {
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1.5s ease forwards;
  animation-delay: 1.2s; /* aparece después del h1 */
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .banner-video h1 {
    font-size: 2rem;
  }
  .banner-video .lead {
    font-size: 1.1rem;
  }
}


/* ------------------- TARJETAS ------------------- */

.card {
  border: none;
  border-radius: 0.75rem;
  border-left: 5px solid rgb(189, 189, 189);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 80, 158, 0.2);
  border-left: 5px solid rgb(13, 118, 16);
}

.card-hover {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Contenedor para "solicitar cotización" fondo verde difuminado */
.card-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 120, 10, 0.902);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 0.75rem;
  border-left: none;
}

.card-hover:hover::after {
  opacity: 1;
}

.card-hover .btn-cotizar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0);
  transition: opacity 0.3s ease-in;
  border: none;
  color: rgb(255, 255, 255);
  padding: 10px 20px;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 1.2rem;
}

.card-hover:hover .btn-cotizar {
  display: block;
}


/* ------------------- FOOTER ------------------- */

footer {
  position: relative;
  width: 100%;
  color: white;
  background-color: #000000;
}

.footer-custom {
  color: #ecf0f1;
}

.footer-custom {
  margin-bottom: 0;
}

.footer-custom a {
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-custom a:hover {
  color: #21db0c; /* dorado claro */
  transform: scale(1.2);
}

.footer-custom i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-custom i:hover {
  color: #28ff2c; /* mismo color que al pasar el mouse */
  transform: rotate(5deg) scale(1.2);
}

.footer-visible {
  opacity: 1;
  transform: translateY(0);
}

.social-icons {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .social-icons {
    justify-content:left
  }
}

/* Ajuste de imágenes del carrusel */
.carousel-img {
  height: 450px; /* altura fija del carrusel */
  object-fit: cover; /* recorta la imagen en vez de deformarla */
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 1);
  z-index: 0;
}

