.page {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 0 18px 20px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "head"
        "main"
        "foot";
    gap: 12px;
}

/* Encabezado centrado */
/* ===== Brand textual (sin imagen) ===== */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-name {
    font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    font-weight: 800;
    letter-spacing: .02em;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1;
    background: linear-gradient(90deg, #e6eef7 0%, #37a1ff 40%, #5dd6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-right: 18px;
}

.brand-name::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #37a1ff;
    box-shadow: 0 0 0 0 rgba(55, 161, 255, .6);
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(55, 161, 255, .6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(55, 161, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(55, 161, 255, 0);
    }
}

/* Alineación del header según tu layout actual */
header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.heading {
    grid-area: head;
    margin: 0;
    padding-top: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(11, 18, 26, .95), rgba(11, 18, 26, .75) 70%, rgba(11, 18, 26, 0));
    backdrop-filter: blur(4px);
}

.heading .brand {
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .brand-name::after {
        animation: none;
    }
}

.back {
    color: var(--muted);
    text-decoration: none;
    font-size: .95rem;
}

.back:hover {
    text-decoration: underline;
}

.h1 {
    margin: 6px 0 0;
    font-size: clamp(44px, 6.4vw, 68px);
    font-weight: 900;
    letter-spacing: .02em;
}

.h1 .sep {
    margin: 0 10px;
    opacity: .5;
}

.h1 .sub {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
    font-size: .85em;
}

[hidden] {
    display: none !important;
}

.h1.no-sub .sep,
.h1.no-sub .sub {
    display: none;
}

/* BLOQUE CENTRAL: 3 filas iguales */
.content {
    grid-area: main;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: clamp(16px, 4vh, 48px);
}

/* Cada pane centrado H/V */
.pane {
    display: grid;
    place-items: center;
    text-align: center;
}

/* Colocación vertical dentro de cada franja */
.pane-title {
    align-self: auto;
}

/* centrado en la 2ª franja  */
.pane-details {
    align-self: auto;
}

/* al inicio de la 3ª franja */
.pane-counter {
    width: auto;
    display: inline-grid;
    grid-template-rows: auto auto;
    justify-items: center;
    padding-block: 4px;
    padding-inline: inherit;
    gap: 2px;
    background: linear-gradient(135deg, var(--card), var(--card-2));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    border-radius: 18px;
    padding-block: 6px;
    padding-inline: clamp(18px, 3.2vw, 30px);
    margin-block-end: clamp(18px, 9vh, 180px);
}

.big {
    font-size: clamp(32px, 7.2vw, 68px);
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
}

.hint {
    font-size: 1.2rem;
    color: var(--muted);
}

/* Detalles */
.pane-details {
    padding-inline: 8px;
}

.details {
    max-width: 760px;
}

.range {
    color: var(--text);
    font-size: clamp(0.98rem, 1.4vw, 1.125rem);
    font-weight: 800;
}

.desc {
    font-size: clamp(0.95rem, 1.25vw, 1.05rem);
    color: var(--muted);
    margin-top: 8px;
}

.foot {
    grid-area: foot;
    text-align: center;
    color: var(--muted);
    padding: 6px 0 10px;
    line-height: 1.2;
}

/* Responsive: si la pantalla es baja, que los tercios no queden apretados */
@media (max-height:640px) {
    .content {
        grid-template-rows: auto 1fr auto;
    }

    /* si hay poca altura, hace elástico */
}

@media (max-width:520px) {
    .h1 {
        line-height: 1.25;
    }

    .h1 .sep {
        display: none;
    }
}