body{
  font-family:Arial, Helvetica, sans-serif;
  margin:0;
  background:#f5f5f5;
  color:#333;
}

.container{
  width:95%;
  max-width:1200px;
  margin:auto;
}

/* =========================
   BARRA INSTITUCIONAL
========================= */

.top-info-bar{
  position:sticky;
  top:0;
  left:0;
  width:100%;
  z-index:3000;
  background:#0c3b5a;
  color:#fff;
  font-size:13px;
  box-shadow:0 1px 4px rgba(0,0,0,0.08);
}

.top-info-inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:6px 18px;
}

/* =========================
   HEADER / TOPBAR
========================= */

.topbar{
  background:#0c3b5a;
  color:white;
  padding:14px 0;
  position:sticky;
  top:26px; /* altura de la barra institucional */
  z-index:2500;
  box-shadow:0 2px 8px rgba(0,0,0,0.10);
}

.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.brand-block{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.logo{
  font-weight:700;
  font-size:20px;
  color:white;
  text-decoration:none;
}

.topnav{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
}

.topnav a{
  color:white;
  text-decoration:none;
  font-size:14px;
  padding:6px 0;
  border-bottom:2px solid transparent;
  transition:border-color 0.2s ease, opacity 0.2s ease;
}

.topnav a:hover{
  text-decoration:none;
  opacity:0.9;
  border-bottom-color:rgba(255,255,255,0.5);
}

.topnav a.active{
  font-weight:700;
  border-bottom-color:white;
}

/* =========================
   ENCABEZADO DE PÁGINA
========================= */

.page-header{
  padding:24px 0 6px 0;
}

.page-header h1{
  margin:0 0 8px 0;
  font-size:32px;
  color:#0c3b5a;
}

.page-header p{
  margin:0;
  font-size:15px;
  color:#5a6773;
}

.page-help{
  margin:8px 0 0 0;
  font-size:14px;
  color:#5a6773;
}

/* =========================
   ACCESO A MAPA
========================= */

.map-access{
  margin:10px 0 16px 0;
}

.map-btn{
  display:inline-block;
  padding:10px 16px;
  background:#0c3b5a;
  color:white;
  text-decoration:none;
  border-radius:6px;
  font-size:14px;
  font-weight:600;
  transition:background .2s ease;
}

.map-btn:hover{
  background:#1f5fa3;
  text-decoration:none;
}

/* =========================
   FILTROS
========================= */

.filters{
  position:sticky;
  justify-content:flex-start;
  top:95px; /* barra institucional + topbar */
  z-index:1200;
  background:#ffffff;
  padding:12px 10px;
  margin:20px 0 12px 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  border:1px solid #d8e0e7;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
}

.filters input[type="text"],
.filters select,
.filters button{
  padding:8px;
  font-size:14px;
  border:1px solid #ccc;
  border-radius:4px;
}

.filters input[type="text"]{
  min-width:260px;
  flex:1 1 260px;
}

.filters button{
  background:#f0f0f0;
  cursor:pointer;
  min-width:140px;
}

.filters button:hover{
  background:#e4e4e4;
}

.results-count{
  margin:10px 0 18px 0;
  font-size:14px;
  color:#444;
  font-weight:600;
}

/* =========================
   LISTADO DE GRUPOS
========================= */

.groups{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:18px;
}

.group-card{
  background:white;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  padding:16px;
  border:1px solid #e5e5e5;
  transition:transform .15s ease, box-shadow .15s ease;
}

.group-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
}

.group-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}

.group-title{
  font-size:20px;
  margin:0 0 4px 0;
  line-height:1.2;
  color:#1f2f3d;
}

.group-barrio{
  font-size:15px;
  font-weight:700;
  color:#0c3b5a;
}

.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  white-space:nowrap;
}

.badge.presencial{
  background:#e8f4ff;
  color:#0c3b5a;
  border:1px solid #b8d6f3;
}

.badge.virtual{
  background:#e9f7ef;
  color:#1b6e3b;
  border:1px solid #bfe3cc;
}

.meta{
  font-size:14px;
  margin:8px 0;
  color:#333;
}

.meta-main{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:8px 0 2px 0;
}

.meta-address{
  color:#555;
}

.meta-map-ref{
  color:#5c6a77;
  font-size:13px;
  margin-top:4px;
}

.group-actions{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.link-btn{
  display:inline-block;
  padding:8px 12px;
  background:#e5e5e5;
  border-radius:6px;
  text-decoration:none;
  color:#333;
  font-size:14px;
  transition:background 0.2s ease;
}

.link-btn:hover{
  background:#dcdcdc;
  text-decoration:none;
}

.link-btn.primary{
  background:#0c3b5a;
  color:white;
}

.link-btn.primary:hover{
  background:#1f5fa3;
}

mark{
  background:#fff2a8;
  color:inherit;
  padding:0 2px;
  border-radius:3px;
}

/* =========================
   VER MÁS / VER TODOS
========================= */

.ver-mas-container{
  text-align:center;
  margin:22px 0 10px 0;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

.ver-mas-btn,
.ver-todos-btn{
  padding:10px 18px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
}

.ver-mas-btn{
  background:#0c3b5a;
  color:#fff;
}

.ver-mas-btn:hover{
  background:#1f5fa3;
}

.ver-todos-btn{
  background:#e8edf2;
  color:#23313f;
  border:1px solid #cfd8e2;
}

.ver-todos-btn:hover{
  background:#dde6ee;
}

/* =========================
   SIN RESULTADOS
========================= */

.no-results{
  padding:20px;
  background:white;
  border-radius:8px;
  border:1px solid #ddd;
  text-align:center;
  font-size:15px;
  color:#555;
}

/* =========================
   FOOTER
========================= */

.site-footer{
  display:block !important;
  width:100%;
  margin-top:50px;
  padding:32px 20px;
  background:#ffffff;
  border-top:1px solid #d8e0e7;
  box-sizing:border-box;
}

.footer-inner{
  max-width:1100px;
  margin:auto;
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  justify-content:space-between;
}

.footer-col{
  flex:1 1 220px;
  min-width:220px;
}

.footer-col h4{
  font-size:15px;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin:0 0 12px 0;
  color:#0c3b5a;
}

.footer-col p{
  margin:0;
  font-size:14px;
  color:#555;
  line-height:1.6;
}

.footer-col a{
  color:#1f5fa3;
  font-weight:500;
}

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

.footer-bottom{
  margin-top:25px;
  padding-top:15px;
  border-top:1px solid #e2e6ea;
  text-align:center;
  font-size:13px;
  color:#6a737d;
}

/* =========================
   WHATSAPP FLOTANTE
========================= */

.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:54px;
  height:54px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.2);
  z-index:9999;
}

.whatsapp-float img{
  width:26px;
  height:26px;
}

.whatsapp-float:hover{
  transform:translateY(-1px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:700px){
  .top-info-inner{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:4px;
    padding:6px 12px;
  }

  .topbar{
    top:68px; /* barra institucional más alta en móvil */
  }

  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .topnav{
    gap:14px;
  }

  .filters{
    top:140px; /* barra institucional + topbar en móvil */
  }

  .footer-inner{
    flex-direction:column;
    gap:20px;
  }

  .footer-col{
    min-width:100%;
  }
}

.proxima-reunion{
  background:#eef6ff;
  border:1px solid #cfe1ff;
  padding:16px;
  border-radius:10px;
  margin:20px 0;
  font-size:16px;
  text-align:left;
}

.proxima-reunion strong{
  color:#0c3b5a;
  font-size:18px;
}

.proxima-reunion ul{
  margin:10px 0 0 18px;
  padding:0;
}

.proxima-reunion li{
  margin:6px 0;
  color:#23313f;
}