* { 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; }

/* 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;
  /* Se quita nowrap y ellipsis para salto automático */
}

.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;
}
.btn-ver-catalogos {
  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 2px 14px #b1000040;
  transition: background .16s, transform .17s, box-shadow .2s;
  border: none; outline: none; text-align: center; margin-left: 0;
  position: relative;
  overflow: hidden;
  animation: mobile-wa-pulse 1.8s infinite;
}

/* --- BOTÓN CON EFECTO FLASH DIAGONAL Y PULSE --- */
.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: 0.85;
  }
  25% {
    opacity: 0.45;
  }
  60% {
    opacity: 0.24;
  }
  85% {
    opacity: 0.07;
  }
  93% {
    left: 120%;
    opacity: 0;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

/* EFECTO PULSE */
@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 6px 18px #ff161680;
}

/* 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;
}

/* ---- MEDIA QUERIES DESKTOP REDUCE TITLE IF NEEDED ---- */
@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;
  }
}
