/* ============================================================
   Landing de LED (/led/) — plantilla de marketing de 09/2026.
   Hoja propia de pages/led/index.astro. El catálogo (tarjetas,
   barra de orden) comparte estilos en traulux.css; aquí solo se
   retocan sus filtros, que en esta página van como casillas.
   ============================================================ */

.ld { --ld-borde: rgba(255, 255, 255, 0.1); --ld-panel: rgba(255, 255, 255, 0.025); }
.ld section { position: relative; }
.ld p { color: var(--text-dim); }
.ld svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ld button { font: inherit; }
.ld .marker { font-size: 0.74rem; margin-bottom: 12px; }
.ld .btn { font-size: 0.92rem; font-weight: 800; padding: 14px 24px; }
.ld-btn-borde { border-color: var(--teal); }
.ld-btn-borde:hover { background: rgba(0, 168, 148, 0.1); }
.ld-botones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ld-flecha { display: inline-block; margin-left: 8px; transition: transform 0.2s ease; }
.ld a:hover .ld-flecha, .ld button:hover .ld-flecha { transform: translateX(3px); }
.ld-enlace, .ld-mas { color: var(--teal-bright); font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.ld-ico {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 10px; border: 1px solid rgba(47, 214, 188, 0.45); color: var(--teal-bright);
}
.ld-ico svg { width: 22px; height: 22px; }

/* ---------- 1 · Héroe ---------- */
.ld-heroe {
  min-height: min(640px, calc(100svh - var(--banner-h) - 40px));
  display: flex; align-items: center; overflow: hidden; padding: 140px 0 70px;
}
.ld-heroe-foto {
  position: absolute; top: 0; right: 0; width: 66%; height: 100%; object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.ld-heroe::after { /* velo inferior para que la nota se lea sobre fotos claras */
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(transparent, rgba(16, 18, 17, 0.85));
}
.ld-heroe-in { position: relative; z-index: 1; width: 100%; }
.ld-heroe h1 { font-size: clamp(2.3rem, 4.3vw, 3.8rem); max-width: 13ch; line-height: 1.02; }
.ld-heroe .lead { margin: 22px 0 32px; max-width: 46ch; font-size: 1.02rem; color: rgba(244, 246, 245, 0.82); }
.ld-nota {
  position: absolute; z-index: 1; right: max(28px, calc((100vw - var(--maxw)) / 2 + 28px)); bottom: 56px;
  max-width: 220px; padding-left: 16px; border-left: 2px solid var(--teal-bright);
  font-size: 0.8rem; line-height: 1.5; color: rgba(244, 246, 245, 0.82) !important;
}
.ld-nota b {
  display: block; margin-bottom: 8px; color: var(--teal-bright); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
}

/* ---------- 2 · Confianza ---------- */
.ld-confianza { padding: 30px 0; border-top: 1px solid var(--ld-borde); border-bottom: 1px solid var(--ld-borde); background: rgba(0, 0, 0, 0.18); }
.ld-confianza ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ld-confianza li { display: flex; gap: 14px; align-items: flex-start; }
.ld-confianza p { font-size: 0.8rem; line-height: 1.45; }
.ld-confianza b { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 3px; }

/* ---------- 3 · Categorías y catálogo ---------- */
.ld-catalogo { padding: 64px 0 80px; }
.ld-cab { margin-bottom: 26px; }
.ld-cab h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 8px; }
.ld-cab p { font-size: 0.95rem; }
.ld-categorias { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.ld-cat {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer;
  text-decoration: none; color: var(--text); background: var(--ld-panel);
  border: 1px solid var(--ld-borde); border-radius: 10px; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ld-cat:hover { border-color: rgba(47, 214, 188, 0.55); transform: translateY(-3px); }
.ld-cat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s ease; }
.ld-cat:hover img { transform: scale(1.04); }
.ld-cat-txt { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; background: #121514; }
.ld-cat-txt b { font-size: 1.02rem; font-weight: 800; }
.ld-cat-txt > span:not(.ld-mas) { font-size: 0.84rem; line-height: 1.45; color: var(--text-dim); }
.ld-cat-txt .ld-mas { margin-top: auto; padding-top: 8px; }

/* el catálogo, con los filtros como casillas */
.ld .side-filters { background: var(--ld-panel); border: 1px solid var(--ld-borde); border-radius: 10px; padding: 18px; }
.ld .side-filters .fgroup h4 { letter-spacing: 0.1em; }
.ld .side-filters .fbtns { display: grid; gap: 8px; }
.ld .side-filters .fbtn {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 0; padding: 0; transform: none;
  font-size: 0.85rem; font-weight: 500; color: var(--text);
}
.ld .side-filters .fbtn::before {
  content: ''; width: 15px; height: 15px; border-radius: 4px; flex-shrink: 0;
  border: 1.5px solid rgba(244, 246, 245, 0.35); background: transparent; box-shadow: none;
}
.ld .side-filters .fbtn:hover::before { border-color: var(--teal-bright); }
.ld .side-filters .fbtn[aria-pressed="true"] { background: none; color: var(--text); font-weight: 700; }
.ld .side-filters .fbtn[aria-pressed="true"]::before {
  border-color: var(--teal); box-shadow: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101211' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ld .side-filters .fbtn .n { font-weight: 500; }
.ld .product-grid.cols3 { gap: 16px; }
.ld .product-card { border-radius: 10px; }

/* ---------- 4 · Configurador ---------- */
.ld-config { overflow: hidden; padding: 64px 0; border-top: 1px solid var(--ld-borde); border-bottom: 1px solid var(--ld-borde); }
.ld-config-foto {
  position: absolute; top: 0; left: 26%; width: 50%; height: 100%; object-fit: cover; opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
}
.ld-config-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; }
.ld-config h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 12px; }
.ld-config-in > div > p { max-width: 46ch; margin-bottom: 24px; color: rgba(244, 246, 245, 0.8); }
.ld-pasos { list-style: none; display: grid; gap: 18px; padding: 20px; border-radius: 10px; background: rgba(12, 14, 13, 0.72); backdrop-filter: blur(6px); border: 1px solid var(--ld-borde); }
.ld-pasos li { display: flex; gap: 14px; align-items: center; }
.ld-pasos p { font-size: 0.8rem; line-height: 1.4; }
.ld-pasos b { display: block; color: var(--text); font-size: 0.9rem; }

/* ---------- 5 · También puede interesarte ---------- */
.ld-interesa { padding: 56px 0 70px; }
.ld-interesa-in { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.ld .ld-interesa-t { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 6px; }
.ld-interesa-sub { font-size: 0.9rem; margin-bottom: 20px; }
.ld-interesa-lista { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ld-interesa-lista a {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; height: 100%;
  padding: 10px; text-decoration: none; color: var(--text);
  border: 1px solid var(--ld-borde); border-radius: 10px; background: var(--ld-panel);
  transition: border-color 0.2s ease;
}
.ld-interesa-lista a:hover { border-color: rgba(47, 214, 188, 0.55); }
.ld-interesa-lista img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.ld-interesa-lista span:not(.ld-flecha) { display: grid; gap: 3px; font-size: 0.78rem; line-height: 1.4; color: var(--text-dim); }
.ld-interesa-lista b { color: var(--text); font-size: 0.92rem; }
.ld-interesa-lista .ld-flecha { color: var(--teal-bright); }
.ld-40 { padding-left: 28px; border-left: 1px solid var(--ld-borde); }
.ld-40 .ld-40-cifra {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 4.6rem; line-height: 0.85;
  color: transparent !important; -webkit-text-stroke: 1.5px rgba(47, 214, 188, 0.6); margin-bottom: 10px;
}
.ld-40 p { font-size: 0.82rem; line-height: 1.5; margin-bottom: 12px; }
.ld-40 b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- Pantallas más estrechas ---------- */
@media (max-width: 1100px) {
  .ld-confianza ul, .ld-categorias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-interesa-in { grid-template-columns: 1fr; }
  .ld-40 { padding-left: 0; border-left: 0; }
  .ld-interesa-lista { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ld-heroe { min-height: 0; padding: 120px 0 170px; }
  /* la foto a todo el ancho y centrada: con «right center» (pensado para el 66 % derecho
     de escritorio) el recorte vertical del móvil solo enseñaba el borde derecho */
  .ld-heroe-foto { width: 100%; opacity: 0.4; object-position: center; -webkit-mask-image: none; mask-image: none; }
  .ld-nota { left: 28px; right: auto; bottom: 36px; }
  .ld-config-in { grid-template-columns: 1fr; }
  .ld-config-foto { left: 0; width: 100%; opacity: 0.25; }
}
@media (max-width: 540px) {
  /* los cuatro argumentos de confianza y las categorías, en carrusel horizontal
     (como en el home): la tarjeta siguiente asoma por la derecha */
  .ld-confianza ul, .ld-categorias {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ld-confianza ul::-webkit-scrollbar, .ld-categorias::-webkit-scrollbar { display: none; }
  .ld-confianza ul { scroll-padding: 0 28px; }
  .ld-confianza li { flex: 0 0 76%; scroll-snap-align: start; }
  .ld-categorias { margin: 0 -28px 32px; padding: 4px 28px 8px; scroll-padding: 0 28px; }
  .ld-categorias li { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Descargas (Interactivos): de momento solo el espacio */
