/* ============================================================
   San Juan Festeja — public.css
   Mobile-First — Municipalidad Distrital de San Juan Bautista
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --verde:        #16a34a;
  --verde-dark:   #14532d;
  --verde-light:  #bbf7d0;
  --verde-bg:     #f0fdf4;
  --amarillo:     #fbbf24;
  --naranja:      #f97316;
  --cafe:         #92400e;
  --crema:        #fef9c3;
  --selva:        #052e16;
  --rio:          #0c4a6e;
  --font-display: 'Playfair Display', serif;
  --font-body:    'Nunito', sans-serif;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.12);
}

/* ── RESET / BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: #fafaf8;
  color: #1a1a1a;
  overflow-x: hidden;
}
img   { max-width: 100%; height: auto; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: rgba(5,46,22,.97);
  backdrop-filter: blur(8px);
  padding: 8px 0;
  transition: padding .3s;
}
#navbar.scrolled { padding: 4px 0; }
#navbar .navbar-brand {
  font-family: var(--font-display);
  color: var(--amarillo) !important;
  font-size: 1.2rem;
}
#navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 14px !important;
  transition: color .2s;
}
#navbar .nav-link:hover { color: var(--amarillo) !important; }
/* Menú colapsado en móvil */
#navbar .navbar-collapse {
  background: rgba(5,46,22,.99);
  padding: 8px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  max-height: 80vh;
  overflow-y: auto;
}
.navbar-toggler        { border-color: var(--amarillo); padding: 6px 10px; }
.navbar-toggler-icon   { filter: invert(1); }
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #dc2626; color: #fff;
  font-weight: 700; font-size: .76rem;
  padding: 4px 10px; border-radius: 20px;
  animation: pulseLive 1.5s infinite;
}
.live-dot {
  width: 7px; height: 7px;
  background: #fff; border-radius: 50%;
  animation: pulseLive 1s infinite;
}
@keyframes pulseLive { 0%,100%{opacity:1} 50%{opacity:.65} }

/* Botón Tour en navbar */
.nav-link-tour {
  display: inline-flex !important; align-items: center; gap: 5px;
  background: rgba(251,191,36,.12) !important;
  border: 1px solid rgba(251,191,36,.35) !important;
  border-radius: 20px !important;
  color: var(--amarillo) !important;
  font-weight: 700 !important; font-size: .82rem !important;
  transition: all .2s !important; margin: 4px 0;
}
.nav-link-tour:hover { background: rgba(251,191,36,.25) !important; }

/* ── SECCIONES GENERALES ────────────────────────────────────── */
section { padding: 52px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }

.section-bg-light { background: var(--verde-bg); }
.section-bg-gray  { background: #f9fafb; }
.section-bg-crema { background: linear-gradient(180deg,var(--crema) 0%,#fff 100%); }
.section-bg-bingo { background: #fffbeb; display: none; }
.section-bg-bingo.visible { display: block; }
.section-dark     { background: linear-gradient(135deg,var(--selva),#064e3b); }

.section-badge {
  display: inline-block;
  background: var(--verde-light); color: var(--verde-dark);
  font-weight: 700; font-size: .74rem;
  padding: 4px 13px; border-radius: 20px;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}
.section-badge-dark { background: rgba(251,191,36,.15); color: var(--amarillo); }
.section-title      { font-family: var(--font-display); font-size: clamp(1.6rem,6vw,2.8rem); color: var(--selva); margin-bottom: 10px; line-height: 1.2; }
.section-title-light{ color: #fff; }
.section-sub        { color: #6b7280; font-size: .97rem; max-width: 560px; }
.section-sub-light  { color: rgba(255,255,255,.65); }
.divider-leaf {
  width: 50px; height: 4px;
  background: linear-gradient(90deg,var(--verde),var(--amarillo));
  border-radius: 2px; margin: 12px 0 24px;
}
.divider-gold { background: linear-gradient(90deg,var(--amarillo),var(--naranja)); }

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100svh; position: relative;
  display: flex; align-items: center;
  background: linear-gradient(135deg,var(--selva) 0%,#064e3b 40%,#0c4a6e 100%);
  overflow: hidden; padding-top: 72px; padding-bottom: 40px;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: .15; pointer-events: none;
}
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(251,191,36,.07) 0%,transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16,185,129,.08) 0%,transparent 50%);
}
.hero-badge {
  display: inline-block; background: var(--amarillo); color: var(--selva);
  font-weight: 700; font-size: .72rem; padding: 4px 12px; border-radius: 20px;
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(2.2rem,9vw,6rem); line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,.4); margin-bottom: 0;
}
.hero-title-accent { color: var(--amarillo); display: block; }
.hero-sub  { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 520px; margin: 12px 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hero-img {
  border-radius: var(--radius-lg); width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  margin-top: 28px;
  max-width: 380px;
  display: block; margin-left: auto; margin-right: auto;
}
@media (min-width: 992px) { .hero-img { max-width: 100%; margin-top: 0; } }

.btn-hero-primary {
  background: var(--amarillo); color: var(--selva); font-weight: 700;
  border: none; padding: 12px 24px; border-radius: 50px; font-size: .95rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); color: var(--selva); box-shadow: 0 8px 25px rgba(251,191,36,.4); }
.btn-hero-secondary {
  background: transparent; color: #fff; font-weight: 600;
  border: 2px solid rgba(255,255,255,.4); padding: 12px 22px; border-radius: 50px;
  font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  transition: all .2s;
}
.btn-hero-secondary:hover { border-color:#fff; background:rgba(255,255,255,.1); color:#fff; }

/* Countdown */
.countdown-wrap {
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg);
  padding: 14px 16px; display: inline-flex;
  gap: 10px; flex-wrap: nowrap; margin-top: 8px;
  width: 100%; max-width: 100%;
  justify-content: center;
}
@media (min-width: 480px) { .countdown-wrap { gap: 16px; padding: 18px 22px; width: auto; } }
.cd-item  { text-align: center; min-width: 44px; }
.cd-num   { font-family: var(--font-display); font-size: 2rem; color: var(--amarillo); line-height: 1; display: block; font-weight: 900; }
@media (min-width: 480px) { .cd-num { font-size: 2.6rem; } }
.cd-label { font-size: .62rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.cd-sep   { color: var(--amarillo); font-size: 1.5rem; font-weight: 700; align-self: center; opacity: .6; }

/* ── EN VIVO ────────────────────────────────────────────────── */
.section-live         { background: #0f172a; display: none; }
.section-live.visible { display: block; }
.section-live.section-videos { display: block !important; }
.live-badge-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: #dc2626; color: #fff; font-weight: 700; font-size: .9rem;
  padding: 7px 20px; border-radius: 50px; animation: pulseLive 1.5s infinite;
}
.live-title    { color: #fff; font-family: var(--font-display); font-size: clamp(1.3rem,5vw,2rem); }
.live-container {
  background: #000; border-radius: var(--radius-md);
  overflow: hidden; position: relative; aspect-ratio: 16/9;
}
.live-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 240px;
  color: rgba(255,255,255,.5); text-align: center; padding: 32px 20px;
}

/* Videos fallback */
.video-featured-wrap {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px;
}
@media (min-width: 900px) {
  .video-featured-wrap { display: grid; grid-template-columns: 1fr 280px; }
}
.video-featured-player {
  background: #000; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16/9; position: relative;
}
.video-featured-player iframe { width: 100%; height: 100%; border: 0; }
.video-featured-placeholder   { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-featured-info          { display: flex; flex-direction: column; gap: 8px; }
.video-featured-title { font-family: var(--font-display); color: #fff; font-size: 1rem; line-height: 1.35; }
.video-featured-desc  { color: rgba(255,255,255,.6); font-size: .82rem; line-height: 1.55; }
.video-featured-meta  { display: flex; gap: 8px; flex-wrap: wrap; }
.video-meta-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.video-share-btns { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.video-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 20px; border: none; cursor: pointer;
  font-size: .74rem; font-weight: 700; font-family: var(--font-body);
  transition: transform .15s,opacity .15s; text-decoration: none;
}
.video-share-btn:hover { transform: translateY(-1px); opacity: .9; }
.vsb-fb { background: #1877f2; color: #fff; }
.vsb-wa { background: #25d366; color: #fff; }
.vsb-tw { background: #000; color: #fff; }

.video-playlist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .video-playlist { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .video-playlist { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); } }
.video-pl-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all .2s;
}
.video-pl-card:hover        { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.video-pl-card.activo       { border-color: var(--amarillo); background: rgba(251,191,36,.1); }
.video-pl-thumb             { position: relative; aspect-ratio: 16/9; }
.video-pl-thumb img         { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-pl-play              { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); transition: background .2s; }
.video-pl-card:hover .video-pl-play { background: rgba(0,0,0,.5); }
.video-pl-play-icon         { width: 36px; height: 36px; border-radius: 50%; background: rgba(251,191,36,.9); color: var(--selva); display: flex; align-items: center; justify-content: center; font-size: .78rem; }
.video-pl-dur               { position: absolute; bottom: 4px; right: 5px; background: rgba(0,0,0,.75); color: #fff; font-size: .65rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; }
.video-pl-info              { padding: 8px 10px; }
.video-pl-title             { color: #fff; font-size: .77rem; font-weight: 700; line-height: 1.3; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-pl-anio              { color: rgba(255,255,255,.45); font-size: .7rem; }

/* ── ESTADÍSTICAS ───────────────────────────────────────────── */
#estadisticas { background: linear-gradient(135deg,var(--selva),#064e3b); }
.stat-card    { text-align: center; padding: 28px 14px; }
.stat-icon    { font-size: 1.6rem; color: rgba(251,191,36,.4); margin-bottom: 8px; }
.stat-num     { font-family: var(--font-display); font-size: 2.8rem; color: var(--amarillo); font-weight: 900; line-height: 1; }
@media (min-width: 768px) { .stat-num { font-size: 3.5rem; } }
.stat-label   { color: rgba(255,255,255,.75); font-size: .88rem; margin-top: 6px; font-weight: 600; }

/* ── BOTÓN VERDE GENÉRICO ───────────────────────────────────── */
.btn-verde {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--verde); color: #fff; font-weight: 700;
  border: none; padding: 11px 26px; border-radius: 50px; font-size: .92rem;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-verde:hover { background: var(--verde-dark); color: #fff; transform: translateY(-1px); }

/* ── FILTROS / TOGGLE ───────────────────────────────────────── */
.filter-btns, .galeria-filter {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px;
}
.filter-btn {
  background: #fff; border: 1.5px solid #d1fae5; color: var(--verde-dark);
  font-weight: 600; font-size: .8rem; padding: 7px 14px; border-radius: 50px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.filter-btn.active, .filter-btn:hover { background: var(--verde); color: #fff; border-color: var(--verde); }
.view-toggle { background: var(--verde-bg); border-radius: 10px; padding: 4px; display: inline-flex; }
.view-toggle button {
  border: none; background: transparent; padding: 8px 16px;
  border-radius: 8px; font-weight: 600; font-size: .83rem;
  color: var(--verde-dark); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.view-toggle button.active { background: var(--verde); color: #fff; }

/* ── EVENTOS ────────────────────────────────────────────────── */
.event-card {
  background: #fff; border-radius: var(--radius-lg); padding: 18px;
  border: 1px solid #d1fae5; transition: transform .2s, box-shadow .2s;
  cursor: pointer; height: 100%;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(22,163,74,.12); }
.event-cat  { display:inline-block; font-size:.7rem; font-weight:700; padding:3px 9px; border-radius:20px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; }
.cat-folclore    { background:#fef3c7; color:#92400e; }
.cat-gastronomia { background:#fce7f3; color:#9d174d; }
.cat-deportes    { background:#dbeafe; color:#1e40af; }
.cat-religion    { background:#f3e8ff; color:#6b21a8; }
.cat-cultura     { background:#d1fae5; color:#065f46; }
.cat-show        { background:#fef9c3; color:#92400e; }
.cat-otro        { background:#f3f4f6; color:#374151; }
.event-title     { font-weight:700; font-size:.97rem; color:var(--selva); margin-bottom:5px; line-height:1.3; }
.event-meta      { font-size:.8rem; color:#6b7280; display:flex; align-items:center; gap:5px; margin-bottom:3px; }
.asistentes-badge{ display:inline-flex; align-items:center; gap:4px; background:#dcfce7; color:var(--verde-dark); font-size:.75rem; font-weight:700; padding:4px 9px; border-radius:20px; margin-top:8px; }
.calendar-container { background:#fff; border-radius:var(--radius-md); padding:14px; border:1px solid #d1fae5; overflow-x:auto; }

/* ── ARTISTAS ───────────────────────────────────────────────── */
.artistas-swiper .swiper-button-next,
.artistas-swiper .swiper-button-prev { color: var(--amarillo); }
.artista-card   { border-radius:var(--radius-lg); overflow:hidden; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); }
.artista-img    { width:100%; height:240px; object-fit:cover; }
@media(min-width:768px){ .artista-img{ height:280px; } }
.artista-info   { padding:16px; }
.artista-nombre { font-family:var(--font-display); color:#fff; font-size:1.15rem; margin-bottom:3px; }
.artista-genero { color:var(--amarillo); font-size:.83rem; font-weight:600; }
.artista-fecha  { color:rgba(255,255,255,.6); font-size:.8rem; margin-top:6px; display:flex; align-items:center; gap:5px; }
.artista-btn    { display:inline-flex; align-items:center; gap:5px; background:rgba(255,255,255,.1); color:rgba(255,255,255,.85); border:1px solid rgba(255,255,255,.2); padding:7px 14px; border-radius:20px; font-size:.8rem; font-weight:600; cursor:pointer; transition:all .2s; margin-top:10px; }
.artista-btn:hover { background:var(--amarillo); color:var(--selva); border-color:var(--amarillo); }
.artista-destacado-badge { position:absolute; top:12px; right:12px; background:var(--amarillo); color:var(--selva); font-size:.7rem; font-weight:700; padding:3px 9px; border-radius:20px; }

/* ── GALERÍA ────────────────────────────────────────────────── */
.galeria-grid         { columns: 2; column-gap: 8px; }
@media(min-width:576px){ .galeria-grid{ columns:3; } }
@media(min-width:992px){ .galeria-grid{ columns:4; column-gap:10px; } }
.galeria-item         { break-inside:avoid; margin-bottom:8px; border-radius:var(--radius-sm); overflow:hidden; position:relative; cursor:pointer; }
.galeria-item img     { width:100%; display:block; transition:transform .3s; }
.galeria-item:hover img { transform:scale(1.04); }
.galeria-overlay      { position:absolute; inset:0; background:rgba(5,46,22,.55); opacity:0; display:flex; align-items:center; justify-content:center; transition:opacity .3s; color:#fff; font-size:1.3rem; }
.galeria-item:hover .galeria-overlay { opacity:1; }
/* Mostrar overlay siempre en táctil */
@media(hover:none){ .galeria-overlay{ opacity:1; background:rgba(5,46,22,.35); } }

/* ── FOTOS CIUDADANAS ───────────────────────────────────────── */
.upload-area {
  border:2.5px dashed #86efac; border-radius:var(--radius-lg);
  padding:32px 20px; text-align:center; cursor:pointer; transition:all .2s; background:var(--verde-bg);
}
.upload-area:hover   { border-color:var(--verde); background:#dcfce7; }
.upload-icon         { font-size:2.6rem; color:var(--verde); margin-bottom:12px; display:block; }
.upload-title        { color:var(--selva); font-weight:700; margin-bottom:4px; font-size:1rem; }
.upload-hint         { color:#6b7280; font-size:.85rem; margin:0; }
.canvas-preview      { border-radius:var(--radius-md); max-width:100%; display:none; margin-top:14px; }
.foto-form-panel     { margin-top:14px; }
.gallery-cit-title   { font-weight:700; color:var(--selva); margin-bottom:14px; font-size:1rem; }

.foto-ciudadana-card { background:#fff; border-radius:var(--radius-md); overflow:hidden; border:2px solid #d1fae5; transition:transform .2s; }
.foto-ciudadana-card:hover  { transform:translateY(-3px); }
.foto-ciudadana-card img    { width:100%; height:150px; object-fit:cover; }
@media(min-width:576px){ .foto-ciudadana-card img{ height:180px; } }
.foto-card-footer    { padding:8px 10px; display:flex; justify-content:space-between; align-items:center; }
.foto-autor          { font-weight:700; font-size:.84rem; color:var(--selva); }
.foto-distrito       { font-size:.73rem; color:#9ca3af; }
.like-btn            { background:none; border:none; cursor:pointer; color:#9ca3af; font-size:.92rem; display:flex; align-items:center; gap:4px; transition:color .2s; padding:4px; }
.like-btn:hover,.like-btn.liked { color:#dc2626; }
/* Lupa en táctil */
.foto-lupa { position:absolute; inset:0; background:rgba(5,46,22,.45); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .2s; color:#fff; font-size:1.4rem; }
.foto-thumb-wrap:hover .foto-lupa { opacity:1; }
@media(hover:none){ .foto-lupa{ opacity:1; background:rgba(5,46,22,.25); } }

/* ── HISTORIA / TIMELINE ────────────────────────────────────── */
.timeline        { position:relative; padding-left:0; }
.timeline::before{ content:''; position:absolute; left:20px; top:0; bottom:0; width:3px; background:linear-gradient(180deg,var(--verde),var(--amarillo)); border-radius:2px; }
.tl-item         { position:relative; padding-left:52px; margin-bottom:30px; }
.tl-dot          { position:absolute; left:10px; top:4px; width:20px; height:20px; background:var(--verde); border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 3px var(--verde-light); }
.tl-year         { font-family:var(--font-display); font-size:1.2rem; color:var(--verde); font-weight:700; }
.tl-title        { font-weight:700; font-size:.97rem; color:var(--selva); margin:3px 0; }
.tl-desc         { color:#6b7280; font-size:.87rem; line-height:1.6; }

.gastro-title    { font-family:var(--font-display); color:var(--selva); margin-bottom:16px; font-size:1.3rem; }
.gastro-card     { background:#fff; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .2s; cursor:pointer; }
.gastro-card:hover { transform:translateY(-3px); }
.gastro-img      { width:100%; height:150px; object-fit:cover; }
@media(min-width:576px){ .gastro-img{ height:170px; } }
.gastro-body     { padding:12px; }
.gastro-nombre   { font-family:var(--font-display); font-size:1rem; color:var(--selva); margin-bottom:4px; }
.gastro-desc     { font-size:.8rem; color:#6b7280; margin:0 0 7px; }
.btn-receta      { background:var(--verde); color:#fff; border:none; padding:5px 13px; border-radius:20px; font-size:.76rem; font-weight:600; cursor:pointer; transition:background .2s; }
.btn-receta:hover{ background:var(--verde-dark); }

/* ── NOTICIAS ───────────────────────────────────────────────── */
.noticia-card    { background:#fff; border-radius:var(--radius-lg); overflow:hidden; border:1px solid #e5e7eb; transition:transform .2s,box-shadow .2s; cursor:pointer; }
.noticia-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.noticia-img     { width:100%; height:170px; object-fit:cover; }
.noticia-body    { padding:16px; }
.noticia-cat     { display:inline-block; background:#d1fae5; color:var(--verde-dark); font-size:.7rem; font-weight:700; padding:3px 9px; border-radius:20px; text-transform:uppercase; margin-bottom:8px; }
.noticia-titulo  { font-weight:700; font-size:.97rem; color:var(--selva); margin-bottom:6px; line-height:1.35; }
.noticia-resumen { font-size:.85rem; color:#6b7280; line-height:1.55; }
.noticia-fecha   { font-size:.75rem; color:#9ca3af; margin-top:8px; }

/* ── MAPA ───────────────────────────────────────────────────── */
#map {
  height: 320px; border-radius:var(--radius-md);
  overflow:hidden; border:2px solid #d1fae5;
}
@media(min-width:768px){ #map{ height:460px; } }

/* ── MURO ───────────────────────────────────────────────────── */
.muro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 10px; max-height: 400px; overflow-y: auto;
}
@media(min-width:768px){ .muro-grid{ max-height:460px; } }
.muro-post        { border-radius:var(--radius-md); padding:14px; color:#fff; font-weight:600; font-size:.87rem; animation:popIn .4s ease; line-height:1.45; }
.muro-post .post-nombre   { font-size:.73rem; opacity:.85; margin-top:8px; }
.muro-post .post-distrito { font-size:.68rem; opacity:.65; }
.card-form-title  { font-weight:700; color:var(--selva); margin-bottom:14px; }

/* ── ENCUESTA ───────────────────────────────────────────────── */
.plato-btn {
  background:#fff; border:2px solid #d1fae5; border-radius:var(--radius-md);
  padding:11px 8px; text-align:center; cursor:pointer; transition:all .2s;
  font-weight:600; color:var(--selva); width:100%; font-size:.87rem;
}
.plato-btn:hover   { border-color:var(--verde); background:#dcfce7; }
.plato-btn.selected{ border-color:var(--verde); background:var(--verde); color:#fff; }
.plato-bar-wrap    { margin-bottom:10px; }
.plato-bar-label   { display:flex; justify-content:space-between; font-size:.83rem; font-weight:600; color:var(--selva); margin-bottom:4px; }
.plato-bar         { height:10px; background:#d1fae5; border-radius:5px; overflow:hidden; }
.plato-bar-fill    { height:100%; background:linear-gradient(90deg,var(--verde),var(--amarillo)); border-radius:5px; transition:width .8s ease; }

/* ── QUIZ ───────────────────────────────────────────────────── */
.quiz-card         { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:var(--radius-lg); padding:22px 18px; max-width:680px; margin:0 auto; }
@media(min-width:576px){ .quiz-card{ padding:32px; } }
.quiz-hint         { color:rgba(255,255,255,.7); text-align:center; margin-bottom:16px; font-size:.9rem; }
.quiz-nombre-input { background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.2); border-radius:10px; padding:11px 14px; color:#fff; width:100%; font-size:.93rem; margin-bottom:12px; }
.quiz-nombre-input::placeholder{ color:rgba(255,255,255,.4); }
.quiz-progress     { height:5px; background:rgba(255,255,255,.1); border-radius:3px; margin-bottom:18px; }
.quiz-progress-fill{ height:100%; background:var(--amarillo); border-radius:3px; transition:width .4s; }
.quiz-pregunta-num { color:rgba(255,255,255,.5); font-size:.82rem; margin-bottom:8px; }
.quiz-pregunta     { color:#fff; font-size:1rem; font-weight:700; margin-bottom:16px; line-height:1.5; }
@media(min-width:576px){ .quiz-pregunta{ font-size:1.15rem; } }
.quiz-opcion {
  background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.15);
  border-radius:var(--radius-md); padding:11px 16px; color:rgba(255,255,255,.85);
  cursor:pointer; margin-bottom:8px; transition:all .2s; font-weight:600; font-size:.9rem;
  /* Área táctil más grande */
  min-height: 48px; display: flex; align-items: center;
}
.quiz-opcion:hover   { background:rgba(255,255,255,.13); border-color:var(--amarillo); }
.quiz-opcion:active  { transform:scale(.98); }
.quiz-opcion.correct { background:rgba(22,163,74,.3); border-color:var(--verde); color:#fff; }
.quiz-opcion.wrong   { background:rgba(220,38,38,.2); border-color:#dc2626; color:#fff; }
.quiz-result-emoji   { font-size:3rem; margin-bottom:10px; }
.quiz-result-score   { font-family:var(--font-display); color:var(--amarillo); font-size:1.7rem; margin-bottom:6px; }
.quiz-result-msg     { color:rgba(255,255,255,.75); margin-bottom:4px; font-size:.9rem; }
.btn-outline-light-quiz { background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); color:#fff; border-radius:10px; padding:10px 18px; cursor:pointer; font-weight:600; transition:all .2s; font-size:.9rem; }
.btn-outline-light-quiz:hover { background:rgba(255,255,255,.2); }
.ranking-title  { color:var(--amarillo); font-family:var(--font-display); font-size:1.1rem; }
.ranking-row    { display:flex; justify-content:space-between; padding:10px 14px; border-bottom:1px solid rgba(255,255,255,.08); color:rgba(255,255,255,.8); font-size:.88rem; }
.ranking-score  { color:var(--amarillo); font-weight:700; }
.ranking-wrap   { background:rgba(255,255,255,.07); border-radius:var(--radius-md); overflow:hidden; max-width:400px; margin:0 auto; }

/* ── NOMBRE AMAZÓNICO ───────────────────────────────────────── */
.nombre-resultado   { background:linear-gradient(135deg,var(--verde-dark),var(--rio)); color:#fff; border-radius:var(--radius-lg); padding:24px 20px; text-align:center; display:none; margin-top:4px; }
.nombre-result-icon { font-size:1.8rem; margin-bottom:6px; }
.nombre-result-label{ font-size:.83rem; color:rgba(255,255,255,.7); margin-bottom:4px; }
.nombre-result-text { font-family:var(--font-display); font-size:2rem; color:var(--amarillo); }
@media(min-width:480px){ .nombre-result-text{ font-size:2.3rem; } }
.nombre-result-sig  { font-size:.83rem; color:rgba(255,255,255,.6); margin-top:6px; }

/* ── BINGO ──────────────────────────────────────────────────── */
.bingo-main-title { font-family:var(--font-display); font-size:2.2rem; color:var(--cafe); text-align:center; margin-bottom:4px; }
@media(min-width:480px){ .bingo-main-title{ font-size:2.6rem; } }
.bingo-subtitle   { font-family:var(--font-display); color:var(--cafe); }
.bingo-desc       { color:#6b7280; max-width:500px; margin:0 auto 20px; font-size:.9rem; }
.bingo-grid       { display:grid; grid-template-columns:repeat(6,1fr); gap:5px; max-width:420px; margin:0 auto; }
@media(min-width:480px){ .bingo-grid{ gap:7px; max-width:540px; } }
.bingo-header     { background:var(--amarillo); border-radius:6px; padding:7px 4px; text-align:center; font-weight:900; font-size:.75rem; color:var(--cafe); }
.bingo-cell       { background:#fff; border:2px solid #fde68a; border-radius:8px; padding:8px 3px; text-align:center; cursor:pointer; font-size:.62rem; font-weight:700; color:var(--cafe); transition:all .2s; line-height:1.25; min-height:54px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
@media(min-width:480px){ .bingo-cell{ font-size:.68rem; padding:10px 4px; } }
.bingo-cell:hover  { border-color:var(--amarillo); background:#fef3c7; }
.bingo-cell.marcado{ background:var(--verde); border-color:var(--verde); color:#fff; }
.bingo-cell .bingo-icon   { font-size:1.1rem; display:block; margin-bottom:2px; }
@media(min-width:480px){ .bingo-cell .bingo-icon{ font-size:1.2rem; } }
.bingo-cell-free   { background:var(--amarillo) !important; border-color:var(--naranja) !important; pointer-events:none; }
.btn-reiniciar-bingo { background:var(--amarillo); border:none; border-radius:20px; padding:9px 24px; font-weight:700; color:var(--cafe); cursor:pointer; font-size:.9rem; }
.bingo-win-msg     { font-weight:700; font-size:1rem; color:var(--verde); margin-top:12px; }

/* ── CONTACTO ───────────────────────────────────────────────── */
.contact-card  { background:#fff; border-radius:var(--radius-lg); padding:22px 20px; border:1px solid #e5e7eb; }
@media(min-width:576px){ .contact-card{ padding:28px 30px; } }
.info-item     { display:flex; align-items:flex-start; gap:11px; padding:12px 0; border-bottom:1px solid #f3f4f6; }
.info-icon     { width:38px; height:38px; background:#d1fae5; color:var(--verde-dark); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:.95rem; flex-shrink:0; }
.info-label    { font-size:.75rem; color:#9ca3af; font-weight:600; text-transform:uppercase; letter-spacing:.05em; }
.info-val      { font-weight:600; color:var(--selva); font-size:.91rem; }
.info-val a    { color:var(--verde); text-decoration:none; }
.form-control:focus { border-color:var(--verde); box-shadow:0 0 0 3px rgba(22,163,74,.12); }
/* Inputs más cómodos en táctil */
.form-control, .form-select { min-height: 46px; font-size: .93rem; }

/* ── MODALES ────────────────────────────────────────────────── */
.sjf-modal        { border-radius:var(--radius-lg); border:none; overflow:hidden; }
.sjf-modal-header { background:var(--verde); color:#fff; border-radius:0; }
.sjf-modal-header .modal-title { font-family:var(--font-display); }
.receta-step      { background:#fff; border-radius:var(--radius-md); padding:12px 16px; border-left:4px solid var(--verde); margin-bottom:9px; }
.receta-step-num  { display:inline-flex; align-items:center; justify-content:center; background:var(--verde); color:#fff; width:24px; height:24px; border-radius:50%; font-weight:700; font-size:.78rem; margin-right:8px; flex-shrink:0; }
.receta-tip       { background:var(--verde-bg); border-radius:var(--radius-md); padding:12px; margin-top:12px; border-left:4px solid var(--verde); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer        { background:var(--selva); color:rgba(255,255,255,.7); padding:44px 0 20px; }
footer h5     { font-family:var(--font-display); color:var(--amarillo); font-size:1rem; margin-bottom:14px; }
footer a      { color:rgba(255,255,255,.6); text-decoration:none; transition:color .2s; }
footer a:hover{ color:var(--amarillo); }
.footer-brand { font-family:var(--font-display); font-size:1.6rem; color:var(--amarillo); }
.social-btn   { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; background:rgba(255,255,255,.08); color:rgba(255,255,255,.7); font-size:1rem; transition:all .2s; text-decoration:none; }
.social-btn:hover { background:var(--amarillo); color:var(--selva); }
.footer-divider   { border-color:rgba(255,255,255,.1); margin:28px 0 18px; }

/* ── BOTONES FLOTANTES ──────────────────────────────────────── */
#sound-toggle {
  position:fixed; bottom:24px; right:24px; z-index:997;
  background:var(--verde); color:#fff; border:none;
  width:48px; height:48px; border-radius:50%; font-size:1.1rem;
  cursor:pointer; box-shadow:0 4px 18px rgba(22,163,74,.4); transition:all .2s;
}
#sound-toggle:hover { transform:scale(1.1); }
#back-top {
  position:fixed; bottom:82px; right:24px; z-index:997;
  background:rgba(5,46,22,.85); color:#fff; border:none;
  width:42px; height:42px; border-radius:50%; font-size:.95rem;
  cursor:pointer; display:none; align-items:center; justify-content:center; transition:all .2s;
}
#back-top.visible { display:flex; }
/* Cuando hay barra admin, subir botones flotantes */
body.has-admin-bar #sound-toggle { bottom:72px; }
body.has-admin-bar #back-top     { bottom:128px; }

/* ── ANIMACIONES ────────────────────────────────────────────── */
@keyframes popIn {
  from { transform:scale(.85); opacity:0; }
  to   { transform:scale(1); opacity:1; }
}

/* ── TOUCH / ACCESIBILIDAD ──────────────────────────────────── */
/* Área mínima táctil de 44px para todos los botones interactivos */
button, .filter-btn, .plato-btn, .like-btn, .btn-verde,
.btn-hero-primary, .btn-receta, .artista-btn {
  min-height: 40px;
}
/* Evitar zoom al enfocar inputs en iOS */
input, select, textarea { font-size: 16px !important; }
@media(min-width:576px){ input, select, textarea{ font-size: inherit !important; } }

/* ── SAFE AREA (notch iPhone) ───────────────────────────────── */
#admin-bar { padding-bottom: max(8px, env(safe-area-inset-bottom)); }

/* ═══════════════════════════════════════════════════
   BARRA CIUDADANO + DRAWER — Gamificación
═══════════════════════════════════════════════════ */

/* Barra fija inferior */
#sjg-barra-strip {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 18000;    /* por encima del admin-bar (9999) */
  background: linear-gradient(90deg, #052e16 0%, #0c4a6e 100%);
  border-top: 1px solid rgba(251,191,36,.35);
  cursor: pointer;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .3s ease;
}
.sjg-barra-inner {
  display: flex; align-items: center;
  gap: 10px; padding: 8px 16px;
  max-width: 1200px; margin: 0 auto;
}
/* Avatar */
.sjg-barra-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,#16a34a,#fbbf24);
  color: #fff; font-weight: 900; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase;
}
/* Info nombre/nivel */
.sjg-barra-info   { flex-shrink: 0; min-width: 0; }
.sjg-barra-nombre { color: #fff; font-weight: 700; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sjg-barra-nivel  { color: rgba(255,255,255,.45); font-size: .66rem; white-space: nowrap; }
/* Barra XP central */
.sjg-barra-center { flex: 1; min-width: 0; padding: 0 8px; }
.sjg-barra-xp-wrap{ display: flex; align-items: center; gap: 8px; }
.sjg-barra-xp-bar { flex: 1; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.sjg-barra-xp-fill{ height: 100%; background: linear-gradient(90deg,#16a34a,#fbbf24); border-radius: 3px; transition: width .8s ease; }
.sjg-barra-xp-num { font-size: .7rem; font-weight: 700; color: var(--amarillo); white-space: nowrap; flex-shrink: 0; }
/* Flecha toggle */
.sjg-barra-right  { flex-shrink: 0; }
.sjg-barra-toggle { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .75rem; transition: transform .3s; }
.sjg-barra-toggle.open { transform: rotate(180deg); }

/* ── DRAWER ────────────────────────────────────── */
#sjg-drawer {
  position: fixed; left: 0; right: 0;
  bottom: -100vh;           /* oculto debajo de la pantalla */
  z-index: 19000;           /* por encima de todo, incluyendo admin-bar */
  max-height: 85vh;
  transition: bottom .35s cubic-bezier(.4,0,.2,1);
  visibility: hidden;       /* también ocultar para accesibilidad */
}
#sjg-drawer.open {
  bottom: 0;
  visibility: visible;
}
.sjg-drawer-inner {
  background: linear-gradient(180deg, #052e16 0%, #031a0c 100%);
  border-top: 1px solid rgba(251,191,36,.2);
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Cabecera drawer */
.sjg-drawer-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sjg-drawer-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg,#16a34a,#fbbf24);
  color: #fff; font-weight: 900; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase;
}
.sjg-drawer-nombre { color: #fff; font-weight: 800; font-size: .9rem; }
.sjg-drawer-nivel  { color: rgba(255,255,255,.45); font-size: .72rem; margin-top: 1px; }
.sjg-drawer-xp-big { text-align: right; flex-shrink: 0; }
.sjg-drawer-xp-num { color: var(--amarillo); font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; line-height: 1; }
.sjg-drawer-xp-lbl { color: rgba(255,255,255,.35); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.sjg-drawer-close {
  background: rgba(255,255,255,.07); border: none;
  color: rgba(255,255,255,.4); width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: all .15s; flex-shrink: 0;
}
.sjg-drawer-close:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Tabs */
.sjg-drawer-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0; overflow-x: auto; scrollbar-width: none;
}
.sjg-drawer-tabs::-webkit-scrollbar { display: none; }
.sjg-dtab {
  flex: 1; min-width: 64px; padding: 10px 8px;
  border: none; background: transparent;
  color: rgba(255,255,255,.35); font-size: .7rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  font-family: 'Nunito', sans-serif;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.sjg-dtab i   { font-size: .85rem; }
.sjg-dtab.active {
  color: var(--amarillo);
  border-bottom-color: var(--amarillo);
  background: rgba(251,191,36,.05);
}

/* Panel content */
.sjg-drawer-content {
  flex: 1; overflow-y: auto; padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sjg-dpanel      { display: none; }
.sjg-dpanel.active{ display: block; }
.sjg-dpanel-title {
  font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 12px;
}

/* Grid de acciones */
.sjg-acciones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
@media(min-width:400px) { .sjg-acciones-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:600px) { .sjg-acciones-grid { grid-template-columns: repeat(4,1fr); } }
.sjg-accion-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 10px 8px;
  text-align: center; cursor: default;
  position: relative;
}
.sjg-accion-card.done {
  background: rgba(22,163,74,.1);
  border-color: rgba(22,163,74,.3);
}
.sjg-accion-emoji { font-size: 1.2rem; display: block; margin-bottom: 4px; }
.sjg-accion-nombre{ font-size: .7rem; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 3px; }
.sjg-accion-pts   { font-size: .67rem; font-weight: 800; color: var(--amarillo); }
.sjg-accion-card.done .sjg-accion-pts { color: #86efac; }
.sjg-done-check {
  position: absolute; top: -5px; right: -5px;
  width: 16px; height: 16px; background: #16a34a;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .6rem; color: #fff;
}

/* Premios */
.sjg-premio-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 12px 14px;
  margin-bottom: 8px;
}
.sjg-premio-item.disponible { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.06); }
.sjg-premio-emoji { font-size: 1.6rem; flex-shrink: 0; }
.sjg-premio-info  { flex: 1; min-width: 0; }
.sjg-premio-nombre{ font-size: .82rem; font-weight: 700; color: #fff; }
.sjg-premio-req   { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.sjg-btn-canjear {
  background: var(--verde); color: #fff; border: none;
  border-radius: 8px; padding: 7px 12px;
  font-size: .75rem; font-weight: 700;
  cursor: pointer; font-family: 'Nunito',sans-serif;
  white-space: nowrap; flex-shrink: 0;
  transition: opacity .2s;
}
.sjg-btn-canjear:hover { opacity: .85; }
.sjg-btn-canjear:disabled { opacity: .3; cursor: not-allowed; }
.sjg-premios-nota {
  font-size: .72rem; color: rgba(255,255,255,.3);
  line-height: 1.55; margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-radius: 10px; border: 1px solid rgba(255,255,255,.06);
}

/* QR frame */
.sjg-qr-frame {
  background: #fff; border-radius: 12px;
  padding: 10px; display: inline-block;
}

/* Ranking */
.sjg-rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  margin-bottom: 4px; background: rgba(255,255,255,.03);
}
.sjg-rank-row.yo { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.2); }
.sjg-rank-pos    { width: 22px; text-align: center; font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.35); flex-shrink: 0; }
.sjg-rank-av     { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#16a34a,#0c4a6e); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.sjg-rank-info   { flex: 1; min-width: 0; }
.sjg-rank-nombre { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sjg-rank-nivel  { font-size: .67rem; color: rgba(255,255,255,.3); }
.sjg-rank-pts    { font-size: .82rem; font-weight: 800; color: var(--amarillo); flex-shrink: 0; }

/* Canjes */
.sjg-canje-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  margin-bottom: 6px;
}
.sjg-canje-emoji { font-size: 1.3rem; flex-shrink: 0; }
.sjg-canje-info  { flex: 1; }
.sjg-canje-nombre{ font-size: .8rem; font-weight: 700; color: #fff; }
.sjg-canje-codigo{ font-size: .7rem; color: rgba(255,255,255,.35); font-family: monospace; }
.sjg-canje-estado{
  font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; flex-shrink: 0;
}
.estado-pendiente   { background: rgba(251,191,36,.15); color: #fbbf24; }
.estado-confirmado  { background: rgba(22,163,74,.15);  color: #86efac; }
.estado-anulado     { background: rgba(220,38,38,.15);  color: #fca5a5; }

/* Footer drawer */
.sjg-drawer-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.sjg-btn-logout {
  background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.2);
  color: #fca5a5; border-radius: 8px; padding: 6px 14px;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  font-family: 'Nunito',sans-serif; transition: all .15s;
  display: flex; align-items: center; gap: 5px;
}
.sjg-btn-logout:hover { background: rgba(220,38,38,.25); color: #fff; }

/* Overlay oscuro cuando el drawer está abierto */
#sjg-overlay {
  position: fixed; inset: 0; z-index: 18999;
  background: rgba(0,0,0,.5);
  display: none; cursor: pointer;
}
#sjg-overlay.visible { display: block; }

/* Compensar altura de la barra ciudadano en el body */
body.sjg-logueado { padding-bottom: 54px; }

/* Toast XP */
.sjg-toast-xp {
  position: fixed; bottom: 68px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg,#052e16,#064e3b);
  color: #fff; border: 1px solid rgba(251,191,36,.4);
  border-radius: 14px; padding: 12px 20px;
  z-index: 99999; font-family: 'Nunito',sans-serif;
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  pointer-events: none; white-space: nowrap;
  animation: sjgToastIn .4s ease forwards;
}
@keyframes sjgToastIn {
  from { opacity:0; transform:translateX(-50%) translateY(20px); }
  to   { opacity:1; transform:translateX(-50%) translateY(0); }
}

/* ── CHIP DE USUARIO LOGUEADO en formularios ───────────────── */
.sjg-nombre-chip {
  margin-bottom: 8px;
}
/* Cuando hay chip, el padding-bottom de los formularios es correcto */
.sjg-nombre-chip + input {
  display: none !important;
}

/* ═══════════════════════════════════════════════════
   LOGIN-GATE — bloque de inducción al login
   Aparece cuando el usuario no está autenticado
   y se oculta automáticamente cuando se loguea
═══════════════════════════════════════════════════ */
.sjg-login-gate {
  background: rgba(5,46,22,.06);
  border: 1.5px dashed rgba(22,163,74,.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  transition: opacity .3s;
}
.sjg-login-gate-dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.18);
}
.sjg-gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.sjg-gate-emoji {
  font-size: 1.6rem;
  line-height: 1;
}
.sjg-gate-msg {
  font-size: .83rem;
  color: #6b7280;
  line-height: 1.5;
}
.sjg-login-gate-dark .sjg-gate-msg {
  color: rgba(255,255,255,.55);
}
.sjg-gate-msg strong {
  color: var(--verde);
}
.sjg-login-gate-dark .sjg-gate-msg strong {
  color: var(--amarillo);
}
.sjg-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .2s;
  margin-top: 2px;
}
.sjg-gate-btn:hover {
  background: var(--verde-dark);
  transform: translateY(-1px);
}