/* ============================================================
   Matteria v2 — innovador
   Hereda de tokens.css + main.css. Solo añade lo nuevo.
   ============================================================ */

:root {
  --night:        #f5f1ea;
  --night-2:      #ebe4d7;
  --grid-line:    rgba(58, 36, 22, .07);
  --soft-line:    rgba(58, 36, 22, .14);
  --ink:          #1f1410;
  --ink-soft:     #5a4636;
}

/* Custom cursor (desktop only, opt-in) ----------------------- */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button { cursor: none; }
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease;
  }
  .cursor-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    transition: transform .12s ease-out, opacity .2s ease;
  }
  .cursor-ring {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid rgba(255, 107, 53, .55);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s ease, width .25s, height .25s;
  }
  body.cursor-hover .cursor-ring {
    width: 64px; height: 64px;
    border-color: var(--accent);
    background: rgba(255,107,53,.08);
  }
  body.cursor-hover .cursor-dot { transform: translate(-50%, -50%) scale(0); }
}

/* Page wrap light cream ---------------------------------------------- */
.v2 { background: var(--night); color: var(--ink); }
.v2 .site-header {
  background: rgba(245, 241, 234, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.v2 .site-header.scrolled { border-bottom-color: var(--soft-line); box-shadow: 0 4px 20px rgba(58,36,22,.06); }
.v2 .site-nav__list a { color: var(--ink-soft); }
.v2 .site-nav__list a:hover, .v2 .site-nav__list a.is-active { color: var(--ink); }
.v2 .site-nav__list a.is-active::after { background: var(--accent); }
/* Logo sits naturally on cream — no chip needed */
.v2 .site-header__logo { background: transparent; padding: 0; box-shadow: none; }
.v2 .site-header__logo img { height: 30px; filter: none; }
.v2 .menu-toggle { color: var(--ink); }
.v2 .menu-toggle:hover { background: rgba(58,36,22,.06); }
.v2 .btn-outline {
  color: var(--ink); border-color: rgba(58,36,22,.22); background: transparent;
}
.v2 .btn-outline:hover { background: rgba(58,36,22,.06); border-color: var(--ink); }

/* Mobile menu light */
.v2 .mobile-menu { background: var(--night); }
.v2 .mobile-menu a { color: var(--ink); border-bottom-color: var(--soft-line); }
.v2 .mobile-menu a.is-active { color: var(--accent); }

/* Bottom bar light */
.v2 .bottom-bar { background: #fff; border-top: 1px solid var(--soft-line); }

/* ============================================================
   HERO — masked text reveal + grid
   ============================================================ */
.h2-hero {
  position: relative;
  min-height: 100svh;
  padding: 96px 0 64px;
  display: flex; align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.h2-hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.h2-hero__glow {
  position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(800px 500px at 75% 20%, rgba(255,107,53,.14), transparent 60%),
    radial-gradient(700px 600px at 10% 100%, rgba(212,175,140,.45), transparent 60%);
  pointer-events: none;
}
.h2-hero__content { position: relative; z-index: 2; max-width: 1100px; }

.h2-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--soft-line);
  background: rgba(255,255,255,.5);
}
.h2-hero__eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,107,53,.6);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255,107,53,.5); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(255,107,53,0); }
}

.h2-display {
  font-size: clamp(3rem, 10vw, 8.25rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.045em;
  color: var(--ink);
  margin: 24px 0 0;
  text-wrap: balance;
}
.h2-display .line { display: block; }
.h2-display .masked {
  background-image: var(--mask-img, url('../assets/hero/hero-1.jpg'));
  background-size: cover;
  background-position: center 40%;
  -webkit-background-clip: text;
          background-clip: text;
  /* Fallback: render in accent if background-clip:text isn't paintable */
  color: var(--accent);
  -webkit-text-fill-color: transparent;
  filter: saturate(1.05) contrast(1.1);
  position: relative;
  display: inline-block;
  /* Belt-and-braces fallback when the bg image fails (transparent text on cream bg) */
  background-color: var(--accent);
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .h2-display .masked { color: var(--accent); -webkit-text-fill-color: currentColor; background-color: transparent; }
}
.h2-display .masked::after {
  /* subtle accent under the masked word */
  content: ''; position: absolute; left: 0; right: 0; bottom: -.06em;
  height: .08em; background: var(--accent); border-radius: 4px;
  transform-origin: left;
  animation: underlineIn 1.2s .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes underlineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.h2-hero__sub {
  margin-top: 28px; max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--ink-soft); line-height: 1.6;
}
.h2-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.h2-hero__meta {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  font-size: .75rem; color: rgba(58,36,22,.45);
  letter-spacing: .08em; text-transform: uppercase;
  padding-top: 16px; border-top: 1px solid var(--soft-line);
}
@media (min-width: 768px) {
  .h2-hero__meta { left: 32px; right: 32px; bottom: 32px; }
}

/* ============================================================
   STATS — count up + brick bars
   ============================================================ */
.h2-stats {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  margin-top: 56px;
}
@media (min-width: 700px) { .h2-stats { grid-template-columns: repeat(3, 1fr); } }

.stat {
  padding: 24px 0;
  border-top: 1px solid var(--soft-line);
}
.stat__num {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__num .plus { color: var(--accent); }
.stat__label {
  margin-top: 12px; font-size: .8125rem; font-weight: 500;
  color: rgba(58,36,22,.55);
  text-transform: uppercase; letter-spacing: .1em;
}
.stat__bar {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px;
  height: 6px;
}
.stat__bar i {
  background: rgba(58,36,22,.08);
  border-radius: 1px;
  transform-origin: left;
  transform: scaleY(0);
  transition: transform .4s ease;
}
.stat.is-visible .stat__bar i { transform: scaleY(1); background: var(--accent); }
.stat.is-visible .stat__bar i:nth-child(n+10) { background: rgba(58,36,22,.18); }
.stat.is-visible .stat__bar i:nth-child(1)  { transition-delay: .05s; }
.stat.is-visible .stat__bar i:nth-child(2)  { transition-delay: .07s; }
.stat.is-visible .stat__bar i:nth-child(3)  { transition-delay: .09s; }
.stat.is-visible .stat__bar i:nth-child(4)  { transition-delay: .11s; }
.stat.is-visible .stat__bar i:nth-child(5)  { transition-delay: .13s; }
.stat.is-visible .stat__bar i:nth-child(6)  { transition-delay: .15s; }
.stat.is-visible .stat__bar i:nth-child(7)  { transition-delay: .17s; }
.stat.is-visible .stat__bar i:nth-child(8)  { transition-delay: .19s; }
.stat.is-visible .stat__bar i:nth-child(9)  { transition-delay: .21s; }
.stat.is-visible .stat__bar i:nth-child(10) { transition-delay: .23s; }
.stat.is-visible .stat__bar i:nth-child(n+11) { transition-delay: calc(.05s * var(--i, 1)); }

/* ============================================================
   GENERIC v2 SECTIONS
   ============================================================ */
.v2 .section { background: var(--night); }
.v2 .section--soft { background: var(--night-2); }
.v2 .section--paper { background: #fff; color: var(--ink); }
.v2 .section--paper h1, .v2 .section--paper h2, .v2 .section--paper h3 { color: var(--primary); }
.v2 .section--paper .lead, .v2 .section--paper p { color: var(--text-soft); }
.v2 .section--paper .eyebrow { color: var(--accent); }
.v2 h1, .v2 h2, .v2 h3 { color: var(--ink); }
.v2 .lead { color: var(--ink-soft); }
.v2 .eyebrow { color: var(--accent); }

/* Big editorial label */
.v2 .label-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(58,36,22,.55);
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
}
.v2 .label-num::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.section--paper .label-num { color: var(--text-mute); }

/* ============================================================
   MARQUEE — tiendas en movimiento
   ============================================================ */
.marquee {
  --speed: 60s;
  position: relative;
  overflow: hidden;
  padding: 32px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex; gap: 16px; width: max-content;
  animation: scroll var(--speed) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.m-tile {
  position: relative; flex-shrink: 0;
  width: 280px; aspect-ratio: 4/3;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--soft-line);
  background: var(--night-2);
  transition: transform .3s ease;
  box-shadow: 0 8px 24px rgba(58,36,22,.08);
}
.marquee:hover .m-tile:hover { transform: scale(1.04); }
.m-tile img { width: 100%; height: 100%; object-fit: cover; }
.m-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(31,20,16,.85) 100%);
}
.m-tile__name {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  color: #fff; font-size: .9375rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
}
.m-tile__loc {
  font-size: .6875rem; color: rgba(255,255,255,.6);
  font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; }
}

/* ============================================================
   INTERACTIVE MAP — clickable pins + sidebar
   ============================================================ */
.imap-wrap {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 1000px) { .imap-wrap { grid-template-columns: 1.6fr 1fr; gap: 32px; } }

.imap {
  position: relative;
  aspect-ratio: 16/12;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  background: linear-gradient(135deg, #1f1410 0%, #3a261c 100%);
}
@media (min-width: 1000px) { .imap { aspect-ratio: auto; min-height: 540px; } }

.imap__filters {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.imap__chip {
  padding: 8px 14px; font-size: .75rem; font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  border: 1px solid var(--soft-line);
  background: rgba(5,13,26,.7);
  color: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  transition: all .15s ease;
}
.imap__chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.imap__chip.is-active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

.imap__svg { width: 100%; height: 100%; }
.imap__pin {
  position: absolute;
  width: 12px; height: 12px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
.imap__pin .dot {
  position: absolute; inset: 0;
  border-radius: 50%; background: var(--accent);
  border: 2px solid #1f1410;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 4px 10px rgba(255,107,53,.35);
  transition: transform .2s ease;
}
.imap__pin .ring {
  position: absolute; inset: -1px;
  border-radius: 50%; background: var(--accent); opacity: 0;
}
.imap__pin:hover { z-index: 5; }
.imap__pin:hover .dot { transform: scale(1.45); }
.imap__pin.is-active { z-index: 6; }
.imap__pin.is-active .dot { background: #fff; transform: scale(1.6); border-color: var(--accent); }
.imap__pin.is-active .ring { animation: pulse2 1.4s ease-out infinite; }
@keyframes pulse2 {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(4); opacity: 0; }
}
.imap__pin.is-hidden { opacity: 0; pointer-events: none; transition: opacity .25s ease; }

/* Distribuidores con foto pendiente: pin más tenue */
.imap__pin--placeholder .dot {
  background: rgba(255,107,53,.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
}

/* Almacén central — pin destacado con etiqueta visible */
.imap__pin--central { width: 18px; height: 18px; z-index: 4; }
.imap__pin--central .dot {
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(255,107,53,.3), 0 6px 16px rgba(255,107,53,.5);
}
.imap__pin--central .ring {
  opacity: .35;
  animation: pulse2 2.4s ease-out infinite;
}
.imap__pin-label {
  position: absolute;
  top: 100%; left: 50%; transform: translate(-50%, 6px);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .5625rem; letter-spacing: .15em; font-weight: 700;
  color: var(--accent);
  background: rgba(31,20,16,.92);
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap; pointer-events: none;
  border: 1px solid rgba(255,107,53,.4);
}

.imap__legend {
  position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .6875rem; letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  pointer-events: none;
}
.imap__legend-key { display: inline-flex; align-items: center; gap: 6px; }
.imap__legend-key i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.imap__legend-key--central i { background: #fff; border: 2px solid var(--accent); width: 10px; height: 10px; }
.imap__legend-key--placeholder i { background: rgba(255,107,53,.55); }

.store-card {
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 360px;
  box-shadow: 0 12px 32px rgba(58,36,22,.08);
}
.store-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--night-2); }
.store-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.store-card__body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.store-card__loc {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.store-card__name {
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em; line-height: 1.2;
}
.store-card__addr {
  font-size: .875rem; color: var(--ink-soft);
}
.store-card__cta { margin-top: auto; padding-top: 16px; }
.store-card .btn { width: 100%; justify-content: center; }
.store-card.is-changing .store-card__media img,
.store-card.is-changing .store-card__name,
.store-card.is-changing .store-card__addr,
.store-card.is-changing .store-card__loc { opacity: 0; }
.store-card.is-changing { transition: none; }

/* Estado "foto pendiente": superpone una indicación discreta sobre la imagen
   y atenúa la foto de respaldo. */
.store-card--placeholder .store-card__media { position: relative; }
.store-card--placeholder .store-card__media img { filter: grayscale(.6) brightness(.85); }
.store-card--placeholder .store-card__media::after {
  content: 'Foto pendiente · datos del distribuidor';
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(31,20,16,.85), rgba(31,20,16,0));
  text-align: center;
  pointer-events: none;
}

/* ============================================================
   LIVE TICKER — gestiona pedidos en vivo
   ============================================================ */
.live-screen {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  background: #1f1410;
  box-shadow: 0 40px 80px rgba(58,36,22,.18);
}
.live-screen__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--soft-line);
}
.live-screen__lights { display: flex; gap: 6px; }
.live-screen__lights span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.live-screen__title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .75rem; color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}
.live-screen__live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase;
}
.live-screen__live .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulseDot 1.5s ease-out infinite;
}

.live-screen__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}
@media (max-width: 700px) { .live-screen__body { grid-template-columns: 1fr; } }
.live-side {
  border-right: 1px solid var(--soft-line);
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,.01);
}
@media (max-width: 700px) { .live-side { border-right: 0; border-bottom: 1px solid var(--soft-line); flex-direction: row; overflow-x: auto; padding: 12px; } }
.live-side__item {
  display: flex; align-items: center; gap: 10px;
  font-size: .8125rem; color: rgba(255,255,255,.6);
  padding: 10px 12px; border-radius: 8px; white-space: nowrap;
}
.live-side__item.is-active {
  background: rgba(255,107,53,.12); color: var(--accent); font-weight: 600;
}
.live-side__item .ico { width: 14px; height: 14px; }
.live-side__count {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .6875rem; font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.4);
}

.live-feed { padding: 20px; display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow: hidden; }
.live-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px; align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  font-size: .8125rem;
  animation: feedIn .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.live-row__time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .6875rem; color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums;
}
.live-row__name { color: #fff; font-weight: 500; line-height: 1.3; }
.live-row__store { font-size: .6875rem; color: rgba(255,255,255,.5); margin-top: 2px; }
.live-row__qty {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums;
}
.live-row__price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums;
}

/* ============================================================
   BEFORE/AFTER SLIDER
   ============================================================ */
.compare-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: #fff;
  user-select: none;
  touch-action: none;
}
.compare-slider__pane {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.compare-slider__pane--after {
  clip-path: polygon(var(--x, 50%) 0, 100% 0, 100% 100%, var(--x, 50%) 100%);
}
.compare-slider__label {
  position: absolute; top: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 4px;
  z-index: 5;
}
.compare-slider__pane--before .compare-slider__label {
  left: 18px; background: rgba(0,0,0,.7); color: #fff;
}
.compare-slider__pane--after .compare-slider__label {
  right: 18px; background: var(--accent); color: #fff;
}
.compare-slider__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--x, 50%); width: 2px;
  background: #fff; z-index: 4;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
  transform: translateX(-50%);
}
.compare-slider__knob {
  position: absolute; left: 50%; top: 50%;
  width: 48px; height: 48px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  cursor: ew-resize;
}
.compare-slider__knob svg { width: 22px; height: 22px; }

/* "Before" — paper notebook */
.paper {
  flex: 1;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 28px, rgba(10,37,64,.08) 28px, rgba(10,37,64,.08) 29px),
    #fdfaf1;
  padding: 28px 32px;
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-size: 1.4rem;
  line-height: 30px;
  color: #1d3a66;
  position: relative;
}
.paper::before {
  content: ''; position: absolute; left: 56px; top: 0; bottom: 0;
  width: 1px; background: #e94d4d; opacity: .4;
}
.paper-header {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem; color: #c83d3d;
  border-bottom: 1px solid rgba(0,0,0,.15);
  padding-bottom: 4px; margin-bottom: 12px;
  display: flex; justify-content: space-between;
}
.paper-line { display: flex; justify-content: space-between; gap: 20px; }
.paper-line span:last-child { color: #c83d3d; }
.paper-line.scratch { text-decoration: line-through; color: #777; }
.paper-stamp {
  position: absolute; right: 32px; bottom: 24px;
  border: 2px solid #c83d3d;
  color: #c83d3d;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem; padding: 8px 16px;
  transform: rotate(-8deg);
  border-radius: 4px;
  opacity: .8;
}

/* "After" — gestiona */
.after-screen {
  flex: 1;
  background: #fff;
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif;
}
.after-screen__bar {
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft);
}
.after-screen__bar .crumb {
  font-size: .75rem; color: var(--text-mute);
  font-weight: 500; letter-spacing: .04em;
}
.after-screen__bar .crumb strong { color: var(--primary); }
.after-screen__bar .badge {
  margin-left: auto;
  font-size: .6875rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: #dcfce7; color: #166534;
  letter-spacing: .04em;
}
.after-screen__body { flex: 1; padding: 18px 24px; display: flex; flex-direction: column; gap: 8px; }
.after-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px;
  font-size: .8125rem; padding: 10px 12px;
  background: var(--bg-soft); border-radius: 8px;
  align-items: center;
}
.after-row__name { font-weight: 600; color: var(--primary); }
.after-row__qty  { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.after-row__price{ color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.after-row__check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.after-screen__total {
  margin-top: auto;
  padding: 14px 0 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
}
.after-screen__total .label { font-size: .75rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }
.after-screen__total .num   { font-size: 1.5rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.after-screen__total .num .accent { color: var(--accent); }

/* ============================================================
   FEATURE CARDS (light)
   ============================================================ */
.f-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .f-grid { grid-template-columns: repeat(3, 1fr); } }
.f-card {
  position: relative;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 12px rgba(58,36,22,.04);
}
.f-card:hover {
  border-color: rgba(255,107,53,.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(58,36,22,.10);
}
.f-card::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.f-card:hover::before { transform: scaleX(1); }
.f-card__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .75rem; color: rgba(58,36,22,.45);
  letter-spacing: .12em; margin-bottom: 28px;
}
.f-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,107,53,.10); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.f-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--ink); }
.f-card p  { color: var(--ink-soft); font-size: .9375rem; }

/* ============================================================
   CTA BIG BAND
   ============================================================ */
.cta-band {
  position: relative; isolation: isolate;
  border-radius: 28px;
  padding: 64px 32px;
  background: linear-gradient(135deg, #ff6b35 0%, #ee5a24 60%, #c93b15 100%);
  overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 10% 110%, rgba(0,0,0,.3), transparent 50%);
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p  { color: rgba(255,255,255,.92); margin-top: 16px; max-width: 50ch; font-size: 1.125rem; }
.cta-band__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: rgba(255,255,255,.92); }
.cta-band .btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.5); }

/* ============================================================
   FOOTER (dark already)
   ============================================================ */
.v2 .site-footer { background: #1f1410; border-top: 1px solid rgba(255,220,200,.1); }
.v2 .footer-brand img { filter: none; height: 26px; margin: 0; }
.v2 .footer-logo-chip {
  display: inline-flex;
  background: #f4f1ec;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* ============================================================
   LA CENTRAL — bento grid Torremejía
   ============================================================ */
.central-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 700px) {
  .central-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 280px;
    gap: 16px;
  }
  .central-cell--hero { grid-column: span 2; grid-row: span 2; }
}
.central-cell {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 8px 24px rgba(58,36,22,.10);
  isolation: isolate;
}
.central-cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.central-cell:hover img { transform: scale(1.04); }
.central-cell figcaption {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.central-cell--hero figcaption {
  font-size: .8125rem;
  letter-spacing: .14em;
}
@media (max-width: 699px) {
  .central-cell { aspect-ratio: 4/3; }
}

.central-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--soft-line);
}
@media (min-width: 700px) {
  .central-meta { grid-template-columns: repeat(4, 1fr); }
}
.central-meta div {
  display: flex; flex-direction: column; gap: 4px;
}
.central-meta .num {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.central-meta .lbl {
  font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft);
}


.magnetic { transition: transform .25s cubic-bezier(.2,.8,.2,1); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .magnetic { transition: none; transform: none !important; } }

/* Hero bottom hint arrow */
.hero-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.hero-hint .arr {
  display: inline-flex; flex-direction: column; align-items: center;
  animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* Section header v2 patterns -------------------------------- */
.v2-head {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: 56px;
  align-items: end;
}
@media (min-width: 900px) { .v2-head { grid-template-columns: 1fr 1fr; gap: 64px; } }
.v2-head h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -.025em; }
