/* branding.css — Header y footer de marca (Grupo Seres) */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.site-brand-logo {
    display: block;
    width: auto;
    height: 64px;
    max-width: 100%;
}

/* El logo oscuro no se ve sobre el tema oscuro: se usa la versión con texto blanco y mano verde. */
.site-brand-logo--dark { display: none; }

:root[data-theme="dark"] .site-brand-logo--light { display: none; }
:root[data-theme="dark"] .site-brand-logo--dark { display: block; }

.site-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-top: 48px;
    padding: 32px 0 8px;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.site-footer-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.site-footer .site-brand-logo { height: 48px; }

.site-footer-slogan {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
}

.site-footer-copy {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.site-footer-copy a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-footer-copy a:hover {
    text-decoration: underline;
}

/* Separador de años con el logo de Grupo Seres */
.year-separator {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 8px 0 0;
}

.year-separator-line {
    flex: 1 1 auto;
    height: 1px;
    background-color: var(--color-border);
}

.year-separator-logo {
    display: block;
    width: auto;
    height: 36px;
    flex: 0 0 auto;
    opacity: 0.95;
}

.year-separator-logo--dark { display: none; }

:root[data-theme="dark"] .year-separator-logo--light { display: none; }
:root[data-theme="dark"] .year-separator-logo--dark { display: block; }

.year-separator + .calendar-year .year-header {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .site-brand-logo { height: 52px; }
    .site-footer { gap: 16px; }
    .site-footer .site-brand-logo { height: 40px; }
    .year-separator { gap: 12px; }
    .year-separator-logo { height: 30px; }
}
