/* ==========================================================================
   INTACTO — hero.css
   Sección 1: Hero
   ========================================================================== */

.hero {
  background-color: var(--crema);
}

.hero__media {
  width: 100%;
}

.hero__gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero__gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(181, 118, 58, 0.22);
  overflow: hidden;
  touch-action: pan-y;
}

.hero__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.28s ease;
}

.hero__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 12px;
}

.hero__gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.hero__gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--cobre);
}

.hero__gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__content {
  padding: 40px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.01em;
  color: var(--carbon);
}

.hero__headline .highlight {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.05em;
}

.hero__subhead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--carbon-suave);
  margin-top: 16px;
  max-width: 32ch;
}

.hero__subhead strong {
  font-weight: 700;
  color: inherit;
}

/* Beneficios rápidos */

.hero__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.hero__benefit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__benefit-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--cobre);
}

.hero__benefit span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--carbon);
}

/* Prueba social */

.hero__trustbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  cursor: pointer;
}

.hero__stars {
  color: var(--cobre);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.hero__trustbar-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--carbon);
}

.hero__trustbar:hover .hero__trustbar-text {
  text-decoration: underline;
  text-decoration-color: var(--cobre);
}

/* Tarjeta de compra */

.hero__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--carbon);
  border: 1px solid rgba(140, 90, 40, 0.35);
  border-radius: 10px;
  padding: 24px 20px 20px;
  margin-top: 22px;
  box-shadow: 0 16px 32px rgba(181, 118, 58, 0.22);
  overflow: hidden;
}

.hero__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--cobre);
}

.hero__cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--cobre), var(--cobre-oscuro));
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 0 8px 18px rgba(140, 90, 40, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(140, 90, 40, 0.45);
}

.hero__cta-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--blanco-calido);
}

.hero__cta-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero__cta-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--blanco-calido);
}

.hero__cta-old {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--carbon-suave);
  text-decoration: line-through;
}

.hero__shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--crema);
}

.hero__shipping-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--cobre);
}

.hero__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--crema);
}

.hero__stock-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--cobre);
}

.hero__stock-count {
  color: var(--cobre);
  font-weight: 700;
}

.hero__payment-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero__payment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background-color: var(--blanco-calido);
  border: 1px solid rgba(140, 90, 40, 0.3);
  border-radius: 4px;
  padding: 0 8px;
  box-sizing: border-box;
}

.hero__payment-logo {
  height: 16px;
  width: auto;
  display: block;
}

.hero__payment-chip--text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cobre-oscuro);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero {
    display: flex;
    min-height: 100vh;
  }

  .hero__media {
    width: 55vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
  }

  .hero__gallery {
    height: 100%;
  }

  .hero__gallery-main {
    flex: 1;
    aspect-ratio: auto;
  }

  .hero__gallery-thumbs {
    padding-top: 16px;
  }

  .hero__content {
    flex: 1;
    justify-content: center;
    padding: 40px 64px;
  }

  .hero__subhead {
    font-size: 1.125rem;
  }

  .hero__benefits {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 28px;
  }

  .hero__card {
    padding: 28px 24px 24px;
  }

  .hero__cta-price {
    font-size: 2.1rem;
  }

  .hero__payment-chip {
    height: 34px;
    padding: 0 10px;
  }

  .hero__payment-logo {
    height: 18px;
  }

  .hero__payment-chip--text {
    font-size: 0.6rem;
  }
}
