
/* ==========================================================
   Vonpy · Diseño amigable v2 (logos circulares + bienvenida)
   ========================================================== */
:root { --radius: 16px; --vp-ring: rgba(253, 85, 1, .18); }
:root[data-theme="dark"] { --vp-ring: rgba(255, 122, 51, .22); }

/* Tarjetas más suaves */
.card, .post-card { border-radius: var(--radius); }
.feed > .post-card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.feed > .post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 15, 40, .10); border-color: var(--vp-ring); }
:root[data-theme="dark"] .feed > .post-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.post-title { line-height: 1.3; }

/* Botones y pestañas tipo píldora */
.btn { border-radius: 999px; }
.tabs { gap: 6px; flex-wrap: wrap; }
.tabs a { border-radius: 999px; padding: 7px 14px; }
.tabs a.on { box-shadow: 0 0 0 3px var(--vp-ring); }

/* ---------- Logo circular de comunidad ---------- */
.cmty-logo {
  --c1: #ff7a33; --c2: #fd5501;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px var(--card); overflow: hidden; vertical-align: middle;
  text-transform: uppercase; letter-spacing: 0;
}
.cmty-logo i { font-size: .95em; }
.cmty-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmty-logo.lg { width: 56px; height: 56px; font-size: 24px; }
.cmty-logo.xl { width: 88px; height: 88px; font-size: 38px; box-shadow: 0 0 0 5px var(--card), 0 6px 18px rgba(0,0,0,.18); }
.cmty-logo.md { width: 34px; height: 34px; font-size: 15px; }

a.cmty { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
a.cmty .cmty-logo { width: 22px; height: 22px; font-size: 11px; }

/* ---------- Cabecera de comunidad con portada ---------- */
.cmty-head { position: relative; overflow: hidden; padding-top: 0 !important; }
.cmty-head .vp-cover {
  --c1: #ff7a33; --c2: #fd5501;
  height: 96px; margin: 0 calc(-1 * var(--vp-pad, 16px));
  background:
    radial-gradient(circle at 20% 120%, rgba(255,255,255,.22) 0 30%, transparent 31%),
    radial-gradient(circle at 85% -20%, rgba(255,255,255,.18) 0 25%, transparent 26%),
    linear-gradient(120deg, var(--c1), var(--c2));
}
.cmty-head .vp-head-row { display: flex; align-items: flex-end; gap: 16px; margin-top: -44px; margin-bottom: 8px; }
.cmty-head .vp-head-row h1 { margin: 0 0 6px; font-size: 1.6rem; }
.cmty-head .cmty-title { font-weight: 600; font-size: 1.05rem; margin-top: 4px; }
.cmty-head p.muted { line-height: 1.6; }
.vp-rules { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.vp-rules summary { cursor: pointer; padding: 10px 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.vp-rules summary::-webkit-details-marker { display: none; }
.vp-rules summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .15s ease; }
.vp-rules[open] summary::after { transform: rotate(180deg); }
.vp-rules-body { padding: 0 14px 12px; color: var(--muted); line-height: 1.7; }

/* ---------- Listado de comunidades en grilla ---------- */
.vp-cmty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.vp-cmty-grid .cmty-item { margin: 0 !important; }
a.card.cmty-item {
  display: grid !important; grid-template-columns: 56px 1fr; column-gap: 14px; row-gap: 2px;
  align-items: center; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card.cmty-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 15, 40, .10); border-color: var(--vp-ring); text-decoration: none; }
a.card.cmty-item .cmty-logo { grid-row: 1 / span 3; }
a.card.cmty-item strong { font-size: 1.02rem; }
a.card.cmty-item span:not(.cmty-logo) { color: var(--muted); font-size: .92rem; line-height: 1.4; }
a.card.cmty-item small { font-weight: 600; color: var(--accent) !important; }

/* ---------- Bienvenida para visitantes ---------- */
.vp-hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 26px 24px; margin-bottom: 16px; color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.18) 0 18%, transparent 19%),
    radial-gradient(circle at 75% 120%, rgba(255,255,255,.12) 0 28%, transparent 29%),
    linear-gradient(125deg, #ff7a33 0%, #fd5501 45%, #c2185b 100%);
}
.vp-hero h2 { margin: 0 0 8px; font-size: 1.55rem; color: #fff; line-height: 1.2; }
.vp-hero p { margin: 0 0 16px; max-width: 560px; opacity: .95; line-height: 1.5; }
.vp-hero .vp-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.vp-hero .vp-hero-btns a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .12s ease;
}
.vp-hero .vp-hero-btns a:hover { transform: translateY(-1px); text-decoration: none; }
.vp-hero .vp-b1 { background: #fff; color: #fd5501; }
.vp-hero .vp-b2 { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.vp-hero .vp-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; opacity: .95; }
.vp-hero .vp-steps span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Chips de comunidades ---------- */
.layout > *, .feed { min-width: 0; }
.vp-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: none; }
.vp-chips::-webkit-scrollbar { display: none; }
@media (min-width: 901px) { .vp-chips { display: none; } } /* en escritorio ya está la tarjeta lateral */
.vp-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.vp-chip:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.vp-chip .cmty-logo { width: 26px; height: 26px; font-size: 12px; box-shadow: none; }

/* ---------- Tarjeta lateral de comunidades ---------- */
.vp-side-cmtys h3 { display: flex; align-items: center; gap: 8px; }
.vp-side-cmtys ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vp-side-cmtys li a {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.vp-side-cmtys li a:hover { background: var(--accent-soft); text-decoration: none; }
.vp-side-cmtys li small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.vp-side-cmtys .vp-all { display: block; margin-top: 8px; font-weight: 700; font-size: .9rem; }

@media (max-width: 640px) {
  .vp-hero { padding: 20px 16px; }
  .vp-hero h2 { font-size: 1.3rem; }
  .cmty-logo.xl { width: 72px; height: 72px; font-size: 30px; }
  .cmty-head .vp-head-row { margin-top: -36px; }
  .vp-cmty-grid { grid-template-columns: 1fr; }
}


/* ---------- 2026-10-24: Google, reels y Argentina ---------- */
.g-auth{margin:4px 0 14px}
.btn-google{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#1f1f1f;border:1px solid #dadce0;font-weight:600;padding:11px 16px}
.btn-google:hover{background:#f6f8fb}
.btn-google:disabled{opacity:.65;cursor:wait}
.g-terms{margin:6px 0 0}
#g-msg:empty{display:none}
.or-sep{display:flex;align-items:center;gap:10px;margin:14px 0 4px;color:var(--muted,#888);font-size:.85em}
.or-sep::before,.or-sep::after{content:"";flex:1;height:1px;background:currentColor;opacity:.3}
.reel-embed{position:relative;margin:10px 0;border-radius:14px;overflow:hidden;background:#000}
.reel-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.reel-16x9{aspect-ratio:16/9;max-width:720px}
.reel-9x16{aspect-ratio:9/16;max-width:360px;max-height:80vh}
.reel-badge{display:inline-flex;align-items:center;gap:6px;margin:4px 0 6px;padding:3px 10px;border-radius:999px;background:rgba(253,85,1,.12);color:#fd5501;font-size:.85em;font-weight:600;text-decoration:none}
.identity-note{display:flex;align-items:center;gap:6px;margin:8px 0}
.vp-ar-card h3{margin-top:0}
