:root {
  --bg: #0a0c0f;
  --bg-soft: #10141a;
  --surface: #141920;
  --surface-2: #1a2029;
  --line: #262e38;
  --line-soft: #1e252e;
  --text: #e8ecf1;
  --text-dim: #9aa5b1;
  --text-mute: #6f7b88;
  --accent: #c9a24a;
  --accent-soft: rgba(201, 162, 74, 0.14);
  --danger: #e0665c;
  --ok: #6ec08a;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.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-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--accent); color: #12140f; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #16130a; }
.btn-primary:hover { background: #d9b25a; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- barra superior / cabecera ---------- */
.topbar {
  background: #070809;
  border-bottom: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--text-dim);
}
.topbar p { margin: 0; padding: 9px 24px; text-align: center; letter-spacing: .01em; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 38px; height: 38px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; letter-spacing: .01em; }
.brand-text small { color: var(--text-mute); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) {
  text-decoration: none; color: var(--text-dim); font-size: .92rem; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.main-nav a:not(.btn):hover { color: var(--text); border-bottom-color: var(--accent); }
.quote-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: #16130a; color: var(--accent); border-radius: 999px;
  font-size: .74rem; font-weight: 700;
}

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 40px; cursor: pointer; position: relative;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  position: absolute; left: 50%; width: 18px; height: 2px; background: var(--text);
  transform: translateX(-50%); transition: transform .2s ease, opacity .2s ease;
}
.menu-bars { top: 50%; margin-top: -1px; }
.menu-bars::before { content: ""; top: -6px; left: 0; transform: none; }
.menu-bars::after { content: ""; top: 6px; left: 0; transform: none; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 68px;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(201, 162, 74, 0.10), transparent 65%),
    radial-gradient(700px 420px at 8% 90%, rgba(90, 130, 180, 0.10), transparent 70%),
    linear-gradient(180deg, #0c0e12 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .74rem;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.hero .lead { color: var(--text-dim); font-size: 1.06rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line-soft);
}
.hero-points li { font-size: .84rem; color: var(--text-mute); }
.hero-points strong { display: block; color: var(--text); font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; }

.hero-visual { position: relative; min-height: 400px; }
.hero-glow {
  position: absolute; inset: 8% 6% 12%;
  background: radial-gradient(circle at 50% 45%, rgba(201, 162, 74, 0.20), transparent 62%);
  filter: blur(14px);
}
.hero-product { position: absolute; }
.hero-product-vest {
  width: 62%; left: 2%; top: 12%;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, .65));
}
.hero-product-helmet {
  width: 50%; right: 0; top: 26%;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, .7));
}

/* ---------- marquee ---------- */
.marquee { border-bottom: 1px solid var(--line-soft); background: #08090b; }
.marquee-inner {
  display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  color: var(--text-mute); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
}

/* ---------- secciones ---------- */
section { padding: 76px 0; scroll-margin-top: 88px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section-head h2 { margin-bottom: .35em; }
.section-sub { color: var(--text-dim); max-width: 62ch; margin: 0; }

/* ---------- catálogo ---------- */
.filters { display: flex; gap: 8px; background: var(--surface); padding: 5px; border-radius: 999px; border: 1px solid var(--line-soft); }
.filter {
  background: none; border: 0; color: var(--text-dim); font: inherit; font-size: .88rem;
  padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--accent); color: #16130a; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card[hidden] { display: none; }

.card-media {
  position: relative; padding: 26px;
  background:
    radial-gradient(circle at 50% 40%, #1b2129 0%, #101419 70%);
  border-bottom: 1px solid var(--line-soft);
}
.card-media img { width: 100%; max-width: 340px; margin: 0 auto; height: 236px; object-fit: contain; }
.level-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(10, 12, 15, .82); border: 1px solid var(--line);
  color: var(--text); font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  padding: 5px 11px; border-radius: 999px; text-transform: uppercase;
}
.cat-tag {
  position: absolute; top: 16px; right: 16px;
  color: var(--text-mute); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}

.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 6px; }
.card-desc { color: var(--text-dim); font-size: .92rem; }
.card-specs { list-style: none; margin: 4px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-specs li {
  font-size: .76rem; color: var(--text-dim); background: var(--surface-2);
  border: 1px solid var(--line-soft); padding: 4px 10px; border-radius: 999px;
}

.card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.price { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.price strong { font-size: 1.32rem; font-weight: 650; letter-spacing: -0.02em; }
.price small { color: var(--text-mute); font-size: .74rem; }

.notice { color: var(--text-dim); }

/* ---------- tecnología ---------- */
.tech { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tech-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 22px;
}
.tech-card h3 { color: var(--text); }
.tech-card p { color: var(--text-dim); font-size: .9rem; margin: 0; }

/* ---------- solicitud ---------- */
.quote-inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: 44px; align-items: start; }
.quote-list { display: flex; flex-direction: column; gap: 10px; margin: 26px 0; }
.quote-empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px;
  color: var(--text-mute); font-size: .9rem; text-align: center;
}
.quote-item {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.quote-item img {
  width: 52px; height: 52px; object-fit: contain; flex: none;
  background: radial-gradient(circle at 50% 35%, #29323c, #0d1116);
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 3px;
}
.quote-item-info { flex: 1 1 140px; min-width: 0; }
.quote-item-info strong { display: block; font-size: .93rem; font-weight: 600; }
.quote-item-info span { color: var(--text-mute); font-size: .8rem; }
.quote-item-price { font-size: .93rem; font-weight: 600; white-space: nowrap; margin-left: auto; }
.qty {
  display: flex; align-items: center; gap: 6px; background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px;
}
.qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
}
.qty button:hover { background: var(--line); }
.qty span { min-width: 18px; text-align: center; font-size: .86rem; }
.remove-item {
  background: none; border: 0; color: var(--text-mute); cursor: pointer; font-size: 1.2rem;
  line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.remove-item:hover { color: var(--danger); }

.quote-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 4px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text-dim);
}
.quote-total strong { color: var(--text); font-size: 1.15rem; }

.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .84rem; color: var(--text-dim); font-weight: 500; }
.field input, .field textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: .94rem; padding: 12px 14px; width: 100%;
  transition: border-color .18s ease, background .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; margin: 0; min-height: 0; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--text-dim); }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .88rem; color: var(--ok); }
.form-status.is-error { color: var(--danger); }

.quote-aside {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 24px; position: sticky; top: 96px;
}
.quote-aside h3 { margin-bottom: 4px; }
.quote-aside > p { color: var(--text-mute); font-size: .86rem; }
.contact-list { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.contact-list span { color: var(--text-mute); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-list a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.aside-note {
  font-size: .8rem; color: var(--text-mute); margin: 0; padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- banda de contacto ---------- */
.contact-band { background: linear-gradient(120deg, #14181e 0%, #0d1013 60%); border-top: 1px solid var(--line-soft); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.contact-band h2 { margin-bottom: .3em; }
.contact-band p { color: var(--text-dim); margin: 0; max-width: 56ch; }

/* ---------- pie ---------- */
.site-footer { background: #070809; border-top: 1px solid var(--line-soft); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand strong { font-size: 1.08rem; }
.footer-brand p { color: var(--text-mute); font-size: .88rem; max-width: 34ch; }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer nav h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-mute); margin-bottom: 4px; }
.site-footer nav a { color: var(--text-dim); text-decoration: none; font-size: .9rem; }
.site-footer nav a:hover { color: var(--accent); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.footer-legal p { margin: 0; color: var(--text-mute); font-size: .78rem; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 7, .78); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; z-index: 1; width: min(960px, 100%); max-height: min(88vh, 780px);
  overflow: auto; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
  animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(10, 12, 15, .7); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-body { display: grid; grid-template-columns: 1fr 1.1fr; }
.modal-media {
  position: relative; display: grid; place-items: center; padding: 34px;
  background: radial-gradient(circle at 50% 40%, #1b2129 0%, #0e1116 72%);
  border-right: 1px solid var(--line-soft); border-radius: 18px 0 0 18px;
}
.modal-media img { width: 100%; max-width: 320px; }
.modal-info { padding: 34px 32px 36px; }
.modal-desc { color: var(--text-dim); font-size: .94rem; }
.modal-info h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-mute); margin: 22px 0 10px; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; font-size: .88rem; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.spec-list span:first-child { color: var(--text-mute); }
.spec-list span:last-child { text-align: right; }
.option-group { margin-top: 20px; }
.option-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-mute); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
  border-radius: 999px; padding: 7px 15px; font: inherit; font-size: .86rem; cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.chip:hover { color: var(--text); border-color: var(--text-mute); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.modal-buy {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  position: sticky; bottom: -1px;
  margin-top: 26px; padding: 18px 0 4px; border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.modal-buy::before {
  content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
  background: linear-gradient(180deg, rgba(16, 20, 26, 0), var(--bg-soft));
}
.modal-buy .price { flex-direction: row; align-items: baseline; gap: 10px; }
.modal-buy .price span { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }

/* ---------- toast ---------- */
.toast {
  position: fixed; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px));
  background: var(--surface-2); border: 1px solid var(--accent); color: var(--text);
  padding: 13px 22px; border-radius: 14px; font-size: .9rem; z-index: 80;
  box-shadow: var(--shadow); animation: pop .2s ease;
}
.toast[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .hero-product-vest { width: 46%; left: 6%; }
  .hero-product-helmet { width: 38%; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-inner { grid-template-columns: minmax(0, 1fr); }
  .quote-aside { position: static; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-media { border-right: 0; border-bottom: 1px solid var(--line-soft); border-radius: 18px 18px 0 0; }
}

@media (max-width: 760px) {
  section { padding: 56px 0; }
  .topbar p { font-size: .76rem; padding: 8px 16px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .98rem; }
  .main-nav .btn { margin-top: 12px; }
  .grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr; gap: 12px; }
  .hero { padding: 56px 0 44px; }
  .hero-visual { min-height: 250px; }
  .section-head { align-items: flex-start; }
  .filters { width: 100%; justify-content: space-between; }
  .filter { flex: 1; }
  .quote-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .card-media img { height: 190px; }
  .modal { padding: 12px; }
  .modal-info, .modal-media { padding: 26px 20px; }
  .modal-buy { gap: 12px; }
  .modal-buy .btn { width: 100%; }
  .contact-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
