/* ================= NAV/HEADER ================= */

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: #25d366;
  border: none;
  border-radius: 0%;
  padding: 15px 16px;
  font-size: 24px;
  color: white;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  text-align: center;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  color: white;
}

.navbar {
  padding: 1rem 0;
  background-color: transparent !important; /* CORREGIDO */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.0);
}

.navbar-brand img {
  height: 70px;
  object-fit: contain;
  margin-right: 1rem;
}

.navbar .container {
  padding-left: 0;
}

.nav-link {
  font-size: 1.2rem;
  margin-right: 1.5rem;
  color: #ffffff;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #ffc107;
  transition: width 0.3s;
  position: absolute;
  bottom: 0;
  left: 0;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #ffc107 !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  background-image: url('/imagenes/imagen3R-principal.jpg'); /* ✔ RUTA CORREGIDA PARA DONWEB */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero .container {
  z-index: 2;
}

.hero h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  color: #cdcbcb !important;
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* ================= TÍTULO ================= */

.titulo-trabajos {
  font-family: 'Roboto Slab', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 45px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;

  opacity: 0;
  animation: fadeInDown 0.8s ease-out forwards;
}

.titulo-trabajos::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  background-color: #ffc107;
  border-radius: 2px;
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ================= SLIDER ================= */

.contenedor-slider {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 60px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.slider {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slide {
  min-width: 100%;
  transition: 0.5s ease;
  opacity: 0;
}

.slider.mover {
  transform: translateX(var(--posicion-slider));
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 12px;
}

/* Flechas */
.btn-prev, .btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 6px 15px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 6px;
}

.btn-prev:hover, .btn-next:hover {
  background: rgba(255,255,255,0.35);
}

.btn-prev { left: 15px; }
.btn-next { right: 15px; }

/* Descripción */
.descripcion-trabajo {
  max-width: 800px;
  margin: 25px auto 60px auto;
  background: #000;
  padding: 20px 25px;
  border: 1px solid #333;
  border-radius: 8px;
  color: #dfdfdf;
  font-size: 1.1rem;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* ================= FOOTER ================= */

footer a:hover {
  color: #ffc107 !important;
  text-decoration: underline;
}



