.lp-hero {
  position: relative;
  background: radial-gradient(circle at 80% 50%, #ff7700 0%, #ff5700 100%);
  color: #fff;
  overflow: hidden;
  height: 430px;
  margin-top: -80px;
}

.lp-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 1;
}

.lp-hero__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.lp-hero__content {
  position: relative;
  z-index: 2;
  width: 50%;
  padding-right: 40px;
  animation: fadeInLeft 0.8s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.lp-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.lp-hero__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 550px;
}

.lp-hero__img-col {
  position: relative;
  width: 50vw;
  margin-right: calc(50% - 50vw);
  flex-shrink: 0;
  z-index: 1;
  animation: fadeInRight 1s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100%;
}

.lp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ═══════════════ BÚSQUEDA INTEGRADA ═══════════════ */
.lp-integrated-search {
  max-width: 700px;
  margin: 0 auto 50px;
  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: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  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: #ff5700;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 87, 0, 0.2);
}

.lp-integrated-search .search-results-info {
  font-size: 0.95rem;
  color: #bbb;
  font-weight: 500;
}

.lp-integrated-search .search-count-num {
  color: #ff5700;
  font-weight: 800;
}

/* ═══════════════ PRODUCTOS ═══════════════ */
.lp-productos {
  padding: 40px 0 80px;
  background: #000000;
}

.lp-productos .section-title,
.lp-relacionados .section-title {
  color: #ffffff;
}

.lp-productos .lp-integrated-search .search-results-info {
  color: #ffffff;
}

.lp-relacionados {
  padding: 70px 0 80px;
}

.lp-relacionados--light {
  background: #000000;
}

.lp-relacionados--dark {
  background: #000000;
}

/* ═══════════════ SLIDERS RELACIONADOS ═══════════════ */
.rel-carousel {
  margin-top: 36px;
  width: 100%;
}

.rel-viewport {
  overflow: hidden;
  width: 100%;
}

.rel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}

.rel-card {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1000px) {
  .rel-card {
    flex: 0 0 calc(100% / 2);
  }
}

@media (max-width: 600px) {
  .rel-card {
    flex: 0 0 100%;
  }
}

/* ═══════════════ MODAL COTIZACIÓN – LIMPIEZA ═══════════════ */
.lp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lp-modal.active {
  opacity: 1;
  visibility: visible;
}

.lp-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.lp-modal__content {
  position: relative;
  background: #FFFFFF;
  /* Auto-ajuste: nunca más grande que el viewport, con scroll interno */
  width: min(1000px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 32px);
  border-radius: clamp(8px, 1.5vw, 12px);
  overflow-y: auto;
  overflow-x: hidden;
  /* El contenido interno (carrusel) nunca puede ensanchar el modal */
  min-width: 0;

  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  transform: translateY(30px);
  transition: transform 0.4s ease;
  z-index: 1;
}

.lp-modal.active .lp-modal__content {
  transform: translateY(0);
}

.lp-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #EB690B;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
}

/* ═══════════════ TÍTULO SUPERIOR - HEADER BLANCO LIMPIO ═══════════════ */
.lp-modal .section-title {
  background: #FFFFFF;
  color: #000000;
  margin: 0;
  padding: 15px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.lp-modal .section-title::after {
  bottom: 0;

  height: 2px;
  width: 40px;
}

.lp-modal .cotizacion {
  padding: 0;
  background: #FFFFFF;

}

.lp-modal .cotizacion__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;

}

/* ═══════════════ SIDEBAR NEGRO MÁS COMPACTO ═══════════════ */
.lp-modal .cotizacion__promo {
  flex: 0 0 46%;
  background: #000000;
  color: #fff;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* El carrusel nunca ensancha la columna ni el modal */
  min-width: 0;
  max-width: 100%;
}

.lp-modal .cotizacion__form-wrap {
  min-width: 0;
}

.lp-modal .cotizacion__promo-titulo {
  color: #fff;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lp-modal .cotizacion__promo-accent {
  color: #EB690B;
}

.lp-modal .cotizacion__promo-desc {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ═══════════════ COLUMNA FORMULARIO MÁS COMPACTA ═══════════════ */
.lp-modal .cotizacion__form-wrap {
  flex: 1;
  min-width: 0;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3.5vw, 40px);
  background: #fff;
}

.lp-modal .cotizacion__field {
  margin-bottom: 10px;
}

.lp-modal .cotizacion__field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
}

.lp-modal .cotizacion__field input,
.lp-modal .cotizacion__field textarea {
  padding: 4px 0;
  font-size: 0.88rem;
}

.lp-modal .cotizacion__input-wrap input,
.lp-modal .cotizacion__input-wrap textarea {
  padding-right: 32px;
}

/* Carrusel compacto dentro del modal: caben 3 productos visibles.
   Columna 46% de 1000px − padding 60px − flechas 76px = 324px → 3×100 + 2×12. */
.lp-modal .fc-selected__item {
  flex-basis: 100px;
}

.lp-modal .fc-selected__img {
  height: 68px;
}

.lp-modal .fc-selected__name {
  font-size: 0.68rem;
}

.lp-modal .cotizacion__btn {
  background: #EB690B;
  color: #fff;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
  margin-top: 10px;
  font-size: 0.9rem;
}

.c-card__body {
  background-color: #ffffff;
}

@media (max-width: 800px) {
  .lp-modal .cotizacion__inner {
    flex-direction: column;
  }

  .lp-modal .cotizacion__promo {
    flex: 0 0 auto;
    padding: 24px 20px;
  }

  .lp-modal .cotizacion__form-wrap {
    padding: 20px;
  }
}

/* Pantallas de poca altura: modal compacto */
@media (max-height: 800px) {
  .lp-modal .cotizacion__promo {
    padding: 20px;
  }

  .lp-modal .cotizacion__form-wrap {
    padding: 18px 20px;
  }

  .lp-modal .cotizacion__promo-titulo {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .lp-modal .cotizacion__field {
    margin-bottom: 6px;
  }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .lp-hero {
    padding: 0;
    display: block;
    height: auto;
    min-height: 430px;
  }
}

@media (max-width: 768px) {
  .lp-hero {
    margin-top: -60px;
  }
}

@media (max-width: 900px) {
  .lp-hero__inner {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
  }

  .lp-hero__img-col {
    position: relative;
    width: 100vw;
    height: 200px;
    margin-right: 0;
    margin-left: 0;
    order: 1;
  }

  .lp-hero__img {
    object-position: center;
  }

  .lp-hero__content {
    width: 100%;
    height: auto;
    min-height: 230px;
    padding: 20px 24px;
    text-align: center;
    order: 2;
    z-index: 2;
    justify-content: center;
  }
}

.error-page {
  min-height: calc(100vh - 260px);
  padding: 120px 20px 80px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-card {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-card__title {
  color: #111;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 28px;
}

.error-card__btn {
  border: 0;
  border-radius: 6px;
  background: #eb690b;
  color: #fff;
  font-weight: 800;
  padding: 13px 22px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.error-card__btn:hover {
  background: #d95f09;
  transform: translateY(-1px);
}

.lp-product-card {
  cursor: pointer;
}

.lp-product-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.lp-product-check-icon {
  color: #aaa;
}

.lp-empty-state {
  color: #999;
  text-align: center;
  grid-column: 1 / -1;
}

.lp-related-section {
  background: #000;
  padding-top: 0;
  overflow: hidden;
}

.lp-related-container {
  position: relative;
}

.lp-related-link {
  text-decoration: none;
}

.rl-slider-container {
  width: 100%;
  margin-top: 40px;
}

.rl-slider-container.is-slider {
  overflow: hidden;
  padding: 10px 0;
}

.rl-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 30px;
}

.rl-slider-track.c-grid {
  display: grid;
}

.rl-slide-item {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 320px;
}

@media (max-width: 1100px) {
  .rl-slide-item {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 700px) {
  .rl-slide-item {
    flex: 0 0 100%;
    min-width: 0;
  }
  .rl-slider-track {
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .error-page {
    padding-top: 96px;
  }

  .error-card {
    aspect-ratio: auto;
    min-height: 320px;
  }
}
