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

:root {
    --kiosk-bg: #06101d;
    --kiosk-panel: rgba(22, 36, 58, 0.92);
    --kiosk-panel-soft: rgba(29, 45, 71, 0.74);
    --kiosk-border: rgba(126, 175, 226, 0.16);
    --kiosk-text: #f2f7ff;
    --kiosk-muted: #9dafc5;
    --kiosk-blue: #69b9ff;
    --kiosk-violet: #7968ef;
    --kiosk-green: #79e3bf;
    --kiosk-red: #ff8ca5;
}

html {
    min-height: 100%;
    color-scheme: dark;
    background: var(--kiosk-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--kiosk-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(
            circle at 13% -5%,
            rgba(72, 178, 255, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 5%,
            rgba(121, 94, 242, 0.13),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #071421,
            #050b15 62%,
            #071324
        );
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

.kiosk-shell {
    min-height: 100vh;
    padding:
        clamp(18px, 3vw, 34px);
}

.kiosk-stage {
    width: min(1480px, 100%);
    min-height: calc(100vh - 68px);
    margin: 0 auto;
    display: grid;
    grid-template-rows:
        auto
        auto
        auto
        1fr
        auto;
    gap: 22px;
}

.kiosk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 18px;
    border: 1px solid rgba(120, 175, 229, 0.12);
    border-radius: 20px;
    background: rgba(7, 17, 31, 0.72);
    box-shadow:
        0 18px 52px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.kiosk-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.kiosk-brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(123, 194, 255, 0.24);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(70, 157, 224, 0.14),
            rgba(107, 83, 222, 0.16)
        );
    box-shadow:
        0 12px 34px rgba(62, 141, 237, 0.12);
}

.kiosk-brand-mark img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.kiosk-brand > div:last-child {
    display: grid;
    gap: 3px;
}

.kiosk-brand strong {
    font-size: 1.04rem;
}

.kiosk-brand span {
    color: #8194ad;
    font-size: 0.76rem;
}

.kiosk-header-status {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(94, 220, 179, 0.14);
    border-radius: 999px;
    background: rgba(51, 159, 126, 0.06);
}

.kiosk-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kiosk-green);
    box-shadow:
        0 0 18px rgba(111, 230, 190, 0.75);
}

.kiosk-header-status strong {
    color: #a7ecd4;
    font-size: 0.78rem;
}

.kiosk-header-status small {
    color: #73908b;
    font-variant-numeric: tabular-nums;
}

.kiosk-hero {
    min-height: 280px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(280px, 0.75fr);
    align-items: center;
    gap: 30px;
    padding:
        clamp(28px, 5vw, 62px);
    border: 1px solid var(--kiosk-border);
    border-radius: 30px;
    background:
        linear-gradient(
            120deg,
            rgba(48, 73, 111, 0.88),
            rgba(19, 31, 54, 0.90) 58%,
            rgba(22, 26, 63, 0.86)
        );
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.26);
}

.kiosk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(113, 203, 255, 0.08),
            transparent 38%
        );
}

.kiosk-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.kiosk-kicker {
    display: inline-block;
    color: #94ddff;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kiosk-hero h1 {
    margin: 12px 0 14px;
    font-size:
        clamp(
            2.2rem,
            5.4vw,
            5rem
        );
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.kiosk-hero p {
    max-width: 760px;
    margin: 0;
    color: #b3c3d8;
    font-size:
        clamp(
            0.96rem,
            1.7vw,
            1.14rem
        );
    line-height: 1.7;
}

.kiosk-orbit {
    width: min(330px, 82vw);
    aspect-ratio: 1;
    position: relative;
    justify-self: center;
}

.kiosk-orbit-ring {
    position: absolute;
    inset: 15%;
    border: 1px solid rgba(128, 161, 243, 0.23);
    border-radius: 50%;
}

.ring-one {
    transform: rotate(0deg) scaleX(1.15) scaleY(0.52);
}

.ring-two {
    transform: rotate(60deg) scaleX(1.15) scaleY(0.52);
}

.ring-three {
    transform: rotate(120deg) scaleX(1.15) scaleY(0.52);
}

.kiosk-orbit-core {
    width: 118px;
    height: 118px;
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(135, 172, 255, 0.38);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 28%,
            #a8d9ff,
            #6d7de9 44%,
            #4e329f 100%
        );
    box-shadow:
        0 22px 62px rgba(70, 66, 211, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.kiosk-orbit-core img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.kiosk-orbit-core {
    animation:
        kioskCorePulse
        3.8s
        ease-in-out
        infinite;
}

.kiosk-orbit-dot {
    width: 13px;
    height: 13px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.dot-one {
    background: #8bdcff;
    box-shadow:
        0 0 20px
        rgba(139, 220, 255, 0.55);
}

.dot-two {
    background: #866af5;
    box-shadow:
        0 0 20px
        rgba(134, 106, 245, 0.55);
}

.dot-three {
    background: #8ce7c7;
    box-shadow:
        0 0 20px
        rgba(140, 231, 199, 0.50);
}

.kiosk-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 18px;
    border: 1px solid rgba(117, 175, 230, 0.14);
    border-radius: 18px;
    background: rgba(21, 35, 57, 0.82);
}

.kiosk-message-error {
    border-color: rgba(255, 113, 144, 0.20);
    background: rgba(115, 39, 60, 0.10);
}

.kiosk-message-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(120, 193, 239, 0.18);
    border-radius: 12px;
    color: #9bdcff;
    background: rgba(68, 157, 221, 0.08);
    font-weight: 900;
}

.kiosk-message-error .kiosk-message-icon {
    color: #ff9ab0;
    border-color: rgba(255, 112, 145, 0.20);
    background: rgba(189, 58, 89, 0.09);
}

.kiosk-message strong {
    color: #edf5ff;
}

.kiosk-message p {
    margin: 4px 0 0;
    color: #aab9cb;
    line-height: 1.6;
}

.kiosk-panel {
    padding:
        clamp(24px, 4vw, 44px);
    border: 1px solid var(--kiosk-border);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(27, 43, 68, 0.94),
            rgba(15, 25, 44, 0.96)
        );
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.24);
}

.kiosk-search-panel {
    width: min(900px, 100%);
    justify-self: center;
}

.kiosk-panel-heading > span {
    color: #8fdcff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.kiosk-panel-heading h2,
.kiosk-results-header h2 {
    margin: 8px 0 8px;
    color: #f3f8ff;
    font-size:
        clamp(
            1.55rem,
            3vw,
            2.25rem
        );
}

.kiosk-panel-heading p,
.kiosk-results-header p {
    margin: 0;
    color: var(--kiosk-muted);
    line-height: 1.65;
}

.kiosk-search-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 14px;
    align-items: end;
    margin-top: 28px;
}

.kiosk-field {
    display: grid;
    gap: 9px;
}

.kiosk-field > span {
    color: #dfe9f7;
    font-size: 0.88rem;
    font-weight: 760;
}

.kiosk-input-shell {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid rgba(112, 168, 225, 0.22);
    border-radius: 17px;
    background: rgba(6, 16, 30, 0.72);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.kiosk-input-shell:focus-within {
    border-color: rgba(106, 185, 255, 0.66);
    box-shadow:
        0 0 0 4px rgba(83, 144, 229, 0.10),
        0 16px 36px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.kiosk-input-shell svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: #8bd6ff;
    stroke-width: 1.7;
}

.kiosk-input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #eff7ff;
    background: transparent;
    font-size:
        clamp(
            1rem,
            2vw,
            1.2rem
        );
}

.kiosk-input-shell input::placeholder {
    color: #5f748e;
}

.kiosk-primary-button,
.kiosk-secondary-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 850;
    transition:
        transform 180ms ease,
        filter 180ms ease,
        opacity 180ms ease;
}

.kiosk-primary-button {
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(
            125deg,
            #5ba5ec,
            #7564eb
        );
    box-shadow:
        0 14px 32px rgba(70, 95, 224, 0.20);
}

.kiosk-secondary-button {
    border: 1px solid rgba(119, 177, 229, 0.20);
    color: #dceaff;
    background: rgba(65, 122, 177, 0.06);
}

.kiosk-primary-button:hover,
.kiosk-secondary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.kiosk-primary-button:disabled,
.kiosk-secondary-button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.kiosk-security-note,
.kiosk-link-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(95, 213, 178, 0.13);
    border-radius: 16px;
    background: rgba(45, 151, 120, 0.05);
}

.kiosk-security-note svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    fill: none;
    stroke: #86e5c4;
    stroke-width: 1.7;
}

.kiosk-security-note strong,
.kiosk-link-rule strong {
    color: #eafbf5;
}

.kiosk-security-note span,
.kiosk-link-rule p {
    display: block;
    margin: 4px 0 0;
    color: #92aaa4;
    line-height: 1.55;
}

.kiosk-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.kiosk-consent-gate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(245, 196, 94, 0.26);
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(139, 99, 28, 0.18),
            rgba(27, 38, 61, 0.94)
        );
    box-shadow:
        0 20px 54px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.kiosk-consent-gate.is-rejected {
    border-color: rgba(255, 113, 145, 0.30);
    background:
        linear-gradient(
            135deg,
            rgba(145, 42, 67, 0.20),
            rgba(31, 34, 55, 0.96)
        );
}

.kiosk-consent-gate-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 211, 119, 0.25);
    border-radius: 18px;
    color: #ffe09a;
    background: rgba(189, 135, 41, 0.10);
    font-size: 1.35rem;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(116, 78, 20, 0.18);
}

.kiosk-consent-gate.is-rejected .kiosk-consent-gate-icon {
    color: #ff9eb4;
    border-color: rgba(255, 126, 154, 0.26);
    background: rgba(183, 46, 78, 0.12);
}

.kiosk-consent-gate-copy > span {
    color: #ffdd91;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.kiosk-consent-gate.is-rejected .kiosk-consent-gate-copy > span {
    color: #ff9eb4;
}

.kiosk-consent-gate-copy h3 {
    margin: 6px 0 7px;
    color: #f6f9ff;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.kiosk-consent-gate-copy p {
    max-width: 790px;
    margin: 0;
    color: #aebdd0;
    line-height: 1.6;
}

.kiosk-consent-button {
    min-width: 250px;
    white-space: nowrap;
}

.kiosk-assignment-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                min(100%, 330px),
                1fr
            )
        );
    gap: 16px;
}

.kiosk-assignment-card {
    min-width: 0;
    display: grid;
    gap: 17px;
    padding: 22px;
    border: 1px solid rgba(119, 164, 219, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(35, 51, 79, 0.86),
            rgba(19, 30, 50, 0.92)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.022);
}

.kiosk-assignment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kiosk-state,
.kiosk-version {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.kiosk-state.pending {
    color: #ffd782;
    border: 1px solid rgba(242, 184, 67, 0.20);
    background: rgba(186, 128, 38, 0.08);
}

.kiosk-state.in-progress {
    color: #94dcff;
    border: 1px solid rgba(90, 183, 235, 0.20);
    background: rgba(55, 134, 185, 0.08);
}

.kiosk-state.blocked {
    color: #ffbe8f;
    border: 1px solid rgba(242, 139, 83, 0.24);
    background: rgba(178, 75, 42, 0.10);
}

.kiosk-state.rejected {
    color: #ff9fb7;
    border: 1px solid rgba(255, 120, 151, 0.24);
    background: rgba(179, 46, 78, 0.10);
}

.kiosk-version {
    color: #9bb0cc;
    border: 1px solid rgba(130, 159, 201, 0.14);
    background: rgba(98, 127, 172, 0.05);
}

.kiosk-assignment-card h3 {
    margin: 0;
    color: #f3f7fe;
    font-size: 1.18rem;
    line-height: 1.35;
}

.kiosk-standalone-card {
    border-color: rgba(116, 203, 236, 0.22);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(93, 196, 226, 0.10),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(27, 53, 75, 0.88),
            rgba(18, 29, 49, 0.94)
        );
}

.kiosk-standalone-heading {
    display: grid;
    gap: 7px;
}

.kiosk-standalone-kind {
    color: #8fdcff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.kiosk-standalone-note {
    margin: 0;
    padding: 12px 13px;
    border: 1px solid rgba(116, 203, 236, 0.14);
    border-radius: 13px;
    color: #a6bdd0;
    background: rgba(7, 19, 33, 0.34);
    font-size: 0.76rem;
    line-height: 1.55;
}

.kiosk-test-meta {
    display: grid;
    gap: 5px;
    color: #8197b2;
    font-size: 0.76rem;
}

.kiosk-progress {
    display: grid;
    gap: 8px;
}

.kiosk-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #91a7c0;
    font-size: 0.76rem;
}

.kiosk-progress-heading strong {
    color: #eef6ff;
}

.kiosk-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(4, 13, 25, 0.62);
}

.kiosk-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #70a6f3,
            #8068ed,
            #82dabc
        );
}

.kiosk-open-button {
    width: 100%;
}

.kiosk-locked-button {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(244, 151, 99, 0.18);
    border-radius: 15px;
    color: #d8aa8f;
    background: rgba(128, 67, 42, 0.08);
    font: inherit;
    font-weight: 800;
    cursor: not-allowed;
}

.kiosk-link-rule-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(100, 215, 181, 0.18);
    border-radius: 14px;
    color: #8de6c7;
    background: rgba(54, 161, 128, 0.08);
    font-weight: 900;
}

.kiosk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 4px 8px 10px;
    color: #60758e;
    font-size: 0.74rem;
}

@keyframes kioskCorePulse {
    0%,
    100% {
        box-shadow:
            0 22px 62px rgba(70, 66, 211, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    50% {
        box-shadow:
            0 28px 78px rgba(91, 92, 238, 0.48),
            inset 0 1px 0 rgba(255, 255, 255, 0.26);
    }
}

@media (max-width: 900px) {
    .kiosk-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kiosk-hero-copy {
        margin: 0 auto;
    }

    .kiosk-hero p {
        margin-inline: auto;
    }

    .kiosk-orbit {
        width: min(260px, 70vw);
    }

    .kiosk-search-form {
        grid-template-columns: 1fr;
    }

    .kiosk-results-header {
        flex-direction: column;
    }

    .kiosk-consent-gate {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .kiosk-consent-gate form {
        grid-column: 1 / -1;
    }

    .kiosk-consent-button {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .kiosk-shell {
        padding: 10px;
    }

    .kiosk-stage {
        min-height: calc(100vh - 20px);
        gap: 14px;
    }

    .kiosk-header {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 16px;
    }

    .kiosk-header-status {
        width: 100%;
        justify-content: center;
    }

    .kiosk-hero,
    .kiosk-panel {
        border-radius: 20px;
    }

    .kiosk-orbit {
        display: none;
    }

    .kiosk-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .kiosk-consent-gate {
        grid-template-columns: 1fr;
    }

    .kiosk-consent-gate-icon {
        width: 50px;
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kiosk-orbit-core {
        animation: none;
    }

    .kiosk-input-shell,
    .kiosk-primary-button,
    .kiosk-secondary-button {
        transition: none;
    }
}


/* -------------------------------------------------------------------------
| FORMIX - PRUEBAS TERMINADAS EN KIOSKO
|------------------------------------------------------------------------- */

.kiosk-assignment-card.is-completed {
    border-color: rgba(105, 220, 182, 0.18);
    background:
        linear-gradient(
            145deg,
            rgba(31, 61, 67, 0.36),
            rgba(19, 30, 50, 0.92)
        );
}

.kiosk-state.completed {
    color: #8ce3c3;
    border: 1px solid rgba(93, 219, 176, 0.24);
    background: rgba(45, 157, 119, 0.09);
}

.kiosk-assignment-card.is-completed
.kiosk-progress-track > span {
    background:
        linear-gradient(
            90deg,
            #6ba4f1,
            #7b67ec,
            #89dfc0
        );
}

.kiosk-completed-button {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(95, 215, 177, 0.20);
    border-radius: 15px;
    color: #94e2c7;
    background: rgba(51, 145, 114, 0.07);
    font: inherit;
    font-weight: 850;
    cursor: not-allowed;
    opacity: 1;
}

.kiosk-completed-button.is-rejected {
    border-color: rgba(255, 120, 151, 0.20);
    color: #f0a1b4;
    background: rgba(156, 43, 70, 0.08);
}

.kiosk-message-success {
    border-color: rgba(95, 219, 177, 0.20);
    background: rgba(43, 150, 115, 0.08);
}

.kiosk-message-success .kiosk-message-icon {
    color: #8de5c6;
    border-color: rgba(95, 219, 177, 0.20);
    background: rgba(43, 150, 115, 0.08);
}
