/* 
    Sistema de Diseño Global - Biblioteca Netzahualcóyotl 2180
    Garantiza consistencia total en tipografía y colores.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;700&family=Montserrat:wght@600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --primary: #5a091e;
    --primary-light: #7a112c;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Merriweather', serif;
    --font-logo: 'Playfair Display', serif;
    --font-menu: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Tipografía Base */
body {
    font-family: var(--font-body) !important;
    -webkit-font-smoothing: antialiased;
}

/* Títulos Generales (H2, H3, etc.) */
h2, h3, h4, h5, h6, 
.sidebar-header h2 {
    font-family: var(--font-heading) !important;
}

/* Logo / Título Principal Netzahualcóyotl */
.logo, h1 {
    font-family: var(--font-logo) !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

/* Navegación (Menú) */
nav .nav-links a {
    font-family: var(--font-menu) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Tamaños Consistentes */
h1 { font-size: clamp(2rem, 4vw, 3rem) !important; line-height: 1.2 !important; }
h2 { font-size: 1.8rem !important; }
h3 { font-size: 1.1rem !important; }

.logo {
    font-size: 1.5rem !important;
}

/* Botones */
.btn-nav, .btn-primary, .btn-save, .btn-action, button {
    font-family: var(--font-menu) !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ── Footer Global ── */
.main-footer {
    background: #2a0a12;
    color: #d4b8bf;
    padding: 2.5rem 2rem 1.5rem;
    border-top: 3px solid var(--primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-col h3 {
    color: #f2dce1;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #9e3a54;
}

.footer-col p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #d4b8bf;
    font-size: 0.82rem;
}

.footer-col p svg {
    color: #c4697e;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-col p a {
    color: #d4b8bf;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col p a:hover {
    color: #ffffff;
}

.footer-brand {
    font-family: var(--font-logo);
    color: #f2dce1 !important;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-tagline {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0 !important;
}

.footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #4a1a28;
    text-align: center;
    font-size: 0.75rem;
    color: #a07a84;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 1.5rem 1.5rem;
    }
    .footer-container {
        gap: 1.5rem;
    }
}
