/* Productos — categorías (layout nuevo, mismas imágenes de fondo) */

@import url("mobile-ux.css");
@import url("fondos-desktop-fixed.css");

.pagina-productos {
  background-color: #e8e8e8;
}

/* ── Intro (gris + texto blanco) ── */
.productos-intro {
  padding: 28px 0 20px;
  background: #3f3e3e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.082);
  color: #fff;
}

.productos-intro .section-kicker {
  color: #fecaca;
}

.productos-intro .section-title {
  color: #fff;
}

.productos-intro .section-lead {
  max-width: 720px;
  color: #e5e7eb;
}

/* ── Navegación rápida entre secciones ── */
.productos-jump {
  position: sticky;
  top: var(--ituarte-header);
  z-index: 50;
  background: rgba(50, 50, 50, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.productos-jump-inner {
  width: var(--ituarte-ancho);
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.productos-jump-inner::-webkit-scrollbar {
  display: none;
}

.productos-jump-inner a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.productos-jump-inner a:hover {
  border-color: #fecaca;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.productos-jump-inner a.is-active {
  background: var(--ituarte-rojo);
  border-color: var(--ituarte-rojo);
  color: #fff;
}

/* ── Secciones con fondo de imagen ── */
.productos-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding: clamp(32px, 6vw, 56px) 0;
}

.cat-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.cat-section--interior {
  background-image: url("../img/fondointeriores.png?v=hd2");
}

.cat-section--interior::before {
  background: rgba(255, 255, 255, 0.18);
}

.cat-section--exterior {
  background-image: url("../img/fondoexteriores3.png?v=hd2");
}

.cat-section--feature::before {
  background: rgba(0, 0, 0, 0.48);
}

.cat-section--embutidos {
  background-image: url("../img/fondoembutidos.png?v=hd2");
}

.cat-section--smarts {
  background-image: url("../img/fondosmart.png?v=hd2");
}

.cat-section--alumbrado {
  background-image: url("../img/fondoalumbradopublico.png?v=hd2");
}

.cat-section--ventiladores {
  background-image: url("../img/fondoventiladores.png?v=hd2");
}

.cat-section--camaras {
  background-image: url("../img/fondocamaras.png?v=hd2");
}

.cat-section .container {
  position: relative;
  z-index: 1;
}

.section-kicker--light {
  color: #fecaca;
}

/* Panel sobre fondo (interior / exterior) */
.cat-panel {
  background: rgba(235, 235, 235, 0.94);
  border-radius: var(--ituarte-radio);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.cat-section-title {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--ituarte-negro);
  text-align: center;
}

.cat-section-title--light {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.cat-section--exterior .cat-panel {
  background: rgba(30, 30, 30, 0.82);
}

.cat-section--exterior .cat-section-title {
  color: #fff;
}

/* ── Grilla de categorías ── */
.cat-grid {
  display: grid;
  gap: 12px;
}

/* Interior: 6 ítems → 3×2 en desktop, 2×3 en celular */
.cat-grid--interior {
  grid-template-columns: repeat(3, 1fr);
}

/* Exterior: 8 ítems → 4×2 en desktop, 2×4 en celular */
.cat-grid--exterior {
  grid-template-columns: repeat(4, 1fr);
}

.cat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s, box-shadow 0.22s;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 100%);
  transition: background 0.22s;
}

.cat-card span {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 10px 10px 12px;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.cat-card:hover::after {
  background: linear-gradient(to top, rgba(211, 47, 47, 0.88) 0%, rgba(0, 0, 0, 0.25) 100%);
}

/* Interior — imágenes originales */
.cat-card--apliques { background-image: url("../img/1.png"); }
.cat-card--colgantes { background-image: url("../img/2.png"); }
.cat-card--veladores { background-image: url("../img/6.png"); }
.cat-card--plafones { background-image: url("../img/4.png"); }
.cat-card--espejos { background-image: url("../img/5.png"); }
.cat-card--lamp-de-pie { background-image: url("../img/7.png"); }

/* Exterior — imágenes originales */
.cat-card--bifocales { background-image: url("../img/8.png"); }
.cat-card--unifocales { background-image: url("../img/9.png"); }
.cat-card--farolas { background-image: url("../img/10.png"); }
.cat-card--estacas { background-image: url("../img/13.png"); }
.cat-card--tortugas { background-image: url("../img/14.png"); }
.cat-card--proyectores { background-image: url("../img/11.png"); }
.cat-card--lumin-de-pileta { background-image: url("../img/12.png"); }
.cat-card--solares { background-image: url("../img/16.png"); }

/* Tarjetas destacadas (paneles, smart, etc.) */
.cat-feature-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(24px, 5vw, 36px);
  border-radius: var(--ituarte-radio);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.cat-feature-card .section-kicker--light {
  color: #fecaca;
}

.cat-feature-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.cat-feature-card p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.5;
}

.cat-feature-card .btn-primary {
  min-width: 160px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .cat-section {
    background-attachment: scroll;
    padding: 28px 0;
  }

  .cat-grid--interior,
  .cat-grid--exterior {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cat-card {
    aspect-ratio: 1 / 0.92;
  }

  .cat-panel {
    padding: 16px 14px;
  }

  .cat-section--feature {
    padding: 36px 0;
  }
}

@media (max-width: 380px) {
  .productos-jump-inner a {
    font-size: 12px;
    padding: 7px 12px;
  }

  .cat-card span {
    font-size: 10px;
    padding: 8px 6px 10px;
  }
}
