/* ================================================================
   CONSULADO HABANA v6 — Soft UI · Neumorphism · MarketLabs Style
   DM Sans · Warm Gray · Embossed Cards · Physical Depth
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #e8e8ed;
  --bg-card:   #eaeaf0;

  --neu-out:   6px 6px 14px rgba(0,0,0,0.13), -4px -4px 10px rgba(255,255,255,0.85);
  --neu-out-sm:3px 3px 8px rgba(0,0,0,0.11), -2px -2px 6px rgba(255,255,255,0.80);
  --neu-in:    inset 3px 3px 8px rgba(0,0,0,0.12), inset -3px -3px 8px rgba(255,255,255,0.75);
  --neu-btn:   4px 4px 10px rgba(0,0,0,0.15), -3px -3px 8px rgba(255,255,255,0.80);
  --neu-btn-press: inset 3px 3px 7px rgba(0,0,0,0.14), inset -2px -2px 6px rgba(255,255,255,0.70);

  --border:    rgba(255,255,255,0.60);
  --border2:   rgba(0,0,0,0.06);
  --t1: #1c1c1e;
  --t2: #3a3a3c;
  --t3: #8e8e93;
  --t4: #aeaeb2;

  --green:     #30b855;
  --green-bg:  rgba(48,184,85,0.12);
  --red:       #e03030;
  --red-bg:    rgba(224,48,48,0.10);
  --blue:      #2060c8;
  --violet:    #5040b8;
  --violet-bg: rgba(80,64,184,0.10);

  --tab-h:    58px;
  --wrap-h:   81px;
  --head-h:   52px;
  --r:        14px;
  --r2:       20px;
  --r3:       32px;
  --f: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-serif: 'DM Serif Display', Georgia, serif;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::selection { background: rgba(32,96,200,0.14); }

html { font-size: 90%; }
html, body { height: 100%; }

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--head-h);
  padding-bottom: calc(var(--wrap-h) + 28px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeUp   { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes pulse    { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.3; transform:scale(0.80); } }
@keyframes slideDown { from { transform:translateY(-100%); opacity:0; } to { transform:translateY(0); opacity:1; } }
/* TICKER — animación única, GPU-accelerated, sin saltos */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes overlayIn { from { opacity:0; } to { opacity:1; } }
@keyframes sheetUp  { from { transform:translateY(100%); } to { transform:translateY(0); } }
@keyframes cardIn   { from { opacity:0; transform:translateY(20px) scale(0.96); } to { opacity:1; transform:translateY(0) scale(1); } }

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--head-h);
  z-index: 400;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.7);
  animation: slideDown 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.header-left { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.header-flags { display:flex; align-items:center; gap:5px; flex-shrink:0; }
.flag-es, .flag-cu {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 50px;
  box-shadow: var(--neu-out-sm);
}
.flag-es { background:var(--bg); color:#c0392b; }
.flag-cu { background:var(--bg); color:var(--blue); }
.flag-divider { width:1px; height:12px; background:rgba(0,0,0,0.10); display:block; }

.header-text { min-width:0; }
.header-text h1 {
  font-size: 0.92rem; font-weight: 700; color: var(--t1);
  letter-spacing: -0.02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.header-text p { font-size:0.7rem; color:var(--t3); font-weight:400; white-space:nowrap; }

.header-right { display:flex; flex-direction:column; align-items:flex-end; gap:3px; flex-shrink:0; }

.header-badge {
  font-size: 0.6rem; font-weight: 700; color: var(--green);
  background: var(--bg); box-shadow: var(--neu-out-sm);
  padding: 3px 10px; border-radius: 20px;
  white-space: nowrap; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis;
}
.view-counter {
  font-size: .67rem; font-weight: 500; color: var(--t4);
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}

/* STATUS PANEL */
#statusPanel {
  position: sticky; top: var(--head-h); z-index: 300;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  padding: 12px 16px;
}
.status-panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
/* ── Status panel tweaks (Gestores) ── */
.sp-title { font-size:0.65rem; font-weight:700; letter-spacing:0.10em; text-transform:uppercase; color:var(--t3); }
.live-container {
  display:flex; align-items:center; gap:5px;
  font-size:0.62rem; font-weight:800; letter-spacing:0.10em; color:var(--red);
  background:var(--bg); box-shadow:var(--neu-out-sm); padding:3px 10px; border-radius:20px;
}
.live-dot { width:5px; height:5px; background:var(--red); border-radius:50%; box-shadow:0 0 6px var(--red); animation:pulse 1.8s ease-in-out infinite; }

.status-panel-data { display:flex; flex-direction:column; gap:8px; }
.status-panel-row  { display:flex; gap:8px; }

.status-item {
  flex:1 1 0; min-width:0;
  background: var(--bg-card);
  border-radius: 16px; padding: 10px 8px;
  display:flex; flex-direction:column; align-items:center; gap:3px;
  box-shadow: var(--neu-out);
  border: 1px solid rgba(255,255,255,0.55);
  transition: transform .2s cubic-bezier(0.34,1.2,0.64,1);
}
.status-item:hover { transform:translateY(-3px); }
.status-item .label { font-size:0.63rem; font-weight:600; color:var(--t3); white-space:nowrap; letter-spacing:0.04em; }
.status-item .value { font-size:1rem; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:100%; text-align:center; letter-spacing:-0.03em; }
.status-item.deficit .value { color:var(--red); }
.status-item.divisa  .value { color:var(--green); }
.status-panel-container.admin-mode { display:none; }

#statusPanel, .news-ticker-container {
  transition: opacity .35s ease, transform .35s ease, max-height .4s cubic-bezier(0.4,0,0.2,1);
  max-height: 300px; overflow:hidden;
}
body.chat-active #statusPanel, body.chat-active .news-ticker-container {
  opacity:0; max-height:0; transform:translateY(-8px); pointer-events:none;
}
body.tabs-ready #statusPanel, body.tabs-ready .news-ticker-container {
  transition: opacity .22s ease, transform .22s ease, max-height .25s ease;
}
body.no-panel-anim #statusPanel, body.no-panel-anim .news-ticker-container {
  transition: none !important;
}
body.admin-mode .news-ticker-container { display:none; }
#lastEditedTime { display:none !important; }

/* TICKER */
.news-ticker-container {
  width:100%; background:linear-gradient(90deg,#c82020,#a01818);
  color:#fff; overflow:hidden; padding:6px 0;
  display:flex; align-items:center; position:sticky; top:var(--head-h); z-index:200;
}
.news-ticker-fixed-label {
  font-size:0.65rem; font-weight:900; letter-spacing:0.14em; text-transform:uppercase;
  padding:0 10px; background:rgba(0,0,0,0.20); border-radius:4px;
  margin-left:10px; flex-shrink:0; line-height:1.9;
}
.news-ticker-wrap { overflow:hidden; flex-grow:1; }
.news-ticker-content {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-block;
  /* GPU layer — elimina jank y saltos */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: ticker-scroll var(--ticker-dur, 30s) linear infinite;
}
.news-item { padding:0 16px; display:inline-block; }
.news-item small { font-size:0.67rem; color:rgba(255,255,255,0.55); margin-left:4px; }
.news-item a { color:#fff9c4; text-decoration:underline; font-weight:700; }

/* ── BOTÓN COMPARTIR (junto a la campanita) ──────────────── */
.sp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  background: #e8e8ed;
  color: var(--t2);
  box-shadow: 3px 3px 8px rgba(0,0,0,0.12), -2px -2px 6px rgba(255,255,255,0.82);
  flex-shrink: 0;
  margin-right: 6px;
  transition: color .18s ease, transform .18s cubic-bezier(0.34,1.4,0.64,1);
}
.sp-share-btn:hover  { color: var(--blue); transform: scale(1.08); }
.sp-share-btn:active {
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.13), inset -2px -2px 5px rgba(255,255,255,0.72);
  transform: scale(0.95);
}

/* TAB VIEWS */
.tab-view { display:none; }
.tab-view.active { display:block; animation:fadeUp .32s cubic-bezier(0.34,1.2,0.64,1); }
.tab-view.active.no-anim { animation:none; }

/* TAB 1 - CALENDARIO */
#view-calendario { padding:20px 16px calc(var(--wrap-h) + 36px); max-width:900px; margin:0 auto; }

.login-controls {
  background:var(--bg-card); border:1px solid rgba(255,255,255,0.55);
  box-shadow:var(--neu-out); border-radius:var(--r2); padding:18px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  margin-bottom:20px; animation:fadeUp 0.4s ease;
}
.login-message { font-size:0.84rem; color:var(--t3); text-align:center; font-weight:500; }
#adminControlsPanel { display:none; flex-wrap:wrap; justify-content:center; gap:8px; width:100%; }

.container { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (min-width:480px) { .container { grid-template-columns:repeat(3,1fr); } }
@media (min-width:768px) { .container { grid-template-columns:repeat(4,1fr); gap:18px; } }

/* CARDS NEUMORFICAS */
.card {
  background:var(--bg-card); border:1px solid rgba(255,255,255,0.60);
  border-radius:var(--r2); padding:20px 14px;
  text-align:center; cursor:pointer; position:relative; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  min-height:130px; box-shadow:var(--neu-out);
  transition:transform .28s cubic-bezier(0.34,1.2,0.64,1), box-shadow .28s ease;
  animation:cardIn .4s cubic-bezier(0.34,1.2,0.64,1) both;
}
.card::before {
  content:''; position:absolute; top:0; left:18px; right:18px; height:2px;
  background:rgba(255,255,255,0.90); border-radius:0 0 2px 2px;
}
.card:hover { transform:translateY(-5px); box-shadow:8px 8px 20px rgba(0,0,0,0.16),-5px -5px 14px rgba(255,255,255,0.90); }
.card:active { transform:translateY(-1px); box-shadow:var(--neu-in); }

.card:nth-child(1){animation-delay:.04s} .card:nth-child(2){animation-delay:.08s}
.card:nth-child(3){animation-delay:.12s} .card:nth-child(4){animation-delay:.16s}
.card:nth-child(5){animation-delay:.20s} .card:nth-child(6){animation-delay:.24s}
.card:nth-child(7){animation-delay:.28s} .card:nth-child(8){animation-delay:.32s}
.card:nth-child(n+9){animation-delay:.36s}

.card span.emoji { font-size:2.2rem; line-height:1; display:block; transition:transform .3s cubic-bezier(0.34,1.56,0.64,1); filter:drop-shadow(2px 3px 6px rgba(0,0,0,0.12)); }
.card:hover span.emoji { transform:scale(1.18) translateY(-3px); }
.card h3 { font-size:0.72rem; font-weight:800; color:var(--t1); text-transform:uppercase; letter-spacing:0.06em; line-height:1.3; }
.card-content p { font-size:0.82rem; color:var(--t2); line-height:1.6; white-space:pre-wrap; text-align:center; }

.card-time-panel {
  position:absolute; bottom:0; left:0; right:0;
  background:rgba(232,232,237,0.96); backdrop-filter:blur(12px);
  padding:8px; font-size:0.7rem; font-weight:600; color:var(--t3);
  transform:translateY(100%); transition:transform .28s cubic-bezier(0.34,1.2,0.64,1);
  border-top:1px solid rgba(255,255,255,0.5); border-radius:0 0 var(--r2) var(--r2);
}
.card.show-time-panel .card-time-panel { transform:translateY(0); }

.card-label {
  position:absolute; top:10px; right:10px;
  font-size:0.58rem; font-weight:800; padding:3px 9px; border-radius:20px;
  letter-spacing:.08em; text-transform:uppercase; z-index:5; display:none;
  box-shadow:var(--neu-out-sm);
}
.card-recent .card-label { display:block; color:var(--red); background:var(--bg-card); }

.card .editable-title, .card .editable-emoji {
  background:var(--bg); border:1px solid rgba(0,0,0,0.08); color:var(--t1);
  box-shadow:var(--neu-in); border-radius:10px; width:100%; padding:7px 12px;
  font-family:var(--f); font-size:0.9rem; margin-bottom:4px;
}
.card .editable-content {
  background:var(--bg); border:1px solid rgba(0,0,0,0.08); color:var(--t1);
  box-shadow:var(--neu-in); border-radius:10px; width:100%; padding:12px;
  font-family:var(--f); font-size:0.9rem; min-height:150px; resize:vertical; margin-bottom:4px;
}

/* BOTONES */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 24px; border:none; border-radius:50px;
  font-family:var(--f); font-weight:700; font-size:0.88rem; cursor:pointer; color:#fff;
  transition:transform .2s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s ease;
}
.btn svg { width:15px; height:15px; }
.btn:hover { transform:translateY(-2px); }
.btn:active { transform:scale(.97); }
.btn-primary   { background:var(--violet); box-shadow:4px 4px 12px rgba(80,64,184,0.35),-2px -2px 8px rgba(255,255,255,0.70); }
.btn-primary:hover { box-shadow:6px 6px 18px rgba(80,64,184,0.42),-3px -3px 10px rgba(255,255,255,0.75); }
.btn-success   { background:var(--green); box-shadow:4px 4px 12px rgba(48,184,85,0.35),-2px -2px 8px rgba(255,255,255,0.70); }
.btn-success:hover { box-shadow:6px 6px 18px rgba(48,184,85,0.42),-3px -3px 10px rgba(255,255,255,0.75); }
.btn-danger    { background:var(--red); box-shadow:4px 4px 12px rgba(224,48,48,0.35),-2px -2px 8px rgba(255,255,255,0.70); }
.btn-secondary { background:var(--bg-card); color:var(--t1); box-shadow:var(--neu-btn); }
.btn-secondary:hover { box-shadow:6px 6px 16px rgba(0,0,0,0.16),-4px -4px 12px rgba(255,255,255,0.90); }
.btn-sm { padding:8px 16px; font-size:0.82rem; }
.btn-sm svg { width:13px; height:13px; }

/* TAB 2 - NOTICIAS */
#view-noticias { padding:20px 16px calc(var(--wrap-h) + 36px); max-width:900px; margin:0 auto; }
.tab-top-bar { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.tab-top-actions { display:flex; align-items:center; gap:10px; }

.glass-delete-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; background:var(--bg-card);
  border:1px solid rgba(255,255,255,0.55); border-radius:50%;
  color:var(--red); cursor:pointer; flex-shrink:0;
  box-shadow:var(--neu-out-sm);
  transition:transform .2s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s;
}
.glass-delete-btn svg { width:15px; height:15px; stroke:var(--red); }
.glass-delete-btn:hover  { transform:translateY(-2px); box-shadow:5px 5px 12px rgba(0,0,0,0.15),-3px -3px 8px rgba(255,255,255,0.90); }
.glass-delete-btn:active { box-shadow:var(--neu-btn-press); }
.tab-section-title { font-family:var(--f-serif); font-size:1.7rem; font-weight:400; color:var(--t1); letter-spacing:-0.02em; font-style:italic; }

.glass-add-btn {
  display:inline-flex; align-items:center; gap:8px; padding:10px 18px;
  background:var(--bg-card); border:1px solid rgba(255,255,255,0.55); border-radius:50px;
  color:var(--t1); font-family:var(--f); font-size:0.84rem; font-weight:700; cursor:pointer;
  box-shadow:var(--neu-btn); transition:transform .2s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s;
}
.glass-add-btn:hover  { transform:translateY(-2px); box-shadow:6px 6px 16px rgba(0,0,0,0.15),-4px -4px 10px rgba(255,255,255,0.90); }
.glass-add-btn:active { box-shadow:var(--neu-btn-press); }
.glass-add-icon { width:22px; height:22px; background:var(--blue); border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:2px 2px 6px rgba(32,96,200,0.40); }
.glass-add-icon svg { width:11px; height:11px; stroke:#fff; }

.noticias-admin-btns { display:none !important; }
#noticias-list { display:flex; flex-direction:column; gap:12px; }

.noticia-card {
  background:var(--bg-card); border:1px solid rgba(255,255,255,0.55);
  border-radius:var(--r2); padding:18px 20px;
  box-shadow:var(--neu-out); animation:fadeUp .32s ease;
  transition:transform .22s cubic-bezier(0.34,1.2,0.64,1), box-shadow .22s;
  position:relative; overflow:hidden;
}
.noticia-card::before { content:''; position:absolute; left:0; top:12px; bottom:12px; width:3px; background:var(--red); border-radius:0 2px 2px 0; opacity:0.7; }
.noticia-card:hover { transform:translateY(-3px); box-shadow:8px 8px 20px rgba(0,0,0,0.14),-4px -4px 12px rgba(255,255,255,0.90); }
.noticia-card .noticia-texto { font-size:0.92rem; color:var(--t1); line-height:1.65; word-break:break-word; padding-left:8px; }
.noticia-card .noticia-texto a { color:var(--blue); text-decoration:none; font-weight:700; }
.noticia-card .noticia-texto a:hover { text-decoration:underline; }
.noticia-card .noticia-meta { margin-top:10px; font-size:0.72rem; color:var(--t3); display:flex; align-items:center; gap:6px; padding-left:8px; }
.noticia-card .noticia-meta::before { content:''; width:4px; height:4px; border-radius:50%; background:var(--red); flex-shrink:0; opacity:0.6; }

.noticias-empty {
  text-align:center; color:var(--t3); padding:52px 20px; font-size:0.86rem;
  background:var(--bg-card); border:1px solid rgba(255,255,255,0.55);
  border-radius:var(--r2); box-shadow:var(--neu-out);
}

/* MODAL */
.modal-overlay {
  position:fixed; inset:0; z-index:900;
  background:rgba(0,0,0,0.18); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  display:flex; align-items:flex-end; justify-content:center;
  padding:0 0 calc(var(--tab-h) + 40px); animation:overlayIn .22s ease;
}
.modal-glass {
  width:100%; max-width:600px; background:var(--bg);
  border:1px solid rgba(255,255,255,0.70); border-bottom:none;
  border-radius:var(--r2) var(--r2) 0 0; padding:22px 22px 28px;
  box-shadow:-4px -8px 40px rgba(0,0,0,0.12),0 0 0 1px rgba(255,255,255,0.6);
  animation:sheetUp .32s cubic-bezier(0.34,1.3,0.64,1);
}
.modal-glass::before { content:''; display:block; width:38px; height:4px; background:rgba(0,0,0,0.12); border-radius:2px; margin:0 auto 20px; box-shadow:0 1px 0 rgba(255,255,255,0.8); }
.modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.modal-title  { font-size:1.08rem; font-weight:800; color:var(--t1); }
.modal-close  {
  width:30px; height:30px; border-radius:50%; background:var(--bg-card);
  border:1px solid rgba(255,255,255,0.55); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--neu-out-sm); transition:box-shadow .15s, transform .15s;
}
.modal-close:hover { transform:scale(1.1); }
.modal-close:active { box-shadow:var(--neu-in); }
.modal-close svg  { width:13px; height:13px; stroke:var(--t2); }
.modal-subtitle { font-size:0.82rem; color:var(--t3); margin-bottom:16px; line-height:1.55; }
.modal-textarea {
  width:100%; min-height:92px; resize:none;
  background:var(--bg-card); border:1px solid rgba(255,255,255,0.55);
  box-shadow:var(--neu-in); border-radius:var(--r);
  color:var(--t1); font-family:var(--f); font-size:0.95rem; padding:14px 16px; line-height:1.55;
  transition:box-shadow .2s;
}
.modal-textarea:focus { outline:none; box-shadow:inset 4px 4px 10px rgba(0,0,0,0.13),inset -3px -3px 8px rgba(255,255,255,0.70),0 0 0 3px rgba(32,96,200,0.12); }
.modal-meta { display:flex; justify-content:flex-end; margin:7px 0 18px; }
.modal-char { font-size:0.72rem; color:var(--t4); }
.modal-submit-btn {
  width:100%; padding:15px; background:var(--blue); border:none; border-radius:50px;
  color:#fff; font-family:var(--f); font-size:1rem; font-weight:700; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:4px 4px 16px rgba(32,96,200,0.40),-2px -2px 8px rgba(255,255,255,0.60);
  transition:opacity .15s, transform .2s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s;
}
.modal-submit-btn svg { width:16px; height:16px; }
.modal-submit-btn:hover { opacity:.92; transform:translateY(-2px); box-shadow:6px 8px 22px rgba(32,96,200,0.46),-2px -2px 8px rgba(255,255,255,0.65); }
.modal-submit-btn:active { transform:scale(.97); }
.modal-submit-btn:disabled { opacity:.45; cursor:not-allowed; }

/* TAB 3 - CHAT */
.chat-view { display:none; }
.chat-view.active {
  display:block; position:fixed;
  top:var(--head-h); left:0; right:0; bottom:var(--wrap-h);
  overflow:hidden; padding:14px 16px 0;
  max-width:900px; margin:0 auto;
  padding-bottom:env(safe-area-inset-bottom,0px);
}
.chat-view .tab-section-title { margin-bottom:12px; }

.comments-display-wrap {
  position:absolute; top:64px; left:16px; right:16px; bottom:116px;
  overflow-y:auto; background:var(--bg-card); border:1px solid rgba(255,255,255,0.55);
  border-radius:var(--r2); padding:14px; box-shadow:var(--neu-in);
}
.loading-msg { text-align:center; color:var(--t4); padding:28px; font-size:0.88rem; }

.comment-item { margin-bottom:14px; animation:fadeUp .3s ease; }
.comment-main-row { display:flex; gap:10px; align-items:flex-start; }
.comment-avatar {
  width:34px; height:34px; border-radius:50%;
  font-weight:800; font-size:0.82rem; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; color:#fff; text-transform:uppercase; user-select:none;
  box-shadow:3px 3px 8px rgba(0,0,0,0.18),-1px -1px 4px rgba(255,255,255,0.60);
}
.comment-bubble {
  flex-grow:1; background:var(--bg); border:1px solid rgba(255,255,255,0.55);
  padding:10px 14px; border-radius:4px var(--r) var(--r) var(--r);
  max-width:100%; box-shadow:var(--neu-out-sm);
}
.comment-header  { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.comment-name    { color:var(--t1); font-weight:800; font-size:.8rem; }
.comment-date    { font-size:.68rem; color:var(--t4); }
.comment-content { color:var(--t2); font-size:.82rem; line-height:1.55; word-wrap:break-word; }
.comment-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:7px; padding-top:7px; border-top:1px solid rgba(0,0,0,0.05); }
.like-button { background:transparent; border:none; cursor:pointer; font-size:.9rem; color:var(--t4); transition:color .15s,transform .2s cubic-bezier(0.34,1.56,0.64,1); display:flex; align-items:center; gap:4px; padding:0; }
.like-button:hover { color:var(--red); transform:scale(1.18); }
.like-button.liked { color:var(--red); }
.like-count { font-size:.8rem; color:var(--t3); font-weight:700; }
.reply-form-toggle { font-size:.78rem; color:var(--blue); font-weight:700; cursor:pointer; text-transform:uppercase; padding:2px 10px; border-radius:50px; letter-spacing:.04em; background:var(--bg-card); box-shadow:var(--neu-out-sm); transition:box-shadow .15s; }
.reply-form-toggle:hover { box-shadow:4px 4px 10px rgba(0,0,0,0.13),-2px -2px 7px rgba(255,255,255,0.85); }
.replies-container { margin-top:8px; padding-left:10px; margin-left:18px; border-left:2px solid rgba(80,64,184,0.12); width:calc(100% - 18px); }
.comment-item.reply-style { margin-bottom:8px; }
.comment-item.reply-style .comment-avatar { width:28px; height:28px; font-size:.76rem; }
.comment-item.reply-style .comment-bubble { padding:8px 12px; }
.comment-item.reply-style .comment-content { font-size:.8rem; }
.reply-form { display:none; margin-top:8px; background:var(--bg-card); border:1px solid rgba(255,255,255,0.55); border-radius:var(--r); padding:14px; margin-left:44px; width:calc(100% - 44px); box-shadow:var(--neu-in); }
.reply-form input, .reply-form textarea { width:100%; padding:9px 14px; margin-bottom:8px; border:1px solid rgba(255,255,255,0.55); border-radius:50px; background:var(--bg); font-family:var(--f); font-size:.82rem; color:var(--t1); box-shadow:var(--neu-in); transition:box-shadow .2s; }
.reply-form input:focus, .reply-form textarea:focus { outline:none; box-shadow:inset 3px 3px 8px rgba(0,0,0,0.12),inset -2px -2px 6px rgba(255,255,255,0.70),0 0 0 3px rgba(80,64,184,0.10); }

/* CHAT COMPOSER */
.chat-composer { position:absolute; bottom:22px; left:16px; right:16px; }
.chat-composer-inner { background:var(--bg-card); border:1px solid rgba(255,255,255,0.60); border-radius:var(--r2); padding:14px 16px; display:flex; flex-direction:column; gap:10px; box-shadow:var(--neu-out); }
.chat-name-input { background:var(--bg); border:1px solid rgba(255,255,255,0.55); box-shadow:var(--neu-in); border-radius:50px; color:var(--t1); font-family:var(--f); font-size:0.85rem; padding:9px 18px; width:100%; transition:box-shadow .2s; }
.chat-name-input:focus { outline:none; box-shadow:inset 3px 3px 8px rgba(0,0,0,0.12),inset -2px -2px 6px rgba(255,255,255,0.70),0 0 0 3px rgba(80,64,184,0.10); }
.chat-msg-row { display:flex; gap:10px; align-items:center; }
.chat-msg-input { flex:1; background:var(--bg); border:1px solid rgba(255,255,255,0.55); box-shadow:var(--neu-in); border-radius:50px; color:var(--t1); font-family:var(--f); font-size:0.9rem; padding:9px 20px; transition:box-shadow .2s; }
.chat-msg-input:focus { outline:none; box-shadow:inset 3px 3px 8px rgba(0,0,0,0.12),inset -2px -2px 6px rgba(255,255,255,0.70),0 0 0 3px rgba(32,96,200,0.10); }
.chat-send-btn { width:40px; height:40px; flex-shrink:0; background:var(--blue); border:none; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:3px 3px 10px rgba(32,96,200,0.40),-1px -1px 5px rgba(255,255,255,0.60); transition:opacity .15s,transform .2s cubic-bezier(0.34,1.56,0.64,1),box-shadow .2s; }
.chat-send-btn svg { width:15px; height:15px; stroke:#fff; }
.chat-send-btn:hover { opacity:.92; transform:scale(1.08); box-shadow:5px 5px 16px rgba(32,96,200,0.46),-2px -2px 7px rgba(255,255,255,0.65); }
.chat-send-btn:active { transform:scale(.92); }

/* BARRA INFERIOR */
.tab-bar-wrap { position:fixed; bottom:0; left:0; right:0; z-index:500; background:var(--bg); border-top:1px solid rgba(255,255,255,0.60); box-shadow:0 -4px 20px rgba(0,0,0,0.09),0 -1px 0 rgba(255,255,255,0.70); }
.tab-bar { position:static; height:var(--tab-h); display:flex; align-items:center; justify-content:center; gap:6px; padding:8px 20px 4px; max-width:540px; margin:0 auto; }
.tab-bar-footer { text-align:center; padding:3px 0 calc(5px + env(safe-area-inset-bottom,0px)); border-top:1px solid rgba(0,0,0,0.05); font-size:0.67rem; color:var(--t4); }
.tab-bar-footer a { color:#4a90d9; text-decoration:none; font-weight:700; transition: color .2s, text-decoration .2s; }
.tab-bar-footer a:hover { color:#2b6cb0; text-decoration:underline; }

.tab-btn { flex:1; max-width:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; background:var(--bg-card); border:1px solid rgba(255,255,255,0.55); border-radius:18px; cursor:pointer; color:var(--t4); font-family:var(--f); box-shadow:var(--neu-out-sm); transition:color .2s,box-shadow .2s,transform .2s cubic-bezier(0.34,1.56,0.64,1); padding:8px 6px; position:relative; }
.tab-btn:hover  { color:var(--t2); box-shadow:5px 5px 12px rgba(0,0,0,0.14),-3px -3px 8px rgba(255,255,255,0.90); }
.tab-btn:active { box-shadow:var(--neu-btn-press); transform:scale(.93); }
.tab-label { font-size:0.63rem; font-weight:700; letter-spacing:0.02em; }

.tab-btn.active { color:var(--blue); box-shadow:var(--neu-in); }
.tab-btn:nth-child(2).active { color:var(--red); }
.tab-btn:nth-child(3).active { color:var(--violet); }
.tab-btn.active::after { content:''; position:absolute; bottom:4px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:currentColor; box-shadow:0 0 6px currentColor; }

/* ICONOS CSS */
.ti { display:block; position:relative; width:26px; height:26px; }
.ti-cal { display:flex; flex-direction:column; width:22px; height:20px; }
.ti-cal-cap { height:6px; background:currentColor; border-radius:3px 3px 0 0; opacity:.9; position:relative; }
.ti-cal-cap::before, .ti-cal-cap::after { content:''; position:absolute; top:-3px; width:3px; height:5px; background:currentColor; border-radius:2px 2px 0 0; }
.ti-cal-cap::before { left:4px; } .ti-cal-cap::after { right:4px; }
.ti-cal-body { flex:1; background:rgba(0,0,0,0.04); border:1.5px solid currentColor; border-top:none; border-radius:0 0 3px 3px; display:grid; grid-template-columns:repeat(3,1fr); gap:2px; padding:2px 3px 2px; }
.ti-cal-row { display:contents; }
.ti-cal-body i, .ti-cal-row i { display:block; width:3px; height:3px; background:currentColor; border-radius:1px; opacity:.55; justify-self:center; align-self:center; }
.ti-cal-row:first-child i:first-child { opacity:1; }

.ti-signal { width:22px; height:20px; display:flex; align-items:flex-end; justify-content:center; position:relative; }
.ti-sig-dot { width:4px; height:4px; background:currentColor; border-radius:50%; position:absolute; bottom:0; left:50%; transform:translateX(-50%); }
.ti-sig-arc { position:absolute; border:1.8px solid currentColor; border-radius:50%; bottom:1px; left:50%; transform:translateX(-50%); border-left-color:transparent; border-right-color:transparent; border-bottom-color:transparent; }
.ti-sig-arc.a1 { width:8px; height:8px; }
.ti-sig-arc.a2 { width:14px; height:14px; opacity:.65; }
.ti-sig-arc.a3 { width:20px; height:20px; opacity:.35; }

.ti-bubble { width:22px; height:20px; position:relative; }
.ti-bub-main { position:absolute; top:0; left:0; right:0; height:16px; background:currentColor; border-radius:10px 10px 10px 3px; opacity:.9; display:flex; align-items:center; justify-content:center; gap:3px; }
.ti-bub-main i { display:block; width:3px; height:3px; background:var(--bg); border-radius:50%; }
.ti-bub-tail { position:absolute; bottom:0; left:2px; width:7px; height:6px; background:currentColor; opacity:.9; clip-path:polygon(0 0,100% 0,0 100%); }

/* RESPONSIVE PC */
@media (min-width:768px) {
  .tab-bar-wrap { max-width:560px; left:50%; right:auto; transform:translateX(-50%); border-radius:var(--r2) var(--r2) 0 0; border:1px solid rgba(255,255,255,0.55); box-shadow:-4px -4px 24px rgba(0,0,0,0.10),4px -4px 24px rgba(0,0,0,0.06); }
  .modal-overlay { align-items:center; padding:0; }
  .modal-glass { border-radius:var(--r2); max-width:460px; border:1px solid rgba(255,255,255,0.65); box-shadow:10px 10px 40px rgba(0,0,0,0.14),-6px -6px 20px rgba(255,255,255,0.80); }
  .modal-glass::before { display:none; }
}
@media (min-width:768px) { @keyframes sheetUp { from { opacity:0; transform:scale(0.94) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } } }

/* UTILITIES */
input::placeholder, textarea::placeholder { color:var(--t4); }
*:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }

/* MODO BORRAR NOTICIAS */
.noticia-card.selectable { cursor:pointer; }
.noticia-card.selectable:active { transform:scale(0.98); }
.noticia-card.selected { background:rgba(224,48,48,0.06); border-color:rgba(224,48,48,0.25); }
.noticia-card.selected::before { background:var(--red); width:4px; opacity:1; }
.noticia-checkbox { position:absolute; top:12px; right:12px; width:24px; height:24px; border-radius:50%; background:var(--bg-card); box-shadow:var(--neu-out-sm); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:bold; color:white; transition:background .15s,box-shadow .15s; flex-shrink:0; }
.noticia-card.selected .noticia-checkbox { background:var(--red); box-shadow:2px 2px 6px rgba(224,48,48,0.40); }
.noticia-card.selectable .noticia-texto { padding-right:38px; }
.noticias-delete-bar { display:flex; gap:10px; margin-top:14px; animation:fadeUp .2s ease; }
.noticias-delete-bar .btn-cancelar { flex:1; padding:12px 0; border:1px solid rgba(255,255,255,0.55); border-radius:var(--r2); background:var(--bg-card); box-shadow:var(--neu-btn); color:var(--t2); font-size:0.88rem; font-weight:600; cursor:pointer; transition:box-shadow .15s; }
.noticias-delete-bar .btn-cancelar:hover { box-shadow:5px 5px 14px rgba(0,0,0,0.13),-3px -3px 9px rgba(255,255,255,0.88); }
.noticias-delete-bar .btn-confirmar { flex:2; padding:12px 0; border:none; border-radius:var(--r2); background:rgba(224,48,48,0.12); box-shadow:var(--neu-out-sm); color:var(--red); font-size:0.88rem; font-weight:700; cursor:not-allowed; transition:background .15s,box-shadow .15s; }
.noticias-delete-bar .btn-confirmar.activo { background:var(--red); color:white; cursor:pointer; box-shadow:4px 4px 12px rgba(224,48,48,0.40),-2px -2px 8px rgba(255,255,255,0.70); }
.noticias-delete-bar .btn-confirmar.activo:hover { box-shadow:6px 6px 18px rgba(224,48,48,0.46); }

/* ============================================================
   SKELETON SCREENS — Pantallas Esqueleto
   ============================================================ */

@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    rgba(0,0,0,0.07) 25%,
    rgba(0,0,0,0.04) 50%,
    rgba(0,0,0,0.07) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 8px;
}

/* --- Tarjetas principales (#contenedor) --- */
.card-skeleton {
  border-radius: var(--r2);
  background: var(--bg-card);
  box-shadow: var(--neu-out);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 130px;
}
.card-skeleton .sk-emoji {
  width: 44px; height: 44px;
  border-radius: 50%;
}
.card-skeleton .sk-title {
  width: 75%; height: 11px;
  border-radius: 6px;
}
.card-skeleton .sk-line {
  width: 90%; height: 9px;
  border-radius: 6px;
}
.card-skeleton .sk-line.short {
  width: 60%;
}

/* --- Panel de estado (statusDataContainer) --- */
.status-skeleton-row {
  display: flex; gap: 8px;
}
.status-item-skeleton {
  flex: 1;
  border-radius: var(--r2);
  background: var(--bg-card);
  box-shadow: var(--neu-out-sm);
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.status-item-skeleton .sk-label {
  width: 55%; height: 8px;
  border-radius: 4px;
}
.status-item-skeleton .sk-value {
  width: 70%; height: 14px;
  border-radius: 5px;
}

/* --- Noticias (noticias-list) --- */
.noticia-skeleton {
  border-radius: var(--r2);
  background: var(--bg-card);
  box-shadow: var(--neu-out);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.noticia-skeleton::before {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: rgba(0,0,0,0.1);
  border-radius: 0 2px 2px 0;
}
.noticia-skeleton .sk-line { width: 100%; height: 10px; border-radius: 5px; }
.noticia-skeleton .sk-line.med { width: 80%; }
.noticia-skeleton .sk-line.short { width: 45%; }

/* --- Comentarios (commentsContainer) --- */
.comment-skeleton {
  display: flex;
  gap: 10px;
  padding: 4px 0;
}
.comment-skeleton .sk-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.comment-skeleton .sk-bubble {
  flex: 1;
  border-radius: var(--r2);
  background: var(--bg-card);
  box-shadow: var(--neu-out-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.comment-skeleton .sk-name { width: 30%; height: 9px; border-radius: 4px; }
.comment-skeleton .sk-text { width: 90%; height: 9px; border-radius: 4px; }
.comment-skeleton .sk-text.short { width: 65%; }
/* ══════════════════════════════════════════════
   VISTA GESTORES — pantalla completa
   ══════════════════════════════════════════════ */

/* Contenedor: empieza BAJO el header fijo, termina SOBRE el tab-bar */
#view-expertos {
  position: fixed;
  top: var(--head-h);
  left: 0; right: 0;
  bottom: var(--wrap-h);
  z-index: 350;
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#view-expertos.active {
  display: flex;
  animation: gestoresIn 0.42s cubic-bezier(0.32, 0.72, 0, 1) both;
}
#view-expertos.active.no-anim {
  animation: none;
  opacity: 1;
  transform: none;
}
@keyframes gestoresIn {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cabecera fija ── */
.g-header {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.g-header-eyebrow {
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 5px;
}
.g-header-title {
  font-family: var(--f-serif);
  font-size: 1.42rem; color: var(--t1);
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 5px;
}
.g-header-sub {
  font-size: 0.72rem; color: var(--t3); line-height: 1.45;
}

/* ── Grid de slots scrollable ── */
.g-grid {
  flex: 1; overflow-y: auto;
  padding: 12px 4px 0;
  display: flex; flex-direction: column; gap: 12px;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

/* ── Tarjeta vacía ── */
.g-slot {
  background: var(--bg-card);
  border: 1.5px dashed rgba(80,64,184,0.20);
  border-radius: 20px;
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.07), -2px -2px 8px rgba(255,255,255,0.78);
  transition: transform 0.13s, box-shadow 0.13s;
  animation: cardIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.g-slot:nth-child(1) { animation-delay: 0.04s; }
.g-slot:nth-child(2) { animation-delay: 0.10s; }
.g-slot:nth-child(3) { animation-delay: 0.16s; }
.g-slot:nth-child(4) { animation-delay: 0.22s; }
.g-slot:active {
  transform: scale(0.975);
  box-shadow: inset 2px 2px 7px rgba(0,0,0,0.10), inset -2px -2px 6px rgba(255,255,255,0.70);
}

/* Avatar placeholder */
.g-slot-avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--bg);
  box-shadow: var(--neu-out-sm);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--violet);
  opacity: 0.55;
}

/* Text */
.g-slot-body { flex: 1; min-width: 0; }
.g-slot-title {
  font-size: 0.85rem; font-weight: 700;
  color: var(--t3); letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.g-slot-sub {
  font-size: 0.65rem; color: var(--violet);
  font-weight: 500;
}

/* Arrow */
.g-slot-arrow {
  color: var(--violet); opacity: 0.4; flex-shrink: 0;
}

/* ── Tab Gestores activo ── */
.tab-btn[data-tab="view-expertos"].active .tab-label { color: var(--violet) !important; }
.tab-btn[data-tab="view-expertos"].active .ti-exp-icon { color: var(--violet) !important; }

/* ── Status panel tweaks ── */
.sp-title-group {
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.sp-title-group .live-container {
  width: fit-content;
  font-size: 0.52rem !important;
  padding: 2px 8px !important;
}
.sp-title-group .live-dot { width: 4px !important; height: 4px !important; }

/* ══════════════════════════════════════
   GESTORES — tarjetas de perfil
   ══════════════════════════════════════ */

/* ── Skeleton ── */
.gc-card-skeleton {
  margin: 56px 12px 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--neu-out);
  flex-shrink: 0;
  position: relative;
}
.gc-card-skeleton .sk-top {
  background: var(--bg);
  box-shadow: inset 0 -3px 10px rgba(0,0,0,0.04);
  padding: 60px 22px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.gc-card-skeleton .sk-avatar-circle {
  position: absolute; top: -44px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 88px; border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: var(--neu-out-sm);
  animation: skeleton-shimmer 1.5s infinite linear;
  background: linear-gradient(90deg, var(--bg) 25%, var(--bg-card) 50%, var(--bg) 75%);
  background-size: 800px 100%;
}
.gc-card-skeleton .sk-name-dk {
  width: 55%; height: 13px; border-radius: 20px;
  animation: skeleton-shimmer 1.5s infinite linear;
  background: linear-gradient(90deg, var(--bg-card) 25%, #d8d8de 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
}
.gc-card-skeleton .sk-rol-dk {
  width: 38%; height: 9px; border-radius: 20px;
  animation: skeleton-shimmer 1.5s infinite linear;
  background: linear-gradient(90deg, var(--bg-card) 25%, #d8d8de 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
}
.gc-card-skeleton .sk-body {
  background: var(--bg-card);
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 9px;
  border-top: 1px solid rgba(255,255,255,0.6);
}
.gc-card-skeleton .sk-line {
  height: 9px; border-radius: 20px;
  animation: skeleton-shimmer 1.5s infinite linear;
  background: linear-gradient(90deg, var(--bg) 25%, #d0d0d8 50%, var(--bg) 75%);
  background-size: 800px 100%;
}
.gc-card-skeleton .sk-btn {
  margin-top: 8px; height: 42px; border-radius: 12px; width: 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  background: linear-gradient(90deg, var(--bg) 25%, #d0d0d8 50%, var(--bg) 75%);
  background-size: 800px 100%;
}

/* ═══════════════════════════════════════════════════
   TARJETA GESTOR — Avatar flotante + banner oscuro
   ═══════════════════════════════════════════════════ */

/* Wrapper externo: overflow visible para que el avatar salga por arriba */
/* ════════════════════════════════════
   TARJETA GESTOR — nuevo diseño
   ════════════════════════════════════ */
.gc-card {
  flex-shrink: 0;
  margin: 0 12px;
  animation: cardIn 0.42s cubic-bezier(0.34,1.56,0.64,1) both;
}
.gc-card-inner {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13), 0 2px 6px rgba(0,0,0,0.07);
}

/* ── Cabecera: foto izq + info der ── */
.gc-card-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 14px;
  background: var(--gc-color, #7b6cf6);
  position: relative;
  overflow: hidden;
}
.gc-card-top::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.gc-card-top::after {
  content: '';
  position: absolute; bottom: -40px; left: 30%;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

/* ── Avatar cuadrado ── */
.gc-avatar-float {
  width: 74px; height: 74px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative; z-index: 1;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.25),
    0 0 0 2px rgba(255,255,255,0.35),
    0 0 0 4px rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.2);
}
.gc-avatar-float img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gc-avatar-float .gc-avatar-icon {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.15);
}

/* ── Info derecha ── */
.gc-card-info {
  flex: 1;
  min-width: 0;
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Badge verificado / ejemplo */
.gc-placeholder-label {
  position: absolute; top: 10px; right: 12px;
  font-size: 0.48rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 2px 8px; border-radius: 20px;
  z-index: 2;
}
.gc-verified-badge {
  position: absolute; top: 10px; right: 12px;
  display: flex; align-items: center; gap: 4px;
  font-size: 0.48rem; font-weight: 700; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 3px 8px 3px 6px; border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.gc-verified-badge svg { flex-shrink: 0; }

/* Nombre */
.gc-name {
  font-family: var(--f-serif);
  font-size: 1.05rem; color: #fff;
  line-height: 1.2; letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gc-name-muted { color: rgba(255,255,255,0.4); font-style: italic; }

/* Especialidad */
.gc-rol {
  font-size: 0.68rem; color: rgba(255,255,255,0.78);
  font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Contacto integrado bajo nombre ── */
.gc-contact-strip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}
.gc-contact-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.62rem; font-weight: 500;
  color: rgba(255,255,255,0.82);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gc-contact-item svg { flex-shrink: 0; opacity: 0.7; }
.gc-contact-item span { overflow: hidden; text-overflow: ellipsis; }

/* ── Cuerpo ── */
.gc-card-body {
  padding: 14px 16px 16px;
  background: var(--bg-card);
}
.gc-desc {
  font-size: 0.64rem;
  font-family: var(--f);
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  transition: none;
}
.gc-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.gc-ver-mas-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 2px auto 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0;
  transition: color 0.2s;
}
.gc-ver-mas-btn::after {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: gc-arrow-pulse 2s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.gc-ver-mas-btn[data-expanded="true"]::after {
  transform: rotate(180deg);
  animation: none;
}
@keyframes gc-arrow-pulse {
  0%, 100% { transform: translateY(0px); opacity: 1; }
  50%       { transform: translateY(3px); opacity: 0.6; }
}
.gc-ver-mas-btn:hover { color: var(--t2); }
.gc-desc-muted { color: var(--t4); font-style: italic; }

/* ── Botón WhatsApp ── */
.gc-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: 16px;
  font-family: var(--f); font-size: 0.88rem; font-weight: 700;
  letter-spacing: -0.01em;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.38), 3px 3px 10px rgba(0,0,0,0.10);
  transition: transform 0.15s, box-shadow 0.15s;
}
.gc-wa-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.48), 3px 3px 10px rgba(0,0,0,0.10); }
.gc-wa-btn:active { transform: scale(0.97); }

.gc-publish-btn {
  background: var(--gc-color, #7b6cf6) !important;
  box-shadow: 0 4px 18px rgba(123,108,246,0.35) !important;
  color: #fff !important;
}

/* ── CTA publicar perfil — fluye dentro del scroll ── */
.gc-add-cta {
  margin: 4px 12px 24px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: var(--neu-out-sm);
  border: 1px dashed rgba(80,64,184,0.2);
}
.gc-add-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px;
  background: var(--bg);
  color: var(--violet);
  font-family: var(--f); font-size: 0.85rem; font-weight: 700;
  border: none; cursor: pointer;
  border-radius: 14px;
  box-shadow: var(--neu-out-sm);
  letter-spacing: -0.01em;
  transition: box-shadow 0.15s, transform 0.15s;
  box-sizing: border-box;
}
.gc-add-cta-btn:active {
  transform: scale(0.97);
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.12), inset -3px -3px 8px rgba(255,255,255,0.75);
}

/* ── FORM OVERLAY ── */
#gc-form-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end; justify-content: center;
  padding: 0;
}
#gc-form-overlay.active { display: flex; }

#gc-form-sheet {
  width: 100%; max-width: 520px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(255,255,255,0.7);
  border-bottom: none;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
  max-height: 94vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sheetUp 0.4s cubic-bezier(0.32,0.72,0,1) both;
}

/* ── Header del sheet ── */
.gc-form-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  position: sticky; top: 0; background: var(--bg); z-index: 2;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.gc-form-title { font-size: 1rem; font-weight: 700; color: var(--t1); letter-spacing: -0.02em; }
.gc-form-sub   { font-size: 0.67rem; color: var(--t3); margin-top: 2px; }
#gc-form-close {
  width: 32px; height: 32px;
  background: var(--bg-card); border: none; cursor: pointer;
  border-radius: 50%; box-shadow: var(--neu-out-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3); flex-shrink: 0;
  transition: box-shadow 0.12s;
}
#gc-form-close:active { box-shadow: var(--neu-in); }

/* ════════════════════════════════
   INDICADOR DE PASOS — 3 números
   ════════════════════════════════ */
.gc-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 18px 24px 4px;
}
.gc-step-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex: 1; position: relative;
}
/* Línea conectora */
.gc-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px; left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: rgba(0,0,0,0.10);
  border-radius: 1px;
  transition: background 0.35s;
}
.gc-step-item.done:not(:last-child)::after {
  background: var(--violet);
}
/* Círculo numerado */
.gc-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  background: var(--bg); box-shadow: var(--neu-out-sm);
  color: var(--t4);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; z-index: 1;
}
.gc-step-item.active .gc-step-dot {
  background: var(--violet); color: #fff;
  box-shadow: 0 3px 12px rgba(80,64,184,0.38);
  border-color: transparent;
  transform: scale(1.12);
}
.gc-step-item.done .gc-step-dot {
  background: var(--violet); color: #fff;
  box-shadow: 0 2px 8px rgba(80,64,184,0.25);
}
.gc-step-item.done .gc-step-dot::after {
  content: '✓';
  font-size: 0.7rem;
}
.gc-step-item.done .gc-step-num { display: none; }
.gc-step-label {
  font-size: 0.58rem; font-weight: 600; color: var(--t4);
  text-align: center; letter-spacing: 0.03em;
  transition: color 0.25s;
  white-space: nowrap;
}
.gc-step-item.active .gc-step-label { color: var(--violet); }
.gc-step-item.done .gc-step-label   { color: var(--t3); }

/* ── Paneles de pasos ── */
#gc-form-inner { padding: 6px 20px 32px; }

.gc-step-panel { display: none; animation: stepIn 0.3s ease both; }
.gc-step-panel.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}
.gc-step-panel.back-anim { animation: stepInBack 0.3s ease both; }
@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: none; }
}

.gc-step-heading {
  font-size: 0.78rem; font-weight: 700; color: var(--t2);
  letter-spacing: -0.01em; margin: 18px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* ── Campos ── */
.gc-field { margin-bottom: 14px; }
.gc-field label {
  font-size: 0.62rem; font-weight: 700; color: var(--t3);
  letter-spacing: 0.07em; text-transform: uppercase;
  display: block; margin-bottom: 6px;
}
.gc-field input, .gc-field textarea, .gc-field select {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--neu-in); border-radius: 12px;
  font-family: var(--f); font-size: 0.86rem; color: var(--t1); outline: none;
  appearance: none; -webkit-appearance: none;
}
.gc-field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.gc-field input:focus, .gc-field textarea:focus, .gc-field select:focus {
  box-shadow: var(--neu-in), 0 0 0 2.5px rgba(80,64,184,0.22);
}
.gc-field-hint { font-size: 0.61rem; color: var(--t4); margin-top: 5px; line-height: 1.4; }
.gc-field-row { display: flex; gap: 10px; }
.gc-field-row .gc-field { flex: 1; }

/* ── Zona de imagen — Paso 3 ── */
.gc-img-zone {
  border: 2px dashed rgba(80,64,184,0.22);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  box-shadow: var(--neu-in);
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.gc-img-zone:hover, .gc-img-zone.drag-over {
  border-color: var(--violet);
  background: rgba(80,64,184,0.04);
}
.gc-img-zone-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(80,64,184,0.09);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--violet);
}
.gc-img-zone-title { font-size: 0.86rem; font-weight: 700; color: var(--t2); margin-bottom: 4px; }
.gc-img-zone-sub   { font-size: 0.65rem; color: var(--t4); }
#gc-f-logo { display: none; }
/* Preview de imagen seleccionada */
.gc-img-preview-wrap {
  display: none;
  flex-direction: column; align-items: center; gap: 10px;
  margin-top: 16px;
}
.gc-img-preview-wrap.show { display: flex; }
#gc-logo-preview {
  width: 82px; height: 82px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(80,64,184,0.3);
  box-shadow: 0 4px 16px rgba(80,64,184,0.18);
}
.gc-img-preview-info {
  font-size: 0.65rem; color: var(--t3); text-align: center; line-height: 1.5;
}
.gc-img-preview-info strong { color: var(--green); }
.gc-img-change-btn {
  font-size: 0.68rem; font-weight: 600; color: var(--violet);
  background: none; border: none; cursor: pointer; padding: 2px 0;
  text-decoration: underline; font-family: var(--f);
}

/* ── Botones de navegación ── */
.gc-nav-btns {
  display: flex; gap: 10px; margin-top: 20px;
}
.gc-btn-back {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: var(--bg); box-shadow: var(--neu-out-sm);
  border: none; cursor: pointer; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--t2);
  transition: box-shadow 0.12s;
}
.gc-btn-back:active { box-shadow: var(--neu-in); }
.gc-btn-next, .gc-btn-submit {
  flex: 1; padding: 14px;
  background: var(--violet); color: #fff;
  font-family: var(--f); font-size: 0.9rem; font-weight: 700;
  border: none; cursor: pointer; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(80,64,184,0.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: -0.01em;
}
.gc-btn-next:active, .gc-btn-submit:active { transform: scale(0.97); }
.gc-btn-next:disabled, .gc-btn-submit:disabled { opacity: 0.55; cursor: default; }

.gc-form-status { font-size: 0.74rem; margin-top: 8px; font-weight: 600; }
.gc-form-status.error { color: var(--red); }

/* ── Pantalla de éxito ── */
.gc-form-success {
  text-align: center; padding: 28px 8px 16px;
}
.gc-success-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: var(--green-bg); color: var(--green);
  border-radius: 50%; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--neu-out-sm);
  animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes successPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.gc-form-success h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--t1); }
.gc-form-success p  { font-size: 0.78rem; color: var(--t3); line-height: 1.6; }

