/* Logoteo · splash. Tokens: azul tinta (Reflex), papel, marcas de corte y tintas de proceso. */
:root {
    --ink: #0f1e8a;
    --ink-deep: #0a1566;
    --paper: #ffffff;
    --paper-soft: #d9ddf5;
    --tick: #8f9bea;
    --caption: #b9c1f2;
    --cyan: #00aeef;
    --magenta: #ec008c;
    --yellow: #fff200;
    --key: #1a1a1a;

    --display: 'Avenir Next', Avenir, 'Century Gothic', system-ui, sans-serif;
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    color-scheme: dark;
}

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

html {
    background: var(--ink);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    color: var(--paper-soft);
    font: 400 1.0625rem/1.6 var(--body);
}

a {
    color: var(--paper);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

.wrap {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Cabecera y pie */
.top,
.bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.top {
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.top img {
    display: block;
    width: 227px;
    max-width: 60vw;
    height: auto;
}

.status {
    font: 500 0.75rem/1.2 var(--mono);
    letter-spacing: 0.04em;
    color: var(--caption);
}

.bottom {
    padding-block: 1.5rem 2rem;
    border-top: 1px solid rgba(143, 155, 234, 0.35);
    font-size: 0.875rem;
    color: var(--caption);
}

/* Contenido */
main {
    flex: 1;
    display: flex;
    align-items: center;
    padding-block: clamp(1.5rem, 5vw, 4rem);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

h1 {
    margin: 0 0 1.5rem;
    max-width: 15ch;
    font: 700 clamp(2.35rem, 5vw, 4.1rem) / 1.03 var(--display);
    letter-spacing: -0.02em;
    color: var(--paper);
    text-wrap: balance;
}

.lead {
    margin: 0 0 2rem;
    max-width: 34rem;
    font-size: 1.125rem;
}

.cta {
    display: inline-block;
    padding: 0.9rem 1.4rem;
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font: 700 1rem/1.2 var(--body);
    text-decoration: none;
    transition: background-color 150ms ease;
}

.cta:hover {
    background: var(--paper-soft);
}

.alt {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
}

/* Prueba de marcaje: el elemento propio de la página */
.proof {
    margin: 0;
    padding: 2.25rem 2.25rem 1.25rem;
    position: relative;
    background: var(--ink-deep);
}

.proof .crop {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
}

.proof .crop::before,
.proof .crop::after {
    content: '';
    position: absolute;
    background: var(--tick);
}

.proof .crop::before {
    width: 1.1rem;
    height: 1px;
}

.proof .crop::after {
    width: 1px;
    height: 1.1rem;
}

.crop.tl { top: -0.6rem; left: -0.6rem; }
.crop.tl::before { top: 0.6rem; left: -0.8rem; }
.crop.tl::after { left: 0.6rem; top: -0.8rem; }

.crop.tr { top: -0.6rem; right: -0.6rem; }
.crop.tr::before { top: 0.6rem; right: -0.8rem; }
.crop.tr::after { right: 0.6rem; top: -0.8rem; }

.crop.bl { bottom: -0.6rem; left: -0.6rem; }
.crop.bl::before { bottom: 0.6rem; left: -0.8rem; }
.crop.bl::after { left: 0.6rem; bottom: -0.8rem; }

.crop.br { bottom: -0.6rem; right: -0.6rem; }
.crop.br::before { bottom: 0.6rem; right: -0.8rem; }
.crop.br::after { right: 0.6rem; bottom: -0.8rem; }

.stage {
    height: 15.5rem;
    display: grid;
    place-items: center;
}

.area {
    --w: 226px;
    --h: 170px;
    position: relative;
    width: var(--w);
    height: var(--h);
    display: grid;
    place-items: center;
    border: 1.5px dashed var(--paper);
    color: var(--paper);
    font: 600 clamp(0.6875rem, calc(var(--h) * 0.22), 0.9375rem) / 1 var(--mono);
    letter-spacing: 0.02em;
    text-align: center;
    transition:
        width 700ms cubic-bezier(0.65, 0, 0.35, 1),
        height 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* Cotas */
.dim {
    position: absolute;
    color: var(--caption);
    font: 500 0.6875rem/1 var(--mono);
    white-space: nowrap;
}

.dim::before {
    content: '';
    position: absolute;
    border: 0 solid var(--tick);
}

.dim-w {
    left: 0;
    right: 0;
    top: calc(100% + 0.7rem);
    text-align: center;
}

.dim-w::before {
    left: 0;
    right: 0;
    top: 50%;
    height: 0.5rem;
    margin-top: -0.25rem;
    border-width: 0 1px;
    background: linear-gradient(var(--tick), var(--tick)) center / 100% 1px no-repeat;
}

.dim-w span,
.dim-h span {
    position: relative;
    padding: 0 0.4rem;
    background: var(--ink-deep);
}

.dim-h {
    top: 0;
    bottom: 0;
    left: calc(100% + 0.7rem);
    display: flex;
    align-items: center;
    width: 0.5rem;
}

.dim-h::before {
    top: 0;
    bottom: 0;
    left: 0;
    width: 0.5rem;
    border-width: 1px 0;
    background: linear-gradient(var(--tick), var(--tick)) center / 1px 100% no-repeat;
}

.dim-h span {
    margin-left: -0.15rem;
    padding: 0.25rem 0;
}

.meta {
    margin-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    font: 500 0.75rem/1.4 var(--mono);
    color: var(--caption);
}

.meta strong {
    display: block;
    color: var(--paper);
    font-weight: 600;
}

.fade {
    transition: opacity 250ms ease;
}

.fade.out {
    opacity: 0;
}

/* Tira de control CMYK, como en el borde de una prueba de imprenta */
.bar {
    display: flex;
    flex: none;
}

.bar i {
    width: 0.75rem;
    height: 0.75rem;
}

.bar i:nth-child(1) { background: var(--cyan); }
.bar i:nth-child(2) { background: var(--magenta); }
.bar i:nth-child(3) { background: var(--yellow); }
.bar i:nth-child(4) { background: var(--key); }

/* 404 */
.area.empty {
    width: 15rem;
    height: 7.5rem;
    color: var(--caption);
}

@media (max-width: 54rem) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .proof {
        max-width: 30rem;
        margin-inline: 0.75rem;
        padding: 1.75rem 1.5rem 1rem;
    }

    .stage {
        height: 13rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .area,
    .fade,
    .cta {
        transition: none;
    }
}
