/* ===== MAVF Corporation — Noticias y Recursos ===== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #FBFBFA;
  font-family: 'Public Sans', sans-serif;
  color: #1D2126;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.mavf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 231, 225, 0.8);
  font-family: 'Public Sans', sans-serif;
}
.mavf-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mavf-logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mavf-logo-badge {
  padding: 8px 16px;
  min-width: 64px;
  border-radius: 14px;
  background: #EEF4E6;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.mavf-wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.01em;
  color: #1D2126;
}
.mavf-wordmark.on-dark { color: #FFFFFF; }
.mavf-unit-mark {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 21px; color: #FFFFFF;
  margin-bottom: 18px; flex-shrink: 0; position: relative; overflow: hidden;
}

.mavf-desktop-nav { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.mavf-nav-link { font-size: 14.5px; color: #6B747C; font-weight: 500; padding: 10px 14px; border-radius: 8px; }
.mavf-nav-link.active { color: #1D2126; font-weight: 700; }

.mavf-units-wrap { position: relative; }
.mavf-units-btn {
  font-size: 14.5px; color: #6B747C; font-weight: 500;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-family: 'Public Sans', sans-serif;
}
.mavf-units-btn.active { color: #1D2126; font-weight: 700; }
.mavf-chevron {
  width: 7px; height: 7px;
  border-right: 1.5px solid #6B747C; border-bottom: 1.5px solid #6B747C;
  transform: rotate(45deg); margin-top: -2px;
}
.mavf-units-btn.active .mavf-chevron { border-color: #1D2126; }

.mavf-units-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #FFFFFF; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(29, 33, 38, 0.3);
  padding: 10px; min-width: 260px; display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.mavf-units-menu.open { display: flex; }
.mavf-units-menu a {
  padding: 12px 14px; border-radius: 10px; display: flex; flex-direction: column; gap: 2px;
}
.mavf-units-menu a:hover { background: #F5F6F3; }
.mavf-units-menu-all {
  border-bottom: 1px solid #EDEEE9; margin-bottom: 4px;
}
.mavf-units-menu-all span {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 14.5px; color: #76AB40;
}
.mavf-unit-label { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 14.5px; color: #1D2126; }
.mavf-unit-desc { font-size: 12.5px; color: #8A9088; }

.mavf-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mavf-lang-btn {
  background: #FFFFFF; color: #1D2126; font-weight: 700; font-size: 13px;
  padding: 9px 14px; border-radius: 100px; border: 1.5px solid #E4E7E1; cursor: pointer;
}
.mavf-lang-btn:hover { border-color: #76AB40; color: #5F8F34; }
.mavf-cta-btn {
  background: #76AB40; color: #FFFFFF; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 100px; white-space: nowrap;
}
.mavf-cta-btn:hover { background: #5F8F34; }

.mavf-mobile-toggle {
  display: none; width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid #E4E7E1; background: #FFFFFF;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer;
}
.mavf-mobile-toggle span { width: 20px; height: 2px; background: #1D2126; display: block; }

.mavf-mobile-panel {
  border-top: 1px solid #E4E7E1; padding: 20px 32px 28px;
  display: none; flex-direction: column; gap: 6px; background: #FFFFFF;
}
.mavf-mobile-panel.open { display: flex; }
.mavf-mobile-panel a, .mavf-mobile-panel button.mavf-lang-mobile {
  font-size: 16px; color: #6B747C; font-weight: 500; display: block; padding: 12px 2px;
}
.mavf-mobile-panel a.active { color: #1D2126; font-weight: 700; }
.mavf-mobile-units-label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: #8A9088; margin: 14px 2px 4px; }
.mavf-mobile-panel a.mavf-unit-mobile { padding: 10px 2px 10px 14px; font-size: 16px; color: #6B747C; font-weight: 500; }
.mavf-lang-mobile {
  text-align: left; background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #5F8F34; padding: 12px 2px;
}
.mavf-mobile-cta {
  background: #1D2126; color: #FFFFFF; font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 100px; text-align: center; margin-top: 10px;
}

@media (max-width: 880px) {
  .mavf-desktop-nav { display: none !important; }
  .mavf-mobile-toggle { display: flex !important; }
}

/* ---------- Hero ---------- */
.mavf-hero {
  padding: clamp(64px, 9vw, 100px) 32px clamp(40px, 5vw, 56px);
  text-align: center;
}
.mavf-kicker { color: #8A9088; font-weight: 600; font-size: 13px; letter-spacing: .12em; }
.mavf-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px); color: #1D2126; letter-spacing: -.01em;
  margin-top: 14px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.mavf-hero p {
  font-size: 16.5px; line-height: 1.6; color: #6B747C; margin: 18px auto 0; max-width: 600px;
}

/* ---------- Filters + grid ---------- */
.mavf-news-section { padding: 0 32px clamp(64px, 8vw, 100px); }
.mavf-news-wrap { max-width: 1240px; margin: 0 auto; }

.mavf-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.mavf-filter-btn {
  border: 1.5px solid #E4E7E1; background: #FFFFFF; color: #3C4750;
  font-weight: 600; font-size: 13.5px; padding: 9px 18px; border-radius: 100px; cursor: pointer;
}
.mavf-filter-btn.active { border-color: #1D2126; background: #1D2126; color: #FFFFFF; }

.mavf-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .mavf-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mavf-news-grid { grid-template-columns: 1fr; } }

.mavf-card {
  background: #FFFFFF; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(29, 33, 38, 0.2);
  display: flex; flex-direction: column;
}
.mavf-card-media {
  width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; text-align: center; padding: 16px; position: relative; overflow: hidden;
}
.mavf-card-media svg { opacity: .5; }
.mavf-card-media span {
  font-size: 11.5px; line-height: 1.4; color: rgba(29, 33, 38, 0.45); max-width: 85%;
}
.mavf-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mavf-card-tag {
  display: inline-block; font-weight: 600; font-size: 12px; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 100px; width: fit-content;
}
.mavf-card-body h3 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px;
  color: #1D2126; line-height: 1.3;
}
.mavf-card-body p { font-size: 14px; line-height: 1.6; color: #6B747C; flex: 1; }
.mavf-card-date { font-size: 12.5px; color: #8A9088; margin-top: 6px; }

/* ---------- Footer ---------- */
.mavf-footer { background: #3C4750; color: #D8DCD6; font-family: 'Public Sans', sans-serif; }
.mavf-footer-grid {
  max-width: 1240px; margin: 0 auto; padding: 64px 32px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
}
@media (max-width: 880px) { .mavf-footer-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px) { .mavf-footer-grid { grid-template-columns: 1fr !important; } }

.mavf-footer-logo { display: block; margin-bottom: 14px; position: relative; overflow: hidden; }
.mavf-footer-slogan { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: #9FD971; margin: 0 0 14px; font-style: italic; }
.mavf-footer-blurb { font-size: 14px; line-height: 1.7; color: #B7BFB4; max-width: 280px; margin: 0; }
.mavf-footer-heading {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 14px;
  color: #FFFFFF; margin-bottom: 16px; letter-spacing: .02em;
}
.mavf-footer-links { display: flex; flex-direction: column; gap: 12px; }
.mavf-footer-links a { color: #B7BFB4; font-size: 14px; }
.mavf-footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #B7BFB4; }
.mavf-footer-contact a { color: #9FD971; font-weight: 600; }

.mavf-footer-bottom {
  border-top: 1px solid #4C5860; padding: 22px 32px; display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: 1240px; margin: 0 auto;
}
.mavf-footer-bottom span { font-size: 13px; color: #8D968D; }

.mavf-wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%;
  background: #76AB40; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(60, 71, 80, 0.28); z-index: 60;
}
.mavf-wa-float:hover { background: #5F8F34; }
