/*
 * La portada de Pasante, en Órbita.
 *
 * Se apoya en orbita.css (tokens, botones, chips, campos) y añade lo que solo
 * existe aquí: el héroe con la luz y el escenario, el encargo reproducido, las
 * responsabilidades, los pasos, los retratos y el precio. Es un archivo
 * estático de `public/`: la página no depende de Vite.
 *
 * Movimiento con el vocabulario de DESIGN.md: las cosas entran una vez al
 * asomar (180–520 ms, 4–12 px de subida), las tarjetas responden al ratón con
 * 2–3 px y nada se mueve en bucle salvo lo que está trabajando de verdad.
 */

:root {
    --col: 1120px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --lift: 0 18px 40px rgba(0, 0, 0, 0.32);
    --edge: inset 0 1px 0 rgba(185, 202, 255, 0.06);
}

html {
    scroll-padding-top: 88px;
}

body {
    overflow-x: hidden;
}

/* Accesibilidad -------------------------------------------------------- */

.skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
}

.skip:focus {
    top: 16px;
}

.js-only {
    display: none;
}

.has-js .js-only {
    display: block;
}

/* Entradas -------------------------------------------------------------- */

.has-js [data-rise] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 560ms var(--ease), transform 560ms var(--ease);
    transition-delay: var(--d, 0ms);
}

.has-js [data-rise].is-in {
    opacity: 1;
    transform: none;
}

/* Cabecera -------------------------------------------------------------- */

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0 0;
    transition: padding 260ms var(--ease);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100% - 32px, var(--col));
    min-height: 60px;
    margin: 0 auto;
    padding: 6px 8px 6px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: background-color 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.top.is-stuck .top-inner {
    border-color: var(--glass-border);
    background: #171d30;
    box-shadow: var(--shadow-raised);
}

@supports ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
    .top.is-stuck .top-inner {
        background: var(--surface-glass);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

.top .wordmark {
    font-size: 19px;
}

.top .brand-wordmark {
    width: auto;
    height: 30px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-link {
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 120ms ease, background-color 120ms ease;
}

.top-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--on-surface);
}

.button.is-small {
    min-height: 40px;
    padding: 0 16px;
}

.button.is-large {
    min-height: 56px;
    padding: 0 28px;
    font-size: 15px;
}

.top-progress {
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tertiary), var(--orbit-edge));
    opacity: 0.9;
    transform: scaleX(0);
    transform-origin: left;
}

/* Bandas ---------------------------------------------------------------- */

.band {
    position: relative;
    padding: 104px 0;
}

.band + .band {
    padding-top: 24px;
}

.col {
    width: min(100% - 32px, var(--col));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    margin-bottom: 20px;
    padding: 5px 12px 5px 10px;
    border-radius: var(--radius-pill);
    background: var(--working-container);
    color: var(--tertiary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(168, 184, 255, 0.18);
}

.section-head,
.section-intro {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(28px, 4.2vw, 42px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.section-lede,
.section-intro > p {
    max-width: 58ch;
    margin: 0;
    color: var(--secondary);
    font-size: 18px;
    line-height: 1.55;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.split .section-intro {
    position: sticky;
    top: 104px;
    margin-bottom: 0;
}

.caption {
    margin: 16px 0 0;
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* Héroe ----------------------------------------------------------------- */

.hero {
    padding: 56px 0 96px;
}

/*
 * La luz orbital empieza detrás de la cabecera y se funde con el fondo antes
 * del final del héroe: un degradado debajo del dibujo tapa el borde del SVG,
 * que de otro modo se veía como una línea recta a media pantalla.
 */
.orbit {
    position: absolute;
    top: -96px;
    right: 0;
    left: 0;
    z-index: 0;
    height: min(78vh, 760px);
    pointer-events: none;
}

.orbit::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 52%;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0) 0%, rgba(8, 10, 16, 0.55) 45%, var(--neutral) 100%);
}

.orbit svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: none;
}

.hero-col {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.display {
    max-width: 14ch;
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(34px, 5.2vw, 60px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero .lede {
    max-width: 50ch;
    margin: 0 0 12px;
    font-size: 19px;
}

.ai-note {
    max-width: 50ch;
    margin: 0 0 28px;
    color: var(--secondary);
    font-size: 15px;
}

.workfield {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    min-height: 60px;
    padding: 8px 8px 8px 8px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    box-shadow: var(--edge), var(--lift);
}

.workfield-mic,
.workfield-send {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.workfield-mic {
    background: var(--surface-input);
    color: var(--tertiary);
}

.workfield-send {
    background: var(--primary);
    color: var(--on-primary);
}

.workfield svg {
    width: 20px;
    height: 20px;
}

.workfield-text {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--on-surface);
    font-size: 16px;
    line-height: 1.4;
    transition: opacity 200ms ease, transform 200ms ease;
}

.workfield-text.is-out {
    opacity: 0;
    transform: translateY(4px);
}

.workfield-hint {
    margin: 10px 0 28px;
    color: var(--secondary);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-note {
    max-width: 52ch;
    margin: 16px 0 0;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.5;
}

.hero-write {
    margin-top: 6px;
}

/* El escenario ---------------------------------------------------------- */

.stage {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 1;
    margin: 0 0 0 auto;
}

.stage-ring {
    position: absolute;
    inset: 9%;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, rgba(108, 131, 204, 0.22), rgba(108, 131, 204, 0) 62%);
}

.stage-ring::after {
    content: "";
    position: absolute;
    inset: 15%;
    border: 1px solid rgba(185, 202, 255, 0.08);
    border-radius: 50%;
}

.portrait {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54%;
    margin: 0;
    transform: translate(-50%, -54%);
}

.has-js [data-rise].portrait.is-in {
    transform: translate(-50%, -54%);
}

.has-js [data-rise].portrait {
    transform: translate(-50%, -50%);
}

.portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px var(--neutral), 0 0 0 6px rgba(168, 184, 255, 0.55), 0 32px 80px rgba(0, 0, 0, 0.55);
    transition: opacity 320ms ease, transform 320ms var(--ease);
}

.portrait img.is-swapping {
    opacity: 0;
    transform: scale(0.97);
}

.portrait-mark {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--surface-glass);
    color: var(--on-surface);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: var(--shadow-raised);
}

.portrait-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--done);
    box-shadow: 0 0 0 3px rgba(105, 223, 192, 0.2);
}

.float {
    position: absolute;
    z-index: 2;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 260px;
    padding: 12px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--surface-glass);
    box-shadow: var(--edge), var(--shadow-raised);
    transition: transform 200ms var(--ease), opacity 560ms var(--ease);
}

@supports ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
    .float,
    .portrait-mark {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

.has-js .float.is-in:hover {
    transform: translateY(-3px);
}

.float-done {
    top: 3%;
    left: -3%;
}

.float-pending {
    top: 24%;
    right: -6%;
    flex-direction: column;
    gap: 8px;
    max-width: 240px;
}

.float-scheduled {
    bottom: -2%;
    left: -4%;
}

.float-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--tertiary);
}

.float-icon.is-done {
    background: var(--done-container);
    color: var(--done);
}

.float-icon svg {
    width: 16px;
    height: 16px;
}

.float-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.float-text {
    color: var(--on-surface);
    font-size: 14px;
    line-height: 1.4;
}

.float-time,
.float-when {
    color: var(--secondary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.float-when {
    color: var(--tertiary);
    font-weight: 600;
}

.float-title {
    color: var(--on-surface);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.float-actions {
    display: flex;
    gap: 6px;
}

.float-actions i {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: var(--surface-raised);
    color: var(--on-surface);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.float-actions i.is-primary {
    background: var(--primary);
    color: var(--on-primary);
}

/* Tarjetas -------------------------------------------------------------- */

.duties,
.steps,
.jobs,
.guards,
.faces {
    margin: 0;
    padding: 0;
    list-style: none;
}

.duties,
.jobs,
.guards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.duties > li,
.steps > li,
.jobs > li {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--edge);
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms ease;
}

.duties > li:hover,
.steps > li:hover,
.jobs > li:hover {
    background: #161b28;
    box-shadow: var(--edge), var(--lift);
    transform: translateY(-3px);
}

.duties h3,
.steps h3,
.jobs h3,
.guards h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.duties > li > p,
.steps > li > div > p,
.jobs > li > p,
.guards p {
    margin: 0;
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.55;
}

.duty-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.duty-when {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tertiary);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.duty-when svg {
    width: 18px;
    height: 18px;
}

.duties-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 0;
    color: var(--secondary);
    font-size: 15px;
}

.duties-note svg {
    width: 18px;
    height: 18px;
    color: var(--attention);
}

/* Cómo funciona --------------------------------------------------------- */

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

.steps > li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 16px;
}

.number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--on-surface);
    font-size: 13px;
    font-weight: 600;
}

.vignette {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--surface-input);
}

.vlabel {
    display: block;
    color: var(--on-surface);
    font-size: 13px;
    font-weight: 600;
}

.vhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vhead .status-chip {
    white-space: nowrap;
}

.vlines {
    margin: 0;
    padding-left: 18px;
}

.vlines li {
    margin: 4px 0 0;
    color: var(--secondary);
    font-size: 14px;
}

.vlines li::marker {
    color: var(--tertiary);
}

.voiceband {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 32px;
    margin-bottom: 14px;
}

.voiceband i {
    display: block;
    width: 3px;
    height: calc(6px + 22px * var(--h, 0.35));
    border-radius: 2px;
    background: var(--tertiary);
    --h: calc(0.2 + 0.8 * abs(sin(var(--n) * 1.7)));
}

.is-in .voiceband i {
    animation: voice 1.4s var(--ease) 2;
    animation-delay: calc(var(--n) * 40ms);
}

@keyframes voice {
    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.6);
    }
}

.vrows {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.vrows li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.vrows li + li {
    border-top: 1px solid var(--rule);
}

.vname {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--on-surface);
    font-size: 14px;
    font-weight: 600;
}

.vdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--done);
}

.vnote {
    min-width: 0;
    color: var(--secondary);
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
}

.vtitle {
    margin: 0;
    color: var(--on-surface);
    font-size: 15px;
    font-weight: 600;
}

.vto {
    margin: 2px 0 12px;
    color: var(--secondary);
    font-size: 13px;
}

.vsigned {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.vsigned-line {
    color: var(--secondary);
    font-size: 13px;
}

/* Qué le puedes pedir --------------------------------------------------- */

.jobs .ask {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface-input);
    color: var(--on-surface);
    font-size: 15px;
    line-height: 1.4;
}

.jobs .ask svg {
    width: 18px;
    height: 18px;
    color: var(--tertiary);
}

/* Permisos -------------------------------------------------------------- */

.guards li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--edge);
}

.guard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--done-container);
    color: var(--done);
}

.guard-icon.is-small {
    width: 26px;
    height: 26px;
}

.guard-icon svg {
    width: 18px;
    height: 18px;
}

.guard-icon.is-small svg {
    width: 14px;
    height: 14px;
}

/* El encargo ------------------------------------------------------------ */

.thread {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--edge);
}

.thread-head {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.thread-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: dot 1.2s ease-in-out infinite;
}

.dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes dot {
    0%,
    80%,
    100% {
        opacity: 0.35;
    }

    40% {
        opacity: 1;
    }
}

.thread-entry {
    padding: 14px 0;
}

.thread-entry + .thread-entry {
    margin-top: 8px;
}

.thread.is-armed .thread-head,
.thread.is-armed .thread-entry {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}

.thread.is-armed .thread-head.is-on,
.thread.is-armed .thread-entry.is-on {
    opacity: 1;
    transform: none;
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.thread-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-raised);
    color: var(--on-surface);
    font-size: 12px;
    font-weight: 600;
}

.thread-author {
    margin: 0;
    color: var(--on-surface);
    font-size: 14px;
    font-weight: 600;
}

.thread-time {
    color: var(--secondary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.thread-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--surface-input);
}

.thread-text {
    margin: 0;
    color: var(--on-surface);
    font-size: 16px;
    line-height: 1.5;
}

.thread-text + .thread-text {
    margin-top: 6px;
}

.thread-text strong {
    font-weight: 600;
}

.thinking {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
}

.thinking .thread-time {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--working-container);
}

.thinking .thread-author {
    margin-bottom: 2px;
}

.thread-dots {
    display: flex;
    gap: 4px;
    margin: 0 0 4px;
    color: var(--working);
    font-size: 18px;
    line-height: 1;
}

.thread-dots i {
    font-style: normal;
    animation: dot 1.2s ease-in-out infinite;
}

.thread-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.thread-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

.thinking-status {
    margin: 0;
    color: var(--secondary);
    font-size: 14px;
}

.thread-worked {
    margin-top: 12px;
}

.thread-worked summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.thread-worked summary::-webkit-details-marker {
    display: none;
}

.thread-worked summary svg {
    width: 16px;
    height: 16px;
    transition: transform 200ms var(--ease);
}

.thread-worked[open] summary svg {
    transform: rotate(180deg);
}

.thread-worked ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.thread-worked li {
    margin: 4px 0;
    color: var(--secondary);
    font-size: 14px;
}

.thread-worked li::marker {
    color: var(--done);
}

.file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--surface-input);
}

.file-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    color: var(--tertiary);
}

.file-icon svg {
    width: 18px;
    height: 18px;
}

.file-name {
    display: block;
    color: var(--on-surface);
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.file-size {
    display: block;
    color: var(--secondary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* La tarjeta de aprobación ---------------------------------------------- */

.approval-card {
    margin-top: 14px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #202637, #1a2033);
    box-shadow: var(--edge);
}

.approval-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.approval-persona {
    display: flex;
    align-items: center;
    gap: 12px;
}

.approval-persona img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.approval-persona p {
    margin: 0;
    color: var(--secondary);
    font-size: 13px;
}

.approval-persona h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.approval-statuses .status-chip {
    display: none;
}

.approval-statuses .status-pending {
    display: inline-flex;
}

.approval-card.is-signed .status-pending,
.approval-card.is-sent .status-approved {
    display: none;
}

.approval-card.is-signed .status-approved,
.approval-card.is-sent .status-sent {
    display: inline-flex;
    animation: confirm 220ms var(--ease);
}

@keyframes confirm {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
}

.approval-card dl {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.field-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
}

.field-row dt {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.field-row dd {
    margin: 0;
    color: var(--on-surface);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.body-more {
    display: none;
    white-space: pre-line;
}

.approval-card.is-open [data-body-short] {
    display: none;
}

.approval-card.is-open .body-more {
    display: inline;
}

.body-sig {
    display: block;
    margin-top: 8px;
    color: var(--secondary);
}

.approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.approval-actions button,
.approval-actions span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--surface-input);
    color: var(--on-surface);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease, transform 120ms ease;
}

.approval-actions .is-primary {
    background: var(--primary);
    color: var(--on-primary);
}

.approval-actions button:hover {
    background: var(--rule);
}

.approval-actions button.is-primary:hover {
    background: var(--tertiary);
}

.approval-actions button:active {
    transform: translateY(1px);
}

.approval-signed {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--done);
    font-size: 14px;
}

.approval-signed svg {
    width: 16px;
    height: 16px;
}

.approval-card.is-signed .approval-actions {
    display: none;
}

.approval-card.is-signed .approval-signed {
    display: flex;
    animation: confirm 220ms var(--ease);
}

.thread-replay {
    margin: 12px 0 0;
}

.replay {
    padding: 10px 0;
    border: 0;
    background: none;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.replay:hover {
    color: var(--on-surface);
}

/* El registro ----------------------------------------------------------- */

.daybook {
    padding: 12px 24px 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--edge);
}

.daybook-head {
    padding: 8px 0 12px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
}

.activity-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
}

.activity-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--done);
}

.activity-icon svg {
    width: 20px;
    height: 20px;
}

.activity-row.is-attention .activity-icon {
    color: var(--attention);
}

.activity-row p {
    margin: 0;
    color: var(--on-surface);
    font-size: 15px;
    line-height: 1.5;
}

.activity-row time {
    color: var(--secondary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.9;
}

/* Los retratos ---------------------------------------------------------- */

.faces {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
}

.face {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 4px;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: var(--on-surface);
    cursor: pointer;
}

.face-ring {
    position: relative;
    display: block;
    width: min(100%, 128px);
    aspect-ratio: 1;
    border-radius: 50%;
    transition: transform 200ms var(--ease);
}

.face-ring img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--neutral), 0 0 0 4px transparent;
    transition: box-shadow 200ms var(--ease);
}

.face:hover .face-ring {
    transform: translateY(-3px);
}

.face:hover .face-ring img {
    box-shadow: 0 0 0 3px var(--neutral), 0 0 0 4px rgba(168, 184, 255, 0.45);
}

.face[aria-pressed="true"] .face-ring img {
    box-shadow: 0 0 0 3px var(--neutral), 0 0 0 5px var(--primary);
}

.face-check {
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.face-check svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.face[aria-pressed="true"] .face-check {
    opacity: 1;
    transform: none;
}

.face-name {
    font-size: 14px;
    font-weight: 600;
}

/* El precio ------------------------------------------------------------- */

.price-col .section-head {
    margin-bottom: 32px;
}

.tariff {
    max-width: none;
    padding: 32px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, #171d30, #131722 60%);
    box-shadow: var(--edge), var(--lift);
}

.tariff .fine {
    display: none;
}

.tariff-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

.amount {
    font-size: clamp(36px, 5vw, 44px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.tax {
    color: var(--secondary);
    font-size: 13px;
}

.fine {
    margin: 12px 0 20px;
    color: var(--secondary);
    font-size: 15px;
}

.tariff ul {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.tariff li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--on-surface);
    font-size: 15px;
}

/* La invitación --------------------------------------------------------- */

.invite {
    padding-bottom: 120px;
}

.invite-card {
    max-width: none;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--edge);
}

.invite-form {
    display: grid;
    gap: 4px;
}

.invite-form .field {
    margin-bottom: 16px;
}

.invite-form .button {
    width: 100%;
    margin-top: 4px;
}

.invite-sent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--done-container);
    color: var(--done);
    font-size: 15px;
}

.invite-sent svg {
    width: 18px;
    height: 18px;
}

.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* El pie ---------------------------------------------------------------- */

.foot {
    padding: 40px 0 48px;
}

.foot-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    width: min(100% - 32px, var(--col));
    margin: 0 auto;
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.5;
}

.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.foot a {
    color: var(--secondary);
    text-decoration: none;
}

.foot a:hover {
    color: var(--on-surface);
}

.foot .wordmark {
    color: var(--on-surface);
}

/* Anchuras -------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stage {
        margin: 24px auto 0;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .split .section-intro {
        position: static;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .band {
        padding: 72px 0;
    }

    .hero {
        padding: 24px 0 64px;
    }

    .top-link {
        display: none;
    }

    .display {
        max-width: none;
    }

    .hero-actions .button {
        width: 100%;
    }

    .stage {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        aspect-ratio: auto;
        margin-top: 8px;
    }

    .stage-ring {
        display: none;
    }

    .portrait {
        position: relative;
        top: auto;
        left: auto;
        width: 160px;
        margin: 0 auto 40px;
        transform: none;
    }

    .has-js [data-rise].portrait,
    .has-js [data-rise].portrait.is-in {
        transform: none;
    }

    .float {
        position: static;
        max-width: none;
    }

    .duties,
    .jobs,
    .guards {
        grid-template-columns: 1fr;
    }

    .duties > li,
    .steps > li,
    .jobs > li,
    .guards li,
    .thread,
    .tariff,
    .invite-card {
        padding: 20px;
    }

    .daybook {
        padding: 8px 16px 12px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .foot-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-js [data-rise] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .has-js [data-rise].portrait {
        transform: translate(-50%, -54%);
    }

    .float,
    .duties > li,
    .steps > li,
    .jobs > li,
    .face-ring {
        transition: none;
    }

    .voiceband i,
    .dots i,
    .thread-dots i {
        animation: none;
    }
}
