/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 120px;
}

/* para que el desplazamiento sea elegante: */
html {
  scroll-behavior: smooth;
}

/* FRANJA NEGRA SUPERIOR */
.top-bar h5 {
  color: #fff;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

/* FRANJA NEGRA SUPERIOR FIJA */
.top-bar {
  height: 100px;
  background-color: #000;
  position: fixed; /* ← la deja fija */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* ← queda encima de todo */
  display: flex;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.top-bar a img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar a img:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* navbar */
.navbar {
  padding: 12px 0;
}

.navbar-nav .nav-link {
  font-size: 20px;
  padding: 10px 15px;
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }
}

/* Color al pasar el mouse */

.navbar-nav .nav-link:hover {
  color: #f8c146;
}

/* Carrusel */

.carousel-item img {
  height: 70vh;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
  border-radius: 6px;
}

.carousel-caption h2,
.carousel-caption p {
  color: #fff;
}

/* AJUSTES SOLO PARA CELULAR */
@media (max-width: 768px) {
  .carousel-item img {
    height: 45vh;
    object-fit: cover;
  }

  .carousel-caption {
    bottom: 10%;
    padding: 10px;
  }

  .carousel-caption h2 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .carousel-caption p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
}

/* SERVICIOS */

#servicios .card {
  transition: transform 0.3s ease;
}

/* #servicios .card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
} */
/* CONTACTO */

#contacto h2 {
  color: #000;
}

#contacto .form-label {
  font-weight: 500;
}

#contacto .btn-success {
  font-weight: 600;
}

.footer {
  background-color: #212529;
}

.footer-logo {
  max-width: 180px;
}

.footer p {
  color: #ccc;
  line-height: 1.6;
}

/* Íconos sociales */
.footer-social a {
  color: #fff;
  font-size: 1.6rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #25d366; /* WhatsApp */
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer-social a {
    margin: 0 10px;
  }
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  color: #fff;
}
