/* ============================================================
   ALTEFEM – app.css  (diseño nuevo v2)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0A0D14;
  --surface:     #12161F;
  --card:        #171B26;
  --card-hover:  #1D2230;
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.14);

  --gold:        #4772C3;
  --gold-deep:   #2F4E85;
  --gold-soft:   rgba(71,114,195,0.14);
  --gold-text:   #59A0F9;
  --gradient-brand: linear-gradient(120deg, var(--gold) 0%, var(--gold-text) 100%);
  --shadow-glow: 0 18px 60px -18px rgba(89,160,249,0.55);

  --text:        #f0ece4;
  --text-muted:  #888888;
  --text-dim:    #505050;

  --ok:          #22c55e;
  --warn:        #f59e0b;
  --danger:      #ef4444;
  --info:        #3b82f6;

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --radius-2xl:  28px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.6);

  --header-h:    64px;
  --tabs-h:      52px;
  --font:          'Barlow', system-ui, -apple-system, sans-serif;
  --font-display:  'Anton', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overscroll-behavior-x: none;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.1; font-weight: 400; font-family: var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(1.8rem,4vw,3rem); }
h2 { font-size: clamp(1.3rem,2.5vw,2rem); }
h3 { font-size: clamp(1.1rem,2vw,1.4rem); }
p  { line-height: 1.7; }

/* ── Utilities ─────────────────────────────────────────────── */
.hidden   { display: none !important; }
.text-muted { color: var(--text-muted); }
.small    { font-size: 0.875rem; }
.center   { text-align: center; }
.kicker   { font-size: 0.78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* ── Notificaciones ────────────────────────────────────────── */
#notifications {
  position: fixed; top: 16px; right: 16px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.notice {
  padding: 12px 20px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow); pointer-events: auto;
  animation: noticeIn .2s ease;
}
.notice.success { background: #14532d; color: #86efac; border: 1px solid #166534; }
.notice.error   { background: #450a0a; color: #fca5a5; border: 1px solid #991b1b; }
.notice.info    { background: #1e3a5f; color: #93c5fd; border: 1px solid #1e40af; }
@keyframes noticeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all .15s ease;
  white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--gold    { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn--gold:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }
.btn--ghost   { background: transparent; color: var(--text); border: 1px solid var(--border-mid); }
.btn--ghost:hover:not(:disabled) { background: rgba(255,255,255,.06); }
.btn--danger  { background: var(--danger); color: #fff; }
.btn--danger:hover:not(:disabled) { background: #c53030; }
.btn--outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn--outline:hover:not(:disabled) { background: var(--gold-soft); }
.btn--sm { padding: 7px 14px; font-size: .82rem; }
.btn--full { width: 100%; }
.btn--icon { padding: 8px; border-radius: 50%; width: 36px; height: 36px; }

/* ── Inputs ────────────────────────────────────────────────── */
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-mid); border-radius: var(--radius);
  font-size: .9rem; font-family: var(--font);
  transition: border-color .15s;
  appearance: none;
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--gold);
}
.input::placeholder { color: var(--text-dim); }
textarea.input { resize: vertical; min-height: 90px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; color: var(--text-muted); }
.form-grid { display: grid; gap: 14px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) {
  .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ── Cards genéricas ───────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
}
.badge--ok      { background: rgba(34,197,94,.15);  color: var(--ok); }
.badge--warn    { background: rgba(245,158,11,.15); color: var(--warn); }
.badge--danger  { background: rgba(239,68,68,.15);  color: var(--danger); }
.badge--neutral { background: rgba(255,255,255,.08);color: var(--text-muted); }

/* ── Row actions ───────────────────────────────────────────── */
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── Tabla ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th { background: var(--surface); color: var(--text-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state h3 { margin-bottom: 8px; color: var(--text-dim); }

/* ════════════════════════════════════════════════════════════ */
/* HEADER PÚBLICO                                              */
/* ════════════════════════════════════════════════════════════ */
.pub-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 16px; min-height: 64px; gap: 10px;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--gold);
}
.pub-header__brand { display: flex; align-items: center; gap: 10px; flex: 1 0 auto; min-width: 0; }
.pub-header__shield { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.pub-header__kicker { display: block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); white-space: nowrap; }
.pub-header__title  { font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pub-header__nav    { display: flex; gap: 8px; flex-shrink: 0; margin-left: auto; }
.pub-apply-btn { display: none; }
@media (max-width: 560px) {
  .pub-header { padding: 0 10px; min-height: 56px; gap: 8px; }
  .pub-header__kicker { display: none; }
  .pub-header__title  { font-size: .92rem; }
  .pub-header__shield { width: 36px; height: 36px; }
  .pub-header__nav .btn--ghost { display: none; }
  .pub-header__nav .btn--gold  { padding: 8px 12px; font-size: .82rem; }
  .pub-apply-btn { display: inline-flex !important; }
  .pub-header__nav .btn--login { background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); padding: 6px 10px; font-size: .78rem; }
  .pub-header__nav .pub-staff-btn { display: inline-flex !important; background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); padding: 6px 10px; font-size: .78rem; }
}

/* ════════════════════════════════════════════════════════════ */
/* MAIN PÚBLICO                                                */
/* ════════════════════════════════════════════════════════════ */
.pub-main { max-width: 1280px; margin: 0 auto; padding: 0 16px 60px; width: 100%; }
#publicView { width: 100%; overflow-x: hidden; }

/* Hero */
.pub-hero {
  border-radius: var(--radius-xl);
  margin: 20px 0;
  background: var(--card);
  overflow: hidden;
}
.hero-media-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 380px;
  overflow: hidden;
  position: relative;
}
.hero-media-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-inner {
  padding: 20px 24px 24px;
  background: var(--card);
  border-top: 2px solid var(--gold);
}
.hero-inner .kicker { margin-bottom: 6px; display: block; }
.hero-inner h2 { font-size: clamp(1.2rem,3vw,2rem); margin-bottom: 10px; }
.hero-inner p  { color: var(--text-muted); max-width: 620px; margin-bottom: 16px; font-size: .9rem; }
@media (max-width: 600px) {
  .hero-media-wrap { aspect-ratio: 4/3; max-height: 260px; }
  .hero-inner { padding: 16px; }
}

/* Sections */
.pub-section { margin-bottom: 48px; }
.pub-section--card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; }
.section-head { margin-bottom: 20px; }
.section-head .kicker { display: block; margin-bottom: 4px; }

.pub-side-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 48px; }
@media (max-width: 900px) { .pub-side-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-section { margin-bottom: 28px; }
  .app-main { padding: 72px 12px 60px; }
}

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .15s, border-color .15s;
  cursor: pointer;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--border-mid); }
.news-card__thumb { width: 100%; height: 180px; object-fit: cover; background: var(--surface); }
.news-card__thumb--placeholder { height: 180px; background: linear-gradient(135deg,var(--surface),var(--card-hover)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.news-card__body { padding: 16px; }
.news-card__meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; }
.news-card__title { font-size: 1rem; margin-bottom: 8px; }
.news-card__excerpt { font-size: .875rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Roster */
.roster-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.roster-chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 99px; padding: 6px 12px 6px 6px; }
.roster-chip__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--card-hover); }
.roster-chip__name { font-size: .82rem; font-weight: 500; }
.roster-chip__pos  { font-size: .75rem; color: var(--text-muted); }

/* QR */
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 12px; }
.qr-img  { width: 160px; height: 160px; border-radius: var(--radius); object-fit: contain; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: pointer; position: relative; background: var(--card); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); font-size: 2rem; }

/* Footer */
.pub-footer { border-top: 1px solid var(--border); padding: 32px 24px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); font-size: .875rem; }
.pub-footer__shield { width: 28px; opacity: .5; }

/* ════════════════════════════════════════════════════════════ */
/* APP HEADER                                                  */
/* ════════════════════════════════════════════════════════════ */
.app-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: var(--header-h);
  background: #000;
  border-bottom: 2px solid var(--gold);
}
.app-header__brand  { display: flex; align-items: center; gap: 10px; }
.app-header__shield { width: 48px; height: 48px; object-fit: contain; }
.app-header__kicker { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.app-header__title  { font-size: .95rem; font-weight: 600; }

.app-header__social { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.app-header__actions { display: flex; gap: 8px; }

/* ── Tabs ──────────────────────────────────────────────────── */
.app-tabs {
  position: sticky; top: var(--header-h); z-index: 99;
  display: block; width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 2px solid var(--gold);
}
.tabs-scroll, .tabs {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 2px;
  overflow-x: scroll; -webkit-overflow-scrolling: touch;
  padding: 10px 16px;
  scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.app-tabs::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--text-muted);
  white-space: nowrap; transition: all .15s;
  flex-shrink: 0;
}
.tab-btn:hover  { background: var(--card); color: var(--text); }
.tab-btn.active { background: var(--gold-soft); color: var(--gold); }
.tab-btn .icon  { font-size: 1rem; }

/* ── App main ────────────────────────────────────────────── */
.app-main { max-width: 1280px; margin: 0 auto; padding: 72px 20px 60px; }
.panel-view { display: block; }
.panel-view.hidden { display: none !important; }

/* Panel header */
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.panel-head h2 { margin: 0; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
}
.stat-card h4 { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.stat-card__val { font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-card__note { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* Players table */
.player-row { display: flex; align-items: center; gap: 12px; }
.player-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--card-hover); flex-shrink: 0; }
.player-name { font-weight: 600; font-size: .9rem; }
.player-meta { font-size: .8rem; color: var(--text-muted); }

/* Apto médico estados */
.apto--ok     { color: var(--ok); }
.apto--warn   { color: var(--warn); }
.apto--danger { color: var(--danger); }

/* Payments */
.pay-bar { width: 100%; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.pay-bar__fill { height: 100%; background: var(--gold); border-radius: 99px; }
.pay-bar__fill.full { background: var(--ok); }

/* Calendar */
.cal-event { background: var(--card); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin-bottom: 8px; }
.cal-event__date { font-size: .78rem; color: var(--text-muted); margin-bottom: 2px; }
.cal-event__title { font-weight: 600; }

/* Media panel */
.media-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.media-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.media-card__body { padding: 12px; }
.media-card__title { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.media-card__meta  { font-size: .78rem; color: var(--text-muted); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ═══════════════════════════════════════════════════════════ */
/* MODAL                                                       */
/* ═══════════════════════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}
.modal {
  position: fixed; z-index: 201;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  background: var(--card); border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { opacity:0; transform:translate(-50%,-48%); } to { opacity:1; transform:translate(-50%,-50%); } }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); }
.modal__header h3 { margin: 0; font-size: 1.05rem; }
.modal__close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 4px; border-radius: 4px; }
.modal__close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.modal__body { overflow-y: auto; padding: 22px; flex: 1; }

/* ── Nota completa en modal ─────────────────────────────────── */
.post-full__img { width: 100%; border-radius: var(--radius); margin-bottom: 16px; display: block; }
.post-full__meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.post-full__bajada { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 14px; font-style: italic; }
.post-full__body { line-height: 1.8; white-space: pre-wrap; }

/* ── Avatar placeholder ─────────────────────────────────────── */
.avatar-placeholder { background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 1.2rem; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 99px; }

@media (max-width: 560px) {
  :root { --header-h: 56px; }
  .app-header { padding: 0 10px; height: auto; min-height: 56px; flex-wrap: nowrap; }
  .app-header__kicker { display: none; }
  .app-header__title { font-size: .82rem; }
  .app-header__shield { width: 36px; height: 36px; }
  .app-header__actions .btn--ghost { display: none; }
  .app-header__actions .btn--sm { padding: 6px 10px; font-size: .75rem; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .app-main { padding: 72px 12px 60px; overflow-x: hidden; }
  #appView { overflow-x: hidden; max-width: 100vw; }
  .panel-view { max-width: 100%; overflow-x: hidden; }
}

/* Fix scroll horizontal iOS */
#publicView, #appView, .pub-main, .pub-header, .pub-hero, .pub-section, .pub-side-row {
  max-width: 100vw;
  overflow-x: hidden;
}
.news-grid { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* Fix scroll horizontal panel admin iOS */
.app-header, .app-tabs, .tabs, .app-main, .panel-view,
.stats-grid, .card-grid, .table-wrap, .form-grid {
  max-width: 100vw;
  overflow-x: hidden;
}
.table-wrap { overflow-x: auto; }

/* Fix iOS scroll horizontal definitivo */
html, body { position: relative; overflow-x: hidden; width: 100%; }
#appView { position: relative; overflow-x: hidden; width: 100%; }

body, #appView, #publicView {
  touch-action: pan-y;
}

@media (max-width: 560px) {
  .app-header__title { 
    max-width: 160px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
  }
  .app-header__actions .btn--danger { padding: 6px 10px; font-size: .78rem; }
}

@media (max-width: 560px) {
  .app-header { overflow: hidden; }
  .app-header__kicker, .app-header__title { display: none; }
  .app-header__brand { flex: 0 0 auto; }
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) !important;
  cursor: pointer;
}

/* ── Cuerpo Técnico ─────────────────────────────────────── */
.staff-grid {
  display: flex; flex-direction: column; gap: 12px;
}
.staff-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px; border-radius: var(--radius);
  background: var(--card);
}
.staff-card__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--gold);
}
.staff-card__name {
  font-weight: 700; font-size: .95rem; color: var(--text);
}
.staff-card__bio {
  font-size: .82rem; color: var(--text-muted);
  margin-top: 2px; line-height: 1.4;
}
/* Admin grid */
.staff-admin-grid { display: flex; flex-direction: column; gap: 10px; }
.staff-admin-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
}
.staff-admin-card__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.staff-admin-card__info { flex: 1; min-width: 0; }
.staff-admin-card__actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Roster por categoría ───────────────────────────────── */
.roster-category { margin-bottom: 14px; }
.roster-category__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 6px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.roster-category__grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.roster-chip {
  display: flex; align-items: center; gap: 6px;
}
.roster-chip__name {
  font-size: .85rem; font-weight: 600; color: var(--text);
}

.staff-quote {
  margin-top: 16px; padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem; line-height: 1.6;
  color: var(--text);
}

/* ── Botón Instagram ─────────────────────────────────────── */
.btn-maps {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #EA4335; color: #fff;
  text-decoration: none; transition: opacity .2s; flex-shrink: 0;
}
.btn-maps:hover { opacity: .85; text-decoration: none; }
.btn-instagram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; text-decoration: none; transition: opacity .2s;
  flex-shrink: 0;
}
.btn-instagram:hover { opacity: .85; text-decoration: none; }

.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #25D366; color: #fff;
  text-decoration: none; transition: opacity .2s; flex-shrink: 0;
}
.btn-whatsapp:hover { opacity: .85; text-decoration: none; }

@media (max-width: 640px) {
  .btn-whatsapp, .btn-instagram, .btn-maps { width: 34px; height: 34px; order: 0; }
}

@media (max-width: 600px) {
  .pub-header { padding: 8px 10px 4px; height: auto; min-height: 48px; gap: 6px; }
  .pub-header__brand { padding: 0; }
  .pub-header__nav {
    gap: 6px; padding: 4px 0 10px;
    justify-content: flex-end; align-items: center;
    border-top: none;
  }
  .btn-whatsapp, .btn-instagram, .btn-maps { width: 34px; height: 34px; }
}

  .pub-header::after {
    content: '';
    display: block;
    flex: 0 0 100%;
    height: 10px;
  }
/* === Responsive nav tabs === */
.app-tabs::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 48px; height: 100%;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* Flechas nav */
.tabs-arrow {
  position: absolute; top: 0; bottom: 0; width: 34px;
  border: none; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text-muted);
  transition: opacity .2s;
}
.tabs-arrow--l { left: 0;  background: linear-gradient(to right, var(--surface) 55%, transparent); }
.tabs-arrow--r { right: 0; background: linear-gradient(to left,  var(--surface) 55%, transparent); }
.tabs-arrow:hover { color: var(--gold); }

/* ── Carrusel hero ── */
.hero-carousel { position:relative; width:100%; height:420px; overflow:hidden; background:#111; }
.carousel-track { display:flex; height:100%; transition:transform .5s ease; }
.carousel-slide { flex:0 0 100%; height:100%; }
.carousel-img   { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.carousel-btn {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.45); border:none; color:#fff;
  font-size:2rem; line-height:1; padding:10px 16px; cursor:pointer;
  z-index:2; border-radius:6px; transition:background .2s;
}
.carousel-btn:hover { background:rgba(0,0,0,.75); }
.carousel-btn--prev { left:12px; }
.carousel-btn--next { right:12px; }
.carousel-dots { position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:2; }
.carousel-dot  { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.45); cursor:pointer; transition:background .2s; border:none; padding:0; }
.carousel-dot.active { background:var(--gold); }
@media (max-width:560px) {
  .hero-carousel { height:220px; }
  .carousel-btn  { font-size:1.4rem; padding:7px 11px; }
}
/* ── Admin carrusel ── */
.carrusel-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; margin-top:1rem; }
.carrusel-card { background:var(--surface); border-radius:10px; overflow:hidden; }
.carrusel-card img { width:100%; height:130px; object-fit:cover; display:block; }
.carrusel-card__body { padding:.6rem .75rem; display:flex; flex-direction:column; gap:.4rem; }
.carrusel-card__title { font-size:.85rem; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.carrusel-card__actions { display:flex; gap:.4rem; flex-wrap:wrap; }
