:root {
    --cf-accent: #2f5d8a;
}

body {
    background: var(--bs-tertiary-bg);
    min-height: 100vh;
}

.brand-mark {
    color: var(--cf-accent);
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.card {
    border: 1px solid var(--bs-border-color-translucent);
}

.stat {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.table td, .table th {
    vertical-align: middle;
}

.auth-card {
    max-width: 420px;
    margin: 4rem auto;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Lista de alumnos para emitir: desplazable en pantallas pequeñas. */
.student-pick {
    max-height: 55vh;
    overflow-y: auto;
}

/* ---------- Diseñador ---------- */
.designer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .designer {
        grid-template-columns: minmax(0, 1fr);
    }
}

.canvas-wrap {
    overflow: auto;
    background: #6c757d;
    border-radius: .5rem;
    padding: 12px;
    max-height: 80vh;
}

.stage {
    position: relative;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    touch-action: none;
}

.stage canvas {
    display: block;
}

.field {
    position: absolute;
    white-space: nowrap;
    line-height: 1;
    cursor: move;
    user-select: none;
    outline: 1px dashed rgba(47, 93, 138, .7);
    background: rgba(47, 93, 138, .08);
    padding: 0;
}

.field.selected {
    outline: 2px solid #d63384;
    background: rgba(214, 51, 132, .1);
    z-index: 2;
}

.field .anchor {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d63384;
    bottom: -3px;
}

.field.qr {
    background-color: rgba(0, 0, 0, .06);
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .25) 0 4px, transparent 4px 8px);
    outline-style: solid;
}

.field-list .list-group-item {
    cursor: pointer;
}

.verify-card {
    max-width: 560px;
    margin: 3rem auto;
}

.verify-status {
    font-size: 1.5rem;
    font-weight: 600;
}

.legal-card {
    max-width: 780px;
    margin: 2rem auto 3rem;
}

.legal-card li {
    margin-bottom: .35rem;
}

.help-page {
    max-width: 900px;
}

.help-body li {
    margin-bottom: .4rem;
}

.help-body p:last-child, .help-body ul:last-child, .help-body ol:last-child {
    margin-bottom: 0;
}

.help-guide li {
    margin-bottom: .3rem;
}

/* ---------- Sitio público (/es, /en) ---------- */
body.site {
    background: var(--bs-tertiary-bg);
}

.site-hero {
    padding: 4rem 0;
}

.site-section {
    padding: 4.5rem 0;
    scroll-margin-top: 3.5rem;
}

.site-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 12px 40px rgba(20, 40, 70, .22);
}

.site-step {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--cf-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-step-sm {
    width: 2rem;
    height: 2rem;
    font-size: .95rem;
}

.site-checks {
    list-style: none;
    padding-left: 0;
    max-width: 30rem;
}

.site-checks li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .6rem;
}

.site-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--bs-success);
    font-weight: 700;
}

.site-sample {
    max-width: 30rem;
    margin: 0 auto;
}

.site-plan {
    max-width: 30rem;
}

.site-price {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.site-narrow {
    max-width: 780px;
}

.site-final {
    background: var(--cf-accent);
    color: #fff;
}

.site-footer {
    padding: 1.5rem 0;
}

/* El aviso de la analítica: abajo, sin tapar la página. */
.consent-bar {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    max-width: 44rem;
    margin: 0 auto;
    padding: .9rem 1rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .9rem;
}

.consent-bar p {
    margin: 0;
    flex: 1 1 18rem;
}

.consent-bar div {
    display: flex;
    gap: .5rem;
}
