/* ====== Reset básico ====== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f5f9f6;
  color: #243024;
}

/* ====== Layout ====== */
.site-header {
  background: #2e7d32;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 48px; height: 48px; border-radius: 8px; }
.slogan { margin: 0; opacity: .9; font-size: .9rem; }
.nav a {
  color: #fff; text-decoration: none; margin: 0 8px; font-weight: 600;
  padding: 6px 8px; border-radius: 6px;
}
.nav a.active, .nav a:hover { background: rgba(255,255,255,.15); }

.container { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }

.site-footer {
  background: #1b5e20; color: #e6f2e7; text-align: center; padding: 14px;
}

/* ====== UI ====== */
.btn { display: inline-block; background: #2e7d32; color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; }
.btn.primary { background: #1565c0; }
.btn.danger { background: #c62828; }

/* ====== Cards ====== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid #e1eee3; border-radius: 12px; padding: 16px; }
.card .link { color: #2e7d32; font-weight: 700; }

/* ====== Guía ====== */
.grid-7 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.bin { background: #fff; border: 1px solid #e1eee3; border-radius: 12px; padding: 12px; }
.bin-green { border-left: 6px solid #2e7d32; }
.bin-black { border-left: 6px solid #333; }
.bin-blue { border-left: 6px solid #1565c0; }
.bin-sky { border-left: 6px solid #69bff8; }
.bin-yellow { border-left: 6px solid #f9c934; }
.bin-gray { border-left: 6px solid #9e9e9e; }
.bin-orange { border-left: 6px solid #f57c00; }

.tip { margin-top: 12px; }
.tip summary { cursor: pointer; }

/* ====== Noticias ====== */
.news { background: #fff; border: 1px solid #e1eee3; border-radius: 12px; padding: 12px; margin: 12px 0; }
.meta { color: #5c6b5d; font-size: .9rem; }
.news a.link { display: inline-block; margin-top: 6px; color: #2e7d32; font-weight: 700; text-decoration: none; }
.news a.link:hover { text-decoration: underline; }

/* ====== Tienda ====== */
.productos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.producto { background: #fff; border: 1px solid #e1eee3; border-radius: 12px; padding: 12px; text-align: center; }
.producto img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid #eaeaea; }
.producto .precio { font-weight: 800; color: #1b5e20; }
.producto button { margin-top: 8px; }

/* ====== Carrito (tabla) ====== */
#tabla-carrito { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e1eee3; border-radius: 12px; overflow: hidden; }
#tabla-carrito th, #tabla-carrito td { border-bottom: 1px solid #e8f1ea; padding: 10px; text-align: center; }
#tabla-carrito thead { background: #e9f5eb; }
.carrito-acciones { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; }

/* ====== Calendario ====== */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.dot { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: #fff; border: 1px solid #e1eee3; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.green::before { background: #2e7d32; }
.dot.black::before { background: #333; }
.dot.blue::before { background: #1565c0; }
.dot.sky::before { background: #69bff8; }
.dot.yellow::before { background: #f9c934; }
.dot.gray::before { background: #9e9e9e; }
.dot.orange::before { background: #f57c00; }
#tabla-calendario { width: 100%; border-collapse: collapse; margin-top: 10px; background: #fff; border: 1px solid #e1eee3; }
#tabla-calendario th, #tabla-calendario td { border: 1px solid #e1eee3; width: 14.28%; height: 84px; text-align: center; vertical-align: top; padding: 6px; font-size: 14px; }
#tabla-calendario thead { background: #eef8f0; }

/* ====== Centros ====== */
.centros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.centro-card { background: #fff; border: 1px solid #e1eee3; border-radius: 12px; padding: 16px; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.centro-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.centro-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.centro-card h3 { margin: 12px 0 6px; color: #2e7d32; }

/* ====== Carrito flotante + Panel lateral ====== */
#carrito-flotante {
  position: fixed; bottom: 20px; right: 20px;
  background: #2e7d32; color: #fff; padding: 12px 16px;
  border-radius: 50px; cursor: pointer; font-weight: 700;
  z-index: 1000; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#carrito-flotante span {
  background: #f9c934; color: #000; border-radius: 50%;
  padding: 2px 8px; margin-left: 6px;
}
.carrito-panel {
  position: fixed; top: 0; right: 0; width: 340px; height: 100%;
  background: #fff; border-left: 2px solid #2e7d32;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  padding: 16px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease-in-out;
  z-index: 1200;
}
.carrito-panel.activo { transform: translateX(0); }
.carrito-panel.oculto { display: block; } /* estado base */
.carrito-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#lista-carrito { flex: 1; overflow-y: auto; list-style: none; padding: 0; margin: 0; }
#lista-carrito li { margin-bottom: 10px; border-bottom: 1px solid #e0e0e0; padding-bottom: 8px; }
.item-carrito { display: flex; align-items: center; gap: 10px; }
.item-carrito img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
.item-carrito .info { flex: 1; }
.item-carrito .acciones button {
  margin: 2px; padding: 4px 8px; border: 1px solid #cfd8dc; border-radius: 6px; background: #ff
