/* ==========================================================
   Elegant Bikes Showcase — estilos de portada
   ========================================================== */
.eb-home {
  --eb-accent: #b8864b;
  --eb-dark: #16181d;
  --eb-ink: #2a2c31;
  --eb-muted: #7b7d83;
  --eb-paper: #f6f3ee;
  --eb-line: rgba(22, 24, 29, .12);
  --eb-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --eb-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --eb-ease: cubic-bezier(.22, .61, .36, 1);
  font-family: var(--eb-sans);
  color: var(--eb-ink);
  -webkit-font-smoothing: antialiased;
}
.eb-home *, .eb-home *::before, .eb-home *::after { box-sizing: border-box; }
.eb-home img { display: block; max-width: 100%; }

/* Ocupar el ancho completo aunque el tema meta el hook en un .container */
#index #wrapper { overflow-x: hidden; }
.eb-fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- Tipografía común ---------- */
.eb-eyebrow {
  display: inline-block;
  font: 600 .72rem/1 var(--eb-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--eb-accent);
  margin-bottom: 1.1rem;
}
.eb-title {
  font-family: var(--eb-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--eb-dark);
  margin: 0;
  text-transform: none;
}
.eb-head { text-align: center; margin-bottom: 2.8rem; }
.eb-head .eb-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--eb-accent);
  margin: 1.4rem auto 0;
}
.eb-section { padding: 5.5rem 0 1rem; }

/* ---------- Botones ---------- */
.eb-btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.9rem;
  font: 600 .78rem/1 var(--eb-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #fff !important;
  background: var(--eb-dark);
  border: 1px solid var(--eb-dark);
  transition: background .35s var(--eb-ease), color .35s var(--eb-ease), border-color .35s var(--eb-ease);
}
.eb-btn:hover { background: var(--eb-accent); border-color: var(--eb-accent); }
.eb-btn__arrow { transition: transform .35s var(--eb-ease); }
.eb-btn:hover .eb-btn__arrow { transform: translateX(5px); }
.eb-btn--light { background: transparent; border-color: rgba(255, 255, 255, .75); }
.eb-btn--light:hover { background: #fff; color: var(--eb-dark) !important; border-color: #fff; }

/* ---------- Slider ---------- */
.eb-hero {
  position: relative;
  height: min(88vh, 820px);
  min-height: 460px;
  overflow: hidden;
  background: var(--eb-dark);
  margin-top: -1px;
}
.eb-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--eb-ease), visibility 0s linear 1.2s;
}
.eb-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--eb-ease); z-index: 1; }
.eb-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s linear;
}
.eb-hero__slide.is-active .eb-hero__img { transform: scale(1); }
.eb-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 14, .72) 0%, rgba(10, 11, 14, .35) 45%, rgba(10, 11, 14, 0) 75%),
    linear-gradient(0deg, rgba(10, 11, 14, .45) 0%, rgba(10, 11, 14, 0) 35%);
}
.eb-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}
.eb-hero__content > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--eb-ease), transform .9s var(--eb-ease);
}
.eb-hero__slide.is-active .eb-hero__content > * { opacity: 1; transform: none; }
.eb-hero__slide.is-active .eb-hero__content > :nth-child(2) { transition-delay: .15s; }
.eb-hero__slide.is-active .eb-hero__content > :nth-child(3) { transition-delay: .3s; }
.eb-hero__slide.is-active .eb-hero__content > :nth-child(4) { transition-delay: .45s; }
.eb-hero__title {
  font-family: var(--eb-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.015em;
  max-width: 13ch;
  margin: 0 0 1.4rem;
  color: #fff;
  text-transform: none;
}
.eb-hero__text {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  max-width: 44ch;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 2.4rem;
}
.eb-hero__nav {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.eb-hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.eb-hero__arrow:hover { background: #fff; color: var(--eb-dark); }
.eb-hero__dots { display: flex; gap: .6rem; }
.eb-hero__dot {
  width: 28px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: width .4s var(--eb-ease), background .4s;
}
.eb-hero__dot.is-active { width: 56px; background: var(--eb-accent); }

/* ---------- Ventajas ---------- */
.eb-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--eb-line);
}
.eb-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.4rem;
}
.eb-feature + .eb-feature { border-left: 1px solid var(--eb-line); }
.eb-feature svg {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--eb-accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eb-feature strong { display: block; font-weight: 600; font-size: .92rem; color: var(--eb-dark); margin-bottom: .2rem; }
.eb-feature span { display: block; font-size: .82rem; color: var(--eb-muted); line-height: 1.45; }

/* ---------- Categorías ---------- */
.eb-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.eb-cat {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--eb-paper);
  text-decoration: none !important;
}
.eb-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--eb-ease);
}
.eb-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 11, 14, .7) 0%, rgba(10, 11, 14, 0) 55%);
  transition: opacity .6s;
}
.eb-cat:hover img { transform: scale(1.06); }
.eb-cat__body {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  color: #fff;
}
.eb-cat__sub { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-bottom: .5rem; }
.eb-cat__title { display: block; font-family: var(--eb-serif); font-size: 2.3rem; line-height: 1; font-weight: 500; }
.eb-cat__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--eb-accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--eb-ease), transform .5s var(--eb-ease);
}
.eb-cat:hover .eb-cat__cta { opacity: 1; transform: none; }

/* ---------- Banner editorial ---------- */
.eb-banner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  margin-top: 5.5rem;
  background: var(--eb-paper);
}
.eb-banner--reverse .eb-banner__media { order: 2; }
.eb-banner__media { position: relative; min-height: 460px; overflow: hidden; }
.eb-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eb-banner__content {
  padding: clamp(2.5rem, 6vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eb-banner__text { white-space: pre-line; font-size: 1rem; line-height: 1.85; color: var(--eb-muted); margin: 1.6rem 0 2.2rem; max-width: 46ch; }

/* ---------- Galería ---------- */
.eb-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  padding-bottom: 4rem;
}
.eb-gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--eb-paper);
}
.eb-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--eb-ease), filter 1s; filter: saturate(.9); }
.eb-gallery__item:hover img { transform: scale(1.05); filter: saturate(1.05); }
.eb-gallery__cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--eb-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s, transform .5s;
}
.eb-gallery__item:hover .eb-gallery__cap { opacity: 1; transform: none; }

/* ---------- Animación al hacer scroll ---------- */
.eb-reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--eb-ease), transform 1s var(--eb-ease); }
.eb-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) and (max-width: 991px) {
  .eb-hero { height: min(62vh, 560px); min-height: 420px; }
  .eb-hero__img { object-position: 68% 50%; }
}
@media (max-width: 991px) {
  .eb-features { grid-template-columns: repeat(2, 1fr); }
  .eb-feature:nth-child(3) { border-left: 0; }
  .eb-feature:nth-child(n+3) { border-top: 1px solid var(--eb-line); }
  .eb-banner { grid-template-columns: 1fr; }
  .eb-banner--reverse .eb-banner__media { order: 0; }
  .eb-banner__media { min-height: 320px; }
  .eb-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .eb-section { padding-top: 3.5rem; }

  /* Slider en móvil: foto arriba (sin recortes raros) y texto debajo */
  .eb-hero { height: auto; min-height: 0; }
  .eb-hero__slide { position: absolute; top: 0; left: 0; right: 0; bottom: auto; }
  .eb-hero__slide.is-active { position: relative; }
  .eb-hero__img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 65% 50%;
  }
  .eb-hero__shade {
    bottom: auto;
    height: 0;
    padding-bottom: 75%;
    background: linear-gradient(0deg, rgba(22, 24, 29, .55) 0%, rgba(22, 24, 29, 0) 45%);
  }
  .eb-hero__content {
    height: auto;
    min-height: 15.5rem;
    justify-content: flex-start;
    padding: 1.6rem 1.25rem 4.6rem;
    background: var(--eb-dark);
  }
  .eb-hero__title { font-size: clamp(2.1rem, 9vw, 2.8rem); margin-bottom: .9rem; max-width: none; }
  .eb-hero__text { font-size: .95rem; line-height: 1.6; margin-bottom: 1.5rem; }
  .eb-hero__nav { bottom: 1.6rem; left: 1.25rem; transform: none; }
  .eb-hero__arrow { display: none; }
  .eb-cats { grid-template-columns: 1fr; gap: 1rem; }
  .eb-cat { aspect-ratio: 4 / 3; }
  .eb-cat__cta { opacity: 1; transform: none; }
  .eb-features { grid-template-columns: 1fr; }
  .eb-feature + .eb-feature { border-left: 0; border-top: 1px solid var(--eb-line); }
  .eb-feature { padding: 1.2rem .5rem; }
  .eb-banner { margin-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .eb-home *, .eb-home *::before, .eb-home *::after { transition-duration: .01ms !important; }
  .eb-reveal { opacity: 1; transform: none; }
}
