/* ============================================================
   Ruta 55 — Cinematic Dark Ecommerce · Mobile-First
   ============================================================ */
:root {
  --bg:    #050505;
  --bg2:   #0b0b0b;
  --card:  rgba(255,255,255,.025);
  --line:  rgba(255,255,255,.08);

  --text:  rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);

  --red:  #ff1b1b;
  --red2: #ff3b3b;
  --green: #25D366;

  --radius:  18px;
  --radius2: 26px;

  --font-title: "Bebas Neue", system-ui;
  --font-body:  "Inter", system-ui;

  /* Touch-safe spacing */
  --tap: 40px;
  --gap: 12px;
  --section-pad-mobile: 36px;
  --section-pad-desktop: 88px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; padding: 0; margin: 0; max-width: 100vw; }
html { overflow-x: hidden; width: 100vw; max-width: 100vw; scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img, video { max-width: 100%; display: block; zoom: var(--scale-media, 1); }

h1, h2, h3, .section-title, .bundle h3 { zoom: var(--scale-title, 1); }
p, .section-sub, .nav-links a { zoom: var(--scale-text, 1); }
.btn { zoom: var(--scale-btn, 1); }
.product-card, .products-grid > * { zoom: var(--scale-product, 1); }

/* ── Layout ── */
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad-mobile) 0;
  position: relative;
}

@media(min-width: 900px) {
  .section { padding: var(--section-pad-desktop) 0; }
}

/* ── Section headers ── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: .9;
}

.section-sub {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.5;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, box-shadow .2s ease;
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(125deg, var(--red), var(--red2));
  box-shadow: 0 18px 50px rgba(255,0,0,.22);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 24px 60px rgba(255,0,0,.32); }

.btn-outline {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.08); }

/* ── Badge ── */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(255,0,0,.16);
  border: 1px solid rgba(255,0,0,.28);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* ── Loader ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #050505;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader-inner { text-align: center; }
.loader-title {
  font-family: var(--font-title);
  font-size: clamp(60px, 12vw, 100px);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.loader-sub {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,255,255,.55);
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  padding: 8px 0;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.navbar.scrolled {
  background: rgba(5,5,5,.82);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  font-family: var(--font-title);
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: none;
  gap: 20px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.nav-links a:hover { color: #fff; }
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 900;
  position: relative;
  transition: background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--red);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  border: 2px solid #050505;
  padding: 0 4px;
}
@media(min-width: 900px) { .nav-links { display: flex; } }

/* ── Hero ── */
.hero {
  height: 100svh; /* svh = small viewport height — excludes mobile browser chrome */
  min-height: 600px;
  max-height: 950px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #050505;
  max-width: 100vw;
}
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(.65);
  transform: scale(1.02);
  pointer-events: none;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(180,0,0,.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(100,0,0,.25) 0%, transparent 50%),
    linear-gradient(160deg, #0d0202 0%, #1a0505 30%, #0a0101 60%, #050505 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,0,0,.18), transparent 60%),
    linear-gradient(to top, rgba(0,0,0,.94), rgba(0,0,0,.08));
  pointer-events: none;
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 4;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding-bottom: 72px;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(58px, 11vw, 148px);
  letter-spacing: 2px;
  line-height: .84;
  text-transform: uppercase;
}
.hero-sub {
  margin-top: 14px;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 600;
  max-width: 480px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}
.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-chiprow {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ── Products Grid ── */
.products-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--gap);
  margin-top: 18px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.products-grid::-webkit-scrollbar { display: none; }
.products-grid > * {
  flex: 0 0 calc(80% - var(--gap));
  scroll-snap-align: start;
}
@media(min-width: 700px) {
  .products-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
    overflow-x: visible; 
  } 
  .products-grid > * { flex: auto; }
}
@media(min-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Product Card ── */
.product-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform .32s ease, box-shadow .32s ease;
  -webkit-tap-highlight-color: transparent;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(0,0,0,.65);
}
.product-media {
  position: relative;
  /* Mobile: tighter height to show more content above fold */
  height: clamp(160px, 45vw, 300px);
  overflow: hidden;
  background: rgba(0,0,0,.4);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(.8);
  transform: scale(1.02);
  transition: transform .55s ease;
}
.product-card:hover .product-media img { transform: scale(1.08); }
.product-body { padding: 12px; }
.product-title {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}
.product-desc {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.58);
  line-height: 1.45;
}
.product-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.price {
  font-family: var(--font-title);
  font-size: clamp(20px, 5vw, 26px);
  letter-spacing: 1px;
  line-height: 1;
}
.price-compare {
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.38);
  text-decoration: line-through;
}
.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,0,0,.15);
  border: 1px solid rgba(255,0,0,.28);
  color: #fff;
  font-weight: 900;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: background .2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.quick-btn:hover { background: rgba(255,0,0,.28); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.product-rating .stars { display: flex; gap: 2px; }
.product-rating .star { font-size: 10px; opacity: .22; }
.product-rating .star.on { opacity: 1; color: var(--red); text-shadow: 0 0 8px rgba(255,0,0,.35); }
.product-rating .rating-text { font-size: 9px; font-weight: 800; color: rgba(255,255,255,.58); }

/* ── Bundles ── */
.bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 18px;
}
@media(min-width: 700px) { .bundle-grid { grid-template-columns: repeat(2, 1fr); } }

.bundle {
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
}
.bundle h3 {
  font-family: var(--font-title);
  font-size: clamp(28px, 6vw, 42px);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: .9;
}
.bundle p {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}

/* ── Trust ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 18px;
}
@media(min-width: 700px)  { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1100px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px;
  transition: border-color .2s ease;
}
.trust-card:hover { border-color: rgba(255,255,255,.16); }
.trust-card h4 {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.trust-card p {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  padding: 50px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media(min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr .8fr; align-items: start; } }

.footer-brand {
  font-family: var(--font-title);
  font-size: clamp(44px, 8vw, 64px);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer p {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.58);
  line-height: 1.7;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
}
.footer-links a:hover { color: #fff; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(16px); }

/* ── Misc fallbacks ── */
.ugc-card { background: linear-gradient(135deg,#0b0b0b,#1a0808); }
.ugc-card video:empty, .ugc-card video source:empty { display: none; }
.before-after { background: linear-gradient(135deg,#0a0a0a,#1a0505); }
.ba-track { background: #0b0b0b; }
.ba-img:not([src]), .ba-img[src="[removed]"] { visibility: hidden; background: #1a1a1a; }

/* ── Mobile scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
