* { 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;
}

/* SCROLLBAR SIEMPRE */
::-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;
}

main { flex: 1 0 auto; width: 100vw; min-height: 0; }
.desktop-only { display: block; }
.mobile-only { display: none !important; }

/* ====== ANIMACIÓN DE INICIO (profesional) ====== */
@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;
}

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .contenido-principal,
  .reveal-ready header,
  .reveal-ready .redix-header,
  .banner-img,
  .btn-ver-catalogos { animation: none !important; transition: none !important; }
}

/* ====== BLUR-UP para imágenes ====== */
.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;
}

/* ====== BANNER DESKTOP ====== */
.banner-principal {
  width: 100vw;
  height: 48vw;
  min-height: 320px;
  max-height: 520px;
  display: flex; align-items: center; justify-content: center;
  background: #000; overflow: hidden; border: none; margin-top: 0;
}
.banner-img {
  width: 100vw; height: 100%; min-height: 320px; max-height: 520px;
  object-fit: cover; object-position: center;
  animation: bannerShow 1.2s cubic-bezier(.24,1.18,.44,1) both;
  box-shadow: 0 6px 44px 0 #00000016;
}
@keyframes bannerShow {
  from { opacity: 0; transform: translateY(80px) scale(0.98); filter: blur(5px);}
  60% { opacity: .9; transform: translateY(-8px) scale(1.01);}
  to { opacity: 1; transform: none; filter: blur(0);}
}

/* ====== LANDING 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;
}
.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;
}
/* TÍTULO CORREGIDO PARA NO CORTARSE Y HACER SALTO DE LÍNEA */
.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;
}

/* ====== BASE NEGRA REAL DETRÁS DEL BOTÓN ====== */
.btn-stack {
  position: relative;
  display: inline-block;
  isolation: isolate; /* asegura layering correcto */
}
.btn-stack--block {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.btn-base {
  position: absolute;
  inset: -10px;               /* más grande que el botón */
  border-radius: 40px;
  background: #000;           /* base negra sólida */
  z-index: 0;                 /* detrás del botón */
  transform: translateY(4px); /* leve placa hacia abajo */
  box-shadow:
    0 16px 32px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* ====== BOTÓN ROJO (sin ::before) ====== */
.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;
}
/* Brillo diagonal */
.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;
}

/* === Ajuste texto topbar (desktop) === */
.redix-header .redix-header-topbar .left-info span {
  font-size: 0.78rem;   /* más pequeño */
  font-weight: 500;
  max-width: 60%;       /* menos ancho */
  display: block;
  text-align: center;   /* centrado */
  margin: 0 auto;
}

/* ---- MEDIA QUERIES DESKTOP ---- */
@media (min-width: 1200px) {
  .landing-titulo {
    font-size: 2.1rem;  /* Aún más pequeño en pantallas grandes */
    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;
  }
}

/* -- Para evitar cortes bruscos en 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;
  }
}
