/* ============================================
   HERO PRODUCTOS — catálogo editorial
   Horizontal · foto + velo beige · chips
   ============================================ */

.sel-hero {
  position: relative;
  isolation: isolate;
  margin-top: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 1.1rem;
  overflow: visible;
  color: var(--petroleo);
}

.sel-hero::after {
  content: '';
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sec-divisor-altura);
  transform: translateY(50%);
  background: var(--sec-divisor-gradient);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.92;
  pointer-events: none;
}

/* Capa 0 — foto + velo (siempre detrás del contenido) */
.sel-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sel-hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: sepia(0.38) saturate(0.92) brightness(0.97) hue-rotate(6deg) contrast(1.04);
}

.sel-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 78% 88% at 50% 40%,
      rgba(var(--beige-rgb), 0.22) 0%,
      rgba(var(--beige-oscuro-rgb), 0.38) 32%,
      rgba(var(--petroleo-rgb), 0.62) 68%,
      rgba(var(--petroleo-rgb), 0.88) 100%
    );
  pointer-events: none;
}

/* Capa 2 — texto, chips y datos por encima de imagen y velo */
.sel-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

/* Panel editorial — paralelogramo ancho · tramos + cortes en extremos */
.sel-hero__copy {
  --hero-slant: 14%;
  --hero-wing: 9%;
  --hero-cut: 3mm;
  position: relative;
  width: min(100%, 48rem);
  padding: 1rem 8% 1.05rem 6%;
  clip-path: polygon(
    var(--hero-slant) 0,
    100% 0,
    calc(100% - var(--hero-slant)) 100%,
    0 100%
  );
  background: transparent;
}

/* Tres tramos con huecos verticales de 3 mm (se ve la foto) */
.sel-hero__copy-pane {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  gap: var(--hero-cut);
  clip-path: inherit;
  pointer-events: none;
}

.sel-hero__copy-seg {
  display: block;
  min-width: 0;
  background-image:
    linear-gradient(
      148deg,
      rgba(var(--beige-claro-rgb), 0.96) 0%,
      rgba(var(--beige-rgb), 0.94) 42%,
      rgba(var(--beige-oscuro-rgb), 0.91) 100%
    ),
    var(--fondo-beige-imagen);
  background-size: auto, var(--fondo-beige-tamano);
  background-repeat: no-repeat, repeat;
}

.sel-hero__copy-seg--ala {
  flex: 0 0 var(--hero-wing);
}

.sel-hero__copy-seg--centro {
  flex: 1 1 auto;
}

/* Extremos: 3 mm hueco + 3 mm franja en color, paralelo al borde oblicuo */
.sel-hero__copy-seg--izq {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    transparent var(--hero-cut),
    #000 var(--hero-cut),
    #000 calc(var(--hero-cut) * 2),
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    transparent var(--hero-cut),
    #000 var(--hero-cut),
    #000 calc(var(--hero-cut) * 2),
    #000 100%
  );
}

.sel-hero__copy-seg--der {
  -webkit-mask-image: linear-gradient(
    to left,
    transparent 0,
    transparent var(--hero-cut),
    #000 var(--hero-cut),
    #000 calc(var(--hero-cut) * 2),
    #000 100%
  );
  mask-image: linear-gradient(
    to left,
    transparent 0,
    transparent var(--hero-cut),
    #000 var(--hero-cut),
    #000 calc(var(--hero-cut) * 2),
    #000 100%
  );
}

.sel-hero__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
  margin: 0 0 0.4rem;
}

.sel-hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--petroleo);
  margin: 0;
  max-width: 22ch;
  margin-inline: auto;
}

.sel-hero__title-line {
  display: block;
  font-weight: 400;
  color: var(--dorado);
  margin-top: 0.15rem;
}

.sel-hero__text {
  position: relative;
  z-index: 1;
  max-width: 48ch;
  margin: 0.55rem auto 0;
}

.sel-hero__text p {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2.6vw, 1.02rem);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: 0.01em;
  color: var(--petroleo);
  margin: 0;
}

.sel-hero__text p + p {
  margin-top: 0.35rem;
  color: rgba(var(--petroleo-rgb), 0.72);
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
}

/* --- Navegación por categorías (chips) --- */

.sel-hero__nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  width: min(100%, 22rem);
  margin-top: 0.15rem;
  padding: 0;
}

.sel-hero__chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  color: var(--beige-claro);
  background: var(--petroleo);
  border: 1px solid rgba(var(--dorado-rgb), 0.55);
  border-radius: 2px;
  box-shadow:
    0 2px 12px rgba(var(--petroleo-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.sel-hero__chip:hover,
.sel-hero__chip:focus-visible {
  background: #1a3f4c;
  border-color: var(--dorado);
  color: var(--dorado);
  transform: translateY(-1px);
  box-shadow:
    0 4px 16px rgba(var(--petroleo-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sel-hero__chip:focus-visible {
  outline: 1px solid var(--dorado);
  outline-offset: 2px;
}

/* --- Banda de datos --- */

.sel-hero__datos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0.4rem 0.65rem;
  width: min(100%, 52rem);
  background: linear-gradient(
    180deg,
    rgba(var(--beige-claro-rgb), 0.88) 0%,
    rgba(var(--beige-rgb), 0.82) 100%
  );
  border: 1px solid rgba(var(--dorado-rgb), 0.18);
  box-shadow: 0 4px 18px rgba(var(--petroleo-rgb), 0.08);
}

.sel-hero__dato {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: rgba(var(--petroleo-rgb), 0.78);
  padding: 0 0.65rem;
  border-right: 1px solid rgba(var(--dorado-rgb), 0.28);
}

.sel-hero__dato:last-child {
  border-right: none;
}

/* --- Desktop --- */

@media (min-width: 768px) {
  .sel-hero {
    /* Evita forzar 500px en landscape de tablet/móvil ancho */
    min-height: clamp(22rem, 58dvh, 500px);
    max-height: none;
    padding: 2rem 2rem 1.35rem;
  }

  .sel-hero__inner {
    gap: 0.85rem;
  }

  .sel-hero__copy {
    --hero-slant: 15%;
    --hero-wing: 11%;
    width: min(100%, 62rem);
    padding: 1.2rem 9% 1.25rem 7%;
  }

  .sel-hero__title {
    max-width: none;
  }

  .sel-hero__text {
    max-width: 52ch;
  }

  .sel-hero__text p {
    font-size: 1.02rem;
  }

  .sel-hero__text p + p {
    font-size: 0.98rem;
  }

  .sel-hero__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    max-width: min(100%, 56rem);
    margin-top: 0.25rem;
  }

  .sel-hero__chip {
    min-height: 2.25rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .sel-hero__dato {
    font-size: 0.62rem;
    padding: 0 1rem;
  }
}

/* Tablet vertical con altura suficiente: conservar proporción editorial aprobada */
@media (min-width: 768px) and (min-height: 720px) {
  .sel-hero {
    min-height: 500px;
    max-height: 550px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .sel-hero {
    min-height: 0;
    max-height: none;
    padding: 0.7rem 1rem 0.75rem;
  }

  .sel-hero__inner {
    gap: 0.45rem;
  }

  .sel-hero__copy {
    padding: 0.75rem 6% 0.8rem;
  }

  .sel-hero__nav {
    width: min(100%, 40rem);
  }

  .sel-hero__chip {
    min-height: 1.85rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.56rem;
  }
}

@media (max-width: 767px) {
  .sel-hero {
    padding-bottom: calc(1.1rem + var(--acciones-h));
  }

  /* En columna estrecha las líneas ocupan todo el ancho y cruzaban los cortes de
     3 mm entre tramos: se suaviza el sesgo y el texto queda dentro del tramo central */
  .sel-hero__copy {
    --hero-slant: 7%;
    --hero-wing: 7%;
    padding-inline: calc(var(--hero-wing) + var(--hero-cut) + 0.6rem);
  }
}

@media (max-width: 767px) {
  .sel-hero__datos {
    flex-direction: column;
    gap: 0;
    margin-top: 0.35rem;
  }

  .sel-hero__dato {
    border-right: none;
    padding: 0.28rem 0;
  }

  .sel-hero__dato + .sel-hero__dato {
    border-top: 1px solid rgba(var(--petroleo-rgb), 0.14);
    padding-top: 0.45rem;
    margin-top: 0.15rem;
  }
}
