/* Nexo CR — estilos del sitio */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  --navy: #0B1D3A;
  --gold: #C9A227;
  --gold-soft: #dcbc52;
  --silver: #C5C9D0;
  --bg: #0A0A0C;
  --bg-2: #101319;
  --bg-3: #151a24;
  --white: #f4f5f7;
  --muted: #a3abb9;
  --line: rgb(197 201 208 / 0.1);
  --line-gold: rgb(201 162 39 / 0.22);
  --radius: 14px;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space-section: clamp(48px, 8vw, 96px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--bg); }

.wrap {
  width: min(1120px, 100% - 2 * max(20px, env(safe-area-inset-left)));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(10 10 12 / 0.88);
  border-bottom: 1px solid var(--line-gold);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand img { width: 62px; height: auto; aspect-ratio: 148 / 92; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.16em; font-size: 1.2rem; color: var(--silver);
}
.brand-text strong em, .footer-brand em { font-style: normal; color: var(--gold); }
.brand-text > span {
  color: var(--muted); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
}

.nav-links { display: flex; gap: 4px 6px; list-style: none; padding: 0; }
.nav-links a {
  display: block;
  padding: 8px 10px;
  color: var(--silver);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-links a.active { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line-gold);
  color: var(--silver);
  border-radius: 10px;
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: var(--gold); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 8px max(20px, env(safe-area-inset-left)) 20px;
    background: rgb(12 14 19 / 0.98);
    border-bottom: 1px solid var(--line-gold);
    box-shadow: 0 24px 40px rgb(0 0 0 / 0.5);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a.active { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 88px) 0 var(--space-section);
  text-align: center;
  background:
    radial-gradient(60% 55% at 50% 0%, rgb(11 29 58 / 0.95), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgb(201 162 39 / 0.06), transparent 70%),
    var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: clamp(200px, 42vw, 300px);
  height: auto;
  margin-bottom: 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-right: -0.2em; /* compensa el tracking final */
  color: var(--silver);
}
.gold { color: var(--gold); }
.tagline {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.24em;
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  text-transform: uppercase;
}
.tagline::before, .tagline::after {
  content: ""; width: clamp(20px, 6vw, 56px); height: 1px; background: currentColor; opacity: .6;
}
.hero .lead { max-width: 62ch; margin: 24px auto 0; }

.lead { color: var(--silver); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.actions.start { justify-content: flex-start; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  color: #141006;
  background: var(--gold);
  font: 600 0.88rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--gold-soft); color: #141006; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgb(201 162 39 / 0.1); color: var(--gold-soft); }
@media (max-width: 480px) {
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
section { padding: var(--space-section) 0; }
.band {
  background: linear-gradient(180deg, transparent, rgb(11 29 58 / 0.35) 50%, transparent);
  border-top: 1px solid var(--line);
}
.section-kicker {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title, .page-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.muted { color: var(--muted); }

.page-head {
  padding: clamp(40px, 7vw, 80px) 0 clamp(8px, 2vw, 16px);
  background: radial-gradient(70% 120% at 0% 0%, rgb(11 29 58 / 0.85), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.page-head .lead { max-width: 60ch; margin-top: 14px; padding-bottom: clamp(24px, 4vw, 40px); }
.page-head + section { padding-top: clamp(32px, 5vw, 56px); }

/* Grids intrínsecos: sin escalera de breakpoints */
.grid { display: grid; gap: 16px; margin-top: 32px; padding: 0; list-style: none; }
.grid-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.grid-md { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--line-gold); }
.card h3, .card-title { margin: 0 0 8px; font-size: 1.08rem; font-weight: 600; font-family: var(--font-body); color: var(--white); }
.card .icon + h3 { margin-top: 16px; }
.card-feature {
  margin-top: 16px;
  background: linear-gradient(135deg, rgb(11 29 58 / 0.9), var(--bg-2) 70%);
  border-color: rgb(11 29 58);
}
.icon {
  width: 44px; height: 44px; padding: 9px;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  background: rgb(201 162 39 / 0.05);
}
.text-link {
  display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
}
.text-link::after { content: " →"; }

.steps { counter-reset: none; }
.step-n {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 600 0.9rem/1 var(--font-body);
  vertical-align: middle;
}

.note {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: var(--bg-3);
  color: var(--silver);
  font-size: 0.95rem;
  max-width: 80ch;
}

/* ---------- Productos ---------- */
.product { padding: clamp(22px, 4vw, 40px); }
.bags { margin-top: 28px; }
.bag-figure { text-align: center; }
.bag-figure figcaption { margin-top: 18px; }
.bag-figure figcaption h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.06em; }
.bag-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 300px;
  margin-inline: auto;
  border-radius: var(--radius);
  background: radial-gradient(70% 60% at 50% 40%, rgb(11 29 58 / 0.8), var(--bg) 80%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bag-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bag {
  position: relative;
  width: 56%;
  aspect-ratio: 3 / 4.4;
  border-radius: 10px 10px 14px 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18% 10% 10%;
  box-shadow: 0 24px 40px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.bag::before { /* pliegue / cierre superior */
  content: ""; position: absolute; top: 9%; left: 8%; right: 8%; height: 2px; border-radius: 2px;
  background: rgb(255 255 255 / 0.18);
}
.bag-black { background: linear-gradient(100deg, #17181c, #26282e 45%, #121316); color: var(--silver); }
.bag-silver { background: linear-gradient(100deg, #9da2ab, #e2e5ea 45%, #a7acb4); color: #1a1d24; }
.bag-brand {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: clamp(0.9rem, 3.2vw, 1.1rem); line-height: 1.1;
}
.bag-black .bag-brand { color: var(--gold); }
.bag-size {
  font: 600 0.85rem/1 var(--font-body);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid currentColor;
}
.bag-pending {
  position: absolute; bottom: 7%; left: 0; right: 0;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: .7;
}

.specs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 36px; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs > div { background: var(--bg-2); padding: 18px 20px; }
.specs dt { color: var(--gold); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.specs dd { margin: 0; color: var(--silver); font-size: 0.95rem; }
.trace { margin-top: 32px; display: grid; gap: 6px; }
.trace h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.06em; text-transform: uppercase; }
.reg { color: var(--white); font-weight: 600; letter-spacing: 0.04em; }

/* ---------- Contacto ---------- */
.contact { align-items: start; }
form { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
label { font-size: 0.88rem; color: var(--silver); font-weight: 600; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  background: var(--bg);
  border: 1px solid rgb(197 201 208 / 0.2);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: max(16px, 1rem); /* evita zoom en iOS */
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(201 162 39 / 0.18); }
.was-validated :invalid { border-color: #e0795f; }
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form-note { color: var(--muted); font-size: 0.86rem; }
form .btn { justify-self: start; }
.form-ok {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line-gold); background: rgb(201 162 39 / 0.08);
  color: var(--silver); font-size: 0.92rem;
}
.form-ok:focus { outline: none; }
.channels { list-style: none; padding: 0; margin-top: 14px; }
.channels li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--silver);
}
.pending {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border: 1px dashed rgb(197 201 208 / 0.3); padding: 3px 10px; border-radius: 999px;
}
.zone { margin-top: 18px; }

/* ---------- 404 ---------- */
.page-404 { border-bottom: 0; padding-bottom: var(--space-section); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-gold);
  padding: 36px 0 calc(40px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9rem;
  background: #08080a;
}
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.16em; font-size: 1.2rem; color: var(--silver); }
.footer-zone { margin-top: 4px; font-size: 0.82rem; }
.footer-links { display: flex; gap: 4px 18px; flex-wrap: wrap; align-content: flex-start; }
.footer-links a { color: var(--silver); padding: 6px 0; }
.footer-links a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Ajustes de pantallas angostas */
.brand-text > span { white-space: nowrap; }
.reg { white-space: nowrap; }
@media (max-width: 420px) {
  .brand-text > span { letter-spacing: 0.06em; font-size: 0.6rem; }
  .brand img { width: 52px; }
  .tagline { text-align: center; }
  .tagline::before, .tagline::after { display: none; }
}

/* ---------- Fotos ---------- */
picture { display: contents; }
.bag-frame picture { display: block; position: absolute; inset: 0; }
.bag-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card-media { overflow: hidden; padding-top: 0; }
.card-media .card-img {
  display: block;
  width: calc(100% + 2 * clamp(20px, 3vw, 28px));
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 calc(-1 * clamp(20px, 3vw, 28px)) 20px;
  border-bottom: 1px solid var(--line);
}

.trace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px 40px;
  align-items: center;
}
.trace-text { display: grid; gap: 6px; }
.trace-photo { max-width: 280px; justify-self: center; width: 100%; }
.trace-photo img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.trace-photo figcaption, .gallery figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--muted); text-align: center; }

.gallery { padding: clamp(40px, 6vw, 64px) 0 0; }
.gallery-grid {
  list-style: none; padding: 0; margin-top: 24px;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100% / 2 - 6px, 230px), 1fr));
}
.gallery-grid img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-3);
}

.media-band { position: relative; margin-top: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.media-band-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 700px) { .media-band-img { aspect-ratio: 2 / 1; object-position: 50% 40%; } }
.media-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 14px;
  background: linear-gradient(transparent, rgb(10 10 12 / 0.9));
  color: var(--silver); font-size: 0.85rem; letter-spacing: 0.04em;
}
.media-band + .grid { margin-top: 16px; }
.specs > .spec-wide { grid-column: 1 / -1; background: linear-gradient(90deg, rgb(11 29 58 / 0.7), var(--bg-2)); }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100% / 2 - 6px, 300px), 1fr)); }

/* Single card on its own: text and link on one row, wraps on small screens */
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.card-row > div { flex: 1 1 320px; }
.card-row p { margin: 0; }
