/* =========================
   Física — estética de plano técnico (blueprint)
   Azul de plano de ingeniería, cuadrícula de fondo, marcas de registro
   en las esquinas y un cajetín de título como en los planos reales.
   ========================= */

:root {
    --blue-bg: #0f2c4c;
    --blue-line: rgba(238, 246, 255, 0.14);
    --blue-white: #eef6ff;
    --blue-muted: #9fbedd;
    --blue-cyan: #6fd6ff;
    --blue-amber: #ffb454;
}

* {
    box-sizing: border-box;
}

body.blueprint {
    margin: 0;
    background-color: var(--blue-bg);
    background-image:
        linear-gradient(var(--blue-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--blue-line) 1px, transparent 1px),
        linear-gradient(180deg, rgba(6, 16, 30, 0.82), rgba(6, 16, 30, 0.5) 45%, rgba(6, 16, 30, 0.92)),
        url("/static/images/fisica-saturno.jpg");
    background-size: 32px 32px, 32px 32px, cover, cover;
    background-position: 0 0, 0 0, center, center 32%;
    background-repeat: repeat, repeat, no-repeat, no-repeat;
    background-attachment: fixed, fixed, fixed, fixed;
    color: var(--blue-white);
    font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
}

a {
    color: var(--blue-cyan);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue-amber);
    outline-offset: 3px;
}


/* ANIMACION DE ENTRADA: plano trazandose */

@keyframes blueprintFade {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.blueprint-fade {
    opacity: 0;
    animation: blueprintFade 0.5s ease forwards;
}

section.blueprint-fade,
div.blueprint-fade {
    transform: none;
    animation-name: blueprintFadeUp;
}

@keyframes blueprintFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .blueprint-fade {
        animation: none;
        opacity: 1;
    }
}


/* MARCAS DE REGISTRO */

.blueprint-crop {
    position: fixed;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(238, 246, 255, 0.5);
    z-index: 5;
}

.blueprint-crop::before,
.blueprint-crop::after {
    content: "";
    position: absolute;
    background: rgba(238, 246, 255, 0.5);
}

.blueprint-crop::before { width: 100%; height: 1.5px; top: 50%; left: 0; }
.blueprint-crop::after { height: 100%; width: 1.5px; left: 50%; top: 0; }

.blueprint-crop-tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.blueprint-crop-tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.blueprint-crop-bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.blueprint-crop-br { bottom: 18px; right: 18px; border-left: none; border-top: none; }


/* BARRA SUPERIOR */

.blueprint-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    padding: 28px 56px 0;
}

.blueprint-brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    text-decoration: none;
    color: var(--blue-white);
    letter-spacing: 0.02em;
}

.blueprint-nav {
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
    gap: 20px;
}

.blueprint-nav a {
    text-decoration: none;
    color: var(--blue-muted);
    font-size: 14px;
}

.blueprint-nav a:hover {
    color: var(--blue-cyan);
}


/* CONTENIDO */

.blueprint-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 32px 60px;
    position: relative;
}

.blueprint-main > * + * {
    margin-top: 44px;
}


/* HERO */

.blueprint-hero {
    border: 1px solid rgba(238, 246, 255, 0.3);
    background-color: rgba(6, 16, 30, 0.4);
    backdrop-filter: blur(2px);
    padding: 36px 40px;
    position: relative;
}

.blueprint-hero::before {
    content: "FIG. 01";
    position: absolute;
    top: -11px;
    left: 24px;
    background-color: var(--blue-bg);
    padding: 0 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--blue-cyan);
    letter-spacing: 0.08em;
}

.blueprint-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 42px;
    font-weight: 600;
    margin: 0 0 14px;
}

.blueprint-hero p {
    max-width: 480px;
    margin: 0;
    color: var(--blue-muted);
    font-size: 16px;
    line-height: 1.65;
}


/* CAJETÍN DE TÍTULO (como en un plano real) */

.blueprint-titleblock {
    border: 1px solid rgba(238, 246, 255, 0.3);
    background-color: rgba(6, 16, 30, 0.4);
    backdrop-filter: blur(2px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.blueprint-titleblock div {
    padding: 10px 16px;
    border-left: 1px solid rgba(238, 246, 255, 0.3);
}

.blueprint-titleblock div:first-child {
    border-left: none;
}

.blueprint-titleblock span {
    display: block;
    font-size: 11px;
    color: var(--blue-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.blueprint-titleblock strong {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    color: var(--blue-cyan);
}


/* BUSCADOR */

.blueprint-search-form {
    margin-bottom: 8px;
}

.blueprint-search {
    width: 100%;
    max-width: 420px;

    padding: 10px 16px;

    background-color: rgba(238, 246, 255, 0.05);
    border: 1px solid rgba(238, 246, 255, 0.25);
    border-radius: 2px;

    color: var(--blue-white);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
}

.blueprint-search::placeholder {
    color: var(--blue-muted);
}

.blueprint-search:focus {
    outline: none;
    border-color: var(--blue-cyan);
    background-color: rgba(238, 246, 255, 0.08);
}


/* SECCIONES */

.blueprint-section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue-cyan);
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(238, 246, 255, 0.25);
}

.blueprint-rows {
    display: flex;
    flex-direction: column;
}

.blueprint-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    color: var(--blue-white);
    border-bottom: 1px dashed rgba(238, 246, 255, 0.22);
}

.blueprint-rows > *:last-child {
    border-bottom: none;
}

.blueprint-row-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blueprint-row-marker {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--blue-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--blue-cyan);
}

.blueprint-row-body h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.blueprint-row-body p {
    margin: 0;
    color: var(--blue-muted);
    font-size: 14px;
}

.blueprint-row-meta {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--blue-amber);
    font-size: 13px;
    white-space: nowrap;
}

.blueprint-row-copy {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;

    width: 26px;
    height: 26px;
    padding: 0;

    background-color: transparent;
    border: 1px solid rgba(238, 246, 255, 0.3);
    border-radius: 50%;

    color: var(--blue-cyan);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.blueprint-row-copy:hover {
    border-color: var(--blue-amber);
    color: var(--blue-amber);
}

.blueprint-empty {
    color: var(--blue-muted);
    font-size: 14px;
    font-style: italic;
    padding: 8px 0;
}


@media (max-width: 640px) {

    .blueprint-topbar {
        padding: 24px 24px 0;
    }

    .blueprint-main {
        padding: 40px 20px 50px;
    }

    .blueprint-hero {
        padding: 28px 20px;
    }

    .blueprint-hero h1 {
        font-size: 32px;
    }

    .blueprint-titleblock {
        grid-template-columns: 1fr;
    }

    .blueprint-titleblock div {
        border-left: none;
        border-top: 1px solid rgba(238, 246, 255, 0.3);
    }

    .blueprint-titleblock div:first-child {
        border-top: none;
    }

    .blueprint-row {
        flex-wrap: wrap;
    }

    .blueprint-row-meta {
        margin-left: 42px;
    }

    .blueprint-crop {
        width: 14px;
        height: 14px;
    }

}
