/* ═══════════════ HERO LINEAS ═══════════════ */
.lineas-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 550px;
  background-color: #111111;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lineas-hero__inner {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.lineas-hero__img-wrap {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  z-index: 1;

  /* Fade del borde izquierdo de la imagen a transparente */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.3) 8%,
    rgba(0,0,0,0.7) 18%,
    black 30%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.3) 8%,
    rgba(0,0,0,0.7) 18%,
    black 30%
  );
}

.lineas-hero__img {
  height: 100%;
  width: auto;
  display: block;
}

.lineas-hero__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  z-index: 2;
}

.lineas-hero__content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0;
  padding: 0 40px 0 100px; /* Un poco más de margen para que el texto no sature el borde */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
}

.lineas-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  animation: lFadeInDown 1s ease-out 0.8s both;
}

.lineas-hero__title .accent-orange {
  color: #EB690B;
}

.lineas-hero__desc {
  font-size: 1.15rem;
  color: #ddd;
  max-width: 450px;
  line-height: 1.5;
  margin: 0;
  animation: lFadeInUp 1s ease-out 1.6s both;
}

.lineas-hero__btn {
  display: inline-block;
  padding: 16px 36px;
  background: #EB690B;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 12px;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
  animation: lZoomIn 1s ease-out 2.4s both;
}

.lineas-hero__btn:hover {
  background: #EB690B;
  transform: translateY(-3px);
}

/* ═══════════════ FILTROS ═══════════════ */
.nuestras-lineas-header {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

#lineas-container {
  padding-bottom: 40px;
  min-height: 450px; /* Previene el CLS severo mientras carga JS */
}

.lineas-row-wrapper {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 50px;
  padding: 0 60px;
}

.lineas-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.lineas-slider-track {
  display: flex;
  gap: 30px;
  transform: translateX(0);
  will-change: transform;
}

.lineas-slide-item {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 260px;
}

.lineas-row-prev {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.lineas-row-next {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.lineas-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eb690b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.lineas-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.lineas-filter {
  padding: 10px 24px;
  background: #f1f1f1;
  color: #444;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.lineas-filter:hover {
  background: #e2e2e2;
}

.lineas-filter.active {
  background: #EB690B;
  color: #fff;
}

.catalogo-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.catalogo-intro {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.catalogo-wrap--flush {
  padding: 0 0 40px;
  background: transparent;
}

.catalogo-inner--flush {
  padding: 0;
  max-width: 100%;
}

/* ═══════════════ BÚSQUEDA INTEGRADA ═══════════════ */
.lp-integrated-search {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

.lp-integrated-search .search-input-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.lp-integrated-search .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
}

.lp-integrated-search .search-input-wrap input {
  width: 100%;
  padding: 16px 20px 16px 55px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 12px;
  color: #333;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.lp-integrated-search .search-input-wrap input:focus {
  border-color: #EB690B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.lp-integrated-search .search-results-info {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.lp-integrated-search .search-count-num {
  color: #EB690B; /* Oscurecido para cumplir WCAG AA (5.2:1 sobre blanco) */
  font-weight: 800;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
  .lineas-hero {
    height: auto;
    padding: 80px 0;
  }

  .lineas-hero__img-wrap::after {
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 100%);
  }

  .lineas-hero__content {
    padding: 0 24px;
    align-items: center;
    text-align: center;
  }

  .lineas-hero__desc {
    max-width: 100%;
  }
}

/* ═══════════════ NATIVE KEYFRAMES HERO LINEAS ═══════════════ */
@keyframes lFadeInDown {
  0%   { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes lFadeInUp {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes lZoomIn {
  0%   { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* ═══════════════ BOTONES NAVEGACIÓN CARRUSEL ═══════════════ */
.btn-nav-carrusel {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border: 2px solid #EB690B;
  color: #EB690B;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 0;
}

.btn-nav-carrusel i {
  font-size: 1.2rem;
  line-height: 1;
}

.btn-nav-carrusel:hover {
  background-color: #EB690B;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}

@media (max-width: 768px) {
  .lineas-row-wrapper {
    padding: 0 44px;
  }
  .lineas-slide-item {
    flex-basis: calc(100% - 0px);
    min-width: 220px;
  }
  .btn-nav-carrusel {
    width: 34px;
    height: 34px;
  }
  .btn-nav-carrusel i {
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .lineas-slide-item {
    flex-basis: calc(50% - 15px);
  }
}

/* Bloque combinado: linea + productos asociados */
.linea-plus-products {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.linea-main-card {
  height: 100%;
}

.linea-plus-products__linea .c-card {
  height: 100%;
}

.linea-plus-products__productos {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  align-content: start;
}

.linea-products-side {
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 14px;
}

.linea-products-side__title {
  margin: 2px 0 12px;
  color: #222;
  font-size: 0.95rem;
  font-weight: 800;
}

.linea-products-side__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 10px;
}

.linea-prod-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 8px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.linea-prod-mini:hover {
  border-color: #eb690b;
  transform: translateY(-1px);
}

.linea-prod-mini__img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.linea-prod-mini__title {
  color: #222;
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 700;
}

.linea-products-side__empty {
  margin: 0;
  color: #777;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .linea-plus-products {
    grid-template-columns: 1fr;
  }
  .linea-plus-products__productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .linea-products-side__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .linea-plus-products__productos {
    grid-template-columns: 1fr;
  }
}
