/* Kaja — páginas públicas (landing y login). Independiente de Tailwind/AdminLTE. */
:root {
    --teal-950: #071f1d;
    --teal-900: #0a2e2b;
    --teal-800: #0d4a45;
    --teal-700: #0f766e;
    --teal-600: #138d83;
    --teal-100: #d5f0ec;
    --teal-50: #eef8f6;
    --amber: #fbbf24;
    --paper: #f4f7f6;
    --ticket: #fdfdfb;
    --ink: #15302d;
    --muted: #5b716d;
    --line: #dce5e2;
    --danger: #c8432f;
    --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
    --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

/* ---- Botones ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--teal-700); color: #fff; }
.btn-solid:hover { background: var(--teal-800); }
.btn-amber { background: var(--amber); color: var(--teal-950); }
.btn-amber:hover { background: #f5ae0a; }
.btn-line { border-color: var(--teal-700); color: var(--teal-800); background: transparent; }
.btn-line:hover { background: var(--teal-50); }
.btn-line-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-line-light:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }

/* ---- Cabecera ---------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244, 247, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px/1 var(--display); color: var(--teal-800); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--teal-800); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang a { text-decoration: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--teal-700); color: #fff; }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---- Hero -------------------------------------------------------------------- */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font: 700 clamp(38px, 5.4vw, 64px)/1.04 var(--display); letter-spacing: -.025em; margin: 0 0 22px; color: var(--teal-900); max-width: 14ch; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ticket térmico: el elemento memorable */
.ticket-stage { display: flex; justify-content: center; padding: 8px 0 28px; }
.ticket {
    --tooth: 9px;
    position: relative; width: min(380px, 100%); padding: 30px 30px 38px; background: var(--ticket); color: #1d2b29;
    font: 400 15px/1.55 var(--mono); transform: rotate(2.2deg);
    box-shadow: 0 1px 0 rgba(10, 46, 43, .06), 0 18px 40px -12px rgba(10, 46, 43, .35);
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
            mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
    animation: print 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px) rotate(2.2deg); } to { clip-path: inset(0 0 0 0); transform: rotate(2.2deg); } }
.ticket-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 20px/1 var(--display); color: var(--teal-800); margin-bottom: 4px; }
.ticket-logo img { width: 24px; height: 24px; border-radius: 6px; }
.ticket-sub { text-align: center; font-size: 12px; color: #6b7d79; margin-bottom: 14px; }
.ticket hr { border: 0; border-top: 1px dashed #aab9b5; margin: 12px 0; }
.ticket .row { display: flex; justify-content: space-between; gap: 12px; }
.ticket .row span:first-child { min-width: 0; }
.ticket .total { font-weight: 500; font-size: 18px; margin-top: 4px; }
.ticket .ok { margin-top: 14px; text-align: center; font-size: 12px; color: var(--teal-700); }
.ticket .ok b { display: block; font-weight: 500; color: #1d2b29; }

/* ---- Funciones: líneas de recibo ------------------------------------------------- */
.features { padding: 88px 0; background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.12 var(--display); letter-spacing: -.02em; margin: 0 0 12px; color: var(--teal-900); }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin: 0; padding: 0; list-style: none; }
.lines li { padding: 18px 0; border-bottom: 1px dashed #c3d2ce; }
.lines h3 { margin: 0 0 4px; font: 600 19px/1.25 var(--display); color: var(--teal-800); }
.lines p { margin: 0; color: var(--muted); }

/* ---- Módulos ------------------------------------------------------------------------ */
.modules { padding: 88px 0; background: var(--teal-900); color: #e8f4f2; }
.modules .section-head h2 { color: #fff; }
.modules .section-head p { color: #a9cbc6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-weight: 500; }
.chips li:nth-child(3n+1) { background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .5); color: #ffe9a8; }

/* ---- Cierre ------------------------------------------------------------------------- */
.cta { padding: 80px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--display); margin: 0 0 6px; color: var(--teal-900); }
.cta p { margin: 0; color: var(--muted); font-size: 18px; }
.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- Login ------------------------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .9fr) 1.1fr; }
.auth-side { position: relative; background: var(--teal-900); color: #e8f4f2; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14px; background: radial-gradient(circle at 9px 14px, var(--paper) 8px, transparent 8.5px) 0 0 / 18px 14px repeat-x; }
.auth-side .brand { color: #fff; }
.auth-side h2 { font: 700 clamp(30px, 3.4vw, 44px)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 14px; max-width: 14ch; }
.auth-side p { margin: 0; color: #a9cbc6; font-size: 18px; max-width: 34ch; }
.auth-side > * { position: relative; z-index: 1; }

.mini-ticket { align-self: center; width: min(300px, 100%); padding: 22px 22px 26px; background: var(--ticket); color: #1d2b29; font: 400 14px/1.7 var(--mono); transform: rotate(-2.4deg); box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .5); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.mini-ticket .mt-row { display: flex; justify-content: space-between; gap: 10px; }
.mini-ticket .mt-sep { border-top: 1px dashed #aab9b5; margin: 8px 0; }
.mini-ticket .mt-total { font-weight: 500; font-size: 17px; }
.mini-ticket .mt-ok { margin-top: 10px; text-align: center; font-size: 12px; color: var(--teal-700); }
.auth-main { display: flex; flex-direction: column; padding: 28px 40px 36px; }
.auth-bar { display: flex; justify-content: flex-end; }
.auth-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.auth-form { width: min(400px, 100%); }
.auth-form h1 { font: 700 32px/1.1 var(--display); letter-spacing: -.02em; color: var(--teal-900); margin: 0 0 8px; }
.auth-form .sub { margin: 0 0 28px; color: var(--muted); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .control { position: relative; }
.field input[type="text"], .field input[type="password"] { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 500 16px var(--body); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(19, 141, 131, .15); }
.field.has-error input { border-color: var(--danger); }
.field .error { margin-top: 6px; color: var(--danger); font-size: 14px; font-weight: 500; }
.toggle-pass { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--teal-700); font: 600 14px var(--body); border-radius: 8px; cursor: pointer; }
.toggle-pass:hover { background: var(--teal-50); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal-700); }
.link { color: var(--teal-700); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-900); }
.notice.err { background: #fdeceb; border-color: #f4c7c1; color: #7d241a; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); }

@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 44px 0 64px; }
    .lines { grid-template-columns: 1fr; }
    .nav { display: none; }
    .auth { grid-template-columns: 1fr; }
    .auth-side { padding: 28px 24px 40px; min-height: 0; gap: 28px; }
    .mini-ticket { display: none; }
    .auth-main { padding: 24px 20px 32px; }
}
@media (max-width: 520px) {
    .top .wrap { gap: 10px; }
    .top .btn-line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ticket { animation: none; }
    html { scroll-behavior: auto; }
}
