/* ==========================================================================
   Ordena · sitio público (landing)
   ========================================================================== */

:root {
    --brand:    #FF5A2B;
    --brand-2:  #FFC043;
    --ink:      #0C0E15;
    --ink-2:    #444C64;
    --ink-3:    #838BA3;
    --bg:       #FFFFFF;
    --bg-2:     #F6F7FB;
    --line:     #E5E9F0;
    --panel:    #FFFFFF;

    --r:    16px;
    --r-lg: 26px;
    --shadow-sm: 0 4px 18px rgba(12, 14, 21, .07);
    --shadow:    0 18px 50px rgba(12, 14, 21, .12);
    --shadow-lg: 0 40px 90px rgba(12, 14, 21, .22);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: Outfit, Inter, sans-serif; letter-spacing: -.035em; line-height: 1.08; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ------------------------------------------------------------------ nav -- */

.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }

.logo { display: flex; align-items: center; gap: 11px; font-family: Outfit, sans-serif; font-weight: 750; font-size: 20px; }
.logo .mark {
    width: 36px; height: 36px; border-radius: 11px;
    display: grid; place-items: center;
    color: #fff; font-size: 19px; font-weight: 800;
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
}
.nav-links { display: flex; gap: 4px; margin-left: 22px; }
.nav-links a {
    padding: 8px 13px; border-radius: 9px;
    font-size: 14.5px; font-weight: 550; color: var(--ink-2);
    transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav .spacer { margin-left: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 44px; padding: 0 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    font-size: 15px; font-weight: 650;
    white-space: nowrap;
    transition: transform .16s var(--ease), box-shadow .2s, background .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary {
    color: #fff; border-color: transparent;
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 32%, transparent);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; }
.btn-ghost { background: transparent; }

/* ----------------------------------------------------------------- hero -- */

.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: -200px -10% auto -10%; height: 700px; z-index: -1;
    background:
        radial-gradient(48% 55% at 18% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
        radial-gradient(42% 50% at 84% 18%, color-mix(in srgb, var(--brand-2) 28%, transparent), transparent 70%),
        radial-gradient(40% 45% at 60% 80%, rgba(99, 132, 255, .16), transparent 70%);
    filter: blur(10px);
}

.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px; border-radius: 99px;
    background: var(--panel); border: 1px solid var(--line);
    font-size: 13.5px; font-weight: 650; color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}
.eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

h1.big { font-size: clamp(42px, 5.6vw, 68px); font-weight: 800; margin: 22px 0 18px; }
h1.big em { font-style: normal; color: var(--brand); }

.lede { font-size: 19px; color: var(--ink-2); max-width: 540px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero-facts { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; }
.fact b { display: block; font-family: Outfit, sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.fact span { font-size: 13.5px; color: var(--ink-3); }

/* --- totem con el kiosco real dentro ------------------------------------ */

.totem-stage { display: grid; place-items: center; }

.totem {
    position: relative;
    width: 320px;
    aspect-ratio: 1080 / 1920;
    border-radius: 26px;
    padding: 12px 10px 26px;
    background: linear-gradient(160deg, #23262F, #0D0F16);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.14);
}
.totem::after {
    content: ''; position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%);
    width: 54px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.22);
}
.totem .glass {
    width: 100%; height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    position: relative;
}
.totem iframe { width: 1080px; height: 1920px; border: 0; transform-origin: 0 0; }

.totem-foot {
    margin-top: 20px; text-align: center;
    font-size: 13px; color: var(--ink-3);
}

.float-card {
    position: absolute;
    padding: 12px 15px;
    border-radius: 15px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 13.5px;
    animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
.float-card b { display: block; font-family: Outfit, sans-serif; font-size: 18px; font-weight: 750; }
.float-card span { color: var(--ink-3); font-size: 12.5px; }
.float-a { top: 11%; left: -68px; animation-delay: .4s; }
.float-b { bottom: 17%; right: -72px; }

/* ------------------------------------------------------------ secciones -- */

section { padding: 84px 0; }
section.tint { background: var(--bg-2); }

.sec-top { max-width: 700px; margin-bottom: 44px; }
.sec-top .kicker {
    font-size: 13px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand);
}
.sec-top h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; margin: 12px 0 14px; }
.sec-top p { font-size: 17.5px; color: var(--ink-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
    padding: 26px;
    border-radius: var(--r-lg);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
    width: 50px; height: 50px; border-radius: 15px;
    display: grid; place-items: center; font-size: 25px;
    background: color-mix(in srgb, var(--brand) 11%, var(--bg-2));
    margin-bottom: 16px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-2); }
.card .more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px; font-size: 14.5px; font-weight: 650; color: var(--brand);
}

/* --- pasos --- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.step::before {
    counter-increment: s; content: counter(s);
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 12px;
    font-family: Outfit, sans-serif; font-weight: 800; font-size: 18px; color: #fff;
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
    margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* --- demos --- */

.demo {
    display: flex; flex-direction: column;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.demo:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.demo > img { width: 100%; height: 160px; object-fit: cover; }
.demo .b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.demo h3 { font-size: 20px; }
.demo .tag {
    align-self: flex-start;
    padding: 4px 10px; border-radius: 99px;
    font-size: 12px; font-weight: 700;
    background: var(--bg-2); color: var(--ink-2);
}
.demo p { font-size: 14.5px; color: var(--ink-2); }
.demo .links { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; flex-wrap: wrap; }
.demo .links .btn { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }

.creds {
    margin-top: 26px; padding: 18px 22px;
    border-radius: var(--r);
    background: var(--panel); border: 1px dashed var(--line);
    font-size: 14px; color: var(--ink-2);
}
.creds code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    background: var(--bg-2); padding: 2px 7px; border-radius: 6px; font-size: 13px;
}

/* --- precios --- */

.plan { display: flex; flex-direction: column; }
.plan.pick { border-color: var(--brand); box-shadow: 0 18px 44px color-mix(in srgb, var(--brand) 20%, transparent); }
.plan .lvl { font-size: 14px; font-weight: 750; color: var(--brand); letter-spacing: .02em; }
.plan .price { font-family: Outfit, sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.04em; margin: 8px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; display: grid; gap: 9px; margin: 20px 0 24px; }
.plan li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.plan li::before { content: '✓'; color: var(--brand); font-weight: 800; flex: none; }
.plan .btn { margin-top: auto; }

/* --- cierre --- */

.cta-band {
    position: relative;
    padding: 58px 48px;
    border-radius: 32px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(140deg, #14161F, #262B3B);
}
.cta-band::after {
    content: ''; position: absolute; inset: auto -10% -60% 30%; height: 100%;
    background: radial-gradient(50% 100% at 50% 100%,
                color-mix(in srgb, var(--brand) 60%, transparent), transparent 70%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.cta-band p { font-size: 17px; color: #B7BECF; margin: 12px 0 26px; max-width: 560px; }

footer { padding: 46px 0 60px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer p { font-size: 13.5px; color: var(--ink-3); }
footer .links { margin-left: auto; display: flex; gap: 18px; font-size: 13.5px; color: var(--ink-2); }

/* ------------------------------------------------------------- animacion */

/* El contenido es visible por defecto: solo se oculta cuando el script
   confirma que puede animarlo, para que nunca quede una seccion en blanco. */
html.reveals .reveal { opacity: 0; transform: translateY(22px); }
html.reveals .reveal.in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
    html.reveals .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1240px) {
    .float-a, .float-b { display: none; }
}

@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
    .totem-stage { order: -1; }
    .float-a, .float-b { display: none; }
    .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    section { padding: 60px 0; }
    .cta-band { padding: 40px 26px; }
}
@media (min-width: 981px) and (max-width: 1160px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
