body {
  background-color: #111;
  color: #eee;
  font-family: "Quicksand", sans-serif;
}
.navbar-victoria {
  /* Fondo negro con 40% de transparencia inicial */
  background-color: rgba(0, 0, 0, 0.4) !important; 
  /* Efecto de desenfoque para lo que pasa por debajo */
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  
  transition: all 0.5s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease; /* Suaviza el cambio de tamaño */
  padding-top: 30px;        /* Alto inicial (más grande) */
  padding-bottom: 30px;
}

/* Esta clase se activará con JavaScript al hacer scroll */
.navbar-victoria.navbar-shrink {
   box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  /* Se vuelve más sólida al bajar para facilitar la lectura */
  background-color: rgba(0, 0, 0, 0.9) !important;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ffc107; /* Línea amarilla al achicarse */
}
/* Solo afecta a las pantallas de escritorio para no romper el menú móvil */
@media (min-width: 992px) {
/* Estilos para los links del menú en Herrería Victoria */
.navbar-victoria .nav-link {
  padding: 8px 40px;       /* Espaciado interno para que el fondo gris se vea bien */
  border-radius: 4px;      /* Bordes ligeramente redondeados (toque moderno) */
  transition: all 0.3s ease; /* Suaviza el movimiento y el cambio de color */
  display: inline-block;
  margin: 10px;   /* Necesario para que el transform funcione correctamente */
}

/* Efecto al pasar el mouse (Hover) */
.navbar-victoria .nav-link:hover {
  color: #ffc107 !important;    /* Mantiene el amarillo 'warning' de la herrería */
  transform: translateY(-5px);  /* Sube el ítem 5 píxeles */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Sombra para dar profundidad al subir */
}
}

/* Opcional: que el logo también se achique un poco */
.navbar-shrink .navbar-brand {
  font-size: 1.25rem;
  transition: all 0.4s ease;
}
.navbar {
  background-color: #2a2a2a;
}

.navbar a {
  color: #f1c40f; /* amarillo */
  font-family: "Quicksand", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2)
}

.carousel-item {
  height: 80vh;
  background-size: cover;
  background-position: center;
}

.btn-presupuesto {
  background-color: #f1c40f; /* rojo */
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-weight: bold;
}

.productos {
  background-color: #222;
  padding: 40px 0;
}

.productos h2 {
  color: #f1c40f;
}

.footer {
  background-color: #000;
  padding: 20px;
  text-align: center;
}

.footer a {
  color: #f1c40f;
  margin: 0 10px;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366; /* Verde oficial WhatsApp */
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease; /* Suaviza el movimiento */
}

/* Efecto Hover: Sube y brilla */
.whatsapp-float:hover {
  background-color: #128c7e; /* Un verde un poco más oscuro al pasar el mouse */
  color: #FFF;
  transform: translateY(-8px); /* Sube un poco más que el menú por ser un botón flotante */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}


.social-icon {
  color: #ffc107; /* El amarillo 'warning' de Bootstrap */
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: #ffffff; /* Cambia a blanco al pasar el mouse */
  transform: scale(1.2); /* Se agranda un poquito */
  filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6)); /* Efecto de resplandor */
}

/* Ajuste de las imágenes del Carousel */
.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tipografía y Espaciado */
.display-1 {
  font-family: 'Oswald', sans-serif; /* O la que hayas elegido para la herrería */
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: -2px;
}

.ls-wide {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

/* Transición suave entre slides (Personalizada) */
.carousel-fade .carousel-item {
  transition-duration: 1.5s; /* Ajusta la velocidad del fundido aquí */
}

/* Animación simple para que el texto "suba" al aparecer */
.carousel-item.active h1 {
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*SECCIÓN PRODUCTOS*/

/* Estilo de las tarjetas de producto */
.product-card {
  transition: transform 0.3s ease;
  border-bottom: 4px solid #ffc107 !important; /* Detalle amarillo herrería */
}

.product-card img {
  transition: transform 0.5s ease;
  object-fit: cover;
  height: 250px; /* Ajusta la altura para que todas sean iguales */
}

.product-card:hover img {
  transform: scale(1.1); /* Zoom suave en la imagen */
}

/* Animación de entrada: De abajo hacia arriba */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Botón "Más trabajos" personalizado */
.btn-outline-dark:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

/*SECCION SERVICIOS*/
/* Banner de Servicios */
.services-banner {
    height: 60vh; /* Altura más baja que el Hero, para servicios */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efecto Parallax suave */
}

.ls-wide {
    letter-spacing: 3px;
    font-weight: 300;
}

/* Estilo de las Imágenes de Servicios */
.service-img {
    transition: transform 0.5s ease;
    border-left: 5px solid #ffc107; /* Detalle amarillo herrería */
    object-fit: cover;
    height: 400px;
    width: 100%;
}

.service-img:hover {
    transform: scale(1.03); /* Zoom muy sutil al pasar el mouse */
}

/* === ANIMACIONES DE ENTRADA (REVEAL ON SCROLL) === */


/* reveal-left: Aparece desde la izquierda */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px); /* Viene desde la izquierda */
    transition: all 1s ease-out;
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* reveal-right: Aparece desde la derecha */
.reveal-right {
    opacity: 0;
    transform: translateX(80px); /* Viene desde la derecha */
    transition: all 1s ease-out;
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Para celular: Asegurar que las animaciones sean más suaves */
@media (max-width: 768px) {
    .reveal-left, .reveal-right {
        transform: translateY(30px); /* En celular mejor que suban */
    }
}

/*GALERIA*/
/* Contenedor de la foto */
.gallery-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background-color: #000;
}

/* Imagen con zoom suave */
.gallery-container img {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Capa que aparece al pasar el mouse */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-container:hover img {
    transform: scale(1.1);
    filter: grayscale(40%); /* Le da un toque artístico industrial */
}

.gallery-container:hover .gallery-overlay {
    opacity: 1;
}

/* Animación de filtrado */
.gallery-item {
    transition: all 0.5s ease;
}

.gallery-item.hide {
    display: none;
}


/* SECCION CONTACTO */

/* Cajas de Iconos en Contacto */
.icon-box {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Estilo para los inputs del formulario */
.form-control:focus, .form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    outline: none;
}

.form-label {
    color: #444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Efecto hover en el botón de envío */
.btn-warning:hover {
    background-color: #e5ac00;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ADAPTACION PARA CELULARES */
@media (max-width: 768px) {
  /* Títulos del Banner */
  .display-1 {
    font-size: 3rem !important; /* Achicamos el título principal */
    letter-spacing: -1px;
  }
  
  .fs-4 {
    font-size: 1.1rem !important; /* El texto de abajo del título más legible */
  }

  /* Secciones de Servicios (Imágenes y Texto) */
  .service-img {
    height: 250px; /* Fotos menos altas en el celular */
    margin-bottom: 20px;
  }

  /* Quitamos los márgenes laterales extra en móviles */
  .reveal-left, .reveal-right {
    transform: translateY(30px); /* En lugar de venir de los lados, que suban */
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important; /* Centramos el texto en móviles */
  }
}
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.95); /* Fondo sólido al abrir el menú */
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #ffc107;
  }
  
  /* Los botones del menú con más espacio para el dedo */
  .navbar-victoria .nav-link {
    padding: 15px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 576px) {
  .gallery-grid .col-md-4, 
  .gallery-grid .col-md-8 {
    width: 50%; /* Dos fotos por fila en celulares pequeños */
    padding: 5px;
  }
  
  .gallery-overlay {
    padding: 10px; /* Menos padding para que entre el texto */
  }
  
  .gallery-overlay span {
    font-size: 0.8rem;
  }
}
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 25px;
  }
}
/* Estado inicial del logo */
#navbar-logo {
  height: 80px; /* Tamaño grande original */
  transition: all 0.4s ease; /* Hace que el achique sea fluido */
}

/* Estado cuando la barra se achica */
.navbar-scrolled #navbar-logo {
  height: 45px; /* Tamaño pequeño al scrollear */
}

/* Estilo extra para la barra (opcional) */
.navbar-victoria {
  transition: all 0.4s ease;
  padding: 20px 0; /* Padding inicial */
}

.navbar-scrolled {
  padding: 5px 0; /* Menos espacio al scrollear */
  background-color: rgba(0, 0, 0, 0.9) !important; /* Más opaca al bajar */
}
/* EFECTO PANEO */
@keyframes pan-vertical {
  0% {
    background-position-y: 0%;
  }
  50% {
    background-position-y: 100%;
  }
  100% {
    background-position-y: 0%;
  }
}

.banner-vertical-pan {
  /* Hacemos que la imagen sea más alta para que tenga margen de movimiento */
  background-size: cover; 
  background-size: 100% 130% !important; 
  animation: pan-vertical 25s ease-in-out infinite;
}

/* Opcional: un sombreado extra para mejorar la lectura del texto */
.services-banner h1 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

