/* =========================================================
   Jairol Import — Estilos globales
   ========================================================= */

:root {
  --primary: #ed0019;
  --primary-rgb: 237, 0, 25;
  --primary-dark: #b8000f;
  --primary-light: #ff3347;
  --secondary: #7fb332;
  --secondary-rgb: 127, 179, 50;
  --secondary-dark: #5f8a24;
  --secondary-light: #a3d158;

  --bg: #ffffff;
  --bg-soft: #f7f8f7;
  --bg-alt: #f1f3ef;
  --text: #1a1c1a;
  --text-muted: #5c625c;
  --border: #e6e8e4;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.14);

  --font: "Poppins", "Segoe UI", sans-serif;
  --header-h: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--secondary-rgb), 0.28);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--text);
  transform: translateY(-3px);
}

.btn-ghost {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1fb659;
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Header
   ========================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header.is-scrolled,
.header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  z-index: 1001;
}

.logo img {
  height: 59px;
  width: auto;
}

.logo-text b {
  color: var(--primary);
}

.header:not(.is-scrolled):not(.is-solid) .logo-text,
.header:not(.is-scrolled):not(.is-solid) .nav-link {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

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

.nav-link.active {
  color: var(--primary);
}

.header:not(.is-scrolled):not(.is-solid) .nav-link.active {
  color: var(--secondary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--transition), background var(--transition);
}

.header-whatsapp:hover {
  background: #1fb659;
  transform: translateY(-2px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 1001;
}

.burger span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.header:not(.is-scrolled):not(.is-solid) .burger span {
  background: #fff;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.burger.is-open span {
  background: var(--text) !important;
}

/* =========================================================
   Hero (home) — 100dvh
   ========================================================= */

.hero {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 10, 0.55) 0%, rgba(10, 12, 10, 0.65) 55%, rgba(10, 12, 10, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 120px 24px 0;
}

.hero-content .eyebrow {
  justify-content: center;
  color: var(--secondary-light);
}

.hero-content .eyebrow::before {
  background: linear-gradient(90deg, var(--secondary-light), var(--primary-light));
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-content h1 span {
  color: var(--primary-light);
}

.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.4s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* =========================================================
   Page hero (sub pages)
   ========================================================= */

.page-hero {
  position: relative;
  height: 46vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding-bottom: 50px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 10, 0.35) 0%, rgba(10, 12, 10, 0.85) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.breadcrumb .active {
  color: var(--secondary-light);
  font-weight: 600;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
  max-width: 560px;
}

/* =========================================================
   Categorías (home)
   ========================================================= */

.categories {
  background: var(--bg-soft);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cat-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 10, 0.05) 0%, rgba(10, 12, 10, 0.85) 100%);
  transition: opacity var(--transition);
}

.cat-card:hover::before {
  opacity: 0.92;
}

.cat-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  color: #fff;
  z-index: 2;
}

.cat-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
}

.cat-card:hover .cat-card-icon {
  background: var(--primary);
  transform: scale(1.08) rotate(-6deg);
}

.cat-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cat-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin-bottom: 16px;
  max-width: 90%;
}

.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary-light);
  transition: gap var(--transition);
}

.cat-card:hover .cat-card-link {
  gap: 14px;
}

/* =========================================================
   Por que elegirnos
   ========================================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 34px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.7rem;
  background: var(--primary);
  color: #fff;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* =========================================================
   Filtros
   ========================================================= */

.filters-bar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 44px;
  margin-top: -50px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.filters-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}

.filter-group {
  flex: 1 1 220px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.search-input {
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.search-input i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}

.chip:hover {
  border-color: var(--secondary);
  color: var(--secondary-dark);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.25);
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.range-slider {
  position: relative;
  height: 22px;
}

.range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  top: 6px;
  height: 4px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.range-slider .track {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
}

.range-slider .track-fill {
  position: absolute;
  top: 9px;
  height: 4px;
  border-radius: 4px;
  background: var(--secondary);
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  padding: 12px 4px;
  transition: gap var(--transition);
}

.filter-reset:hover {
  gap: 12px;
}

.results-count {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.results-count b {
  color: var(--text);
}

/* =========================================================
   Product grid
   ========================================================= */

/* Las fotos son verticales, así que caben más columnas sin que la tarjeta
   se vuelva desproporcionadamente alta. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Proporción 3:4 (vertical). El fondo cubre el hueco cuando alguna foto
   viene apaisada y no llena todo el marco. */
.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-alt);
}

.product-slides {
  position: absolute;
  inset: 0;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.product-media img.is-active {
  opacity: 1;
  visibility: visible;
}

.product-card:hover .product-media img.is-active {
  transform: scale(1.06);
}

/* ---- Selector de fotos ---- */

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.product-card:hover .gallery-nav,
.gallery-nav:focus-visible {
  opacity: 1;
}

.gallery-nav:hover {
  background: var(--primary);
  color: #fff;
}

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  flex-wrap: wrap;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.gallery-dot.is-active {
  width: 20px;
  border-radius: 50px;
  background: #fff;
}

.gallery-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(26, 28, 26, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Sin hover (táctil) o en pantallas estrechas, las flechas quedan siempre
   visibles: de lo contrario no habría forma de cambiar de foto salvo deslizar. */
@media (hover: none), (max-width: 768px) {
  .gallery-nav {
    opacity: 1;
  }
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.product-price {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(var(--secondary-rgb), 0.35);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.product-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: 8px;
}

.product-specs i {
  color: var(--secondary-dark);
}

.product-body .btn {
  margin-top: auto;
}

.no-results {
  display: none;
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
}

.no-results h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.no-results.show {
  display: block;
}

/* =========================================================
   Contacto
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--primary);
  color: #fff;
}

.contact-info-card h4 {
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-card p, .contact-info-card a {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.contact-form {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--primary);
}

.form-error {
  display: none;
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 6px;
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(var(--secondary-rgb), 0.12);
  color: var(--secondary-dark);
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-success.show {
  display: flex;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: 50px;
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: #14161a;
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.footer-logo img {
  height: 38px;
}

.footer p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-light);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer-contact i {
  color: var(--secondary-light);
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* =========================================================
   WhatsApp float button
   ========================================================= */

.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse-wa 2.6s infinite;
  transition: transform var(--transition);
}

.wa-float:hover {
  transform: scale(1.08);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 10px 30px rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 10px 30px rgba(37, 211, 102, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 30px rgba(37, 211, 102, 0.45); }
}

/* =========================================================
   Loader inicial (solo sitio público)
   ========================================================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #ffffff 0%, var(--bg-soft) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 315px;
  max-width: 80vw;
  animation: loaderPulse 1.8s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

.loader-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.01em;
}

.loader-text span {
  color: var(--primary);
}

.loader-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.loader-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .loader-logo { width: 182px; }
  .loader-text { font-size: 1.1rem; padding: 0 20px; }
}

/* =========================================================
   Scroll reveal animations
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-stagger.in-view .reveal-item:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view .reveal-item:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in-view .reveal-item:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in-view .reveal-item:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in-view .reveal-item:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in-view .reveal-item:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in-view .reveal-item:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.in-view .reveal-item:nth-child(8) { transition-delay: 0.75s; }
.reveal-stagger.in-view .reveal-item:nth-child(9) { transition-delay: 0.85s; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav,
  .header-whatsapp {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav.mobile-open {
    display: flex;
    position: fixed;
    inset: 0;
    height: 100dvh;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
  }

  .nav.mobile-open .nav-link {
    font-size: 1.4rem;
    color: var(--text) !important;
  }

  .nav.mobile-open .header-whatsapp {
    display: inline-flex;
    margin-top: 10px;
  }

  .cat-grid,
  .features-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-bar {
    margin-top: -30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 70px 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .wa-float {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
    bottom: 18px;
    right: 18px;
  }

  .contact-form {
    padding: 24px;
  }
}

/* =========================================================
   Paginación del catálogo (añadida con el backend)
   ========================================================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.pagination .page-item {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: all .25s ease;
}

.pagination a.page-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.pagination .page-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .page-item.disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Estado de carga mientras se resuelve el filtro AJAX */
.product-grid.is-loading {
  opacity: .45;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* Aclaración de moneda en la etiqueta del rango de precio */
.filter-hint {
  margin-left: 4px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}
