/* ─────────────────────────────────────────────────────────────────────────────
   Contenido Neto — Estilos principales
   Tipografía: Barlow Condensed 800 (títulos) · Barlow 300/400 (cuerpo)
   Paleta: blanco + negro, sin gradientes
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;800&family=Barlow:wght@300;400;500&display=swap');

/* ── Reset y base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --col-optica:       #f0a500;
  --col-camaras:      #e03020;
  --col-iluminacion:  #f5c800;
  --col-filtros:      #e8609a;
  --col-monitoreo:    #5ab870;
  --col-movimiento:   #1a6fd4;
  --col-accesorios:   #8b44cc;
  --col-whatsapp:     #25D366;

  --black:  #0a0a0a;
  --white:  #ffffff;
  --gray-1: #f5f5f5;
  --gray-2: #e8e8e8;
  --gray-3: #999999;
  --grid-line: rgba(0,0,0,0.08);

  --font-title: 'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;

  --nav-h: 60px;
  --max-w: 1320px;
  --gap:   24px;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Utilidades ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Líneas de grid sutiles ── */
.grid-line { border: 1px solid var(--grid-line); }

/* ─────────────────────────────────────────────────────────────────────────────
   NAVEGACIÓN
   ───────────────────────────────────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grid-line);
  height: var(--nav-h);
}

#nav .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: var(--gap);
  border-right: 1px solid var(--grid-line);
  margin-right: var(--gap);
  flex-shrink: 0;
}

.nav-logo img { height: 36px; width: auto; }
.nav-logo .logo-placeholder {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  flex: 1;
}

.nav-links li { height: var(--nav-h); }

.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 1px solid var(--grid-line);
  transition: background 0.15s;
}

.nav-links a:hover { background: var(--gray-1); }
.nav-links a.active { background: var(--black); color: var(--white); }

/* Botón Contacto — borde WhatsApp verde */
.nav-contacto a {
  border: 2px solid var(--col-whatsapp);
  color: var(--black);
  margin-left: auto;
  border-right: 2px solid var(--col-whatsapp) !important;
}
.nav-contacto a:hover { background: var(--col-whatsapp); color: var(--white); }

/* Toggle de idioma */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  flex-shrink: 0;
}
.lang-sep { color: var(--gray-3); font-size: 12px; }
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray-3);
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.15s;
}
.lang-btn.active { color: var(--black); }
.lang-btn:hover  { color: var(--black); }
.lang-toggle-footer .lang-btn         { color: rgba(255,255,255,0.4); }
.lang-toggle-footer .lang-btn.active  { color: var(--white); }
.lang-toggle-footer .lang-btn:hover   { color: var(--white); }
.lang-toggle-footer .lang-sep         { color: rgba(255,255,255,0.2); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: 0.2s;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO — banda compacta full-width
   ───────────────────────────────────────────────────────────────────────────── */
#hero {
  border-bottom: 1px solid var(--grid-line);
  padding: 0;
}

.hero-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px var(--gap);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(22px, 3.5vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 680px;
}

.hero-sep {
  width: 40px;
  height: 1px;
  background: var(--grid-line);
  flex-shrink: 0;
}

.hero-desc {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  max-width: 480px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUSCADOR
   ───────────────────────────────────────────────────────────────────────────── */
#search-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--grid-line);
}

.search-wrapper {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.search-wrapper label {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 10px;
  text-align: center;
}

.search-input-row {
  display: flex;
  border: 2px solid var(--black);
  background: var(--white);
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
}

#search-input::placeholder { color: var(--gray-2); }

.search-btn {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 24px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-results-count {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-3);
  font-weight: 300;
  min-height: 20px;
}

/* wrap que contiene el input-row + el dropdown */
.search-input-wrap {
  position: relative;
}

/* Dropdown de sugerencias */
#search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  background: var(--white);
  border: 2px solid var(--black);
  border-top: none;
  z-index: 200;
  max-height: 340px;
  overflow-y: auto;
}
#search-suggestions.open { display: block; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--grid-line);
  transition: background 0.1s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover,
.suggestion-item.active  { background: var(--off-white, #f8f8f8); }

.suggestion-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.suggestion-name {
  flex: 1;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.suggestion-name mark {
  background: #fff3cd;
  color: inherit;
}
.suggestion-cat {
  font-size: 11px;
  color: var(--gray-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.suggestion-empty {
  color: var(--gray-3);
  font-size: 13px;
  cursor: default;
}
.suggestion-empty:hover { background: transparent; }

.suggestion-wa {
  color: #25d366;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  gap: 10px;
}
.suggestion-wa:hover { background: #f0fdf4; }
.suggestion-wa-icon { font-size: 16px; }

.suggestion-see-all {
  font-size: 12px;
  color: var(--gray-3);
  font-style: italic;
  border-top: 1px solid var(--grid-line);
}
.suggestion-see-all:hover { background: var(--off-white, #f8f8f8); color: var(--black); }

/* ─────────────────────────────────────────────────────────────────────────────
   CATÁLOGO — TABS Y FILTROS
   ───────────────────────────────────────────────────────────────────────────── */
#catalogo {
  padding: 48px 0;
  border-bottom: 1px solid var(--grid-line);
}

.catalogo-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.catalogo-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tabs de categoría */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--grid-line);
  margin-bottom: 0;
  overflow-x: auto;
}

.cat-tab {
  background: none;
  border: none;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  padding: 14px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
  white-space: nowrap;
  transition: 0.15s;
  position: relative;
}
.cat-tab:last-child { border-right: none; }
.cat-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.15s;
}
/* Hover: colored underline only, no background fill */
.cat-tab:hover { color: var(--black); background: none; }
.cat-tab:hover::after { background: var(--cat-color, var(--black)); opacity: 0.45; }
/* Active: solid background fill, underline at full opacity */
.cat-tab.active { color: var(--black); background: var(--cat-color, var(--black)); }
.cat-tab.active::after { background: var(--cat-color, var(--black)); opacity: 1; }
/* Todos active: black bg → white text */
.cat-tab[data-cat=""].active { background: var(--black); color: var(--white); }

/* Barra de búsqueda activa */
#active-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--grid-line);
  margin-bottom: 28px;
}

.search-active-query {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.search-active-query strong {
  color: var(--black);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.search-active-count {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  padding: 4px 10px;
  border-radius: 2px;
}

.search-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid var(--black);
  padding: 7px 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: 0.15s;
}
.search-clear-btn:hover {
  background: var(--black);
  color: var(--white);
}
.search-clear-btn .clear-x {
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
}

/* Subcategory filters */
.subcat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grid-line);
  margin-bottom: 32px;
  min-height: 56px;
}

.subcat-btn {
  background: none;
  border: 1px solid var(--gray-2);
  padding: 6px 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-3);
  transition: 0.15s;
}
.subcat-btn:hover { border-color: var(--black); color: var(--black); }
.subcat-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ─────────────────────────────────────────────────────────────────────────────
   GRID DE PRODUCTOS (tarjetas pequeñas)
   ───────────────────────────────────────────────────────────────────────────── */
#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  background: var(--white);
  border: 1px solid var(--grid-line);
}

/* Estado vacío / cargando */
#product-grid.empty {
  background: none;
  border: none;
  display: block;
  text-align: center;
  padding: 80px 0;
  color: var(--gray-3);
  font-weight: 300;
}

/* Productos destacados (antes de seleccionar categoría) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  margin-bottom: 40px;
}

.featured-header {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 16px;
}

/* Tarjeta de producto */
.product-card {
  background: var(--white);
  padding: 24px;
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
}

.product-card:hover { background: var(--gray-1); }

.product-card-img {
  aspect-ratio: 4/3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: -24px -24px 0;
  border-bottom: 1px solid var(--grid-line);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product-card-img .no-img {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.product-card-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.product-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.badge-cat { color: var(--white); }
.badge-mount { color: var(--gray-3); border-color: var(--gray-2); }
.badge-coverage { color: var(--gray-3); border-color: var(--gray-2); }

.product-card-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  margin-top: auto;
}

.product-card-price-label {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray-3);
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card-color-bar {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MODAL DE PRODUCTO (detalle completo)
   ───────────────────────────────────────────────────────────────────────────── */
#product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
  overflow-y: auto;
  padding: var(--nav-h) 0 40px;
}

#product-modal.open { display: flex; align-items: flex-start; justify-content: center; }

.modal-inner {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  margin: 0 var(--gap);
  position: relative;
  border: 3px solid var(--cat-color, var(--grid-line));
}

.modal-close {
  position: absolute;
  top: 0; right: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 20px;
  z-index: 2;
}


.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-img {
  aspect-ratio: 4/3;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.modal-img img { width: 100%; height: 100%; object-fit: contain; }
.modal-img .no-img {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.modal-info { padding: 32px; overflow-y: auto; }

.modal-category {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.modal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

.modal-description {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

.modal-specs-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 8px;
}

.modal-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.modal-specs li {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid var(--gray-2);
  text-transform: uppercase;
}

.modal-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 4px;
}
.modal-price-label {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.modal-requires-op {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 20px;
}

/* Formulario de contacto en modal */
.modal-contact {
  border-top: 1px solid var(--grid-line);
  padding-top: 24px;
}

.modal-contact-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--gray-2);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  background: var(--white);
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--black); }
.contact-form textarea { resize: vertical; min-height: 80px; }

.contact-submit {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background 0.15s;
}
.contact-submit:hover { background: #333; }

.contact-thanks {
  display: none;
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  padding: 20px;
  text-align: center;
}
.contact-thanks h4 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-thanks p { font-weight: 300; font-size: 14px; color: #444; }

/* Videos en modal */
.modal-videos {
  border-top: 1px solid var(--grid-line);
  padding-top: 24px;
  margin-top: 24px;
}
.modal-videos-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 12px;
}
.video-thumb-list { display: flex; flex-wrap: wrap; gap: 12px; }
.video-thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 140px;
  cursor: pointer;
}
.video-thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-2);
  overflow: hidden;
}
.video-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-title { font-size: 12px; font-weight: 400; line-height: 1.3; }
.video-thumb-sub { font-size: 11px; color: var(--gray-3); font-weight: 300; }

/* ─────────────────────────────────────────────────────────────────────────────
   VIDEO LIGHTBOX
   ───────────────────────────────────────────────────────────────────────────── */
#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
#video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
}
.video-modal-ratio {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
}
.video-modal-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.6;
  padding: 6px 8px;
  line-height: 1;
}
.video-modal-close:hover { opacity: 1; }
.video-modal-title {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 300;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROYECTOS
   ───────────────────────────────────────────────────────────────────────────── */
#proyectos {
  padding: 48px 0;
  border-bottom: 1px solid var(--grid-line);
}

.section-header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-3);
  letter-spacing: 0.04em;
  margin: 0;
}

#projects-scroll {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  padding-bottom: 4px;
  scrollbar-width: thin;
}
#projects-scroll::-webkit-scrollbar { height: 3px; }
#projects-scroll::-webkit-scrollbar-thumb { background: var(--gray-2); }

.project-card {
  flex-shrink: 0;
  width: 260px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
}
.project-card:hover { background: var(--gray-1); }

.project-card-poster {
  aspect-ratio: 16/9;
  background: var(--gray-2);
  overflow: hidden;
}
.project-card-poster img { width: 100%; height: 100%; object-fit: cover; }

.project-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--grid-line);
}

.project-card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-card-meta { font-size: 12px; color: var(--gray-3); font-weight: 300; }
.project-card-equipment { font-size: 11px; color: var(--gray-3); font-weight: 400; letter-spacing: 0.01em; }

/* ─────────────────────────────────────────────────────────────────────────────
   INSTAGRAM
   ───────────────────────────────────────────────────────────────────────────── */
#instagram {
  padding: 48px 0;
  border-bottom: 1px solid var(--grid-line);
}

.ig-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ig-handle {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-3);
}

#ig-scroll {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  scrollbar-width: thin;
}
#ig-scroll::-webkit-scrollbar { height: 3px; }
#ig-scroll::-webkit-scrollbar-thumb { background: var(--gray-2); }

.ig-post,
.ig-item {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 1;
  background: var(--gray-1);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.ig-post img,
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ig-post:hover img,
.ig-item:hover img { transform: scale(1.04); }

.ig-placeholder {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 1;
  background: var(--gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL ARROWS (horizontal scroll hint)
   ───────────────────────────────────────────────────────────────────────────── */
.scroll-wrap { position: relative; }

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 48px;
  background: rgba(255,255,255,0.93);
  border: 1px solid var(--grid-line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  transition: opacity 0.2s, background 0.15s;
  box-shadow: 2px 0 8px rgba(0,0,0,0.06);
}
.scroll-arrow:hover { background: #fff; }
.scroll-arrow-left  { left: 0;  box-shadow:  2px 0 8px rgba(0,0,0,0.06); }
.scroll-arrow-right { right: 0; box-shadow: -2px 0 8px rgba(0,0,0,0.06); }

/* Hide on touch-only devices — swipe is the natural gesture there */
@media (hover: none) { .scroll-arrow { display: none !important; } }

/* ─────────────────────────────────────────────────────────────────────────────
   NOSOTROS
   ───────────────────────────────────────────────────────────────────────────── */
#nosotros {
  padding: 48px 0;
  border-bottom: 1px solid var(--grid-line);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--grid-line);
}

.nosotros-left {
  padding: 40px;
  border-right: 1px solid var(--grid-line);
}

.nosotros-right {
  padding: 40px;
  background: var(--gray-1);
}

.nosotros-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
#footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-logo img { height: 32px; filter: invert(1); }
.footer-logo .logo-placeholder {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--white); }

.footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-social a {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-social a:hover { color: var(--white); }
.footer-social .wa-link { color: var(--col-whatsapp) !important; }

.footer-address {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-phone {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SEARCH OVERLAY (resultados al buscar)
   ───────────────────────────────────────────────────────────────────────────── */
#search-overlay {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grid-line);
  z-index: 99;
  max-height: 70vh;
  overflow-y: auto;
}
#search-overlay.open { display: block; }

.search-overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  margin: var(--gap);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET Y MÓVIL
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--grid-line); }

  .modal-grid { grid-template-columns: 1fr; }
  .modal-img { border: none; }

  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-left { border-right: none; border-bottom: 1px solid var(--grid-line); }

  .featured-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gap: 16px; }

  .hero-band { padding: 36px var(--gap); gap: 12px; }
  .hero-title { font-size: clamp(20px, 6vw, 32px); }

  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grid-line);
    z-index: 101;
  }
  .nav-links li { width: 100%; height: auto; }
  .nav-links a {
    padding: 16px var(--gap);
    border-right: none;
    border-bottom: 1px solid var(--grid-line);
  }
  .nav-hamburger { display: flex; }

  .nav-contacto { margin-left: 0; }

  #product-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .catalogo-header { flex-direction: column; gap: 12px; }
}
