@import url('snte-theme.css');

/* Footer institucional SNTE Sección 61 — fondo blanco + sombra naranja */
:root {
    --snte-footer-bg: #ffffff;
    --snte-footer-text: #1a2e24;
    --snte-footer-muted: #5a6b62;
    --snte-footer-accent: #E35205;
    --snte-footer-heading: #E35205;
    --snte-footer-border: rgba(227, 82, 5, 0.12);
    --snte-chrome-shadow: 0 10px 30px rgba(227, 82, 5, 0.2);
}

/* Sticky footer en flujo normal: no fixed/absolute, no z-index invasivo */
html {
    height: auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    margin: 0;
}

.snte-site-footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    position: static;
    background: var(--snte-footer-bg);
    color: var(--snte-footer-text);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    border: none;
    box-shadow: var(--snte-chrome-shadow);
}

.snte-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
}

.snte-footer-col h3 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--snte-footer-heading);
    border-bottom: 1px solid var(--snte-footer-border);
    padding-bottom: 0.5rem;
}

.snte-footer-brand {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--snte-footer-heading);
}

.snte-footer-delegation {
    margin: 0 0 0.75rem;
    color: var(--snte-footer-muted);
    font-size: 0.88rem;
}

.snte-footer-motto {
    margin: 0;
    font-style: italic;
    color: var(--snte-footer-accent);
    font-size: 0.88rem;
}

.snte-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.snte-footer-links li {
    margin-bottom: 0.45rem;
}

.snte-footer-links a {
    color: var(--snte-footer-text);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.snte-footer-links a:hover,
.snte-footer-links a:focus {
    color: var(--snte-footer-accent);
    padding-left: 4px;
    outline: none;
}

.snte-footer-contact p {
    margin: 0 0 0.55rem;
    color: var(--snte-footer-muted);
}

.snte-footer-contact strong {
    color: var(--snte-footer-heading);
    font-weight: 560;
}

.snte-footer-contact a {
    color: var(--snte-footer-accent);
    text-decoration: none;
}

.snte-footer-contact a:hover {
    text-decoration: underline;
}

.snte-footer-legal {
    border-top: 1px solid var(--snte-footer-border);
    padding: 0.9rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
    background: #fafbfa;
    font-size: 0.82rem;
    color: var(--snte-footer-muted);
}

.snte-footer-legal a {
    color: var(--snte-footer-accent);
    text-decoration: none;
}

.snte-footer-legal a:hover {
    text-decoration: underline;
}

/* Chat a pantalla completa: pie compacto sin romper el layout */
body.chat-page .snte-footer-inner {
    display: none;
}

body.chat-page .snte-footer-legal {
    padding: 0.55rem 1rem;
    justify-content: center;
    text-align: center;
}

@media (max-width: 900px) {
    .snte-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }

    .snte-footer-col--identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .snte-footer-inner {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.15rem 1.35rem;
        gap: 1.5rem;
    }

    .snte-footer-col--identity {
        grid-column: auto;
    }

    .snte-footer-legal {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}
