/* assets/muna.css
 * Estilos compartidos para checkout, gracias, rastrear y las PDPs.
 * Mismos tokens y lenguaje visual que index.html (Kinfolk / Apartamento).
 */

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --sand:       #F8F4EC;
  --sand-deep:  #EDE7D9;
  --paper:      #FBFAF5;
  --charcoal:   #1A1A1B;
  --graphite:   #2E2B28;
  --terra:      #D1623C;
  --terra-dk:   #B5502D;
  --terra-lt:   #E8794E;
  --stone:      #6B6259;
  --mist:       #9E9589;
  --rule:       #DDD7CC;
  --matcha:     #3D4A3E;
  --f-head:     'Syne', sans-serif;
  --f-body:     'Inter', sans-serif;
  --ease-out:   cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io:    cubic-bezier(0.77, 0, 0.175, 1);
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--sand);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--f-body); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--f-body); }

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

/* Accesibilidad de teclado */
*:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--charcoal); color: #fff; padding: 10px 18px; font-size: 13px; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ─── NAV ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(248,244,236,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav__logo {
  font-family: var(--f-head);
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--charcoal);
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--stone);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--charcoal); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 18px;
  background: var(--charcoal); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s var(--ease-out);
}
.nav__cta:hover { background: var(--graphite); }
.nav__cta:active { transform: scale(0.97); }
@media (max-width: 768px) { .nav__links { display: none; } }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s var(--ease-out), opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--terra); color: #fff;
  box-shadow: 0 8px 24px rgba(209,98,60,0.28);
}
.btn--primary:hover { background: var(--terra-dk); box-shadow: 0 12px 32px rgba(209,98,60,0.36); }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: var(--graphite); }
.btn--ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--rule); }
.btn--ghost:hover { border-color: var(--charcoal); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── TRUST BADGES ───────────────────────────────── */
.trust {
  display: grid; gap: 12px;
}
.trust__item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--stone);
}
.trust__item svg { flex-shrink: 0; color: var(--terra); }
.trust--inline { display: flex; flex-wrap: wrap; gap: 20px; }

/* ─── FORM FIELDS ────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--stone);
}
.field__input, .field__select {
  height: 52px; padding: 0 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 15px; color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field__input:focus, .field__select:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(209,98,60,0.12);
}
.field__input::placeholder { color: var(--mist); }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field__row { grid-template-columns: 1fr; } }
.field__error { font-size: 12px; color: var(--terra-dk); min-height: 0; }

/* ─── COLOR / VARIANT SWATCHES ───────────────────── */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 13px; color: var(--graphite);
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.swatch:hover { border-color: var(--stone); }
.swatch[aria-pressed="true"] {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #fff;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  padding: 48px clamp(24px, 6vw, 80px) 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px; align-items: start;
}
.footer__logo {
  font-family: var(--f-head); font-size: 18px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand);
}
.footer__tagline { font-size: 11px; color: var(--stone); margin-top: 6px; letter-spacing: 0.02em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 4px; }
.footer__link { font-size: 12px; color: var(--stone); transition: color 0.2s; }
.footer__link:hover { color: var(--sand); }
.footer__legal { font-size: 10px; color: var(--stone); line-height: 1.6; text-align: right; }
.footer__copy {
  font-size: 10px; color: rgba(107,98,89,0.5); padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.06); grid-column: 1/-1;
}
@media (max-width: 768px) {
  .footer { grid-template-columns: 1fr; gap: 28px; }
  .footer__legal { text-align: left; }
}

/* ─── PAGE SHELL ─────────────────────────────────── */
.page { padding-top: 64px; min-height: 100svh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.breadcrumb {
  font-size: 12px; color: var(--mist);
  padding: 24px 0 8px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--stone); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--charcoal); }
.breadcrumb span { color: var(--charcoal); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--terra); }

/* ─── LANGUAGE TOGGLE ────────────────────────────── */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--rule); border-radius: 100px;
  padding: 2px; background: var(--paper); flex-shrink: 0;
}
.lang-toggle button {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--stone); padding: 5px 11px; border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--charcoal); color: #fff; }
@media (max-width: 768px) { .lang-toggle button { padding: 5px 9px; } }

/* ─── LEGAL ───────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 0 80px; }
.legal__title { font-family: var(--f-head); font-size: clamp(28px,4vw,42px); font-weight: 700; letter-spacing: -0.03em; margin: 12px 0 6px; }
.legal__updated { font-size: 12px; color: var(--mist); margin-bottom: 36px; }
.legal h2 { font-family: var(--f-head); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 34px 0 12px; color: var(--charcoal); }
.legal h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; color: var(--graphite); }
.legal p, .legal li { font-size: 14.5px; line-height: 1.75; color: var(--stone); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 20px; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--graphite); }
.legal a { color: var(--terra-dk); text-decoration: underline; }
.legal .ph { background: #FFF4D6; border-bottom: 1px dashed #C9A94A; padding: 0 3px; color: #6b5a1f; font-style: normal; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 8px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.legal__toc a { font-size: 12px; color: var(--stone); text-decoration: none; }
.legal__toc a:hover { color: var(--charcoal); }

/* Utilidades */
.muted { color: var(--stone); }
.strike { text-decoration: line-through; color: var(--mist); font-weight: 400; }
.terra { color: var(--terra); }
