/* =========================================================
   VictoriaPOS — sitio de producto
   Dirección visual: profesional, confiable, tecnológica.
   Índigo profundo (marca) + ámbar cálido (acento, retail).
   ========================================================= */

:root {
  /* Paleta (oklch para tonos coherentes) */
  --indigo-900: oklch(24% 0.09 285);
  --indigo-800: oklch(31% 0.12 285);
  --indigo-700: oklch(40% 0.15 285);
  --indigo-600: oklch(50% 0.17 285);
  --indigo-500: oklch(60% 0.17 285);

  --amber:      oklch(78% 0.16 70);
  --amber-deep: oklch(70% 0.17 55);

  --ink:        oklch(22% 0.03 285);
  --ink-soft:   oklch(42% 0.02 285);
  --line:       oklch(90% 0.012 285);
  --surface:    oklch(99% 0.004 285);
  --surface-2:  oklch(97% 0.008 285);
  --paper:      oklch(100% 0 0);

  /* Tipografía */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --text-hero: clamp(2.5rem, 1.2rem + 5vw, 5rem);
  --text-h2:   clamp(1.7rem, 1.1rem + 2.2vw, 2.8rem);
  --text-h3:   clamp(1.1rem, 0.95rem + 0.6vw, 1.3rem);
  --text-lead: clamp(1.05rem, 0.97rem + 0.4vw, 1.25rem);

  /* Ritmo */
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;

  --shadow-sm: 0 1px 2px oklch(24% 0.09 285 / 0.06), 0 4px 14px oklch(24% 0.09 285 / 0.06);
  --shadow-lg: 0 24px 60px oklch(24% 0.09 285 / 0.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 320ms;
}

/* ===== Reset ligero ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* fondo con atmósfera sutil */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60rem 40rem at 85% -10%, oklch(60% 0.17 285 / 0.07), transparent 60%),
    radial-gradient(50rem 40rem at -10% 10%, oklch(78% 0.16 70 / 0.06), transparent 55%);
  pointer-events: none; z-index: -1;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  will-change: transform;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-800));
  color: var(--paper);
  box-shadow: 0 8px 22px oklch(40% 0.15 285 / 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px oklch(40% 0.15 285 / 0.4); }
.btn-ghost { background: transparent; color: var(--indigo-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--indigo-500); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1rem clamp(1.2rem, 4vw, 2.5rem);
  backdrop-filter: blur(12px);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: oklch(99% 0.004 285 / 0.75); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.brand-mark {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-800));
  color: var(--paper); font-weight: 700; font-size: 1.15rem;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.25);
}
.brand-logo { width: 2.5rem; height: 2.5rem; display: block; flex-shrink: 0; }
.brand-name { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-name strong { font-weight: 700; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 500; font-size: .96rem; }
.main-nav a { color: var(--ink-soft); transition: color var(--dur) var(--ease); }
.main-nav a:hover { color: var(--indigo-700); }
.header-actions { display: flex; align-items: center; gap: .9rem; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .7rem; cursor: pointer; font-family: var(--font-display); font-size: .85rem;
  color: var(--ink-soft);
}
.lang-opt { padding: .05rem .25rem; border-radius: 6px; transition: color var(--dur), background var(--dur); }
.lang-opt.is-active { color: var(--paper); background: var(--indigo-700); }
.lang-sep { opacity: .4; }

/* ===== Hero ===== */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 4vw, 5.5rem) clamp(1.2rem, 4vw, 2.5rem) var(--space-section); overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 45rem; height: 45rem; border-radius: 50%;
  background: radial-gradient(circle, oklch(60% 0.17 285 / 0.18), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--indigo-600); margin-bottom: 1rem;
}
.hero-title { font-size: var(--text-hero); font-weight: 700; }
.hero-title span { display: block; }
.accent-text {
  background: linear-gradient(120deg, var(--amber-deep), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: var(--text-lead); color: var(--ink-soft); max-width: 34ch; margin-top: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.2rem; }
.hero-badges li {
  position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500;
}
.hero-badges li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--indigo-600); font-weight: 700;
}

/* Mockup de interfaz */
.hero-visual { position: relative; }
.mock-window {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.mock-bar {
  display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem;
  background: linear-gradient(180deg, var(--indigo-800), var(--indigo-900));
}
.mock-bar .dot { width: .6rem; height: .6rem; border-radius: 50%; background: oklch(100% 0 0 / 0.35); }
.mock-title { margin-left: .6rem; color: oklch(100% 0 0 / 0.85); font-family: var(--font-display); font-size: .82rem; }
.mock-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.mock-cart { padding: 1rem; border-right: 1px solid var(--line); }
.mock-row { display: flex; justify-content: space-between; padding: .6rem .3rem; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.mock-row.muted { opacity: .55; }
.mock-row span:last-child { font-family: var(--font-display); font-weight: 600; }
.mock-side { padding: 1rem; background: var(--surface-2); display: flex; flex-direction: column; gap: .9rem; }
.mock-total { display: flex; flex-direction: column; }
.mock-total-label { font-size: .7rem; letter-spacing: .12em; color: var(--ink-soft); }
.mock-total-value { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--indigo-800); }
.mock-pay { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-chip { font-size: .72rem; padding: .3rem .55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.pay-chip.active { background: var(--indigo-700); color: var(--paper); border-color: transparent; }
.mock-status { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--ink-soft); margin-top: auto; }
.pulse { width: .5rem; height: .5rem; border-radius: 50%; background: oklch(72% 0.18 150); box-shadow: 0 0 0 0 oklch(72% 0.18 150 / 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(72% 0.18 150 / 0.5); } 70% { box-shadow: 0 0 0 .5rem oklch(72% 0.18 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(72% 0.18 150 / 0); } }

.float-card {
  position: absolute; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .8rem 1rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.float-card--ledger { bottom: -1.5rem; left: -1.5rem; }
.fc-label { font-size: .72rem; color: var(--ink-soft); }
.fc-value { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: oklch(55% 0.15 150); }
.float-card--offline { top: 1.5rem; right: -1.2rem; flex-direction: row; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 500; }
.float-card--offline .fc-ico { color: var(--amber-deep); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ===== Strip ===== */
.strip {
  border-block: 1px solid var(--line); background: var(--surface-2);
}
.strip p {
  max-width: var(--maxw); margin: 0 auto; padding: 1.6rem clamp(1.2rem, 4vw, 2.5rem);
  text-align: center; color: var(--ink-soft); font-size: .98rem;
}

/* ===== Secciones genéricas ===== */
.section-head { max-width: 46rem; margin: 0 auto var(--gap, 3rem); text-align: center; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head h2 { font-size: var(--text-h2); margin-top: .6rem; }

/* ===== Features (bento) ===== */
.features { max-width: var(--maxw); margin: 0 auto; padding: var(--space-section) clamp(1.2rem, 4vw, 2.5rem); }
.feature-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: oklch(60% 0.17 285 / 0.4); }
.feat--lg { grid-row: span 2; background: linear-gradient(165deg, var(--indigo-800), var(--indigo-900)); color: var(--paper); border-color: transparent; }
.feat--lg p { color: oklch(100% 0 0 / 0.78); }
.feat--wide { grid-column: span 2; }
.feat-ico {
  width: 3rem; height: 3rem; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 14px; background: var(--surface-2); margin-bottom: 1.1rem;
}
.feat--lg .feat-ico { background: oklch(100% 0 0 / 0.12); }
.feat h3 { font-size: var(--text-h3); margin-bottom: .6rem; }
.feat p { color: var(--ink-soft); font-size: .96rem; }

/* ===== Todas las funciones / 完整功能一览 ===== */
.all-features { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem) var(--space-section); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.feature-list li {
  display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 500; font-size: .94rem; font-family: var(--font-display);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-list li:hover { border-color: oklch(60% 0.17 285 / 0.45); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.fi-ico { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; background: var(--surface-2); border-radius: 9px; font-size: 1.05rem; flex-shrink: 0; }
.all-features-note { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 1.4rem; }
@media (max-width: 940px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-list { grid-template-columns: 1fr; } }

/* ===== Why ===== */
.why { background: var(--indigo-900); color: var(--paper); }
.why-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--space-section) clamp(1.2rem, 4vw, 2.5rem); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why .eyebrow { color: var(--amber); }
.why h2 { font-size: var(--text-h2); color: var(--paper); }
.why-list { display: grid; gap: 1.6rem; }
.why-list li { display: flex; gap: 1.2rem; padding-bottom: 1.6rem; border-bottom: 1px solid oklch(100% 0 0 / 0.1); }
.why-list li:last-child { border-bottom: none; }
.why-num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--amber); flex-shrink: 0; }
.why-list h3 { font-size: var(--text-h3); margin-bottom: .35rem; }
.why-list p { color: oklch(100% 0 0 / 0.72); font-size: .96rem; }

/* ===== Download ===== */
.download { max-width: var(--maxw); margin: 0 auto; padding: var(--space-section) clamp(1.2rem, 4vw, 2.5rem); }
.download-card {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(135deg, var(--surface-2), var(--paper));
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 4vw, 3.5rem); box-shadow: var(--shadow-sm); align-items: center;
}
.download-card h2 { font-size: var(--text-h2); margin: .5rem 0 1rem; }
.download-card > .download-copy > p { color: var(--ink-soft); font-size: var(--text-lead); max-width: 46ch; }
.download-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.download-meta { font-size: .85rem; color: var(--ink-soft); }
.download-note { margin-top: 1.2rem; font-size: .9rem; color: var(--ink-soft); }
.soon-badge { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: .8rem; padding: .4rem .8rem; border-radius: 999px; background: oklch(78% 0.16 70 / 0.2); color: var(--amber-deep); }
.download-soon-note { margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); font-weight: 500; }
.btn.is-soon { opacity: .9; }
.download-plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.plan-row { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.plan-row:last-child { border-bottom: none; }
.plan-row span { color: var(--ink-soft); }
.plan-row strong { font-family: var(--font-display); color: var(--indigo-700); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 4vw, 4rem) clamp(1.2rem, 4vw, 2.5rem) 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--ink-soft); font-size: .92rem; margin-top: .8rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-display); font-size: .95rem; margin-bottom: .9rem; }
.footer-col a { display: block; color: var(--ink-soft); padding: .3rem 0; font-size: .92rem; transition: color var(--dur); }
.footer-col a:hover { color: var(--indigo-700); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1.4rem clamp(1.2rem, 4vw, 2.5rem); border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); }

/* ===== Animación de entrada (revelar) ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; order: 2; }
  .mock-window { transform: none; }
  .why-inner { grid-template-columns: 1fr; }
  .feature-bento { grid-template-columns: repeat(2, 1fr); }
  .feat--lg { grid-row: auto; }
  .feat--wide { grid-column: span 2; }
  .download-card { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .main-nav { display: none; }
  .feature-bento { grid-template-columns: 1fr; }
  .feat--wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card--ledger { left: 0; bottom: -1rem; }
  .float-card--offline { right: 0; }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
