/* ============================================================
   retroClub — custom.css
   Design system: Aesop + ALD + Ami Paris on Apple-Dark base
   Complements Tailwind CDN. Not minified on purpose.
   ============================================================ */

/* === 01. TOKENS =========================================== */
:root {
  /* palette */
  --bg: #0a0a0f;
  --surface: #16162a;
  --surface-2: #1a1a2e;
  --hairline: #27272a;
  --accent: #F97316;
  --accent-soft: rgba(249, 115, 22, 0.3);
  --accent-veil: rgba(249, 115, 22, 0.08);
  --cream: #F5E6D3;
  --text: #FAFAFA;
  --muted: #9ca3af;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #eab308;

  /* geometry */
  --radius: 2px;
  --radius-md: 4px;
  --radius-pill: 9999px;

  /* elevation (very subtle in dark) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);

  /* motion */
  --ease-editorial: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 200ms;
  --dur-base: 300ms;
  --dur-slow: 400ms;
  --dur-reveal: 900ms;

  /* layout */
  --container-max: 1400px;
  --container-pad: 1.5rem;
  --container-pad-md: 2.5rem;

  /* fonts (loaded from HTML layout) */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, "Times New Roman", serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* === 02. BASE / RESET ===================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "kern";
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out-soft);
}
a:hover { color: var(--accent); }

button {
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* selection */
::selection { background: var(--accent); color: var(--bg); }
::-moz-selection { background: var(--accent); color: var(--bg); }

/* scrollbars — webkit */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: #3a3a40; }

/* scrollbars — firefox */
html { scrollbar-width: thin; scrollbar-color: var(--hairline) transparent; }

/* hide scrollbar utility (for horizontal scrollers) */
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* === 03. TYPOGRAPHY ======================================= */
.font-serif, .serif {
  font-family: var(--font-serif);
  font-feature-settings: "ss01", "kern";
}
.font-mono, .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  display: inline-block;
}

.hairline {
  border-top: 1px solid var(--hairline);
}
.hairline-b { border-bottom: 1px solid var(--hairline); }

.h-display {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
}
.h-display-xl {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.h-display-lg {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.h-display-md {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-cream { color: var(--cream); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.text-balance { text-wrap: balance; }

.gradient-text-accent {
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--cream) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* === 04. ANIMATIONS ======================================= */
/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-reveal) var(--ease-editorial),
    transform var(--dur-reveal) var(--ease-editorial);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.is-visible { transition-delay: 0.12s; }
.reveal-delay-2.is-visible { transition-delay: 0.24s; }
.reveal-delay-3.is-visible { transition-delay: 0.36s; }
.reveal-delay-4.is-visible { transition-delay: 0.48s; }
.reveal-delay-5.is-visible { transition-delay: 0.60s; }

/* also set delays on base so the transition-delay kicks in as it starts revealing */
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* horizontal slide reveal */
.reveal-x {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity var(--dur-reveal) var(--ease-editorial),
    transform var(--dur-reveal) var(--ease-editorial);
}
.reveal-x.is-visible { opacity: 1; transform: translateX(0); }

/* split word / split line */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
}
.split-word > span {
  display: block;
  transform: translateY(100%);
  transition: transform var(--dur-reveal) var(--ease-editorial);
  will-change: transform;
}
.split-word.is-visible > span { transform: translateY(0); }
.split-word.sw-d1 > span { transition-delay: 0.08s; }
.split-word.sw-d2 > span { transition-delay: 0.16s; }
.split-word.sw-d3 > span { transition-delay: 0.24s; }
.split-word.sw-d4 > span { transition-delay: 0.32s; }
.split-word.sw-d5 > span { transition-delay: 0.40s; }

/* scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 700ms var(--ease-editorial),
    transform 700ms var(--ease-editorial);
}
.scale-in.is-visible { opacity: 1; transform: scale(1); }

/* keyframes */
@keyframes blink {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.2; transform: translateY(6px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes swing {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.anim-blink { animation: blink 1.6s ease-in-out infinite; }
.anim-spin-slow { animation: spin 18s linear infinite; }
.anim-swing { animation: swing 3s ease-in-out infinite; transform-origin: top center; }
.anim-pulse-soft { animation: pulse-soft 2.4s ease-in-out infinite; }
.anim-fade-in { animation: fade-in var(--dur-slow) var(--ease-out-soft) both; }

/* skeleton shimmer */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    var(--surface-2) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--radius);
}

/* === 05. CURSOR CUSTOM ==================================== */
@media (hover: hover) and (pointer: fine) {
  .cursor-follow {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.6;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate3d(-100px, -100px, 0) scale(1);
    transition:
      transform 120ms var(--ease-out-soft),
      width 250ms var(--ease-out-soft),
      height 250ms var(--ease-out-soft),
      opacity 250ms var(--ease-out-soft),
      background-color 250ms var(--ease-out-soft);
    will-change: transform;
  }
  .cursor-follow.is-grow { transform: translate3d(var(--cx, 0), var(--cy, 0), 0) scale(2.5); }
  .cursor-follow.is-hide { transform: translate3d(var(--cx, 0), var(--cy, 0), 0) scale(0); opacity: 0; }

  /* hint styles when hovering triggers */
  body:has([data-cursor="grow"]:hover) { /* placeholder — logic drives class changes */ }
}

/* === 06. COMPONENTS ======================================= */
/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition:
    background-color var(--dur-base) var(--ease-out-soft),
    color var(--dur-base) var(--ease-out-soft),
    border-color var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--bg);
}

.btn-outline {
  border-color: var(--hairline);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
  background: var(--danger);
  color: var(--bg);
  border-color: var(--danger);
}

.btn-sm { padding: 8px 14px; font-size: 10px; }
.btn-lg { padding: 16px 32px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---- cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition:
    border-color var(--dur-slow) var(--ease-out-soft),
    background-color var(--dur-slow) var(--ease-out-soft),
    transform var(--dur-slow) var(--ease-out-soft);
}
.card:hover {
  border-color: var(--accent-soft);
}
.card-interactive:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
}
.card-body { padding: 1.25rem 1.5rem; }
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--hairline);
}

/* ---- forms ---- */
.input, .textarea, .select {
  width: 100%;
  display: block;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  transition:
    border-color var(--dur-base) var(--ease-out-soft),
    background-color var(--dur-base) var(--ease-out-soft);
}
.input::placeholder,
.textarea::placeholder { color: var(--muted); }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.textarea { min-height: 7rem; resize: vertical; font-family: var(--font-sans); }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.field-error { color: var(--danger); font-size: 12px; margin-top: 0.35rem; }
.field-hint { color: var(--muted); font-size: 12px; margin-top: 0.35rem; }

/* ---- badges ---- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
}
.badge-success { color: var(--success); border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); }
.badge-danger  { color: var(--danger);  border-color: rgba(239, 68, 68, 0.3);  background: rgba(239, 68, 68, 0.08); }
.badge-warning { color: var(--warning); border-color: rgba(234, 179, 8, 0.3);  background: rgba(234, 179, 8, 0.08); }
.badge-accent  { color: var(--accent);  border-color: var(--accent-soft);      background: var(--accent-veil); }
.badge-muted   { color: var(--muted);   border-color: var(--hairline);         background: transparent; }

/* ---- chips (filtros activos) ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text);
  background: transparent;
  transition: border-color var(--dur-base) var(--ease-out-soft), color var(--dur-base) var(--ease-out-soft);
}
.chip:hover, .chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
}
.chip .chip-x {
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
}
.chip .chip-x:hover { opacity: 1; }

/* ---- toasts ---- */
.toast-stack {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 2rem 1rem 1rem;
  min-width: 260px;
  max-width: 380px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform var(--dur-base) var(--ease-out-soft),
    opacity var(--dur-base) var(--ease-out-soft);
  pointer-events: auto;
  box-shadow: var(--shadow-md);
  position: relative;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--accent); }
.toast .toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.toast .toast-close:hover { color: var(--text); }

/* ---- modal / dialog ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-soft);
}
.modal-backdrop.show { opacity: 1; }
.modal {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  transform: translateY(12px) scale(0.99);
  transition:
    transform var(--dur-base) var(--ease-out-soft),
    opacity var(--dur-base) var(--ease-out-soft);
  opacity: 0;
  box-shadow: var(--shadow-lg);
}
.modal-backdrop.show .modal { transform: translateY(0) scale(1); opacity: 1; }

/* ---- tabs ---- */
.tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 0.25rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out-soft), border-color var(--dur-base) var(--ease-out-soft);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* === 07. PATRONES DECORATIVOS ============================= */
/* subtle grain texture via SVG turbulence data-URI */
.bg-grain {
  position: relative;
}
.bg-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.03;
  mix-blend-mode: overlay;
  z-index: 0;
}
.bg-grain > * { position: relative; z-index: 1; }

.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* editorial divider with centered glyph */
.divider-editorial {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 2rem 0;
}
.divider-editorial::before,
.divider-editorial::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hairline);
}
.divider-editorial .dot { opacity: 0.7; }

/* ticker — infinite horizontal scroll */
.ticker {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: ticker-scroll 40s linear infinite;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--cream);
}
.ticker-track .sep {
  color: var(--accent);
  font-style: normal;
  opacity: 0.8;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* stamp-style spinning logo ring */
.stamp {
  display: inline-block;
  width: 110px;
  height: 110px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.stamp svg { animation: spin 18s linear infinite; }

/* === 08. GALERÍA / IMAGEN ================================= */
.img-hover-swap {
  position: relative;
  overflow: hidden;
  display: block;
}
.img-hover-swap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 700ms var(--ease-editorial);
}
.img-hover-swap .img-alt { opacity: 0; }
.img-hover-swap:hover .img-main { opacity: 0; }
.img-hover-swap:hover .img-alt  { opacity: 1; }

.img-zoom {
  overflow: hidden;
  display: block;
}
.img-zoom img {
  transition: transform 700ms var(--ease-editorial);
  will-change: transform;
}
.img-zoom:hover img {
  transform: scale(1.03) rotate(0.5deg);
}

/* aspect helpers */
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-square   { aspect-ratio: 1 / 1; }
.aspect-wide     { aspect-ratio: 16 / 9; }
.aspect-editorial { aspect-ratio: 4 / 5; }

/* image placeholder (while loading) */
.img-ph {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  position: relative;
}
.img-ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* === 09. UTILS ============================================ */
.container-editorial {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  width: 100%;
}
@media (min-width: 768px) {
  .container-editorial {
    padding-left: var(--container-pad-md);
    padding-right: var(--container-pad-md);
  }
}

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.stack-xl > * + * { margin-top: 2.5rem; }

.hairline-x > * + * {
  border-left: 1px solid var(--hairline);
}
.hairline-y > * + * {
  border-top: 1px solid var(--hairline);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

.vhr { width: 1px; height: 1em; background: var(--hairline); display: inline-block; vertical-align: middle; }

/* price styles */
.price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}
.price-old {
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 0.5rem;
}
.price-new { color: var(--accent); }

/* === 10. ACCESIBILIDAD ==================================== */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
  /* simulated offset-color via box-shadow for better visual on dark */
  box-shadow: 0 0 0 2px var(--bg);
}

.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;
}
.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-x,
  .scale-in,
  .split-word > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ticker-track,
  .anim-spin-slow,
  .anim-blink,
  .anim-swing,
  .anim-pulse-soft,
  .skeleton,
  .img-ph::after {
    animation: none !important;
  }
  .cursor-follow { display: none !important; }
}

/* === 11. RESPONSIVE ======================================= */
/* mobile tightening */
@media (max-width: 640px) {
  body { font-size: 15px; }
  section { padding-top: clamp(2rem, 8vw, 4rem); padding-bottom: clamp(2rem, 8vw, 4rem); }
  .btn { padding: 11px 20px; }
  .tabs { gap: 1rem; overflow-x: auto; }
  .ticker-track { font-size: 1.1rem; gap: 2rem; }
}

/* wide screens — more air */
@media (min-width: 1536px) {
  :root { --container-pad-md: 3.5rem; }
}

/* === 12. PRINT ============================================ */
@media print {
  :root {
    --bg: #ffffff;
    --text: #000000;
    --muted: #555;
    --hairline: #ccc;
    --surface: #fafafa;
    --surface-2: #f0f0f0;
    --accent: #d15a00;
  }
  html, body { background: #fff !important; color: #000 !important; }
  header, footer, nav, .no-print, .toast-stack, .cursor-follow { display: none !important; }
  main { display: block; max-width: 100%; }
  a { color: #000 !important; text-decoration: underline; }
  .card { border: 1px solid #ccc !important; box-shadow: none !important; background: #fff !important; }
  .btn { border: 1px solid #000 !important; color: #000 !important; background: transparent !important; }
}

/* === 13. ADMIN OVERRIDES ================================== */
body[data-admin="true"],
.admin-shell {
  font-size: 14px;
}
body[data-admin="true"] h1,
.admin-shell h1 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}
body[data-admin="true"] h2,
.admin-shell h2 { font-size: 1.25rem; }
body[data-admin="true"] h3,
.admin-shell h3 { font-size: 1rem; }

/* denser tables */
.admin-shell .table,
body[data-admin="true"] .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-shell .table th,
body[data-admin="true"] .table th {
  text-align: left;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-shell .table td,
body[data-admin="true"] .table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.admin-shell .table tbody tr:hover,
body[data-admin="true"] .table tbody tr:hover {
  background: rgba(249, 115, 22, 0.04);
}
.admin-shell .table tbody tr.is-selected,
body[data-admin="true"] .table tbody tr.is-selected {
  background: var(--accent-veil);
}

/* admin sidebar nav */
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color var(--dur-base) var(--ease-out-soft), border-color var(--dur-base) var(--ease-out-soft), background-color var(--dur-base) var(--ease-out-soft);
}
.admin-nav-item:hover { color: var(--text); background: var(--surface); }
.admin-nav-item.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-veil);
}

/* admin stat tile */
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.stat-tile .stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-tile .stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.1;
  margin-top: 0.35rem;
}
.stat-tile .stat-delta.up { color: var(--success); }
.stat-tile .stat-delta.down { color: var(--danger); }

/* === 14. MISC — scroll indicator, mark, kbd ================ */
.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-indicator::after {
  content: "";
  width: 1px;
  height: 28px;
  background: var(--hairline);
  animation: blink 1.6s ease-in-out infinite;
}

mark {
  background: var(--accent-veil);
  color: var(--accent);
  padding: 0 0.2em;
  border-radius: var(--radius);
}

kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}

pre {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  line-height: 1.55;
}

/* === 15. NAV / HEADER ===================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.site-header .nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 0.25rem 0;
}
.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.site-header .nav-link:hover { color: var(--accent); }
.site-header .nav-link:hover::after,
.site-header .nav-link.is-active::after { transform: scaleX(1); }

/* === 16. FOOTER =========================================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg);
  padding: 4rem 0 2rem;
  color: var(--muted);
  font-size: 13px;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.site-footer a:hover { color: var(--accent); }

/* === END ================================================== */
