/* ── banner.css — Hero Banner Rubber Hose ──────────────────────────────── */

.banner {
  position:        relative;
  overflow:        hidden;
  background:      var(--background);
  border-bottom:   var(--border-width-lg) solid var(--line);
}

/* ── Slide ─────────────────────────────────────────────────────────────── */
.banner__slide {
  display:    none;
  position:   relative;
}

.banner__slide.is-active {
  display: block;
  animation: banner-in var(--dur-slow) var(--ease-out) both;
}

@keyframes banner-in {
  from {
    opacity:   0;
    transform: translateX(16px);
  }
  to {
    opacity:   1;
    transform: translateX(0);
  }
}

/* Layout interior */
.banner__in {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   var(--space-8);
  align-items:           center;
  padding-top:           var(--space-10);
  padding-bottom:        var(--space-10);
}

@media (min-width: 768px) {
  .banner__in {
    grid-template-columns: 1fr 1fr;
    gap:                   var(--space-12);
    min-height:            480px;
  }
}

@media (min-width: 1024px) {
  .banner__in {
    min-height: 560px;
    padding-top:    var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* ── Copy ──────────────────────────────────────────────────────────────── */
.banner__copy {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-5);
  order:          2;
}

@media (min-width: 768px) {
  .banner__copy { order: 1; }
}

/* Kicker — sin etiqueta/eyebrow sobre el título                            */
/* Usamos como contador de slide, visualmente discreto                      */
.banner__kicker {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--space-2);
  font-family:     var(--font-mono);
  font-size:       var(--size-xs);
  color:           var(--muted);
  letter-spacing:  0.08em;
}

.banner__no {
  font-family:    var(--font-mono);
  font-size:      var(--size-xs);
  color:          var(--dim);
}

/* Título hero — el momento visual principal */
.banner__title {
  font-family:  var(--font-display);
  font-size:    var(--size-2xl);
  line-height:  1.05;
  color:        var(--text);
  letter-spacing: -0.01em;
}

.banner__dot {
  color: var(--accent);
}

/* Lede */
.banner__lede {
  font-family:  var(--font-body);
  font-size:    clamp(var(--size-base), 1.5vw + 0.5rem, var(--size-md));
  color:        var(--muted);
  line-height:  1.65;
  max-width:    52ch;
}

/* CTAs */
.banner__cta {
  display:     flex;
  flex-wrap:   wrap;
  gap:         var(--space-3);
  align-items: center;
}

/* ── Imagen/media ──────────────────────────────────────────────────────── */
.banner__media {
  order:          1;
  aspect-ratio:   4 / 5;
  overflow:       hidden;
  border-radius:  var(--radius-lg);
  border:         var(--border-width-xl) solid var(--line);
  box-shadow:     var(--shadow-xl);
  background:     var(--surface-2);
  position:       relative;
}

@media (min-width: 768px) {
  .banner__media { order: 2; }
}

@media (min-width: 1024px) {
  .banner__media {
    box-shadow: 8px 8px 0 var(--line);
  }
}

.banner__media img {
  width:       100%;
  height:      100%;
  object-fit:  cover;
  object-position: center top;
  transition:  transform var(--dur-slow) var(--ease);
}

.banner__media:hover img {
  transform: scale(1.03);
}

/* Pestaña decorativa en la imagen — detalle cartoon */
.banner__media::before {
  content:         '';
  position:        absolute;
  inset:           0;
  border-radius:   inherit;
  background:      linear-gradient(
    to bottom,
    transparent 60%,
    rgba(43, 26, 14, 0.18) 100%
  );
  z-index:         1;
  pointer-events:  none;
}

/* ── Dots de navegación ────────────────────────────────────────────────── */
.banner__dots {
  display:         flex;
  justify-content: center;
  gap:             var(--space-2);
  padding:         var(--space-5);
  border-top:      var(--border-width) solid var(--surface-2);
}

.banner__dot-btn {
  width:            10px;
  height:           10px;
  border-radius:    var(--radius-pill);
  border:           var(--border-width) solid var(--line);
  background:       transparent;
  cursor:           pointer;
  transition:
    background   var(--dur-fast) var(--ease),
    width        var(--dur-base) var(--ease-out);
}

.banner__dot-btn.is-active {
  background: var(--accent);
  width:      28px;
}

.banner__dot-btn:hover:not(.is-active) {
  background: var(--surface-3);
}