/* MiJornada — landing
   Palette: professional indigo/violet + restrained emerald status accent
   Type: Plus Jakarta Sans (display) / Inter (body) / Space Mono (timestamps) */

:root {
  --brand: #5B4BE0;
  --brand-700: #3F32B0;
  --brand-050: #EEEBFB;
  --ink: #191632;
  --slate: #565273;
  --mist: #F5F4FB;
  --line: #E6E3F4;
  --paper: #FFFFFF;
  --ok: #16A87A;
  --ok-050: #E3F6EE;

  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(25, 22, 50, .06);
  --shadow-md: 0 14px 40px rgba(25, 22, 50, .10);
  --shadow-lg: 0 30px 70px rgba(63, 50, 176, .22);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

img, svg { max-width: 100%; display: block; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* accessibility */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-accent { color: var(--brand); }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu > a { font-size: 15px; font-weight: 500; color: var(--slate); transition: color .15s ease; }
.nav-menu > a:hover { color: var(--ink); }

.btn-login {
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(91,75,224,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(91,75,224,.35); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(91,75,224,.30); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(91,75,224,.38); }
.btn--ghost { background: #fff; color: var(--brand-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand); }
.btn--plain { background: transparent; color: var(--slate); }
.btn--plain:hover { color: var(--ink); background: var(--brand-050); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- eyebrow / titles ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 14px;
}
.eyebrow--center { text-align: center; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section .section-title { text-align: center; max-width: 720px; margin: 0 auto; }
.section-sub { color: var(--slate); max-width: 560px; margin: 14px auto 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 92px) 0 clamp(56px, 8vw, 96px); background:
  radial-gradient(1000px 500px at 88% -8%, var(--brand-050), transparent 60%),
  radial-gradient(700px 420px at -6% 112%, #F1EEFF, transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 800; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em;
  background: linear-gradient(90deg, var(--brand), #9a8cff); border-radius: 4px; opacity: .35;
}
.hero-sub { color: var(--slate); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 520px; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy { animation: rise .6s ease both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- hero visual: ticket de marca ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.ticket-wrap { filter: drop-shadow(var(--shadow-lg)); width: 100%; max-width: 340px; animation: rise .7s .1s ease both; }
.ticket {
  background: #fff; border-radius: 20px; overflow: hidden;
  /* perforated notch cut at the divider line (top: 60px) */
  -webkit-mask:
    radial-gradient(circle 9px at 0 60px, transparent 9px, #000 9.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle 9px at 100% 60px, transparent 9px, #000 9.5px) 0 0 / 100% 100% no-repeat;
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle 9px at 0 60px, transparent 9px, #000 9.5px),
    radial-gradient(circle 9px at 100% 60px, transparent 9px, #000 9.5px);
  mask-composite: intersect;
}
.ticket-head {
  height: 60px; background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
.ticket-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.ticket-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ticket-perf { text-align: center; color: var(--line); line-height: 0; padding: 6px 0 2px; letter-spacing: 1px; overflow: hidden; }
.ticket-perf span { font-size: 12px; }
.ticket-body { padding: 6px 22px 24px; }

.ticket-person { display: flex; align-items: center; gap: 12px; padding: 8px 0 16px; }
.avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: var(--brand-050); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.person-meta { display: flex; flex-direction: column; line-height: 1.35; }
.person-meta strong { font-family: var(--font-display); font-size: 15px; }
.person-meta span { color: var(--slate); font-size: 12.5px; }

.ticket-time { border-top: 1px solid var(--line); padding-top: 16px; }
.time { font-family: var(--font-mono); font-weight: 700; font-size: 44px; letter-spacing: -.02em; color: var(--ink); display: block; }
.time .sec { color: var(--brand); }
.date { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); }

.ticket-map {
  position: relative; height: 84px; margin: 16px 0 14px; border-radius: 12px;
  background: var(--mist); border: 1px solid var(--line); overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .8;
}
.map-pin {
  position: absolute; left: 50%; top: 46%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: var(--brand); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(91,75,224,.4);
}
.map-pin::after { content: ""; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.map-pin::before {
  content: ""; position: absolute; left: 50%; top: 130%; width: 26px; height: 8px; margin-left: -13px;
  background: rgba(91,75,224,.16); border-radius: 50%; transform: rotate(45deg);
}

.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gps { font-family: var(--font-mono); font-size: 11px; color: var(--slate); }
.status {
  font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-050);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* floating chips */
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  border-radius: 12px; padding: 9px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-050); }
.float-chip--a { top: 6%; left: -6%; animation: floaty 5s ease-in-out infinite; }
.float-chip--b { bottom: 8%; right: -4%; font-family: var(--font-mono); font-weight: 700; animation: floaty 6s ease-in-out infinite reverse; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* features */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d4f2; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px;
  background: var(--brand-050); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--slate); font-size: 14.8px; margin: 0; }

/* steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-050);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.16rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 14.8px; margin: 0; }
.step-link { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 14.5px; }
.step-link:hover { color: var(--brand-700); }

/* contact (dark) */
.section--dark { background: var(--ink); color: #fff; }
.section--dark .section-title { color: #fff; }
.section--dark .eyebrow { color: #b9aeff; }
.contact-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.section--dark .section-sub { color: #b7b3cf; }
.contact-actions { justify-content: center; margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { background: #0f0d24; color: #cdc9e6; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-contact { font-family: var(--font-mono); font-size: 14px; color: #fff; font-weight: 700; }
.footer-contact:hover { color: #b9aeff; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; }
.footer-sep { color: #504c73; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .ticket-wrap { max-width: 320px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-menu > a:last-child { border-bottom: none; }
  .btn-login { text-align: center; margin-top: 10px; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .float-chip--a { left: 0; }
  .float-chip--b { right: 0; }
  .time { font-size: 40px; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .float-chip { font-size: 11.5px; padding: 7px 10px; }
}
