/* =========================
   RESET / LAYOUT
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #000 !important;
  color: #fff;
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.body-dark {
  background: #000;
  color: #fff;
}

main {
  flex: 1 0 auto;
  width: 100vw;
  min-height: 0;
}

/* Visibilidad desktop / mobile */
.desktop-only { display: block; }
.mobile-only  { display: none !important; }

/* =========================
   SCROLLBAR
   ========================= */
::-webkit-scrollbar { width: 8px; background: #181818; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff1616 50%, #b10000 100%);
  border-radius: 10px;
  border: 2px solid #181818;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #d10000 70%, #ff1616 100%);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #ff1616 #181818;
}

/* =========================
   STICKY CTA
   ========================= */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.55) 20%,
    rgba(0,0,0,.85) 100%
  );
  z-index: 99999;
  display: none;
}

body.has-sticky-padding {
  padding-bottom: var(--sticky-cta-h, 82px);
}

/* =========================
   ANIMACIONES GENERALES
   ========================= */
@keyframes pageReveal {
  from { opacity: 0; filter: blur(10px); transform: translateY(-16px); }
  60%  { opacity: .92; filter: blur(3px); transform: translateY(-3px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}

.reveal-ready .contenido-principal,
.reveal-ready header,
.reveal-ready .redix-header {
  animation: pageReveal .7s cubic-bezier(.24,1.18,.44,1) both;
}

/* Animación bloque de contenido del slide */
@keyframes heroSlideContentIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -24px);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, 2px);
    filter: blur(1.5px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
    filter: blur(0);
  }
}

/* Respeto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .contenido-principal,
  .reveal-ready header,
  .reveal-ready .redix-header,
  .hero-slide,
  .btn-ver-catalogos,
  .hero-slide-content {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================
   BLUR-UP
   ========================= */
.blur-up {
  filter: blur(14px) saturate(1.05);
  transform: scale(1.02);
  transition: filter .6s ease, transform .6s ease;
  will-change: filter, transform;
}
.blur-up.is-loaded {
  filter: blur(0);
  transform: none;
}

/* =========================
   HERO SLIDER (desktop base)
   ========================= */
.hero-slider {
  width: 100vw;
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-slider-desktop {
  height: 100vh;
  min-height: 560px;
  max-height: 980px;
}

.hero-slider-track {
  position: absolute;
  inset: 0;
}

/* Cada slide */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .7s ease;
  will-change: opacity;
  overflow: hidden;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Imagen del slide */
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 4s ease-out;
}
.hero-slide.is-active .hero-slide-img {
  transform: scale(1.03);
}

/* Sombra inferior */
.hero-slide::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.97) 0%,
    rgba(0,0,0,0.90) 24%,
    rgba(0,0,0,0.65) 55%,
    rgba(0,0,0,0.0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Contenido del slide */
.hero-slide-content {
  position: absolute;
  left: 50%;
  bottom: 11vh;
  transform: translate(-50%, 0);
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 6vw;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Animación en el slide activo */
.hero-slide.is-active .hero-slide-content {
  animation: heroSlideContentIn .75s cubic-bezier(.24,1.18,.44,1) .03s both;
}

/* Título y descripción (base escritorio) */
.hero-slide-title {
  width: 100%;
  text-align: center;
  font-size: clamp(1.4rem, 1.9vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.22;
}

.hero-slide-desc {
  width: 100%;
  text-align: center;
  font-size: clamp(0.78rem, 0.88vw, 0.94rem);
  font-weight: 400;
  color: #f5f5f5;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Botón dentro del slider */
.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
}
.hero-slide-btn:hover {
  background: rgba(0,0,0,0.9);
  border-color: #ffffff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.65);
  transform: translateY(-1px);
}

/* Dots del slider */
.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hero-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.35);
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: transform .22s ease, background .22s ease, opacity .22s ease;
}
.hero-slider-dot.is-active {
  width: 9px;
  height: 9px;
  background: #ffffff;
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.45);
}

/* =========================
   BLOQUE DESTACADO (DESKTOP)
   ========================= */
.landing-section {
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 3vw;
  margin-top: 2.6vw;
  margin-bottom: 4vw;
  min-height: 185px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}
.landing-flex {
  width: 92vw;
  max-width: 1400px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
}
.landing-titulos {
  flex: 6 1 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.landing-titulo {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: left;
  margin-bottom: 18px;
  width: 100%;
  max-width: 96vw;
  line-height: 1.08;
}
.landing-sub {
  font-size: 1.13rem;
  font-weight: 400;
  color: #ededed;
  text-align: left;
  line-height: 1.34;
  margin-bottom: 0;
  max-width: 900px;
}
.landing-linea-boton {
  flex: 2 1 360px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  min-width: 220px;
}
.landing-linea {
  flex: 1 1 40px;
  height: 1.8px;
  background: #fff;
  border-radius: 2px;
  opacity: 0.14;
  margin-right: 10px;
  min-width: 80px;
  max-width: 180px;
}

/* =========================
   BOTONES / BASE NEGRA
   ========================= */
.btn-stack {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.btn-stack--block {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.btn-base {
  position: absolute;
  inset: -10px;
  border-radius: 40px;
  background: #000;
  z-index: 0;
  transform: translateY(4px);
  box-shadow:
    0 16px 32px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.btn-ver-catalogos {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: linear-gradient(90deg, #ff1616 50%, #b10000 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 15px 38px;
  border-radius: 32px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  transition: transform .17s ease, box-shadow .2s ease;
  border: none;
  outline: none;
  text-align: center;
  margin-left: 0;
  overflow: hidden;
  animation: mobile-wa-pulse 1.8s infinite;
}
.btn-ver-catalogos::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -60%;
  width: 80%;
  height: 250%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 65%,
    rgba(255,255,255,0.17) 72%,
    rgba(255,255,255,0.33) 76%,
    rgba(255,255,255,0.12) 81%,
    rgba(255,255,255,0) 95%
  );
  pointer-events: none;
  opacity: 0;
  transform: skewX(-22deg);
  animation: sheen-move 3s linear infinite;
}
@keyframes sheen-move {
  0% { left: -60%; opacity: 0; }
  8% { opacity: .85; }
  25% { opacity: .45; }
  60% { opacity: .24; }
  85% { opacity: .07; }
  93% { left: 120%; opacity: 0; }
  100% { left: 130%; opacity: 0; }
}
@keyframes mobile-wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,22,22, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255,22,22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255,22,22, 0); }
}
.btn-ver-catalogos:hover {
  background: linear-gradient(90deg, #d10000 60%, #ff1616 100%);
  color: #fff;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}

/* =========================
   FOOTER
   ========================= */
footer {
  width: 100vw;
  background: #111;
  padding: 40px 0 30px 0;
  color: #fff;
  text-align: center;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1.5px solid #222;
  flex-shrink: 0;
}

/* Topbar header texto */
.redix-header .redix-header-topbar .left-info span {
  font-size: 0.78rem;
  font-weight: 500;
  max-width: 60%;
  display: block;
  text-align: center;
  margin: 0 auto;
}

/* =========================
   DESKTOP GRANDES
   ========================= */
@media (min-width: 1200px) {
  .landing-titulo {
    font-size: 2.1rem;
    max-width: 1100px;
  }
  .landing-flex {
    max-width: 1200px;
  }
}
@media (min-width: 1600px) {
  .landing-titulo {
    font-size: 2.5rem;
    max-width: 1300px;
  }
  .landing-flex {
    max-width: 1450px;
  }
}

/* Laptops pequeñas */
@media (max-width: 1050px) {
  .landing-titulo {
    font-size: 1.34rem;
    max-width: 99vw;
  }
  .landing-flex {
    gap: 20px;
  }
  .btn-ver-catalogos {
    padding: 13px 28px;
    font-size: .98rem;
  }
}

/* =========================
   MOBILE (<= 820px)
   ========================= */
@media (max-width: 820px) {

  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }

  body, html { min-width: 100vw !important; overflow-x: hidden; }

  /* slider móvil 3:4 */
  .hero-slider-desktop {
    height: auto;
    min-height: 0;
    max-height: 100vh;
  }

  .hero-slider-mobile {
    width: 100vw;
    aspect-ratio: 3 / 4;
    max-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
  }

  .hero-slider-mobile .hero-slider-track {
    position: absolute;
    inset: 0;
  }

  .hero-slider-mobile .hero-slider-dots {
    bottom: 18px;
  }

  /* Contenido del slide mobile:
     más ancho, menos líneas */
  .hero-slide-content {
    bottom: 14vh;
    padding: 0 3vw;
    max-width: 100%;
  }

  .hero-slide-title {
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    line-height: 1.18;
    margin-bottom: 0.4rem;
  }

  .hero-slide-desc {
    font-size: 0.7rem;
    line-height: 1.36;
    max-width: 96%;
    margin-bottom: 0.9rem;
  }

  .hero-slide-btn {
    padding: 9px 24px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  /* Sombra un poco más alta en mobile */
  .hero-slider-mobile .hero-slide::before {
    height: 62%;
  }

  /* Bloque destacado mobile */
  .landing-mobile {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4vw;
    margin-top: 4vw;
    margin-bottom: 14vw;
    content-visibility: auto;
    contain-intrinsic-size: 800px;
  }
  .landing-mobile .landing-titulo {
    font-size: 1.14rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 13px;
    margin-top: 0;
    color: #fff;
    line-height: 1.18;
    letter-spacing: 0.1px;
  }
  .landing-mobile .landing-sub {
    font-size: 1.02rem;
    text-align: center;
    color: #ededed;
    margin-bottom: 0;
    line-height: 1.28;
    max-width: 97vw;
    font-weight: 400;
  }

  /* Sticky CTA visible en mobile */
  .sticky-cta {
    display: block;
  }

  .sticky-cta .btn-stack {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }

  .landing-mobile .btn-stack {
    width: 94vw;
    max-width: 340px;
    margin: 23px auto 0;
  }

  .landing-mobile .btn-ver-catalogos,
  .sticky-cta .btn-ver-catalogos {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 0;
    border-radius: 32px;
    background: linear-gradient(90deg, #ff1616 50%, #b10000 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.7px;
    border: none;
    outline: none;
    transition: transform .17s ease, box-shadow .2s ease;
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
  }

  .landing-mobile .btn-base,
  .sticky-cta .btn-base {
    inset: -8px;
    transform: translateY(3px);
  }
}

/* Ocultar botón de sección en mobile y dejar solo el sticky */
.landing-mobile .btn-stack {
  display: none !important;
}
