/* ==========================================================================
   CieloPOS — landing pública (landing V2)
   CSS propio, sin dependencias externas ni fuentes/imágenes remotas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --violet: #4b2e83;
    --violet-light: #5b3a9a;
    --cream: #f6f2e4;
    --ink: #1e1a2b;
    --lavender: #f3effa;
    --border: #e4dcf2;

    --ink-soft: #4a4459;
    --white: #ffffff;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(30, 26, 43, 0.06), 0 4px 12px rgba(30, 26, 43, 0.05);
    --shadow-md: 0 10px 30px rgba(30, 26, 43, 0.1);

    --container: 1140px;
    --gutter: 20px;

    --focus: #4b2e83;
    --focus-on-dark: #f6f2e4;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background-color: var(--cream);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--violet);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--violet-light);
}

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

.section--dark :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--focus-on-dark);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Skip link ---------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 12px 18px;
    background: var(--violet);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
    transform: translateY(-140%);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   3. Botones
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
        transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--sm {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.btn--lg {
    min-height: 52px;
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn--primary {
    background-color: var(--violet);
    border-color: var(--violet);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:active {
    background-color: var(--violet-light);
    border-color: var(--violet-light);
    color: var(--white);
}

.btn--outline {
    background-color: transparent;
    border-color: var(--violet);
    color: var(--violet);
}

.btn--outline:hover,
.btn--outline:active {
    background-color: var(--violet);
    color: var(--white);
}

.btn--ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--violet);
    text-decoration: underline;
}

.btn--ghost:hover,
.btn--ghost:active {
    background-color: var(--lavender);
    color: var(--violet);
}

/* --------------------------------------------------------------------------
   4. Header / navegación (sin JS)
   -------------------------------------------------------------------------- */
.site-header {
    position: relative;
    z-index: 20;
    background-color: var(--cream);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    padding-block: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--violet);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand:hover {
    color: var(--violet);
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background-color: var(--violet);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    order: 3;
    flex: 1 0 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    background-color: var(--lavender);
    color: var(--violet);
}

.site-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-left: auto;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background-color: var(--white);
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.lang-switch a:hover {
    background-color: var(--lavender);
    color: var(--violet);
}

.lang-switch a[aria-current="true"] {
    background-color: var(--violet);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: 40px 56px;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(91, 58, 154, 0.22), transparent 70%),
        radial-gradient(700px 380px at 0% 100%, rgba(246, 242, 228, 0.9), transparent 65%),
        linear-gradient(160deg, var(--cream) 0%, #efe9fb 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 2px dashed rgba(75, 46, 131, 0.18);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 36px;
}

.eyebrow {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.75);
    color: var(--violet);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow--solid {
    background-color: var(--lavender);
}

.hero__title {
    font-size: clamp(2rem, 7vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero__subtitle {
    margin-top: 18px;
    max-width: 56ch;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero__note {
    margin-top: 16px;
    max-width: 46ch;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

/* Composición visual decorativa del hero */
.hero__visual {
    position: relative;
    min-height: 230px;
}

.hero__panel {
    border-radius: var(--radius-lg);
    background-color: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero__panel-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background-color: var(--lavender);
}

.hero__panel-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    padding: 18px;
}

.hero__panel-col,
.hero__panel-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero__panel-side {
    padding: 12px;
    border-radius: var(--radius-sm);
    background-color: var(--lavender);
}

.hero__panel-total {
    display: block;
    height: 30px;
    margin-top: 4px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--violet) 0%, var(--violet-light) 100%);
}

.hero__float {
    position: absolute;
    right: 12px;
    bottom: -18px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background-color: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.hero__float-label {
    align-self: center;
    color: var(--violet);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spark {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 44px;
}

.spark span {
    display: block;
    width: 8px;
    height: var(--h, 50%);
    border-radius: 4px;
    background-color: var(--violet-light);
    opacity: 0.75;
}

/* Barras y puntos reutilizables (todos decorativos) */
.bar {
    display: block;
    height: 9px;
    border-radius: 999px;
    background-color: var(--border);
}

.bar--strong {
    height: 11px;
    background-color: #cfc2e8;
}

.bar--w40 {
    width: 40%;
}

.bar--w50 {
    width: 50%;
}

.bar--w60 {
    width: 60%;
}

.bar--w70 {
    width: 70%;
}

.bar--w80 {
    width: 80%;
}

.bar--w90 {
    width: 90%;
}

.bar--amount {
    width: 44px;
    flex: 0 0 auto;
}

.dots {
    display: inline-flex;
    gap: 5px;
}

.dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cdbfe6;
}

/* --------------------------------------------------------------------------
   6. Secciones
   -------------------------------------------------------------------------- */
.section {
    padding-block: 56px;
}

.section--tinted {
    background-color: var(--lavender);
}

.section--dark {
    background-color: var(--violet);
    color: var(--white);
}

.section__title {
    font-size: clamp(1.5rem, 4.4vw, 2.25rem);
    line-height: 1.18;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.section__title--light {
    color: var(--white);
}

.section__head {
    margin-bottom: 28px;
}

.section__subtitle {
    margin-top: 12px;
    max-width: 60ch;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.section--dark .section__subtitle {
    color: #e8e0f7;
}

/* Tarjetas ----------------------------------------------------------------- */
.cards {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.card {
    padding: 22px;
    border-radius: var(--radius);
    background-color: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.card--feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card--accent {
    border-top: 4px solid var(--violet);
}

.card__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--lavender);
    color: var(--violet);
}

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card__title {
    font-size: 1.12rem;
    line-height: 1.3;
}

.card__text {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

/* Pasos -------------------------------------------------------------------- */
.steps {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    counter-reset: step;
}

.step {
    padding: 22px;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.step__num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--violet);
    font-weight: 700;
}

.step__title {
    font-size: 1.1rem;
    color: var(--white);
}

.step__text {
    margin-top: 6px;
    color: #ece5f9;
    font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   7. Demo (mock POS)
   -------------------------------------------------------------------------- */
.demo {
    display: grid;
    gap: 32px;
    align-items: center;
}

.demo__copy .btn {
    margin-top: 22px;
}

.demo__figure {
    position: relative;
    padding-top: 18px;
}

.demo__label {
    position: absolute;
    top: 0;
    left: 18px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--violet);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pos {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.pos__chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: var(--lavender);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

.pos__chrome-title {
    font-weight: 700;
    color: var(--violet);
}

.pos__chrome-pill {
    margin-left: auto;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: var(--white);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pos__body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.pos__catalog {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.pos__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background-color: var(--cream);
    border: 1px solid var(--border);
}

.pos__search-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 2px solid #b3a6d1;
    border-radius: 50%;
}

.pos__rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pos__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: #fdfbff;
}

.pos__thumb {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 8px;
    background-color: var(--lavender);
    border: 1px solid var(--border);
}

.pos__row-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.pos__cart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background-color: var(--lavender);
    border: 1px solid var(--border);
    min-width: 0;
}

.pos__cart-title {
    color: var(--violet);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pos__cart-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pos__cart-rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pos__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cec2e6;
}

.bar--total {
    width: 74px;
    height: 14px;
    background: linear-gradient(90deg, var(--violet) 0%, var(--violet-light) 100%);
}

.pos__pay {
    display: block;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--violet) 0%, var(--violet-light) 100%);
}

/* --------------------------------------------------------------------------
   8. FAQ
   -------------------------------------------------------------------------- */
.faq {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin-top: 28px;
}

.faq__item {
    border-radius: var(--radius);
    background-color: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 16px 20px;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: "+";
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--lavender);
    color: var(--violet);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.faq__item[open] .faq__question::after {
    content: "−";
}

.faq__question:hover {
    background-color: var(--lavender);
}

.faq__answer {
    padding: 0 20px 18px;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   9. CTA final
   -------------------------------------------------------------------------- */
.section--cta {
    padding-block: 64px;
    background:
        radial-gradient(700px 300px at 15% 0%, rgba(91, 58, 154, 0.35), transparent 70%),
        var(--violet);
    color: var(--white);
}

.cta {
    text-align: center;
}

.cta__title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    line-height: 1.15;
    text-wrap: balance;
}

.cta__text {
    margin: 14px auto 0;
    max-width: 56ch;
    color: #ece5f9;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.section--cta .btn--primary {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--violet);
}

.section--cta .btn--primary:hover,
.section--cta .btn--primary:active {
    background-color: var(--cream);
    border-color: var(--cream);
    color: var(--violet);
}

.section--cta .btn--outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.section--cta .btn--outline:hover,
.section--cta .btn--outline:active {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--violet);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--ink);
    color: #ded7ee;
    padding-block: 40px;
}

.site-footer__inner {
    display: grid;
    gap: 24px;
}

.site-footer .brand {
    color: var(--white);
}

.site-footer .brand__mark {
    background-color: var(--white);
    color: var(--violet);
}

.site-footer__tagline {
    margin-top: 10px;
    max-width: 40ch;
    color: #cfc6e4;
    font-size: 0.95rem;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 6px;
    color: var(--white);
    font-size: 0.95rem;
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: var(--cream);
    text-decoration: underline;
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    color: #b7aed0;
    font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Efectos y motion (sutiles)
   Solo transform/opacity; el bloque de prefers-reduced-motion del final los
   desactiva y el JS no agrega .has-motion en ese caso.
   -------------------------------------------------------------------------- */

/* Header sticky ------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    background-color: rgba(246, 242, 228, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background-color: rgba(246, 242, 228, 0.94);
    box-shadow: 0 8px 24px rgba(30, 26, 43, 0.1);
}

/* Anclajes que no quedan tapados por el header */
:root {
    --header-offset: 84px;
}

section[id] {
    scroll-margin-top: var(--header-offset);
}

@media (max-width: 639px) {
    :root {
        --header-offset: 250px;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    :root {
        --header-offset: 140px;
    }
}

/* Hero --------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

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

@keyframes drift {
    from {
        transform: translate3d(-3%, -2%, 0) scale(1);
    }
    to {
        transform: translate3d(4%, 3%, 0) scale(1.06);
    }
}

@keyframes sparkPulse {
    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.75;
    }
    50% {
        transform: scaleY(0.72);
        opacity: 0.45;
    }
}

.hero::before {
    content: "";
    position: absolute;
    top: -25%;
    right: -15%;
    width: 70%;
    height: 85%;
    background: radial-gradient(closest-side, rgba(91, 58, 154, 0.12), transparent 72%);
    animation: drift 20s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero__copy {
    animation: fadeInUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero__visual {
    animation: fadeInUp 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) 0.12s both;
}

.hero__panel {
    animation: heroFloat 8s ease-in-out infinite;
    will-change: transform;
}

.spark span {
    transform-origin: bottom;
    animation: sparkPulse 2.6s ease-in-out infinite;
}

.spark span:nth-child(2) {
    animation-delay: 0.3s;
}

.spark span:nth-child(3) {
    animation-delay: 0.6s;
}

.spark span:nth-child(4) {
    animation-delay: 0.9s;
}

.spark span:nth-child(5) {
    animation-delay: 1.2s;
}

/* Botones ------------------------------------------------------------------ */
.btn {
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(75, 46, 131, 0.16);
    }

    .btn:active {
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
    }
}

.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 25%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 75%
    );
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn--primary:hover::after,
.btn--primary:focus-visible::after {
    transform: translateX(120%);
}

/* Nav ---------------------------------------------------------------------- */
.site-nav a {
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 9px;
    left: 10px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--violet);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

/* Tarjetas ----------------------------------------------------------------- */
.card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--violet) 0%, var(--violet-light) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
}

.card__icon {
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
        border-color: var(--violet);
        box-shadow: var(--shadow-md);
    }

    .card:hover::before {
        transform: scaleX(1);
    }

    .card:hover .card__icon {
        transform: scale(1.06) rotate(-3deg);
    }
}

/* Demo mock ---------------------------------------------------------------- */
@keyframes shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.pos__row .bar,
.pos__cart-rows .bar {
    background-image: linear-gradient(90deg, var(--border) 0%, #d6c9ef 50%, var(--border) 100%);
    background-size: 200% 100%;
    animation: shimmer 7s linear infinite;
}

.demo__figure {
    transition: transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .demo__figure:hover {
        transform: rotate(-0.6deg) translateY(-3px);
    }
}

/* FAQ ---------------------------------------------------------------------- */
.faq__question {
    transition: background-color 0.25s ease;
}

.faq__question::after {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq__item[open] .faq__question::after {
    content: "+";
    transform: rotate(45deg);
}

@keyframes faqIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.faq__answer {
    animation: faqIn 0.32s ease both;
}

/* Footer ------------------------------------------------------------------- */
.site-footer__nav a {
    position: relative;
}

.site-footer__nav a::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 10px;
    left: 6px;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    text-decoration: none;
}

.site-footer__nav a:hover::after,
.site-footer__nav a:focus-visible::after {
    transform: scaleX(1);
}

.site-footer .brand__mark {
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .site-footer .brand:hover .brand__mark {
        transform: rotate(-3deg);
    }
}

/* Reveal al scroll (lo activa el JS con .has-motion en <html>) -------------- */
.has-motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.has-motion .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   11. Breakpoints
   -------------------------------------------------------------------------- */

/* 480px — móviles grandes ------------------------------------------------- */
@media (min-width: 480px) {
    .pos__body {
        grid-template-columns: 1.5fr 1fr;
        padding: 16px;
    }
}

/* Móviles chicos: header más compacto ------------------------------------- */
@media (max-width: 639px) {
    .site-header__inner {
        gap: 8px 12px;
        padding-block: 10px;
    }

    .site-header__actions {
        justify-content: flex-end;
        gap: 6px;
    }

    .site-header__actions .btn--sm {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    .site-nav {
        padding-top: 2px;
        border-top: 1px solid var(--border);
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }
}

/* 640px ------------------------------------------------------------------- */
@media (min-width: 640px) {
    :root {
        --gutter: 28px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding-block: 68px;
    }

    .site-footer__inner {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }

    .site-footer__meta {
        grid-column: 1 / -1;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 18px;
    }
}

/* 768px — tablet ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hero {
        padding-block: 64px 80px;
    }

    .hero__inner {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
        gap: 44px;
    }

    .hero__float {
        right: -10px;
        bottom: -24px;
    }

    .demo {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 44px;
    }

    .faq__item {
        border-radius: var(--radius-sm);
    }
}

/* 1024px — desktop -------------------------------------------------------- */
@media (min-width: 1024px) {
    :root {
        --gutter: 32px;
    }

    .site-header__inner {
        flex-wrap: nowrap;
        gap: 24px;
    }

    .site-nav {
        order: 0;
        flex: 0 1 auto;
        max-width: none;
        overflow: visible;
    }

    .cards--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section {
        padding-block: 84px;
    }

    .hero {
        padding-block: 88px 104px;
    }
}

/* 1440px — pantallas grandes --------------------------------------------- */
@media (min-width: 1440px) {
    :root {
        --container: 1240px;
    }

    body {
        font-size: 18px;
    }
}

/* --------------------------------------------------------------------------
   12. Preferencias del usuario
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .btn--primary::after {
        display: none;
    }

    .hero__panel,
    .hero::before,
    .spark span,
    .pos__row .bar,
    .pos__cart-rows .bar,
    .faq__answer {
        animation: none;
    }

    .has-motion .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (forced-colors: active) {
    .btn,
    .card,
    .pos,
    .faq__item {
        border: 1px solid CanvasText;
    }
}
