:root {
    --navy: #1a3a5c;
    --navy-dark: #0f2540;
    --green: #3a8c3f;
    --green-light: #5ab35f;
    --green-pale: #e8f5e9;
    --white: #ffffff;
    --off-white: #f7faf7;
    --gray-light: #f0f4f0;
    --gray-text: #5a6a5a;
    --text-dark: #1a2a1a;
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  
  body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
  }
  
  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(58,140,63,0.1);
    padding: 0 48px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-logo { display: flex; align-items: center; text-decoration: none; }
  .nav-logo-text { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: -0.3px; }
  .nav-logo-text span { color: var(--green); }
  .nav-links { display: flex; gap: 32px; list-style: none; }
  .nav-links a { font-size: 13px; font-weight: 500; color: var(--gray-text); text-decoration: none; letter-spacing: 0.2px; transition: color .2s; }
  .nav-links a:hover { color: var(--green); }
  
  /* ── HERO ── */
  .hero {
    margin-top: 64px; position: relative;
    height: 88vh; min-height: 560px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      linear-gradient(160deg, rgba(15,37,64,0.78) 0%, rgba(26,74,42,0.65) 100%),
      url('../img/comunidade.jpg') center/cover no-repeat;
  }
  .hero-content {
    position: relative; z-index: 2; text-align: center; color: white;
    max-width: 760px; padding: 0 32px;
    animation: heroIn .9s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes heroIn { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:translateY(0); } }
  .hero-tag {
    display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px; padding: 6px 18px; font-size: 11px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px;
  }
  .hero h1 { font-size: clamp(42px,7vw,82px); font-weight: 900; line-height: 1.0; letter-spacing: -2px; margin-bottom: 8px; }
  .hero h1 span { color: #8ee89a; }
  .hero-sub { font-size: clamp(13px,2vw,16px); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
  .hero-desc { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.7; max-width: 520px; margin: 0 auto 36px; }
  .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .btn-primary {
    background: var(--green); color: white; border: none; padding: 13px 30px; border-radius: 100px;
    font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
    display: inline-block; transition: background .2s, transform .15s;
  }
  .btn-primary:hover { background: var(--green-light); transform: translateY(-2px); }
  .btn-ghost {
    background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.45);
    padding: 13px 30px; border-radius: 100px; font-family: 'Poppins', sans-serif;
    font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
    display: inline-block; transition: background .2s, transform .15s;
  }
  .btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
  .hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.45); font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
    z-index: 2; animation: bounce 2.4s infinite;
  }
  @keyframes bounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(7px); } }
  .scroll-line { width: 1px; height: 32px; background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent); }
  
  /* ── STATS ── */
  .stats { background: var(--navy); padding: 40px 48px; display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; }
  .stat-item { text-align: center; color: white; }
  .stat-num { font-size: 38px; font-weight: 900; color: #8ee89a; line-height: 1; letter-spacing: -1px; }
  .stat-label { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.55); letter-spacing: 0.4px; margin-top: 6px; }
  
  /* ── SHARED ── */
  .section-wrap { padding: 96px 48px; }
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-label { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
  .section-title { font-size: clamp(26px,3.5vw,42px); font-weight: 800; color: var(--navy); letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
  .section-title span { color: var(--green); }
  .section-desc { font-size: 15px; color: var(--gray-text); line-height: 1.75; max-width: 580px; }
  .divider { width: 40px; height: 3px; background: var(--green); border-radius: 2px; margin: 16px 0 28px; }
  .divider.center { margin: 16px auto 28px; }
  .bg-dot { background-color: var(--off-white); }
  
  /* ── INTRO ── */
  .intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .intro-visual { border-radius: 20px; overflow: hidden; height: 420px; }
  .intro-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .intro-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .pill { background: var(--green-pale); color: var(--green); border: 1px solid rgba(58,140,63,0.2); border-radius: 100px; padding: 6px 16px; font-size: 13px; font-weight: 600; }
  
  /* ── RESÍDUOS ── */
  .residuos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
  .residuo-card { background: white; border-radius: 18px; padding: 28px 22px; text-align: center; border: 1.5px solid transparent; transition: border-color .25s, transform .25s, box-shadow .25s; }
  .residuo-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
  .residuo-card:hover.c-papel { border-color: #a5d6a7; }
  .residuo-card:hover.c-plast { border-color: #ef9a9a; }
  .residuo-card:hover.c-vidro { border-color: #90caf9; }
  .residuo-card:hover.c-metal { border-color: #ffe082; }
  .residuo-card:hover.c-org   { border-color: #a5d6a7; }
  .residuo-card:hover.c-elet  { border-color: #b39ddb; }
  .residuo-card:hover.c-quim  { border-color: #80cbc4; }
  .residuo-card:hover.c-med   { border-color: #f48fb1; }
  .residuo-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; }
  .c-papel .residuo-icon { background: #e8f5e9; } .c-plast .residuo-icon { background: #ffebee; }
  .c-vidro .residuo-icon { background: #e3f2fd; } .c-metal .residuo-icon { background: #fffde7; }
  .c-org   .residuo-icon { background: #f1f8e9; } .c-elet  .residuo-icon { background: #ede7f6; }
  .c-quim  .residuo-icon { background: #e0f2f1; } .c-med   .residuo-icon { background: #fce4ec; }
  .residuo-name { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
  .residuo-desc { font-size: 12px; color: var(--gray-text); line-height: 1.6; }
  .residuo-tag { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; }
  .c-papel .residuo-tag { background: #e8f5e9; color: #2e7d32; } .c-plast .residuo-tag { background: #ffebee; color: #c62828; }
  .c-vidro .residuo-tag { background: #e3f2fd; color: #1565c0; } .c-metal .residuo-tag { background: #fffde7; color: #f57f17; }
  .c-org   .residuo-tag { background: #f1f8e9; color: #558b2f; } .c-elet  .residuo-tag { background: #ede7f6; color: #4527a0; }
  .c-quim  .residuo-tag { background: #e0f2f1; color: #00695c; } .c-med   .residuo-tag { background: #fce4ec; color: #880e4f; }
  
  /* ── COMO DESCARTAR ── */
  .descartar-bg { background: var(--navy-dark); }
  .descartar-bg .section-label { color: #8ee89a; }
  .descartar-bg .section-title { color: white; }
  .descartar-bg .section-title span { color: #8ee89a; }
  .descartar-bg .section-desc { color: rgba(255,255,255,0.6); }
  .descartar-header { text-align: center; margin-bottom: 64px; }
  .descartar-header .divider { background: #8ee89a; margin: 16px auto 28px; }
  
  .descartar-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 52px; }
  .ds-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 32px 26px; position: relative; overflow: hidden;
    transition: background .25s, transform .25s;
  }
  .ds-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
  .ds-card::before { content:''; position: absolute; top:0; left:0; right:0; height: 2px; background: var(--green); }
  .ds-step-num { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8ee89a; margin-bottom: 16px; }
  .ds-icon { font-size: 36px; margin-bottom: 18px; display: block; }
  .ds-card h3 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 10px; }
  .ds-card p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; }
  
  .descartar-alerts { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
  .alert-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 20px 14px; text-align: center; transition: background .2s; }
  .alert-item:hover { background: rgba(255,255,255,0.08); }
  .alert-item .a-icon { font-size: 24px; margin-bottom: 10px; display: block; }
  .alert-item strong { display: block; font-size: 12px; font-weight: 700; color: white; margin-bottom: 4px; }
  .alert-item small { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.5; }
  .alerts-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
  
  /* ── MAPA CRÍTICO ── */
  .mapa-img-wrap {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  }
  .mapa-img-wrap img {
    width: 100%; display: block;
    object-fit: cover;
  }
  
  /* ── GALERIA ── */
  .gallery-header { text-align: center; margin-bottom: 56px; }
  .gallery-header .section-desc { margin: 0 auto; }
  .gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
  .gallery-item { border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 3/4; }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.22,1,.36,1); }
  .gallery-item:hover img { transform: scale(1.04); }
  .gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,37,64,0.75) 0%, transparent 55%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
    opacity: 0; transition: opacity .3s;
  }
  .gallery-item:hover .gallery-overlay { opacity: 1; }
  .gallery-caption { color: white; font-size: 13px; font-weight: 600; line-height: 1.45; }
  .gallery-tag { display: inline-block; margin-top: 8px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25); color: white; border-radius: 100px; padding: 3px 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.5px; }
  
  /* ── FOOTER ── */
  footer { background: var(--navy-dark); padding: 48px 48px 32px; }
  .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
  .footer-brand p { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 6px; }
  .footer-logo { font-size: 15px; font-weight: 700; color: white; }
  .footer-logo span { color: #8ee89a; }
  .footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
  .footer-nav a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color .2s; }
  .footer-nav a:hover { color: #8ee89a; }
  .footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 12px; color: rgba(255,255,255,0.3); }
  
  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .section-wrap { padding: 64px 20px; }
    .stats { gap: 40px; padding: 32px 20px; }
    .intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .intro-visual { height: 300px; }
    .descartar-steps { grid-template-columns: 1fr 1fr; }
    .descartar-alerts { grid-template-columns: repeat(3,1fr); }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  }
  @media (max-width: 600px) {
    .hero h1 { letter-spacing: -1px; }
    .descartar-steps { grid-template-columns: 1fr; }
    .descartar-alerts { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-nav { gap: 16px; }
  }