html {
    scroll-behavior: smooth;
}
body {
    padding-top: 130px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Barra superior azul */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: #003366;
    color: white;
    transition: top 0.3s ease;
    height: 50px;
}
.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}
.top-bar .social-icons a {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 8px;
    border-radius: 50%;
    margin-left: 5px;
}

/* Menú principal */
.navbar {
    position: fixed;
    top: 50px;
    width: 100%;
    z-index: 1000;
    background-color: white;
    transition: top 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover {
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.btn-quote {
    background-color: #007bff;
    color: white;
    font-weight: 700;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s ease;
    font-size: 16px;
}
.btn-quote:hover {
    background-color: #007bff;
    transform: translateY(-2px);
    color: white;
}

/* Logo */
.logo-box {
    background-color: #007bff;
    color: white;
    padding: 15px 40px;
    transform: skew(-10deg);
    border-radius: 5px;
    margin-right: 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.logo-box span {
    display: inline-block;
    transform: skew(10deg);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: 1px;
}

/* Slider */
.carousel-caption {
    position: absolute;
	bottom: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 90%;
    text-align: center;
    color: white;
    z-index: 10;
    padding: 0 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    pointer-events: none; /* evita clics sobre el texto si hay botones detrás */
}

.carousel-caption h5 {
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
}

.carousel-caption p {
    font-weight: 700;
    font-size: clamp(1.2rem, 3.5vw, 2rem);
}

/* Cards con íconos */
.icon-circle {
    width: 70px;
    height: 70px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: background-color 0.3s, color 0.3s;
    z-index: 10;
}
.icon-circle:hover {
    background-color: #0dcaf0;
    color: #fff;
}

/* Botón de retorno */
#btnSubir {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: none;
    background: white;
    border: 2px solid #007bff;
    color: #007bff;
}
#btnSubir:hover {
    background: #007bff;
    color: white;
}
  
@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }

  .navbar {
    top: 0 !important;
  }

  body {
    padding-top: 80px !important; /* solo espacio para navbar */
  }
}

/* ===== Carrusel de logos ===== */
.logo-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #f9f9f9;       /* opcional */
  padding: 20px 0;            /* aire arriba/abajo */
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 60px;                  /* separación entre logos */
  /* Ancho grande para permitir el scroll continuo */
  width: max-content;
  animation: logosScroll 35s linear infinite;
}

.logo-carousel img {
  width: 180px;               /* ajusta según tus logos */
  height: auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
  will-change: transform;
}

.logo-carousel img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
}

/* Pausar animación al pasar el mouse (opcional) */
.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

/* Animación izquierda a derecha (o derecha a izquierda si prefieres) */
@keyframes logosScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* -50% si duplicas logos */
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .logo-track { gap: 40px; }
  .logo-carousel img { width: 150px; }
}

@media (max-width: 575.98px) {
  .logo-track { gap: 28px; }
  .logo-carousel img { width: 120px; }
}

/* Accesibilidad: respetar "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    transform: none;
  }
}


/* Botón principal flotante */
.whatsapp-btn {
  position: fixed;
  bottom: 90px; /* Subido para dejar espacio al botón subir */
  right: 20px;
  z-index: 9999;
}

.whatsapp-main {
  background-color: #25d366;
  color: white;
  font-size: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-main:hover {
  transform: scale(1.1);
}

/* Opciones */
.whatsapp-options {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 70px;
  right: 0;
  gap: 8px;
}

.whatsapp-option {
  background-color: white;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.whatsapp-option:hover {
  background-color: #f0f0f0;
}

/* Colores específicos */
.whatsapp-option.informes { border-left: 4px solid #007bff; }
.whatsapp-option.soporte { border-left: 4px solid #ff5722; }
