/* ==========================================================================
   Justine 2026 — Footer / Colofón
   ========================================================================== */

#footerwrap {
    background-color: var(--negro-encuadernacion);
    color: var(--papel-cream);
    margin-top: var(--space-section);
    padding: var(--space-section) 0 var(--space-lg);
    border-top: 3px double rgba(212, 207, 199, 0.25);
}

#footer {
    max-width: var(--content-full);
    margin: 0 auto;
    padding: 0 var(--space-content);
}

/* --------------------------------------------------------------------------
   Footer widget columns
   -------------------------------------------------------------------------- */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-widget {
    color: rgba(250, 246, 240, 0.8);
}

.footer-widget .widgettitle,
.footer-widget .widget-title,
.footer-widget h3,
.footer-widget h4 {
    color: var(--papel-cream);
    font-family: var(--font-editorial);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    text-transform: none;
    letter-spacing: 0;
}

.footer-widget p,
.footer-widget li,
.footer-widget a {
    color: rgba(250, 246, 240, 0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
}

.footer-widget a {
    text-decoration: none;
    transition: color var(--transition-page);
}

.footer-widget a:hover,
.footer-widget a:focus {
    color: var(--naranja-justine);
    text-decoration: underline;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Footer navigation
   -------------------------------------------------------------------------- */
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    list-style: none;
    margin: 0 0 var(--space-lg);
    padding: 0;
}

.footer-nav a {
    color: rgba(250, 246, 240, 0.8);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--naranja-justine);
}

/* --------------------------------------------------------------------------
   Social links in footer
   -------------------------------------------------------------------------- */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(250, 246, 240, 0.85);
    background-color: rgba(250, 246, 240, 0.08);
    border-radius: 50%;
    text-decoration: none;
    transition: color var(--transition-page), background-color var(--transition-page), transform var(--transition-page);
}

.footer-social a:hover,
.footer-social a:focus {
    color: var(--papel-cream);
    background-color: var(--naranja-justine);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Colophon / copyright line
   -------------------------------------------------------------------------- */
.footer-text,
.footer-colophon {
    border-top: 1px solid rgba(212, 207, 199, 0.15);
    padding-top: var(--space-lg);
    text-align: center;
    color: rgba(250, 246, 240, 0.55);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    line-height: 1.6;
}

.footer-colophon p {
    margin: 0 0 var(--space-sm);
}

.footer-colophon .institution {
    color: rgba(250, 246, 240, 0.75);
    font-weight: 500;
}

.footer-colophon a {
    color: rgba(250, 246, 240, 0.7);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.footer-colophon a:hover,
.footer-colophon a:focus {
    color: var(--naranja-justine);
}
