/* =============================================
   BIBLIOTECA UCATECI — main.css
   ============================================= */
:root {
    --p:     #1e3a8a;   /* azul primario */
    --pd:    #162d6e;   /* azul oscuro */
    --pl:    #2d4fa3;   /* azul claro */
    --red:   #dc2626;   /* rojo acento */
    --gold:  #f59e0b;
    --bg:    #f1f5f9;
    --bg2:   #e8eef8;
    --card:  #ffffff;
    --txt:   #0f172a;
    --mut:   #64748b;
    --bdr:   #e2e8f0;
    --r:     12px;
    --nav-h: 64px;
    --tran:  all .2s ease;
    --shadow: 0 2px 12px rgba(30,58,138,.10);
    --shadow-lg: 0 8px 32px rgba(30,58,138,.15);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; font-size: 15px; color: var(--txt); background: white; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--p);
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    transition: var(--tran);
}
.navbar.scrolled { background: var(--pd); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-brand img { height: 38px; object-fit: contain; }
.brand-text { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 800; color: white; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: .15rem; flex: 1; justify-content: center; }
.nav-links a { color: rgba(255,255,255,.82); font-size: .83rem; font-weight: 600; padding: .45rem .75rem; border-radius: 6px; transition: var(--tran); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(255,255,255,.12); }
.nav-links a.active { border-bottom: 2px solid var(--red); border-radius: 0; }
.nav-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav-search-btn { background: rgba(255,255,255,.12); border: none; color: white; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--tran); }
.nav-search-btn:hover { background: rgba(255,255,255,.22); }
.nav-social { display: flex; gap: .4rem; }
.nav-social a { color: rgba(255,255,255,.7); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: var(--tran); font-size: .82rem; }
.nav-social a:hover { color: white; background: rgba(255,255,255,.12); }
.hamburger { display: none; background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; padding: .3rem; }
.nav-spacer { height: var(--nav-h); }

/* Search bar dropdown */
.nav-search-bar {
    background: var(--pd); padding: .75rem 1.5rem;
    display: none; align-items: center; gap: .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.nav-search-bar.open { display: flex; }
.nav-search-form { display: flex; flex: 1; max-width: 680px; margin: 0 auto; gap: .5rem; }
.nav-search-select { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: .5rem .75rem; min-width: 120px; cursor: pointer; }
.nav-search-select option { color: var(--txt); background: white; }
.nav-search-input { flex: 1; background: white; border: none; border-radius: 8px; padding: .5rem 1rem; font-size: .9rem; }
.nav-search-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(220,38,38,.3); }
.nav-search-submit { background: var(--red); color: white; border: none; border-radius: 8px; padding: .5rem 1.1rem; cursor: pointer; transition: var(--tran); }
.nav-search-submit:hover { background: #b91c1c; }
.nav-search-close { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.1rem; padding: .3rem; }

/* ── HERO ── */
.hero {
    position: relative; min-height: 520px; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--p) 0%, var(--pd) 60%, #0f1f5c 100%);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .18; }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4rem; padding-bottom: 4rem; gap: 1.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); font-size: .75rem; font-weight: 700; padding: .35rem .9rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .1em; border: 1px solid rgba(255,255,255,.2); }
.hero h1 { font-family: 'Poppins', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; color: white; line-height: 1.15; max-width: 780px; }
.hero-sub { color: rgba(255,255,255,.75); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; }

/* Search widget */
.search-widget {
    background: white; border-radius: var(--r); padding: 1rem 1.25rem;
    display: flex; gap: .75rem; align-items: center; width: 100%; max-width: 680px;
    box-shadow: var(--shadow-lg);
}
.search-widget select { border: 1.5px solid var(--bdr); border-radius: 8px; padding: .6rem .9rem; color: var(--txt); background: var(--bg); min-width: 130px; cursor: pointer; font-size: .88rem; }
.search-widget select:focus { outline: none; border-color: var(--p); }
.search-widget input { flex: 1; border: 1.5px solid var(--bdr); border-radius: 8px; padding: .6rem 1rem; font-size: .95rem; color: var(--txt); }
.search-widget input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(30,58,138,.08); }
.search-widget button { background: var(--red); color: white; border: none; border-radius: 8px; padding: .65rem 1.5rem; font-weight: 700; font-size: .9rem; cursor: pointer; transition: var(--tran); white-space: nowrap; }
.search-widget button:hover { background: #b91c1c; }

/* Hero stats */
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 800; color: white; }
.hero-stat .lbl { font-size: .72rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }

/* ── QUICK ACCESS ── */
.quick-access { background: white; padding: 2.5rem 0; border-bottom: 1px solid var(--bdr); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quick-card {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: 1.75rem 1.25rem; border: 1.5px solid var(--bdr); border-radius: var(--r);
    text-align: center; transition: var(--tran); cursor: pointer;
}
.quick-card:hover { border-color: var(--p); box-shadow: var(--shadow); transform: translateY(-3px); }
.quick-icon { width: 56px; height: 56px; background: rgba(30,58,138,.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 1.4rem; transition: var(--tran); }
.quick-card:hover .quick-icon { background: var(--p); color: white; }
.quick-card span { font-size: .78rem; font-weight: 700; color: var(--txt); text-transform: uppercase; letter-spacing: .08em; }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--p); color: white; font-size: .72rem; font-weight: 700; padding: .3rem .9rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.section-title { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--txt); margin-bottom: .75rem; }
.section-sub { color: var(--mut); font-size: .95rem; max-width: 560px; margin: 0 auto; }

/* ── NEWS ── */
.news-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.news-featured { background: var(--bg); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.news-featured-img { height: 200px; background: linear-gradient(135deg, var(--p), var(--pd)); display: flex; align-items: center; justify-content: center; }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.news-featured-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.news-cards { display: flex; flex-direction: column; gap: 1rem; }
.news-card { background: var(--card); border: 1.5px solid var(--bdr); border-radius: var(--r); padding: 1.25rem; transition: var(--tran); }
.news-card:hover { border-color: var(--p); box-shadow: var(--shadow); }
.news-meta { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: var(--mut); margin-bottom: .5rem; }
.news-type { font-weight: 700; color: var(--p); }
.news-card h3 { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; color: var(--txt); margin-bottom: .35rem; }
.news-card p { font-size: .83rem; color: var(--mut); line-height: 1.5; }
.news-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--p); font-size: .82rem; font-weight: 700; margin-top: .5rem; transition: var(--tran); }
.news-link:hover { color: var(--red); gap: .5rem; }

/* ── CONTACT STRIP ── */
.contact-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.contact-photo { border-radius: var(--r); overflow: hidden; height: 380px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info h2 { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 800; }
.contact-detail { display: flex; flex-direction: column; gap: .5rem; }
.contact-detail h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; }
.contact-row { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: var(--mut); }
.contact-row i { color: var(--p); margin-top: .1rem; width: 16px; }
.contact-row a { color: var(--p); }
.horario-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.horario-list li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--mut); }
.horario-list i { color: var(--p); width: 16px; }
.services-list { display: flex; flex-direction: column; gap: .35rem; }
.services-list li { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--mut); }
.services-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--p); flex-shrink: 0; }

/* ── CARDS GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--card); border: 1.5px solid var(--bdr); border-radius: var(--r);
    padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem;
    transition: var(--tran);
}
.card:hover { border-color: var(--p); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; background: rgba(30,58,138,.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--p); font-size: 1.2rem; transition: var(--tran); }
.card:hover .card-icon { background: var(--p); color: white; }
.card h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; color: var(--txt); }
.card p { font-size: .85rem; color: var(--mut); line-height: 1.6; flex: 1; }
.card .btn { margin-top: .5rem; align-self: flex-start; }

/* ── RESOURCE CARDS (bases de datos) ── */
.resource-card { background: var(--card); border: 1.5px solid var(--bdr); border-radius: var(--r); overflow: hidden; transition: var(--tran); display: flex; flex-direction: column; }
.resource-card:hover { border-color: var(--p); box-shadow: var(--shadow); transform: translateY(-3px); }
.resource-logo { height: 120px; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.resource-logo img { max-height: 70px; object-fit: contain; }
.resource-logo .icon-placeholder { font-size: 2.5rem; color: var(--p); }
.resource-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.resource-body h3 { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; color: var(--txt); }
.resource-body p { font-size: .83rem; color: var(--mut); line-height: 1.5; flex: 1; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: linear-gradient(135deg, var(--p) 0%, var(--pd) 100%); padding: 3rem 0; color: white; }
.page-hero-inner { display: flex; flex-direction: column; gap: .5rem; }
.page-hero-eyebrow { display: flex; align-items: center; gap: .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); margin-bottom: .25rem; }
.page-hero h1 { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 560px; font-size: .95rem; }

/* ── SOBRE (tabs sidebar) ── */
.sobre-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.sobre-sidebar { background: var(--card); border: 1.5px solid var(--bdr); border-radius: var(--r); overflow: hidden; position: sticky; top: calc(var(--nav-h) + 1rem); }
.sobre-sidebar-title { background: var(--p); color: white; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .75rem 1.25rem; }
.sobre-nav a { display: flex; align-items: center; gap: .75rem; padding: .8rem 1.25rem; font-size: .85rem; color: var(--mut); border-left: 3px solid transparent; transition: var(--tran); }
.sobre-nav a:hover, .sobre-nav a.active { color: var(--p); background: rgba(30,58,138,.05); border-left-color: var(--p); font-weight: 600; }
.sobre-nav a i { width: 18px; text-align: center; }
.sobre-content { background: var(--card); border: 1.5px solid var(--bdr); border-radius: var(--r); padding: 2rem; }
.sobre-panel { display: none; }
.sobre-panel.active { display: block; }
.sobre-panel-title { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--txt); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.sobre-panel-title i { color: var(--p); }
.sobre-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.sobre-stat { background: var(--bg); border-radius: var(--r); padding: 1.25rem; text-align: center; border: 1.5px solid var(--bdr); }
.sobre-stat .num { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--p); }
.sobre-stat .lbl { font-size: .72rem; color: var(--mut); }
.sobre-commitment { background: var(--p); color: white; border-radius: var(--r); padding: 1.5rem; margin-top: 1.5rem; }
.sobre-commitment h3 { font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: .5rem; }
.sobre-commitment p { font-size: .88rem; color: rgba(255,255,255,.85); font-style: italic; line-height: 1.7; }
.valores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.valor-item { background: var(--bg); border-radius: 8px; padding: .75rem 1rem; display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--txt); }
.valor-item i { color: var(--p); }
.org-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.org-area { background: var(--bg); border-radius: var(--r); padding: 1.25rem; border: 1.5px solid var(--bdr); }
.org-area h4 { font-family: 'Poppins', sans-serif; font-size: .85rem; font-weight: 700; color: var(--p); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.org-area ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.org-area ul li { font-size: .8rem; color: var(--mut); display: flex; align-items: center; gap: .5rem; }
.org-area ul li i { color: var(--p); font-size: .72rem; }

/* ── CATÁLOGO / SEARCH ── */
.search-page-widget { background: var(--p); border-radius: var(--r); padding: 2rem; margin-bottom: 2.5rem; }
.search-page-widget h2 { font-family: 'Poppins', sans-serif; color: white; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.search-page-form { display: flex; gap: .75rem; }
.search-page-form select { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: .65rem .9rem; min-width: 140px; cursor: pointer; }
.search-page-form select option { color: var(--txt); background: white; }
.search-page-form input { flex: 1; border-radius: 8px; border: none; padding: .65rem 1rem; font-size: .95rem; }
.search-page-form input:focus { outline: none; }
.search-page-form button { background: var(--red); color: white; border: none; border-radius: 8px; padding: .65rem 1.5rem; font-weight: 700; cursor: pointer; transition: var(--tran); }
.search-page-form button:hover { background: #b91c1c; }
.koha-info { background: var(--bg); border: 1.5px solid var(--bdr); border-radius: var(--r); padding: 2rem; text-align: center; }
.koha-info i { font-size: 3rem; color: var(--p); margin-bottom: 1rem; display: block; }
.koha-info h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.koha-info p { color: var(--mut); font-size: .9rem; max-width: 460px; margin: 0 auto .75rem; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; border-radius: 8px; font-weight: 700; font-size: .85rem; border: 2px solid transparent; cursor: pointer; transition: var(--tran); white-space: nowrap; }
.btn-primary { background: var(--p); color: white; border-color: var(--p); }
.btn-primary:hover { background: var(--pd); }
.btn-red { background: var(--red); color: white; border-color: var(--red); }
.btn-red:hover { background: #b91c1c; }
.btn-outline { background: transparent; color: var(--p); border-color: var(--p); }
.btn-outline:hover { background: var(--p); color: white; }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: white; color: var(--p); }
.btn-lg { padding: .8rem 2rem; font-size: .95rem; }
.btn-sm { padding: .35rem .75rem; font-size: .78rem; }

/* ── CTA SECTION ── */
.cta-section { background: linear-gradient(135deg, var(--p), var(--pd)); padding: 4rem 0; text-align: center; }
.cta-section h2 { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer-newsletter { background: var(--p); padding: 2rem 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.newsletter-text { color: white; display: flex; flex-direction: column; gap: .25rem; }
.newsletter-text strong { font-size: 1rem; display: flex; align-items: center; gap: .4rem; }
.newsletter-text span { font-size: .85rem; color: rgba(255,255,255,.75); }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input { border: none; border-radius: 8px; padding: .6rem 1rem; font-size: .9rem; min-width: 260px; }
.newsletter-form input:focus { outline: none; }
.newsletter-form button { background: white; color: var(--p); border: none; border-radius: 8px; padding: .6rem 1.25rem; font-weight: 700; cursor: pointer; transition: var(--tran); }
.newsletter-form button:hover { background: var(--bg); }
.footer { background: #0f1f5c; color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand { display: flex; align-items: flex-start; gap: .75rem; }
.footer-brand-text { display: flex; flex-direction: column; gap: .15rem; }
.footer-brand-text strong { color: white; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 800; }
.footer-brand-text span { font-size: .78rem; color: rgba(255,255,255,.6); }
.footer h4 { color: white; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer ul li a { font-size: .85rem; color: rgba(255,255,255,.65); transition: var(--tran); }
.footer ul li a:hover { color: white; }
.footer-contact li { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; }
.footer-contact li i { color: rgba(255,255,255,.5); margin-top: .1rem; width: 14px; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { width: 32px; height: 32px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: var(--tran); font-size: .82rem; }
.footer-social a:hover { background: var(--red); color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,.4); }

/* ── BADGES / MISC ── */
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.tag-actualizacion { background: #dbeafe; color: #1e40af; }
.tag-evento       { background: #d1fae5; color: #065f46; }
.tag-recursos     { background: #ede9fe; color: #6d28d9; }
.tag-novedades    { background: #fef3c7; color: #92400e; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .nav-links a { padding: .4rem .55rem; font-size: .78rem; }
    .nav-social { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-layout, .contact-strip { grid-template-columns: 1fr; }
    .sobre-layout { grid-template-columns: 1fr; }
    .sobre-sidebar { position: static; }
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--pd); padding: 1rem 0; box-shadow: 0 8px 20px rgba(0,0,0,.3); z-index: 999; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .75rem 1.5rem; border-radius: 0; font-size: .9rem; }
    .hamburger { display: block; }
    .quick-grid { grid-template-columns: 1fr; }
    .search-widget { flex-direction: column; }
    .search-widget select, .search-widget button { width: 100%; }
    .hero-stats { gap: 1.25rem; }
    .sobre-stats, .valores-grid, .org-areas { grid-template-columns: 1fr 1fr; }
    .search-page-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-inner { flex-direction: column; align-items: stretch; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { min-width: auto; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .sobre-stats, .org-areas { grid-template-columns: 1fr; }
}

/* Hover lift */
.hover-lift { transition: var(--tran); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Prose text */
.prose { font-size: .9rem; color: var(--mut); line-height: 1.8; }
.prose p { margin-bottom: 1rem; }
.prose h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; color: var(--txt); margin: 1.5rem 0 .5rem; }

/* Alert */
.alert { padding: .85rem 1.1rem; border-radius: 8px; font-size: .88rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.alert-info    { background: #eff6ff; color: var(--p); border: 1px solid #bfdbfe; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
