/* ================= VARIABLES Y GENERALES ================= */
:root {
  --azul-oscuro: #103264;
  --celeste-barra: #8cd4f5;
  --azul-hover: #0a2142;
  --gris-borde: #dbe4ee;
  --sombra-card: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f7f9fb;
  color: #2b2b2b;
  margin: 0;
  padding: 0;
}

/* ================= HEADER TOP CON FONDO ILUSTRADO ================= */
.header-top {
  background-color: #f37021; /* Naranja institucional de respaldo */
  background-image: url('../img/fondo-header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 140px;
  display: flex;
  align-items: center;
  position: relative;
}

.header-top {
  overflow: hidden; /* Evita que el disparo de la palabra cree scroll horizontal */
}

.logo-header {
  max-height: 130px; /* Reducí este valor (probá entre 85px y 100px) */
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.logo-header:hover {
  transform: scale(1.03);
}

.header-title h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.65rem;       /* Tamaño proporcional y contundente */
  font-weight: 900;          /* ExtraBold / Black */
  letter-spacing: 1px;       /* Separación para darle porte institucional */
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  /* Sombra de apoyo + Glow suave perimetral */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(255, 255, 255, 0.55),
    0 0 20px rgba(255, 255, 255, 0.25);
  user-select: none;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

/* Efecto sutil al pasar el mouse */
.header-title h1:hover {
  transform: scale(1.02);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(255, 255, 255, 0.85);
}



/* ================= ANIMACIÓN COMPRA RÁPIDA ================= */
/* ================= ANIMACIÓN DINÁMICA: VIBRA Y DISPARA ================= */
.animacion-compra-rapida {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  user-select: none;
  /* Ciclo completo de 6 segundos en bucle continuo */
  animation: carreraRapida 6s infinite ease-in-out;
}

@keyframes carreraRapida {
  /* 0% a 55%: Se queda quieta y visible para que se lea perfecto */
  0%, 55% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  /* 58% a 68%: Empieza a temblar con fuerza (efecto motor cargando) */
  58% { transform: translate(-3px, 1px) scale(1.03); }
  60% { transform: translate(3px, -2px) scale(1.05); }
  62% { transform: translate(-4px, -1px) scale(1.06); }
  64% { transform: translate(4px, 2px) scale(1.07); }
  66% { transform: translate(-3px, 1px) scale(1.08); }
  68% { transform: translate(2px, -1px) scale(1.08); opacity: 1; }

  /* 73%: Sale disparada a fondo hacia la derecha con estiramiento */
  73% {
    transform: translateX(250px) skewX(-25deg) scale(1.15);
    opacity: 0;
  }

  /* 74%: Salto invisible hacia el extremo izquierdo */
  74% {
    transform: translateX(-250px) skewX(20deg) scale(0.9);
    opacity: 0;
  }

  /* 82%: Entra frenando desde la izquierda */
  82% {
    transform: translateX(10px) skewX(-5deg) scale(1.02);
    opacity: 1;
  }

  /* 88% a 100%: Se acomoda en su posición natural y descansa */
  88%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

/* Efecto opcional al pasarle el mouse: se agranda levemente */
.animacion-compra-rapida:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* ================= CONTENEDOR DE LA PALABRA ANIMADA ================= */
.animacion-compra-rapida {
  display: inline-block;
  cursor: pointer;
}

/* ================= NAVBAR CATEGORÍAS ================= */
.nav-categorias {
  background-color: var(--celeste-barra);
  border-bottom: 2px solid #6bbfe6;
}

.nav-categorias .nav-link {
  color: #0b2f5b !important;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

.nav-categorias .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: #000000 !important;
}

.badge-marca {
  background-color: #0d47a1;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ================= BANNERS & CAROUSEL ================= */
.banner-slide {
  height: 220px;
  object-fit: cover;
}

.banner-promo {
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.banner-promo:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}
/* ================= CARDS DE CATEGORÍAS (GRILLA) ================= */
.card-categoria {
  position: relative;
  height: 300px !important;/* Altura pareja para todas las cards */
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-categoria:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Logos esquineros */
.card-logo-top {
  padding: 10px 12px;
  z-index: 2;
}

.img-mini-logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Barra inferior semitransparente con texto */
.card-titulo-barra {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  padding: 8px 10px;
  text-align: center;
  z-index: 2;
}

.card-titulo-barra span {
  font-weight: 800;
  font-size: 0.95rem;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Fondos por categoría (reemplazá con los nombres reales de tus fotos) */
.card-pileta {
  background-color: #ffffff; /* Si no tiene foto aún */
  background-image: url('../img/cat-pileta.jpg');
}
.card-hogar {
  background-color: #ffffff;
  background-image: url('../img/cat-hogar.jpg');
}
.card-industria {
  background-image: url('../img/cat-industria.jpg');
}
.card-tamberia {
  background-image: url('../img/cat-tamberia.jpg');
}
.card-fabricacion {
  background-image: url('../img/cat-fabricacion.jpg');
}
.card-prod-industriales {
  background-image: url('../img/cat-prod-industriales.jpg');
}
/* ================= FOOTER ================= */
.footer-principal {
  background-color: var(--azul-oscuro);
}


/* ================= PÁGINA PRODUCTOS.HTML CATÁLOGO Y CARRITO ================= */
.btn-filtro {
  white-space: nowrap;
 
  font-weight: 600;
  font-size: 0.85rem;
  background-color: #ffffff;
  color: var(--azul-oscuro);
 
  transition: all 0.2s ease;
}

.btn-filtro:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: #000000;
}

.btn-filtro.active {
  background-color: var(--azul-oscuro) !important;
  color: #ffffff !important;
  border-color: var(--azul-oscuro) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.card-producto {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
  border: 1px solid var(--gris-borde) !important;
}

.card-producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(16, 50, 100, 0.12) !important;
  border-color: #7ab8e6 !important;
}

/* Botones de + y - en las tarjetas */
.btn-selector {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  font-weight: bold;
  border: 1px solid #adb5bd;
  background-color: #ffffff;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-selector:hover {
  background-color: var(--azul-oscuro);
  border-color: var(--azul-oscuro);
  color: #ffffff;
}