/* Web de Yalufly: lo compartido por todas las páginas (colores, botones, barra, pantallas de los sistemas, secciones). */

:root {
  /* Paleta tomada de la referencia de Luis (santdev.com): marino, petróleo y celeste sobre fondos claros. */
  --bg: #0A1F33;
  --bg2: #123A58;
  --blue: #00B3D6;
  --blue-d: #245B80;
  --cyan: #2CC4E0;
  --text: #F5FAFD;
  --muted: #9FB3C4;
  --ink: #0E2433;
  --ink-2: #3C5163;
  --mute-l: #5F7384;
  --line: #E1E8EE;
  --light: #F4F9FC;
  --amber: #F5B301;
  --grad: linear-gradient(120deg, #245B80 20%, #00B3D6);
  --out: cubic-bezier(.16, 1, .3, 1);
  --io: cubic-bezier(.65, 0, .35, 1);
  --snap: cubic-bezier(.75, 0, .2, 1);
  --k: .9;
  --font: Sora, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
.grad { background: linear-gradient(100deg, #fff 0%, var(--cyan) 45%, var(--blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-dark span { background: linear-gradient(100deg, #1B4A6B, #00B3D6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--out), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn-primary { background: var(--blue-d); color: #fff; padding: 14px 26px; font-size: 16px; border: 0; box-shadow: 0 10px 30px rgba(36, 91, 128, .45); }
.btn-primary:hover { background: #1B4A6B; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(36, 91, 128, .6); }
.btn-outline { padding: 13px 24px; font-size: 16px; color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 14, 30, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost { padding: 10px 16px; font-size: 14px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .16); background: rgba(8, 14, 30, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); }

/* ---------- Barra superior (visible desde el primer momento) ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 20px 14px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(8, 14, 30, .55); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand-name { font-weight: 800; letter-spacing: -.03em; font-size: 18px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, #1B4A6B); box-shadow: 0 0 18px rgba(0, 179, 214, .5); flex-shrink: 0; }
.brand-mark svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.sm { width: 22px; height: 22px; border-radius: 7px; }
.topnav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(8, 14, 30, .55); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-link { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: rgba(245, 248, 255, .85); transition: background-color .2s; }
.nav-link:hover { background: rgba(255, 255, 255, .1); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.mode-intro .topnav { opacity: 0; pointer-events: none; }
.topnav { transition: opacity .3s; }
.mode-cover .only-intro { display: none; }
@media (max-width: 760px) {
  .topnav { display: none; }
  .mode-intro .top-actions .btn-sm { display: none; }
  .brand-name { font-size: 16px; }
  .btn-ghost { font-size: 13px; padding: 9px 13px; }
}

/* ---------- Pantallas de los sistemas (dibujadas en HTML) ---------- */
.fit { position: relative; flex-shrink: 0; width: calc(var(--w) * var(--sc, 1) * 1px); height: calc(var(--h) * var(--sc, 1) * 1px); }
.fit-in { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--sc, 1)); transform-origin: 0 0; font-family: var(--font-ui); color: #0F172A; text-align: left; letter-spacing: normal; line-height: 1.2; }
.m-screen { border-radius: 22px; overflow: hidden; background: #F6F8FC; display: flex; flex-direction: column; box-shadow: 0 40px 120px rgba(37, 99, 235, .35), 0 0 0 1px rgba(148, 178, 255, .35); }
.m-chrome { height: 44px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #E5E9F2; display: flex; align-items: center; gap: 8px; padding: 0 18px; }
.m-chrome i { width: 12px; height: 12px; border-radius: 50%; background: #F87171; }
.m-chrome i:nth-child(2) { background: #FBBF24; } .m-chrome i:nth-child(3) { background: #34D399; }
.m-chrome span { margin: 0 auto; background: #F1F5F9; border-radius: 8px; padding: 5px 60px; font-size: 13px; color: #64748B; transform: translateX(-30px); }
.m-main { flex: 1; display: flex; min-height: 0; }
.m-side { width: 220px; flex-shrink: 0; background: #fff; border-right: 1px solid #E5E9F2; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.m-side > b { font-weight: 800; font-size: 18px; color: #1D4ED8; margin-bottom: 14px; letter-spacing: -.02em; }
.m-nav { padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #475569; display: flex; gap: 10px; align-items: center; }
.m-nav.on { color: #1D4ED8; background: #EFF6FF; }
.m-nav i { width: 16px; height: 16px; border-radius: 5px; border: 2px solid currentColor; opacity: .7; }
.m-content { flex: 1; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.m-h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.m-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.m-col { display: flex; flex-direction: column; gap: 14px; }
.m-col.tight { gap: 6px; }
.m-row { display: flex; gap: 14px; }
.full { flex: 1; height: 100%; min-height: 0; }
.fit-in .grow { flex: 1; min-height: 0; }
.m-box { background: #fff; border: 1px solid #E5E9F2; border-radius: 14px; }
.m-pad { padding: 18px; } .m-pad-s { padding: 12px; }
.m-kpi { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.m-lbl { font-size: 15px; color: #64748B; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.m-lbl.ink { color: #0F172A; } .m-lbl.b { font-weight: 700; } .m-lbl.blue { color: #3B82F6; } .m-lbl.ok { color: #16A34A; font-size: 13px; }
.m-big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.m-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; color: #1D4ED8; background: #DBEAFE; }
.m-pill.p-green { color: #15803D; background: #DCFCE7; } .m-pill.p-gray { color: #0F172A; background: #F1F5F9; } .m-pill.p-pink { color: #BE185D; background: #FCE7F3; }
.m-bar { height: 10px; border-radius: 10px; background: #E2E8F0; }
.m-av { width: var(--s); height: var(--s); border-radius: 50%; background: #DBEAFE; font-weight: 700; font-size: calc(var(--s) * .42); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m-li { display: flex; gap: 10px; align-items: center; }
.m-li.between { justify-content: space-between; } .m-li.wrap { flex-wrap: wrap; gap: 8px; }
.m-bars { display: flex; align-items: flex-end; gap: 8px; height: 100%; }
.m-bars i { flex: 1; background: #0F172A; border-radius: 5px; transform-origin: 50% 100%; }
.m-bars.blue i { background: #3B82F6; }
.on .m-bars i { animation: barUp .7s calc(var(--i) * 35ms + .3s) var(--out) both; }
@keyframes barUp { from { transform: scaleY(0); } to { transform: none; } }
.m-line { width: 100%; height: 100%; display: block; }
.m-line .f { fill: var(--c); opacity: .2; }
.m-line .l { fill: none; stroke: var(--c); stroke-width: 3; vector-effect: non-scaling-stroke; }
.m-tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; flex: 1; }
.m-tables > div { border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.t-libre { background: #DCFCE7; } .t-libre .m-lbl { color: #15803D; }
.t-ocupada { background: #DBEAFE; } .t-ocupada .m-lbl { color: #1D4ED8; }
.t-cuenta { background: #FEF3C7; } .t-cuenta .m-lbl { color: #B45309; }
.m-btn { background: #3B82F6; color: #fff; border-radius: 12px; padding: 12px 0; text-align: center; font-weight: 700; font-size: 15px; }
.m-btn.dark { background: #0F172A; }
.m-dot { width: 10px; height: 10px; border-radius: 50%; background: #3B82F6; flex-shrink: 0; }
.m-slot { padding: 12px; border-radius: 12px; background: #F6F8FC; }
.m-slot.on { background: #EFF6FF; }
.m-appt { flex: 1; padding: 10px 14px; border-radius: 10px; border-left: 4px solid; }
.m-free { flex: 1; border-top: 2px dashed #E5E9F2; }
.m-lane { flex: 1; background: #F1F5F9; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.m-steps { display: flex; align-items: center; }
.m-steps .st { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.m-steps .st b { width: 36px; height: 36px; border-radius: 50%; background: #E2E8F0; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.m-steps .st.done b { background: #16A34A; } .m-steps .st.now b { background: #3B82F6; }
.m-steps .ln { flex: 1; height: 3px; background: #E2E8F0; margin: 0 8px 24px; }
.m-steps .ln.done { background: #16A34A; }
.m-phone { border-radius: 56px; background: #0B1220; padding: 12px; box-shadow: 0 40px 120px rgba(37, 99, 235, .45), 0 0 0 2px rgba(148, 178, 255, .4); }
.m-phone-in { position: relative; height: 100%; border-radius: 44px; background: #F6F8FC; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 54px 18px 18px; }
.m-notch { position: absolute; top: 12px; left: 50%; width: 110px; height: 30px; margin-left: -55px; border-radius: 20px; background: #0B1220; }
.m-brand { color: #1D4ED8; font-weight: 800; font-size: 18px; }
.m-hi { font-size: 24px; font-weight: 800; }
.m-frag { background: #fff; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 70px rgba(37, 99, 235, .28), 0 0 0 1px rgba(148, 178, 255, .3); }
.m-meter { height: 8px; border-radius: 8px; background: #EEF2F7; }
.m-meter i { display: block; height: 8px; border-radius: 8px; }
.m-total { border-top: 1px dashed #E5E9F2; padding-top: 10px; }
.m-msg { padding: 9px 13px; font-size: 15px; max-width: 80%; }
.m-msg.in { align-self: flex-start; background: #F1F5F9; border-radius: 14px 14px 14px 4px; }
.m-msg.out { align-self: flex-end; background: #DCFCE7; border-radius: 14px 14px 4px 14px; }
.m-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #CBD5E1; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m-check.on { background: #16A34A; border-color: #16A34A; }

/* ---------- Sistemas ---------- */
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.eyebrow.dark { color: var(--blue-d); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.systems { background: var(--light); color: var(--ink); padding: 110px 0 100px; scroll-margin-top: 0; }
.systems h2, .advice h2 { margin: 10px 0 12px; font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; letter-spacing: -.045em; line-height: 1.05; }
.lead { margin: 0 0 44px; font-size: clamp(17px, 1.6vw, 21px); color: #5F7384; max-width: 640px; line-height: 1.5; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 20px 50px rgba(15, 23, 42, .07); transition: transform .3s var(--out), box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(36, 91, 128, .16); }
.card-art { height: 290px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 34px; perspective: 1200px; --sc: .42; }
.card-art > .fit { transform: rotateX(12deg); transform-origin: 50% 0; transition: transform .45s var(--out); }
.card:hover .card-art > .fit { transform: rotateX(4deg) translateY(-6px); }
.card[data-tone="blue"] .card-art { background: linear-gradient(135deg, #DBEAFE, #EFF6FF); }
.card[data-tone="green"] .card-art { background: linear-gradient(135deg, #DCFCE7, #F0FDF4); }
.card[data-tone="amber"] .card-art { background: linear-gradient(135deg, #FEF3C7, #FFFBEB); }
.card[data-tone="violet"] .card-art { background: linear-gradient(135deg, #EDE9FE, #F5F3FF); }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-sector { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-d); }
.card h3 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin: 0; color: #5F7384; font-size: 16px; line-height: 1.55; }
.soon { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #B45309; background: #FEF3C7; padding: 4px 10px; border-radius: 999px; }
.btn-card { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transition: background-color .2s, transform .2s var(--out); }
.card-body p + .btn-card { margin-top: 12px; }
.btn-card:hover { background: var(--blue-d); transform: translateX(3px); }
@media (max-width: 860px) {
  .systems { padding: 80px 0 70px; }
  .cards { grid-template-columns: 1fr; }
  .card-art { height: 210px; padding-top: 24px; --sc: .27; }
  .card-body { padding: 22px 22px 26px; }
  .btn-card { align-self: stretch; justify-content: center; }
}

.advice { background: radial-gradient(ellipse at 50% 0%, #123A58, var(--bg) 70%); padding: 100px 0; text-align: center; }
.advice-in { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.advice p { margin: 0 0 22px; font-size: 19px; color: #CBD5E1; max-width: 560px; line-height: 1.5; }
.foot { background: #000; color: var(--muted); padding: 28px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand-mini { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; }

/* ---------- Movimiento reducido: todo quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.reduce *, .reduce *::before, .reduce *::after { animation: none !important; transition: none !important; }
