/*
 * AldeOn — bloques de las páginas de tipo de organización (2026-09-19):
 * franja de datos, tabla "sin/con AldeOn", tarjetas con maquetas
 * animadas de las herramientas propias de cada tipo, y el bloque "para
 * la directiva". Nació inline en penas.html (petición del usuario, que
 * pidió repetirlo en el resto de páginas) — compartido aquí para no
 * copiar 250 líneas de CSS en cada HTML. Cada página define sus propios
 * --org-accent / --org-accent-tint / --org-accent-rgb / --org-accent-text.
 * Las maquetas (.mk-*) son ilustraciones, no capturas reales.
 */
.stat-strip { padding: 0; margin-top: var(--section-gap); }
.stat-strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -10px rgba(46, 42, 34, 0.12);
  overflow: hidden;
}
.stat-item { padding: 28px 16px; text-align: center; border-right: 1px solid rgba(46, 42, 34, 0.07); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Fraunces'; font-weight: 700; font-size: 1.7rem; color: var(--org-accent); }
.stat-label { margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; line-height: 1.3; }
@media (max-width: 700px) {
  .stat-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: 1px solid rgba(46, 42, 34, 0.07); border-bottom: 1px solid rgba(46, 42, 34, 0.07); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}

.compare { padding: 0; margin-top: var(--section-gap); }
.vs-card {
  max-width: 900px; margin: 0 auto; background: #fff;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 24px -8px rgba(46, 42, 34, 0.1);
  border: 1px solid rgba(46, 42, 34, 0.06);
}
.vs-head { display: grid; grid-template-columns: 1fr 1fr; }
.vs-head span { text-align: center; padding: 16px; font-weight: 800; font-size: 0.95rem; }
.vs-head .vs-head-old { background: rgba(46, 42, 34, 0.04); color: var(--ink-soft); }
.vs-head .vs-head-new { background: var(--org-accent); color: #fff; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(46, 42, 34, 0.07); }
.vs-cell { padding: 18px 22px; font-size: 0.94rem; line-height: 1.45; display: flex; align-items: flex-start; gap: 10px; }
.vs-cell svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.vs-old { color: var(--ink-soft); border-right: 1px solid rgba(46, 42, 34, 0.07); }
.vs-old svg { color: #C4453A; }
.vs-new { font-weight: 700; color: var(--ink); }
.vs-new svg { color: var(--events); }
@media (max-width: 700px) {
  .vs-head span { font-size: 0.82rem; padding: 12px 8px; }
  .vs-cell { padding: 14px 14px; font-size: 0.86rem; }
}



/* ---------- Peñas: secciones nuevas (2026-09-19) ---------- */
/* Todo lo que sigue es CSS de esta página: la franja de datos y la
   tabla "sin/con AldeOn" se copiaron de comunidades-de-vecinos.html
   (mismo criterio visual), y el resto son las maquetas ilustrativas de
   las 9 herramientas propias de una peña. Las capturas reales del móvil
   sustituirán a estas maquetas cuando se creen los datos de ejemplo. */

.pf-intro { max-width: 720px; margin: 0 auto 8px; text-align: center; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.pf-group { margin-top: 44px; }
.pf-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pf-group-head h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; }
.pf-group-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--org-accent-tint); color: var(--org-accent-text); border-radius: 999px; padding: 5px 12px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pf-grid { grid-template-columns: 1fr; } }

.pf-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 2px 10px rgba(46, 42, 34, 0.05);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pf-card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px -14px rgba(46, 42, 34, 0.2); }
.pf-visual { position: relative; padding: 22px 20px 18px; background: linear-gradient(160deg, var(--org-accent-tint), #fff 78%); height: 214px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pf-body { padding: 18px 22px 24px; }
.pf-body h4 { font-family: 'Nunito'; font-weight: 800; font-size: 1.08rem; margin-bottom: 6px; }
.pf-body p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.pf-note { margin-top: 26px; text-align: center; font-size: 0.82rem; color: var(--ink-soft); }

/* piezas comunes de las maquetas */
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 0.8rem; font-weight: 700; box-shadow: 0 1px 6px rgba(46, 42, 34, 0.07); }
.mk-row small { font-weight: 700; color: var(--ink-soft); font-size: 0.72rem; }
.mk-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.mk-pill--free { background: var(--events-tint); color: var(--events); }
.mk-pill--taken { background: var(--org-accent-tint); color: var(--org-accent-text); }
.mk-pill--pending { background: #FBE6D6; color: #B4571E; }
.mk-pill--ok { background: var(--events-tint); color: var(--events); }
.mk-btn { font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 5px 12px; background: var(--org-accent); color: #fff; }
.mk-btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid rgba(46, 42, 34, 0.15); }

/* Bote: la barra se vacía al registrarse un gasto */
.mk-fund-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.78rem; font-weight: 800; }
.mk-fund-head strong { font-family: 'Fraunces', serif; font-size: 1.5rem; }
.mk-bar { height: 12px; border-radius: 999px; background: rgba(46, 42, 34, 0.09); overflow: hidden; }
.mk-bar > span { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--org-accent), #E9B95E); transform-origin: left center; }
.pf-card.is-in .mk-bar > span { animation: mkDrain 2.6s 0.4s ease-in-out both; }
@keyframes mkDrain { 0% { width: 100%; } 100% { width: 62%; } }

/* Merchandising */
.mk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-chip { font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 5px 11px; background: #fff; border: 1.5px solid rgba(46, 42, 34, 0.14); }
.mk-chip.is-on { background: var(--org-accent); border-color: var(--org-accent); color: #fff; }

/* Pulsera */
.mk-wrist { display: flex; align-items: center; gap: 14px; }
.mk-qr { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; background: #fff; padding: 6px; box-shadow: 0 1px 6px rgba(46, 42, 34, 0.1); }
.mk-dots { display: flex; gap: 6px; margin-top: 6px; }
.mk-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(46, 42, 34, 0.12); }
.mk-dots i.on { background: var(--org-accent); }
.pf-card.is-in .mk-dots i.on:nth-child(3) { animation: mkPop 0.5s 1.1s ease-out both; }
@keyframes mkPop { 0% { transform: scale(0.2); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Inventario: semáforo */
.mk-lights { display: flex; flex-direction: column; gap: 8px; }
.mk-light { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 0.8rem; font-weight: 700; box-shadow: 0 1px 6px rgba(46, 42, 34, 0.07); }
.mk-light span { width: 16px; height: 16px; border-radius: 50%; }
.mk-light .g { background: #4C9A6A; box-shadow: 0 0 0 0 rgba(76, 154, 106, 0.5); }
.mk-light .a { background: #E0A030; }
.mk-light .r { background: #C4453A; }
.pf-card.is-in .mk-light .r { animation: mkGlow 1.8s 0.8s ease-in-out infinite; }
@keyframes mkGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 69, 58, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(196, 69, 58, 0); } }

/* Radar */
.mk-map { position: relative; height: 128px; border-radius: 14px; overflow: hidden; background:
    linear-gradient(90deg, rgba(46, 42, 34, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(0deg, rgba(46, 42, 34, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    #EDE6D3; }
.mk-map::before { content: ''; position: absolute; left: -10%; top: 46%; width: 120%; height: 10px; background: #fff; transform: rotate(-9deg); opacity: 0.85; }
.mk-map::after { content: ''; position: absolute; left: 52%; top: -10%; width: 9px; height: 120%; background: #fff; transform: rotate(14deg); opacity: 0.85; }
.mk-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--org-accent); border: 2.5px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); z-index: 2; }
.mk-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--org-accent); opacity: 0; }
.pf-card.is-in .mk-dot::after { animation: mkPing 2.2s ease-out infinite; }
.mk-dot:nth-child(2)::after { animation-delay: 0.7s !important; }
.mk-dot:nth-child(3)::after { animation-delay: 1.4s !important; }
@keyframes mkPing { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
.mk-dot--a { left: 22%; top: 30%; } .mk-dot--b { left: 60%; top: 58%; } .mk-dot--c { left: 76%; top: 24%; }
.mk-toggle { display: flex; align-items: center; justify-content: space-between; font-size: 0.74rem; font-weight: 800; }
.mk-switch { width: 34px; height: 20px; border-radius: 999px; background: var(--org-accent); position: relative; }
.mk-switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

/* Retos entre peñas */
.mk-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.mk-team { background: #fff; border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 0.74rem; font-weight: 800; box-shadow: 0 1px 6px rgba(46, 42, 34, 0.08); line-height: 1.25; }
.mk-team b { display: block; width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; background: var(--org-accent-tint); color: var(--org-accent-text); line-height: 30px; font-size: 0.85rem; }
.mk-vs-mid { font-family: 'Fraunces', serif; font-weight: 700; color: var(--org-accent-text); font-size: 1.1rem; }
.pf-card.is-in .mk-vs-mid { animation: mkBeat 1.6s 0.6s ease-in-out infinite; }
@keyframes mkBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* Cancionero */
.mk-song { display: flex; align-items: center; gap: 10px; }
.mk-song svg { width: 18px; height: 18px; color: var(--org-accent-text); flex-shrink: 0; }

/* Álbum con moderación */
.mk-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-photo { position: relative; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #E9B95E, #C1572A 140%); overflow: hidden; }
.mk-photo:nth-child(2) { background: linear-gradient(135deg, #7DB59F, #2F7A6B 140%); }
.mk-photo:nth-child(3) { background: linear-gradient(135deg, #9EA3D6, #4A4E8C 140%); }
.mk-photo.is-pending::after { content: 'Pendiente'; position: absolute; inset: auto 4px 4px 4px; text-align: center; font-size: 0.6rem; font-weight: 800; background: rgba(255, 255, 255, 0.92); color: #B4571E; border-radius: 999px; padding: 2px 0; }
.pf-card.is-in .mk-photo.is-pending { animation: mkApprove 1s 1.4s ease-out both; }
@keyframes mkApprove { 0% { filter: grayscale(1) brightness(0.8); } 100% { filter: none; } }

/* Turnos */
.mk-shifts { display: flex; flex-direction: column; gap: 7px; }

/* Para la directiva (mismo esquema que el bloque de administradores
   de la página de comunidades, con el color de peñas) */
.board-callout { position: relative; padding: 56px 0; background: var(--org-accent-tint); border-radius: 40px; margin-top: var(--section-gap); margin-left: 20px; margin-right: 20px; overflow: hidden; }
.board-callout::before, .board-callout::after { content: ''; position: absolute; border-radius: 50%; background: #fff; opacity: 0.45; }
.board-callout::before { width: 260px; height: 260px; top: -110px; right: -60px; }
.board-callout::after { width: 180px; height: 180px; bottom: -80px; left: 8%; opacity: 0.25; }
.board-callout .wrap { position: relative; z-index: 1; max-width: 980px; }
.board-callout-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .board-callout-grid { grid-template-columns: 1fr; } }
.board-callout-tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--org-accent-text); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; padding: 7px 15px; border-radius: 999px; margin-bottom: 16px; }
.board-callout h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.board-callout p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.board-callout-ctas { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.board-panel { background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 8px 30px -10px rgba(var(--org-accent-rgb), 0.28); }
.board-panel-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(46, 42, 34, 0.08); }
.board-panel-row:last-child { border-bottom: none; }
.board-panel-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--org-accent-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.board-panel-icon svg { width: 20px; height: 20px; color: var(--org-accent-text); }
.board-panel-text strong { display: block; font-size: 0.92rem; }
.board-panel-text span { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 1px; }

@media (prefers-reduced-motion: reduce) {
  .pf-card.is-in .mk-bar > span, .pf-card.is-in .mk-dots i, .pf-card.is-in .mk-light .r,
  .pf-card.is-in .mk-dot::after, .pf-card.is-in .mk-vs-mid, .pf-card.is-in .mk-photo.is-pending { animation: none !important; }
  .mk-bar > span { width: 62%; }
  .pf-card { transition: none; }
}

/* ---- piezas extra usadas por otros tipos de organización ---- */
.mk-bar--grow > span { width: var(--w, 70%); background: linear-gradient(90deg, var(--org-accent), rgba(var(--org-accent-rgb), 0.55)); }
.pf-card.is-in .mk-bar--grow > span { animation: mkGrow 1.8s 0.4s ease-out both; }
@keyframes mkGrow { 0% { width: 0; } 100% { width: var(--w, 70%); } }
.mk-avatars { display: flex; }
.mk-avatars i { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #fff; margin-left: -8px; letter-spacing: -0.02em; background: var(--org-accent-tint); color: var(--org-accent-text); font-style: normal; font-size: 0.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mk-avatars i:first-child { margin-left: 0; }
.mk-avatars i.free { background: #fff; border: 2px dashed rgba(46, 42, 34, 0.25); color: var(--ink-soft); }
.mk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mk-cal span { aspect-ratio: 1; border-radius: 8px; background: #fff; font-size: 0.66rem; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); box-shadow: 0 1px 4px rgba(46, 42, 34, 0.06); }
.mk-cal span.on { background: var(--org-accent); color: #fff; }
.mk-cal span.half { background: var(--org-accent-tint); color: var(--org-accent-text); }
.mk-big { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.5rem; }
.mk-pill--warn { background: #FBE6D6; color: #B4571E; }
.mk-pill--ink { background: rgba(46, 42, 34, 0.08); color: var(--ink); }
.mk-stack { display: flex; flex-direction: column; gap: 7px; }
.mk-tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .pf-card.is-in .mk-bar--grow > span { animation: none !important; }
}
