/* KSANET — Web styles
   Sistema basado en el brandbook v3 (granate institucional + Inter Tight) */

:root {
  --bg: #f6f3ee;
  --paper: #fbf8f2;
  --paper-2: #ece6d8;
  --ink: #0f0d0c;
  --ink-2: #25201d;
  --muted: #6f6660;
  --line: #d8d1c2;
  --line-2: #b8af9d;
  --brand: #8C1E22;
  --brand-2: #5e1417;
  --brand-soft: #b85055;
  --silver: #b6b3ad;
  --silver-2: #8d8a85;
  --moss: #4a5a3a;
  --gold: #b58a3a;

  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --tight: 'Inter Tight', 'Inter', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad-x: clamp(24px, 5vw, 64px);
  --max: 1340px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--brand); color: #f3e8da; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; border-top: 1px solid var(--line); }
.section.dark { background: #0c0a09; color: #e6e0d3; border-top-color: #1a1715; }
.section.brand { background: var(--brand); color: #f3e8da; border-top-color: transparent; }
.section.paper { background: var(--paper); }

/* Type */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--brand); display: inline-block; }
.dark .eyebrow, .brand .eyebrow { color: rgba(243, 232, 218, 0.7); }
.dark .eyebrow .dot, .brand .eyebrow .dot { background: var(--silver); }

.h-display {
  font-family: var(--tight); font-weight: 300;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.96; letter-spacing: -0.04em;
  text-wrap: balance; margin: 0;
}
.h-display em {
  font-style: normal; color: var(--brand); font-weight: 500;
}
.dark .h-display em, .brand .h-display em { color: #f3e8da; opacity: 0.78; font-family: var(--serif); font-style: italic; font-weight: 400; }

.h-1 {
  font-family: var(--tight); font-weight: 300;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1; letter-spacing: -0.035em;
  text-wrap: balance; margin: 0;
}
.h-1 em {
  font-style: italic; font-family: var(--serif);
  color: var(--brand); font-weight: 400;
}
.dark .h-1 em, .brand .h-1 em { color: rgba(243, 232, 218, 0.78); }

.h-2 {
  font-family: var(--tight); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.05; letter-spacing: -0.025em;
  text-wrap: balance; margin: 0;
}
.h-2 em {
  font-style: italic; font-family: var(--serif);
  color: var(--brand); font-weight: 400;
}

.h-3 {
  font-family: var(--tight); font-weight: 500;
  font-size: 18px; line-height: 1.3; margin: 0; letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5; color: var(--ink-2);
  max-width: 56ch; letter-spacing: -0.005em; margin: 0;
}
.lede em {
  font-family: var(--serif); font-style: italic;
  color: var(--brand); font-weight: 500;
}
.dark .lede, .brand .lede { color: rgba(243, 232, 218, 0.85); }

.body { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0; }
.dark .body, .brand .body { color: rgba(243, 232, 218, 0.78); }

.silver-rule {
  display: block; height: 1px; width: 64px;
  background: var(--silver); margin: 20px 0;
}
.brand .silver-rule, .dark .silver-rule { background: var(--silver); opacity: 0.6; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px var(--pad-x);
  max-width: var(--max); margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.nav-wordmark {
  font-family: var(--tight);
  font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em; color: var(--ink);
}
.nav-wordmark .light { font-weight: 300; color: var(--muted); margin-left: 6px; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-link {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding: 8px 12px;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--brand); }
.nav-link.active { font-weight: 500; }

.nav-cta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--ink); color: var(--ink);
  transition: all .2s;
}
.nav-cta:hover { background: var(--brand); border-color: var(--brand); color: #f3e8da; }

/* Mobile */
.nav-burger { display: none; }
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 4px;
    width: 38px; height: 38px;
    background: none; border: 1px solid var(--line);
    align-items: center; justify-content: center;
    padding: 0;
  }
  .nav-burger span {
    width: 18px; height: 1.5px; background: var(--ink);
    transition: transform .2s;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}
.nav-mobile-backdrop {
  position: fixed; inset: 0; background: rgba(15, 13, 12, 0.4); z-index: 90;
}
.nav-mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--paper);
  z-index: 100; padding: 90px 28px 28px;
  display: flex; flex-direction: column; gap: 4px;
  animation: navSlide .25s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto;
}
@keyframes navSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.nav-mobile-link {
  font-family: var(--tight);
  font-size: 22px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink); letter-spacing: -0.01em;
}
.nav-mobile-link.active { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .25s;
}
.btn-primary { background: var(--brand); color: #f3e8da; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dark .btn-ghost:hover, .brand .btn-ghost:hover { background: #f3e8da; color: var(--brand); border-color: #f3e8da; }
.btn-arrow { font-family: var(--tight); font-size: 16px; letter-spacing: 0; transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Footer */
.footer { background: #0c0a09; color: #e6e0d3; padding: 90px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(230, 224, 211, 0.15);
}
.footer h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver); margin: 0 0 18px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a { color: rgba(230, 224, 211, 0.78); transition: color .2s; }
.footer a:hover { color: #f3e8da; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(230, 224, 211, 0.55);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--tight); font-weight: 300;
  font-size: clamp(44px, 5.4vw, 88px);
  line-height: 0.95; letter-spacing: -0.04em;
  color: var(--brand);
}
.stat-num.ink { color: var(--ink); }
.stat-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-top: 14px;
}
.dark .stat { border-right-color: rgba(230, 224, 211, 0.15); }
.dark .stat-num { color: #f3e8da; font-weight: 200; }
.dark .stat-label { color: rgba(230, 224, 211, 0.55); }
@media (max-width: 880px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* Promotion card */
.promo-card {
  display: block; position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s ease, border-color .25s;
}
.promo-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.promo-img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: var(--paper-2);
  position: relative; overflow: hidden;
}
.promo-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 13, 12, 0.55) 100%);
}
.promo-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(6px);
  padding: 7px 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); z-index: 2;
}
.promo-tag.brand { background: var(--brand); color: #f3e8da; }
.promo-status {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #f3e8da; padding: 7px 12px;
  background: rgba(15, 13, 12, 0.55);
  backdrop-filter: blur(6px);
}
.promo-status .dot {
  display: inline-block; width: 6px; height: 6px;
  background: #6abf7a; margin-right: 7px; vertical-align: middle;
}
.promo-status.upcoming .dot { background: var(--gold); }
.promo-status.delivered .dot { background: var(--silver); }
.promo-meta {
  padding: 22px 26px 26px;
  display: flex; flex-direction: column; gap: 4px;
}
.promo-name {
  font-family: var(--tight); font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
}
.promo-loc {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--ink-2);
}
.promo-bottom {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--muted);
}
.promo-price { color: var(--brand); font-weight: 500; }

/* Hairline */
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px;
  padding: 12px 0; border: 0; border-bottom: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }

.checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.checkbox input { margin-top: 4px; }

/* Cards util */
.card-light { background: var(--paper); border: 1px solid var(--line); padding: 32px; }
.card-dark { background: #0c0a09; color: #e6e0d3; padding: 32px; }
.card-brand { background: var(--brand); color: #f3e8da; padding: 32px; }
