﻿/* ============================================
   TABLÓN UMA
   Estética Retro Universitaria Clásica + Responsive
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand-blue: #2C5987;
  --brand-blue-dark: #1E4166;
  --brand-blue-light: #4A7BB0;
  --brand-blue-soft: #EBF2F8;

  --brand-green: #5BB75B;
  --brand-green-dark: #449D44;

  --accent: #F59E0B;
  --error: #DC2626;
  --success: #16A34A;

  --bg-page: #E9EFF5;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F7FA;
  --border: #D3DCE6;
  --border-strong: #B8C7D9;

  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --header-height: 52px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: var(--app-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.w-full { width: 100%; }
.relative { position: relative; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-heading, var(--brand-blue-dark));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue-dark);
}
.btn-primary:hover { background: var(--brand-blue-dark); }

.btn-green {
  background: linear-gradient(180deg, #62C462 0%, var(--brand-green) 100%);
  color: #fff;
  border: 1px solid var(--brand-green-dark);
}
.btn-green:hover { background: var(--brand-green-dark); }

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--bg-subtle); }

.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover { background: #B91C1C; }

.btn-xs { padding: 4px 10px; font-size: 0.75rem; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 11px 20px; font-size: 0.95rem; }

.link-btn {
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

/* ---- Forms ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(44, 89, 135, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 70px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.captcha-svg {
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
  user-select: none;
}
.captcha-row .form-input {
  flex: 1;
  min-width: 80px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

/* ---- Avatars ---- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  position: relative;
  user-select: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.avatar-xs { width: 26px; height: 26px; font-size: 0.65rem; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.8rem; border-radius: var(--radius-md); }

.online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand-green);
  border: 2px solid #fff;
}

/* ============================================
   LOGIN / REGISTER PAGE
   ============================================ */
#login-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue) 220px, var(--bg-page) 220px, var(--bg-page) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-wrapper {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 32px;
  align-items: center;
}

.login-hero {
  color: #fff;
  padding: 16px 0;
}

.brand-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-badge-u {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

.brand-hero-row h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.uma-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.brand-hero-row p {
  font-size: 0.95rem;
  opacity: 0.92;
}

.login-features {
  list-style: none;
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.auth-tab {
  padding: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.auth-tab.active {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.auth-error {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--error);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-users-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
}

.login-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  text-align: left;
  font-size: 0.75rem;
}
.login-user-btn:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

/* ============================================
   APP HEADER (CLASSIC BLUE BAR)
   ============================================ */
#app-page {
  display: none;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--brand-blue);
  border-bottom: 1px solid var(--brand-blue-dark);
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hamburger {
  display: none;
  color: #fff;
  font-size: 1.3rem;
  padding: 4px 6px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.brand-mini-u {
  width: 26px;
  height: 26px;
  background: #fff;
  color: var(--brand-blue);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
}

.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.top-nav-item {
  color: rgba(255, 255, 255, 0.88);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.top-nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.top-nav-item.active {
  background: var(--brand-blue-dark);
  color: #fff;
}

.nav-pill-badge {
  background: #EF4444;
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 99px;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  position: relative;
  width: 210px;
}
.header-search input {
  width: 100%;
  padding: 6px 10px 6px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-blue-dark);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}
.header-search .search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
}

.header-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.header-icon-btn:hover { background: rgba(255, 255, 255, 0.14); }

.notification-badge {
  position: absolute;
  top: 1px; right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #EF4444;
  color: #fff;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.83rem;
}
.header-user:hover { background: rgba(255, 255, 255, 0.14); }

.user-dropdown, .notifications-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 1100;
}
.user-dropdown.show, .notifications-panel.show { display: block; }

.user-dropdown {
  min-width: 180px;
  padding: 6px;
}
.user-dropdown button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
}
.user-dropdown button:hover { background: var(--bg-subtle); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.notifications-panel {
  width: 310px;
  max-height: 380px;
  overflow-y: auto;
}
.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.notification-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.82rem;
}
.notification-item.unread { background: var(--brand-blue-soft); }
.notification-item:hover { background: var(--bg-subtle); }
.notif-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   3-COLUMN APP SHELL
   ============================================ */
.app-shell {
  max-width: 1140px;
  margin: 16px auto;
  padding: 0 14px 40px;
  display: grid;
  grid-template-columns: 235px 1fr 265px;
  gap: 16px;
  align-items: start;
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Left Column */
.left-profile-card { padding: 14px; }
.left-profile-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.left-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-heading, var(--brand-blue-dark));
  cursor: pointer;
}
.left-user-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.left-status-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 12px;
}
.status-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.status-input-row {
  display: flex;
  gap: 4px;
}
.status-input-row input {
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  background: var(--bg-card); color: var(--text-primary);
}

.left-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.left-stat-val { font-weight: 800; font-size: 0.95rem; color: var(--brand-blue); }
.left-stat-lbl { font-size: 0.68rem; color: var(--text-muted); }

.side-link {
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.side-link:last-child { border-bottom: none; }
.side-link:hover { background: var(--brand-blue-soft); color: var(--brand-heading, var(--brand-blue-dark)); }

/* Right Column */
.badge-mini {
  background: var(--brand-green);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 99px;
}

.online-list {
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
}
.online-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.online-user-row:hover { background: var(--bg-subtle); }
.online-user-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.online-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.widget-item {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  cursor: pointer;
}
.widget-item:last-child { border-bottom: none; }
.widget-item:hover { background: var(--bg-subtle); }
.widget-item strong { color: var(--brand-heading, var(--brand-blue-dark)); display: block; }
.widget-item span { color: var(--text-muted); font-size: 0.72rem; }

/* ============================================
   CENTER COLUMN SECTIONS
   ============================================ */
.page-section { display: none; }
.page-section.active { display: block; }

.section-banner {
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-banner h2 {
  font-size: 1.1rem;
  color: var(--brand-heading, var(--brand-blue-dark));
}
.section-banner p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Composer */
.status-composer {
  margin-bottom: 14px;
  overflow: hidden;
}
.composer-header {
  padding: 8px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-heading, var(--brand-blue-dark));
}
.post-input-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px 8px;
}
.post-input-row textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-height: 60px;
  resize: vertical;
  outline: none;
}
.post-input-row textarea:focus { border-color: var(--brand-blue); }

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 12px;
}
.composer-hint { font-size: 0.73rem; color: var(--text-muted); }

/* Post Card */
.post-card {
  padding: 14px;
  margin-bottom: 12px;
}
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.post-author-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-user-name {
  font-weight: 700;
  color: var(--brand-heading, var(--brand-blue-dark));
  cursor: pointer;
}
.post-user-name:hover { text-decoration: underline; }
.post-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.post-content {
  font-size: 0.92rem;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.post-actions-bar {
  display: flex;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.post-action-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.post-action-btn:hover { background: var(--bg-subtle); color: var(--brand-blue); }
.post-action-btn.liked { color: #DC2626; }

.post-comments {
  margin-top: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-item {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
}
.comment-author {
  font-weight: 700;
  color: var(--brand-heading, var(--brand-blue-dark));
  cursor: pointer;
  margin-right: 4px;
}
.comment-time { font-size: 0.7rem; color: var(--text-muted); }

.comment-input-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.comment-input-row input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  outline: none;
}

/* Filters */
.events-filter-bar, .rides-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.filter-chip {
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.filter-chip.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-heading, var(--brand-blue-dark));
}

/* Event Card */
.event-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.event-date-block {
  width: 56px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-date-block .day { font-size: 1.25rem; font-weight: 800; color: var(--brand-heading, var(--brand-blue-dark)); line-height: 1; }
.event-date-block .month { font-size: 0.68rem; font-weight: 700; color: var(--brand-blue); text-transform: uppercase; }
.event-info { flex: 1; }
.event-info h3 { font-size: 0.98rem; color: var(--brand-heading, var(--brand-blue-dark)); margin-bottom: 4px; }
.event-desc { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 8px; }
.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.event-actions { display: flex; align-items: center; justify-content: space-between; }

/* Ride Card */
.ride-card {
  padding: 14px;
  margin-bottom: 12px;
}
.ride-top-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ride-route-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-heading, var(--brand-blue-dark));
}
.ride-price-tag {
  background: #FEF3C7;
  color: #92400E;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.82rem;
}
.ride-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.ride-driver-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.ride-notes {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 10px;
}
.ride-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.seats-indicator { display: flex; gap: 4px; align-items: center; }
.seat-dot { width: 10px; height: 10px; border-radius: 50%; }
.seat-dot.occupied { background: #CBD5E1; }
.seat-dot.available { background: var(--brand-green); }

.recurrent-days { display: flex; gap: 3px; margin-top: 4px; }
.day-chip {
  width: 20px; height: 20px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E2E8F0;
  color: var(--text-muted);
}
.day-chip.active { background: var(--brand-blue); color: #fff; }

/* Messages */
.messages-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  grid-template-rows: 100%;
  height: min(600px, calc(100dvh - 96px));
  min-height: 360px;
  overflow: hidden;
}
.messages-list-panel {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  min-height: 0;
  height: 100%;
  background: var(--bg-subtle);
}
.messages-panel-title {
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand-heading, var(--brand-blue-dark));
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.message-contact {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.message-contact:hover, .message-contact.active { background: var(--brand-blue-soft); }
.contact-info { min-width: 0; flex: 1; }
.contact-name { font-weight: 700; font-size: 0.82rem; }
.contact-preview { font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue); }

.messages-chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-card);
}
#chat-active {
  min-height: 0;
  overflow: hidden;
}
.chat-empty {
  margin: auto;
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  flex-shrink: 0;
}
.chat-user-name { font-weight: 700; font-size: 0.9rem; }
.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.chat-bubble.sent {
  align-self: flex-end;
  background: var(--brand-blue);
  color: #fff;
}
.chat-bubble.received {
  align-self: flex-start;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.bubble-time { font-size: 0.66rem; opacity: 0.75; margin-top: 2px; text-align: right; }
.chat-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 6px;
  display: block;
  cursor: pointer;
  margin-top: 4px;
}
.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.chat-input-bar input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-primary); outline: none;
}

/* Emoji Picker */
.emoji-picker-panel {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 10px;
  right: 10px;
  max-width: 340px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1200;
  overflow: hidden;
}
.emoji-picker-panel.show { display: block; }
.emoji-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 4px;
  gap: 2px;
}
.emoji-tabs::-webkit-scrollbar { display: none; }
.emoji-tab-btn {
  padding: 5px 8px;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.emoji-tab-btn.active {
  background: var(--brand-blue);
  color: #fff;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 2px;
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.emoji-btn {
  font-size: 1.25rem;
  padding: 5px;
  border-radius: var(--radius-sm);
  line-height: 1.1;
}
.emoji-btn:hover { background: var(--bg-subtle); }

/* Friends Grid */
.subsection-title {
  font-size: 0.92rem;
  color: var(--brand-heading, var(--brand-blue-dark));
  margin-bottom: 12px;
}
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.friend-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  background: var(--bg-subtle);
}
.friend-name { font-weight: 700; margin-top: 8px; font-size: 0.88rem; color: var(--brand-heading, var(--brand-blue-dark)); }
.friend-town { font-size: 0.75rem; color: var(--text-muted); }
.friend-degree { font-size: 0.73rem; color: var(--text-secondary); margin: 4px 0 10px; }
.friend-actions { display: flex; justify-content: center; gap: 6px; }

/* Profile */
.profile-header-card {
  padding: 16px;
  margin-bottom: 12px;
}
.profile-top-bar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.profile-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-name-row h2 { font-size: 1.25rem; color: var(--brand-heading, var(--brand-blue-dark)); }
.profile-username { font-size: 0.82rem; color: var(--text-muted); }
.profile-status-bubble {
  margin: 6px 0;
  padding: 5px 10px;
  background: var(--brand-blue-soft);
  border-left: 3px solid var(--brand-blue);
  font-size: 0.82rem;
  font-style: italic;
}
.profile-bio { font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 8px; }
.profile-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.profile-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-stats-bar {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.stat-value { font-weight: 800; font-size: 1.05rem; color: var(--brand-heading, var(--brand-blue-dark)); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); }

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

/* Photos ("Quién soy" - Proto-Facebook) */
.photo-upload-box {
  padding: 14px;
  margin-bottom: 12px;
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.photo-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.photo-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  background: var(--bg-subtle);
}
.photo-caption {
  padding: 8px 10px 4px;
  font-size: 0.8rem;
  flex: 1;
}
.photo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 8px;
  border-top: 1px solid var(--border);
}
.profile-tab {
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.profile-tab.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-heading, var(--brand-blue-dark));
}

.profile-blurbs-box {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.profile-blurbs-box:empty { display: none; }
.blurb-tag {
  font-weight: 700;
  color: var(--brand-heading, var(--brand-blue-dark));
  margin-right: 4px;
}

/* 2000s Mode Wrapper (togglable from profile) */
.profile-theme-wrapper.mode-2000s {
  padding: 14px;
  background-color: var(--ms-bg, #E9EFF5);
  border: 2px var(--ms-border-style, solid) var(--ms-border, #2C5987);
  font-family: var(--ms-font, 'Verdana', sans-serif);
  color: var(--ms-text, #1E293B);
}
.profile-theme-wrapper.mode-2000s .card,
.profile-theme-wrapper.mode-2000s .profile-tab,
.profile-theme-wrapper.mode-2000s .avatar-xl {
  border-radius: 0 !important;
  border: 2px var(--ms-border-style, solid) var(--ms-border, #2C5987);
  background: var(--ms-box-bg, #FFFFFF);
  color: var(--ms-text, #1E293B);
}
.profile-theme-wrapper.mode-2000s .profile-tab.active {
  background: var(--ms-header-bg, #2C5987);
  color: #FFFFFF;
}
.profile-theme-wrapper.mode-2000s .profile-status-bubble,
.profile-theme-wrapper.mode-2000s .profile-blurbs-box {
  border-radius: 0;
  border: 1px dashed var(--ms-border, #2C5987);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ms-text, #1E293B);
}
.profile-theme-wrapper.mode-2000s h2,
.profile-theme-wrapper.mode-2000s .stat-value,
.profile-theme-wrapper.mode-2000s .blurb-tag {
  color: var(--ms-header-bg, #2C5987);
}

/* Modal Tabs & Y2K Editor */
.modal-lg { max-width: 540px; }
.modal-tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.modal-tab-btn {
  padding: 10px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
}
.modal-tab-btn.active {
  color: var(--brand-heading, var(--brand-blue-dark));
  background: var(--bg-card);
  border-bottom-color: var(--brand-blue);
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.color-pickers-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.color-mini { height: 34px; padding: 2px; }

/* Live Theme Previewer */
.theme-live-preview {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}
.preview-topbar {
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #FFFFFF;
  background: #2C5987;
}
.preview-body {
  padding: 12px;
}
.preview-card {
  padding: 10px;
  border: 2px solid #2C5987;
  background: #FFFFFF;
}
.preview-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.preview-avatar {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #2C5987;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
}
.preview-btn {
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
  background: #2C5987;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .color-pickers-row { grid-template-columns: repeat(3, 1fr); }
}

/* Days Selector */
.days-selector { display: flex; gap: 6px; }
.days-selector label {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
}
.days-selector label.selected {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-heading, var(--brand-blue-dark));
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-card); color: var(--text-primary);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.modal-close { color: inherit; font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 16px; overflow-y: auto; }
.modal-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Toasts (arriba tipo notificación móvil/chat) */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3000;
  max-width: 340px;
}
@media (max-width: 768px) {
  .toast-container {
    left: 10px;
    right: 10px;
    max-width: none;
    align-items: center;
  }
  .toast { width: 100%; text-align: center; }
}
.toast {
  background: #1E293B;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}
.toast.success { background: var(--brand-green-dark); }
.toast.error { background: var(--error); }
.toast.info { background: var(--brand-blue); }

.empty-state {
  text-align: center;
  padding: 36px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* Mobile Drawer & Nav */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1500;
}
.sidebar-overlay.show { display: block; }

.mobile-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--bg-card);
  z-index: 1600;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-md);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--brand-blue);
  color: #fff;
}
.drawer-nav { display: flex; flex-direction: column; padding: 8px; }
.nav-item {
  text-align: left;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.nav-item.active { background: var(--brand-blue-soft); color: var(--brand-heading, var(--brand-blue-dark)); }

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  position: relative;
}
.mobile-nav-item.active { color: var(--brand-blue); font-weight: 700; }
.mobile-badge {
  position: absolute;
  top: -2px; right: -6px;
  background: #EF4444;
  color: #fff;
  font-size: 0.6rem;
  padding: 0 4px;
  border-radius: 99px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1120px) {
  .header-search { width: 160px; }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 210px 1fr;
  }
  .right-column { display: none; }
  .messages-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  .login-wrapper { grid-template-columns: 1fr; }
  .top-nav, .header-search, .left-column { display: none; }
  .hamburger { display: block; }
  .app-shell {
    grid-template-columns: 1fr;
    padding: 0 10px 72px;
    margin-top: 10px;
  }
  .mobile-nav { display: flex; }
  .messages-layout {
    grid-template-columns: 1fr;
    height: calc(100dvh - 130px);
    min-height: 320px;
  }
  .messages-list-panel:not(.mobile-show) { display: none; }
  .messages-chat-panel.mobile-hidden { display: none; }
  .profile-header-card { padding: 14px; }
  .profile-top-bar {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }
  .profile-top-bar .avatar-xl {
    width: 70px;
    height: 70px;
    font-size: 1.4rem;
  }
  .profile-name-row h2 { font-size: 1.3rem; font-weight: 800; }
  .profile-details, .profile-action-buttons { justify-content: flex-start; }
  .profile-stats-bar {
    justify-content: space-around;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
  }
  .profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab { white-space: nowrap; flex-shrink: 0; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section-banner { flex-direction: column; align-items: flex-start; }
  .event-card { flex-direction: column; }
  .login-users-grid { grid-template-columns: 1fr; }
  .friends-grid { grid-template-columns: 1fr 1fr; }
  .chat-bubble { max-width: 88%; }
}

/* ============================================
   MODO CONDUCTOR (ALTO CONTRASTE / CERO DISTRACCIONES)
   ============================================ */
.driver-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #090D16;
  color: #F8FAFC;
  z-index: 2500;
  padding: 16px;
  overflow-y: auto;
}
.driver-overlay.show { display: flex; justify-content: center; }
.driver-hud {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.driver-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.driver-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.5px;
}
.driver-voice-btn, .driver-exit-btn {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}
.driver-voice-btn { background: #1E293B; color: #E2E8F0; border: 1px solid #334155; }
.driver-exit-btn { background: #DC2626; color: #FFFFFF; }
.driver-card {
  background: #111827;
  border: 2px solid #1E293B;
  border-radius: 12px;
  padding: 16px;
}
.driver-section-lbl {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.driver-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.driver-big-btn {
  padding: 16px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
}
.driver-big-btn.green { background: #16A34A; }
.driver-big-btn.amber { background: #D97706; }
.driver-big-btn.blue { background: #2563EB; }
.driver-passenger-pill {
  display: inline-block;
  background: #1E293B;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 4px 4px 0 0;
}
