/* ============================================================
   EventOS — Editorial Landing
   Tokens, base, layout primitives
============================================================ */

:root {
  --bone: #F5F1EA;
  --bone-2: #EFEAE0;
  --navy: #1D3557;
  --navy-soft: #2A4467;
  --coral: #E63946;
  --gold: #FFB627;
  --gray: #6C757D;
  --gray-2: #9AA0A6;
  --hairline: rgba(29, 53, 87, 0.18);
  --hairline-strong: rgba(29, 53, 87, 0.4);

  --serif: "Fraunces", "GT Sectra", "Tiempos Headline", "Canela", Georgia, serif;
  --sans: "Manrope", "Söhne", "Inter Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1200px;
  --gutter: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* ── Type primitives ──────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .num {
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--navy);
  opacity: 0.5;
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-feature-settings: "ss01";
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
.h-display em { font-style: normal; color: var(--coral); }

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
.h-section em { font-style: normal; color: var(--coral); }

.h-module {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

.lead {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  color: var(--navy);
  max-width: 56ch;
  margin: 0;
  font-weight: 400;
}
.lead-sm {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray);
  margin: 0;
}

.label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── Big numbers (signature) ──────────────────────────────── */
.big-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--coral);
  font-feature-settings: "ss01", "tnum";
  font-variant-numeric: tabular-nums;
  display: block;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--bone);
}
.btn-primary:hover { transform: translateY(-2px); background: #d92f3c; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { background: var(--navy); color: var(--bone); }
.btn-arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-xl {
  font-size: 16px;
  padding: 22px 36px;
}

/* ── Hairline divider ─────────────────────────────────────── */
.hr {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* ── Section spacing ──────────────────────────────────────── */
section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
section.tight { padding: clamp(40px, 5vw, 64px) 0; }

/* ── Coral checkmark bullets ──────────────────────────────── */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
  color: var(--navy);
}
.checks li::before {
  content: "✓";
  color: var(--coral);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--sans);
}

/* ── "NUEVO" badge (gold, used sparingly) ─────────────────── */
.badge-new {
  display: inline-block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 7px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Cursor follow line ───────────────────────────────────── */
.cursor-line {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
}
.cursor-line .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease);
  opacity: 0;
}
.cursor-line.active .dot { opacity: 0.8; }
.cursor-line .line {
  position: absolute;
  height: 1px;
  background: var(--coral);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cursor-line.active .line { opacity: 0.35; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadein 0.3s var(--ease);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bone);
  border-radius: 6px;
  padding: 48px;
  max-width: 540px;
  width: 100%;
  position: relative;
  animation: rise 0.4s var(--ease);
  border: 1px solid var(--hairline);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(29, 53, 87, 0.08); }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  color: var(--navy);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--coral);
}

/* ── Anim helpers ─────────────────────────────────────────── */
@keyframes pulse-pin {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.85; }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes float-pin {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ── Utility ──────────────────────────────────────────────── */
.muted { color: var(--gray); }
.coral { color: var(--coral); }
.navy  { color: var(--navy); }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Density tweak ────────────────────────────────────────── */
body[data-density="compact"] section { padding: clamp(56px, 7vw, 100px) 0; }
body[data-density="comfy"] section { padding: clamp(96px, 12vw, 180px) 0; }

/* ── Mobile / tablet ──────────────────────────────────────── */
@media (max-width: 880px) {
  :root { --gutter: 20px; }
  .grid { grid-template-columns: 1fr !important; gap: 24px; }
  .grid > * { grid-column: 1 / -1 !important; }
  .modules-grid { grid-template-columns: 1fr !important; }
  .caso-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }
  .caso-body > div:nth-child(2) { display: flex; justify-content: center; margin-top: 24px; }
  .hero { padding-top: 110px !important; }
  .hero-phone { padding-top: 8px !important; order: -1; }
  .hero-stats { gap: 16px !important; flex-wrap: wrap; }
  .hero-annotation { display: none !important; }
  .mobile-drawer { background: var(--bone) !important; }
  section { padding: clamp(56px, 14vw, 90px) 0; }
  body[data-density="compact"] section { padding: clamp(40px, 10vw, 64px) 0; }
  body[data-density="comfy"] section { padding: clamp(72px, 16vw, 120px) 0; }

  /* Hide cursor line on touch devices */
  .cursor-line { display: none; }

  /* Type scaling */
  .h-display { font-size: clamp(40px, 11vw, 64px); line-height: 1.0; }
  .h-section { font-size: clamp(32px, 9vw, 52px); line-height: 1.05; }
  .h-module  { font-size: 22px; }
  .lead      { font-size: 17px; }
  .big-num   { font-size: clamp(56px, 16vw, 88px); }

  .eyebrow { font-size: 10px; }
  .eyebrow::before { width: 18px; }

  /* Buttons */
  .btn-xl { font-size: 14px; padding: 16px 24px; }

  /* Modal */
  .modal { padding: 32px 24px; max-height: 90vh; overflow-y: auto; }

  /* Mobile drawer (nav) */
  .mobile-only { display: initial; }
  .desktop-only { display: none !important; }
}
@media (min-width: 881px) {
  .mobile-only { display: none !important; }
}
.mobile-burger { display: inline-flex; }
@media (min-width: 881px) {
  .mobile-burger { display: none !important; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .h-display { font-size: clamp(38px, 13vw, 56px); letter-spacing: -0.025em; }
  .h-section { font-size: clamp(30px, 10vw, 46px); }
  section { padding: 64px 0; }
}
