/* ── Publication page ──────────────────────────────────────────────────────── */

#pub {
    min-height: 100vh;
}

/* ── Image ── */

.pub_imagen_wrap {
    width: 100%;
    max-height: 55vh;
    overflow: hidden;
}

.pub_imagen {
    width: 100%;
    height: 55vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Header ── */

.pub_cabecera {
    padding: 5% 8% 3%;
    border-bottom: 1px solid var(--azul-c);
}

.pub_nombre {
    font-size: 3vw;
    text-transform: uppercase;
    color: var(--negro);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.pub_instituciones_label {
    font-size: 0.75vw;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--azul-c);
    margin-bottom: 0.6rem;
}

.pub_instituciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pub_inst_link {
    display: inline-block;
    font-size: 0.8vw;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--negro);
    border: 1px solid var(--negro);
    padding: 0.25rem 0.75rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.pub_inst_link:hover {
    background-color: var(--negro);
    color: var(--blanco);
}

/* ── Description ── */

.pub_desc {
    padding: 4% 8%;
    font-size: 1.05vw;
    line-height: 1.8;
    color: var(--negro);
    max-width: 70ch;
}

.pub_desc p {
    margin-bottom: 1rem;
}

/* ── Visit button ── */

.pub_accion {
    padding: 0 8% 6%;
}

.pub_btn {
    display: inline-block;
    background-color: var(--acento);
    color: var(--blanco);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85vw;
    padding: 0.7rem 2rem;
    transition: background-color 0.2s;
}

.pub_btn:hover {
    background-color: var(--negro);
}

/* ── Error ── */

.pub_error {
    padding: 8%;
    font-size: 1vw;
    color: var(--azul-c);
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .pub_imagen {
        height: 40vw;
    }

    .pub_nombre {
        font-size: 7vw;
    }

    .pub_instituciones_label {
        font-size: 3vw;
    }

    .pub_inst_link {
        font-size: 3.2vw;
    }

    .pub_desc {
        font-size: 4.2vw;
        max-width: 100%;
    }

    .pub_btn {
        font-size: 3.5vw;
    }

    .pub_error {
        font-size: 4vw;
    }
}
