/*** Body básico y transiciones para secciones ***/
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
}

/*** Carousel multimedia ***/
.carousel-item video,
.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100vh; /* Pantalla completa */
}

@media (max-width: 768px) {
  .carousel-item video,
  .carousel-item img {
    height: 60vh; /* Menor altura en móviles */
  }
}

/*** Texto fijo sobre el carousel con logo ***/
.carousel-text {
  position: absolute;
  bottom: 30%;
  left: 10%;
  color: #fff;
  z-index: 10;
}

.carousel-text .d-flex {
  align-items: center;
}

.carousel-logo {
  max-height: 80px;
  width: auto;
  margin-right: 1rem;
}

.carousel-text-block {
  display: flex;
  flex-direction: column;
}

.carousel-text-line1,
.carousel-text-line2 {
  font-size: 4vw;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin: 0;
  line-height: 1.1;
}

/*** 🔧 Ajuste del "escalonado" entre línea 1 y 2 ***/
.carousel-text-line2 {
  margin-left: 3.5rem; /* <-- AJUSTÁ ESTE VALOR para modificar el desplazamiento de "Aduaneros" */
}

@media (max-width: 768px) {
  .carousel-text-line1,
  .carousel-text-line2 {
    font-size: 6vw;
  }

  .carousel-logo {
    max-height: 50px;
  }

  .carousel-text-line2 {
    margin-left: 1rem; /* desplazamiento más chico en móviles */
  }
}

/*** Scroll reveal para secciones ***/
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*** Mapa responsivo ***/
.map-responsive {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
}

.map-responsive iframe {
  border: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/*** Botón volver arriba ***/
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 999;
}

body.scrolled .back-to-top {
  display: inline-block;
}

/* === Footer === */
.footer-custom {
  font-size: 0.95rem;
  background-color: #f8f9fa;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
}

.footer-custom a {
  color: #0d6efd;
}

.footer-custom a:hover {
  color: #084298;
  text-decoration: underline;
}

.footer-custom i {
  color: #0d6efd;
}
