@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #070709;
  --bg-gradient: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.15), transparent 70%),
                 radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
                 radial-gradient(circle at 15% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 45%);
  --panel: rgba(18, 19, 26, 0.65);
  --panel-solid: #0e0f15;
  --panel-hover: rgba(26, 28, 38, 0.85);
  --ink: #f4f4f6;
  --ink-secondary: #d1d5db;
  --muted: #8e95a5;
  --faint: #4b5262;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-glow: rgba(255, 255, 255, 0.28);
  --accent: #f4f4f6;
  --accent-glow: rgba(255, 255, 255, 0.15);
  --status-live: #10b981;
  --status-live-glow: rgba(16, 185, 129, 0.25);
  --status-warn: #f59e0b;
  --status-warn-glow: rgba(245, 158, 11, 0.25);
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.1);
  --danger-border: rgba(244, 63, 94, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-inset: inset 0 1px 1px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

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

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-width: 320px;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Sutil textura geométrica de rejilla estilo Vercel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Estructura Principal
   ========================================================================== */
.maintenance-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 60px) clamp(20px, 8vw, 140px);
  max-width: 1360px;
  margin: 0 auto;
}

/* Header & Marca */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  position: relative;
  z-index: 10;
}

.brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  user-select: none;
}

.brand::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.brand:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Espacio Publicitario Discreto (No intrusivo, antes del footer) */
.ad-banner-bottom {
  width: 100%;
  max-width: 680px;
  margin: 40px auto 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 18px;
  transition: all 0.3s ease;
}

.ad-banner-bottom:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}

.ad-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ad-dismiss-btn {
  background: transparent !important;
  border: none !important;
  color: var(--muted) !important;
  font-size: 0.76rem !important;
  cursor: pointer;
  padding: 3px 7px !important;
  border-radius: 4px;
  line-height: 1;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.ad-dismiss-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.ad-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-slot-container {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Luces de Fondo (Orbs Neumórficos) */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.45;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.orb-one {
  width: 480px;
  height: 480px;
  right: -5%;
  top: 10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  animation: orbFloatOne 16s ease-in-out infinite alternate;
}

.orb-two {
  width: 320px;
  height: 320px;
  left: 10%;
  top: 45%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
  animation: orbFloatTwo 20s ease-in-out infinite alternate;
}

@keyframes orbFloatOne {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes orbFloatTwo {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(0.95); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  max-width: 820px;
  margin: auto 0;
  padding: clamp(60px, 10vh, 120px) 0 clamp(40px, 8vh, 80px);
  position: relative;
  z-index: 2;
}

/* Eyebrow / Tag */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-warn);
  box-shadow: 0 0 10px var(--status-warn);
  position: relative;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--status-warn);
  animation: pulseRipple 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseRipple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Titular Principal */
h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 15%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.75;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 32px;
}

/* Tarjeta de Estado Apple Style */
.status-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.status-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-warn);
  box-shadow: 0 0 12px var(--status-warn);
  position: relative;
}

/* ==========================================================================
   Sección de Anuncios
   ========================================================================== */
.announcements {
  max-width: 1040px;
  width: 100%;
  margin-top: 20px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-top: 4px;
}

.announcement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.announcement {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.announcement::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.announcement:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
  background: var(--panel-hover);
}

.announcement-image {
  display: block;
  width: calc(100% + 48px);
  height: 180px;
  object-fit: cover;
  margin: -24px -24px 20px;
  background: #000;
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement:hover .announcement-image {
  transform: scale(1.03);
}

.announcement time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: inline-block;
}

.announcement h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}

.announcement p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  color: var(--faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  margin-top: auto;
  padding-top: 54px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.footer-links {
  display: inline-flex;
  gap: 16px;
  margin-left: auto;
}

.footer-links a,
.legal-content a,
.back-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.legal-content a:hover,
.back-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   Dock Flotante de Privacidad (Estilo Apple Pill)
   ========================================================================== */
.privacy-notice {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 20px;
  right: 20px;
  margin: 0 auto;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(15, 16, 22, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.privacy-notice p {
  color: var(--ink-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

.privacy-notice p a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-notice div {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Botones Vercel / Apple Style */
button {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #000000;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

button:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

button:active {
  transform: translateY(0);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  box-shadow: none;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
  color: #ffffff;
}

.text-button {
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 0.82rem;
  box-shadow: none;
}

.text-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  padding: 7px 12px;
  font-size: 0.76rem;
  border-radius: var(--radius-sm);
}

.danger:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

/* ==========================================================================
   Formularios e Inputs Neumórficos
   ========================================================================== */
.form-stack {
  display: grid;
  gap: 18px;
}

.form-stack label {
  display: grid;
  gap: 8px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.field-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

input, textarea {
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-inset);
}

input:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(14, 15, 22, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 16px rgba(255, 255, 255, 0.05);
}

input::placeholder, textarea::placeholder {
  color: var(--faint);
}

input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Campo de Contraseña */
.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 6px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.password-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* ==========================================================================
   Panel de Administración
   ========================================================================== */
.admin-body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
}

.admin-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px) 24px 80px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: min(100%, 420px);
  margin: 12vh auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.login-card .eyebrow {
  margin-top: 24px;
  margin-bottom: 12px;
}

.login-card h1, .dashboard-title h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

/* Ocultación estricta de vistas y elementos con atributo hidden */
[hidden],
#dashboard-view[hidden],
.dashboard-layout[hidden],
#login-view[hidden],
#forgot-password-view[hidden],
.tab-pane[hidden] {
  display: none !important;
}

/* ==========================================================================
   Layout del Dashboard con Barra Lateral (Sidebar)
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
  min-height: 80vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 56px);
  max-height: 800px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.sidebar-role-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: none;
}

.sidebar-nav-btn svg {
  color: var(--faint);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-btn:hover svg {
  color: #ffffff;
}

.sidebar-nav-btn.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sidebar-nav-btn.active svg {
  color: #38bdf8;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.user-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 8px var(--status-live);
  flex-shrink: 0;
}

.sidebar-user-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.sidebar-logout-btn:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.35);
  color: var(--danger);
  transform: none;
}

.dashboard-main-area {
  min-width: 0;
  width: 100%;
}

.tab-pane {
  display: block;
  animation: fadeInPane 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane[hidden] {
  display: none !important;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.metric-grid.metric-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.canvas-wrapper.canvas-wrapper-full {
  width: 100%;
  min-height: 240px;
}

.dashboard-title {
  margin: 0 0 28px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease;
}

.panel:hover {
  border-color: var(--line-strong);
}

.panel.wide {
  grid-column: span 2;
}

.panel-label {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.6;
}

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.status-panel h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.status-panel p:not(.panel-label) {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

/* Switch Apple Style */
.switch input {
  display: none;
}

.switch span {
  display: block;
  width: 50px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch span:before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch input:checked + span {
  background: #ffffff;
  border-color: #ffffff;
}

.switch input:checked + span:before {
  transform: translateX(22px);
  background: #000000;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 10px 0 16px;
}

.metric-grid.metric-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.metric-grid div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.metric-grid strong {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Encabezados de Paneles con Badges */
.panel-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.panel-header-flex h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.chart-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-type-pill {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 2px;
}

.chart-pill-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.chart-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.chart-pill-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chart-grid-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.canvas-wrapper {
  position: relative;
  min-height: 280px;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-wrapper canvas {
  max-height: 280px;
  width: 100% !important;
}

.geo-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--status-live);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 8px var(--status-live);
}

/* Barra Segmentada de Distribución Global */
.country-distribution-bar {
  display: flex;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 22px;
  gap: 2px;
}

.dist-segment {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

/* Gráfico de Barras de Países */
.country-chart-container {
  display: grid;
  gap: 14px;
}

.country-row {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.country-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.country-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.country-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.country-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.country-code-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}

.country-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.country-visits {
  color: var(--muted);
}

.country-visits strong {
  color: var(--ink);
}

.country-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 38px;
  text-align: right;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Retention Controls & Auto-delete styling */
.wrap-header {
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.retention-control-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.retention-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.retention-inline-form label {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}

.retention-input-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}

.retention-input-group input {
  width: 44px;
  padding: 2px 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  border: none;
  background: transparent;
  color: #ffffff;
}

.retention-input-group input:focus {
  outline: none;
}

.unit-text {
  font-size: 0.72rem;
  color: var(--muted);
  padding-right: 2px;
}

.compact-btn {
  padding: 4px 10px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
  cursor: pointer;
  height: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

/* Agrupación por Día */
.day-group {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.day-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}

.day-group-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.day-group-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.day-group-items {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.day-group-items .visitor-row-detailed {
  border: none;
  border-radius: 0;
  background: var(--panel);
}

/* Conexiones Detalladas */
.connection-list {
  display: grid;
  gap: 10px;
}

.visitor-row-detailed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.visitor-row-detailed:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
}

.visitor-main-info {
  display: grid;
  gap: 6px;
}

.visitor-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ip-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.country-badge {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.visitor-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.visitor-right-info {
  display: grid;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}

.visitor-visits-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-left: auto;
}

.visitor-right-info time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.content-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-fields label:nth-child(3),
.content-fields label:nth-child(6) {
  grid-column: span 2;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 4px;
}

.list-row strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.list-row p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 4px 0 0;
}

.admin-announcement-image {
  display: block;
  max-width: 140px;
  max-height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-top: 10px;
  border: 1px solid var(--line);
}

.visitor-row time {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
  flex-shrink: 0;
}

.you {
  font-family: 'JetBrains Mono', monospace;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  padding: 3px 8px;
  margin-left: 10px;
}

.empty {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 12px 0;
}

/* ==========================================================================
   Páginas Legales (Políticas y Privacidad)
   ========================================================================== */
.legal-shell {
  min-height: 100vh;
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  width: fit-content;
  backdrop-filter: blur(10px);
}

.back-link:hover {
  color: #ffffff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(-2px);
}

.legal-shell h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-top: 14px;
  margin-bottom: 24px;
}

.legal-content {
  color: var(--ink-secondary);
  line-height: 1.8;
  font-size: 0.98rem;
}

.legal-content h2 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}

.legal-content p {
  margin-bottom: 18px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dashboard-sidebar {
    position: static;
    height: auto;
    max-height: none;
    padding: 16px;
  }
  
  .sidebar-top {
    gap: 16px;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  
  .sidebar-nav-btn {
    width: auto;
    white-space: nowrap;
    padding: 9px 14px;
    flex-shrink: 0;
  }
  
  .metric-grid.metric-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .maintenance-shell {
    padding: 24px 20px 40px;
  }
  
  .hero {
    padding: 50px 0 40px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .panel.wide {
    grid-column: auto;
  }
  
  .content-fields {
    grid-template-columns: 1fr;
  }
  
  .content-fields label:nth-child(3),
  .content-fields label:nth-child(6) {
    grid-column: auto;
  }
  
  .inline-form {
    grid-template-columns: 1fr;
  }
  
  .privacy-notice {
    flex-direction: column;
    align-items: stretch;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 16px;
  }
  
  .privacy-notice div {
    width: 100%;
  }
  
  .privacy-notice button {
    flex: 1;
  }
  
  .login-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ad-banner {
    width: 100%;
  }
  
  .metric-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    margin-left: 0;
    width: 100%;
  }
  
  .list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   FORMULARIO PÚBLICO
   ========================================================================== */
.public-form-section {
  margin: 50px 0;
  animation: fadeInPane 0.4s ease;
}

.public-form-section .lead-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.form-container-card {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.form-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group.span-full {
  grid-column: 1 / -1;
}

.form-field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.req-star {
  color: #f43f5e;
  font-weight: 700;
}

.opt-label {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--faint);
}

.form-field-group input,
.form-field-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-field-group input:focus,
.form-field-group textarea:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-actions-row {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.primary-btn:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.primary-btn:active {
  transform: translateY(0);
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  display: block;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-feedback.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

/* ==========================================================================
   CHATBOT FLOTANTE
   ========================================================================== */
.chatbot-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chatbot-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.6);
}

.chatbot-toggle-btn .icon-open {
  display: block;
}

.chatbot-toggle-btn .icon-close {
  display: none;
}

.chatbot-toggle-btn.is-open .icon-open {
  display: none;
}

.chatbot-toggle-btn.is-open .icon-close {
  display: block;
}

.chatbot-toggle-unread {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #34d399;
  border: 2px solid #070709;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

.chatbot-window {
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 100px);
  background: rgba(13, 15, 20, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
  animation: chatbotPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatbotPop {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

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

.chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  position: relative;
}

.avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #34d399;
  border: 1.5px solid #0d0f14;
  border-radius: 50%;
}

.chatbot-header-info strong {
  font-size: 0.88rem;
  color: #ffffff;
  display: block;
}

.chatbot-status-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.bot-msg .chat-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #e4e4e7;
  border-bottom-left-radius: 4px;
}

.user-msg .chat-bubble {
  background: #2563eb;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-action-wrapper {
  margin-top: 8px;
}

.chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.chatbot-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.chatbot-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.chatbot-input-area input:focus {
  border-color: #38bdf8;
}

.chatbot-input-area button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #2563eb;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chatbot-input-area button:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   ADMIN: SOLICITUDES Y EDITOR DE FORMULARIOS
   ========================================================================== */
.nav-counter-badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  background: #f59e0b;
  color: #000000;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1;
}

.submissions-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-pill-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  border-color: #ffffff;
}

.submissions-cards-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.submission-card {
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  border-left: 4px solid var(--line);
}

.submission-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.submission-card.pending {
  border-left-color: #f59e0b;
}

.submission-card.reviewed {
  border-left-color: #10b981;
}

.submission-card.rejected {
  border-left-color: #f43f5e;
}

.submission-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.submission-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.sub-badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sub-badge-reviewed {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sub-badge-rejected {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.submission-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--muted);
}

.submission-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.submission-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.sub-field-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-field-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sub-field-content {
  font-size: 0.86rem;
  color: var(--ink);
  word-break: break-word;
}

.submission-card-footer {
  display: flex;
  justify-content: flex-end;
}

.submission-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.success-btn {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.success-btn:hover {
  background: rgba(16, 185, 129, 0.25) !important;
}

.warning-btn {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.warning-btn:hover {
  background: rgba(245, 158, 11, 0.25) !important;
}

/* Editor de Campos del Formulario */
.fields-editor-wrapper {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fields-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-fields-list {
  display: grid;
  gap: 8px;
}

.admin-field-editor-row {
  display: grid;
  grid-template-columns: 28px 1.5fr 1fr 1.5fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.field-row-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.field-label-input,
.field-placeholder-input,
.field-type-select {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.8rem;
  font-family: inherit;
}

.field-req-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .admin-field-editor-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .form-fields-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECCIÓN DEFINITORIA: ECOSISTEMA XREPOT
   ========================================================================== */
.ecosystem-section {
  margin: 70px 0 60px;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-main-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 10px 0 16px;
}

.section-main-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ecosystem-lead {
  max-width: 720px;
  color: var(--ink-secondary);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
  margin: 0 auto 28px;
}

.ecosystem-lead strong {
  color: #ffffff;
  display: block;
  font-size: 1.15em;
  margin-bottom: 6px;
}

/* Píldora de Fórmula Xrepot */
.ecosystem-formula-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.formula-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.formula-op {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.formula-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tag-social {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.tag-business {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tag-gaming {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.tag-ai {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.25);
}

/* Grilla de los 4 Pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.pillar-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(45px);
  opacity: 0.18;
}

.card-social .pillar-card-glow { background: #38bdf8; }
.card-business .pillar-card-glow { background: #34d399; }
.card-gaming .pillar-card-glow { background: #a855f7; }
.card-ai .pillar-card-glow { background: #fb7185; }

.pillar-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pillar-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.pillar-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #ffffff;
}

.pillar-summary {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.pillar-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-feature-list li {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  position: relative;
  padding-left: 18px;
}

.pillar-feature-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--ink-secondary);
}

.pillar-feature-list li strong {
  color: #ffffff;
}

.pillar-preview-box {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.mini-profile-demo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-avatar {
  font-size: 1.6rem;
}

.demo-info strong {
  font-size: 0.82rem;
  color: #ffffff;
  display: block;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.demo-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-secondary);
}

.quote-box {
  border-left: 3px solid #34d399;
}

.quote-box p {
  color: #ffffff;
  font-size: 0.86rem;
  margin: 0 0 4px;
}

.quote-box small {
  color: var(--muted);
  font-size: 0.74rem;
}

.ai-sparkle {
  font-size: 1.1rem;
  margin-bottom: 4px;
  display: inline-block;
}

.tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   MASTER CARD: XREPOT ID
   ========================================================================== */
.master-identity-card {
  margin-top: 36px;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.85) 0%, rgba(12, 14, 20, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.master-identity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.identity-badge-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.identity-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.identity-header h2 em {
  font-style: normal;
  color: #38bdf8;
}

.identity-description {
  max-width: 760px;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 36px;
}

/* Diagrama de Árbol Xrepot ID */
.identity-diagram-container {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.diagram-root-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 16px 28px;
  text-align: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diagram-root-card strong {
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.diagram-root-card .id-sub {
  font-size: 0.72rem;
  color: #38bdf8;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.diagram-branches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.branch-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}

.branch-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.branch-social .branch-card { border-top: 3px solid #38bdf8; }
.branch-business .branch-card { border-top: 3px solid #34d399; }
.branch-gaming .branch-card { border-top: 3px solid #c084fc; }
.branch-ai .branch-card { border-top: 3px solid #fb7185; }

.branch-icon {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.branch-card strong {
  font-size: 0.86rem;
  color: #ffffff;
}

.branch-card span {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Nota de Flujo Interconectado */
.ecosystem-flow-note {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.ecosystem-flow-note strong {
  color: #ffffff;
  margin-right: 4px;
}

.flow-spark {
  font-size: 1.2rem;
  color: #f59e0b;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .diagram-branches {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .diagram-branches {
    grid-template-columns: 1fr;
  }
  .ecosystem-formula-pill {
    padding: 8px 12px;
  }
}

/* ==========================================================================
   Editor del Ecosistema en el Admin Dashboard
   ========================================================================== */
.ecosystem-editor-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.editor-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.editor-action-info span {
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.editor-action-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 500;
}

.eco-edit-card {
  position: relative;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition-fast);
}

.eco-edit-card:hover {
  border-color: var(--border-hover);
}

.ecosystem-columns-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.eco-card-tag-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.eco-card-tag-header.tag-social {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.eco-card-tag-header.tag-business {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.eco-card-tag-header.tag-gaming {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.eco-card-tag-header.tag-ai {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.eco-card-tag-header.tag-xrepot-id {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.field-hint {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-secondary);
  margin-left: 6px;
}

.sticky-bottom-bar {
  position: sticky;
  bottom: 20px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(20, 22, 31, 0.95);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.15);
}

.save-hint {
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   DISEÑO RESPONSIVO MÓVIL PROFESIONAL (TELÉFONOS Y PANTALLAS TÁCTILES)
   ========================================================================== */

/* 1. TABLETS Y PANTALLAS MEDIANAS (<= 900px) */
@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .diagram-branches {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecosystem-columns-2 {
    grid-template-columns: 1fr;
  }
  .metric-grid.metric-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. TELÉFONOS ESTÁNDAR Y GRANDES (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .maintenance-shell {
    padding: 20px 16px 80px;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .hero p#lead-text {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .status-pill {
    font-size: 0.76rem;
    padding: 5px 12px;
    margin-bottom: 20px;
  }

  /* Ecosistema Xrepot en móviles */
  .ecosystem-section {
    margin: 40px 0 20px;
  }

  .section-main-title {
    font-size: clamp(1.6rem, 6.8vw, 2.2rem);
    line-height: 1.2;
  }

  .ecosystem-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    padding: 0 4px;
  }

  .ecosystem-formula-pill {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 14px;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .formula-brand {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .formula-op {
    font-size: 0.75rem;
    opacity: 0.5;
  }

  .formula-tag {
    font-size: 0.74rem;
    padding: 3px 8px;
    border-radius: 6px;
  }

  .pillar-card {
    padding: 22px 18px;
  }

  .pillar-card h3 {
    font-size: 1.3rem;
  }

  .pillar-summary {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .pillar-feature-list li {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .mini-profile-demo {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .demo-tags {
    flex-wrap: wrap;
    gap: 6px;
  }

  .demo-tags span {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .tag-preview {
    flex-wrap: wrap;
    gap: 6px;
  }

  .tech-pill {
    font-size: 0.72rem;
    padding: 4px 9px;
  }

  /* Master Identity Card */
  .master-identity-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .identity-header h2 {
    font-size: clamp(1.45rem, 5.8vw, 1.9rem);
    line-height: 1.25;
  }

  .identity-description {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .diagram-root-card {
    padding: 12px 18px;
    width: 100%;
  }

  .diagram-branches {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .branch-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 12px 16px;
  }

  .branch-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
  }

  .ecosystem-flow-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Formulario Público en Teléfono */
  .public-form-section {
    margin: 40px 0 20px;
  }

  .form-container-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .form-fields-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-field-group input,
  .form-field-group textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  .form-actions-row {
    margin-top: 20px;
  }

  .form-actions-row button,
  #btn-submit-form {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  /* Publicidad Discreta */
  .ad-banner-container {
    margin: 24px 0 16px;
    padding: 10px 14px;
    max-width: 100%;
    overflow: hidden;
  }

  /* Anuncios */
  .announcement-list {
    grid-template-columns: 1fr;
  }

  .announcement {
    padding: 18px 16px;
  }

  .announcement-image {
    height: 180px;
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 28px;
  }

  .footer-links {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
  }

  /* Dashboard Admin en móvil */
  .admin-shell {
    padding: 12px 10px;
  }

  .dashboard-sidebar {
    padding: 12px 14px;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 6px;
  }

  .sidebar-nav-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sidebar-bottom {
    margin-top: 12px;
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-user-pill {
    max-width: calc(100% - 80px);
  }

  .metric-grid.metric-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-grid.metric-grid-4 div {
    padding: 14px 12px;
  }

  .canvas-wrapper.canvas-wrapper-full {
    height: 190px !important;
  }

  .chart-panel {
    padding: 16px 14px;
  }

  .chart-header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .submission-card {
    padding: 14px 12px;
  }

  .submission-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .submission-action-buttons {
    flex-wrap: wrap;
    gap: 6px;
  }

  .submission-action-buttons button {
    flex: 1 1 auto;
    min-width: 120px;
    justify-content: center;
  }

  .admin-field-editor-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
  }

  .admin-field-editor-row input,
  .admin-field-editor-row select {
    width: 100%;
    font-size: 16px;
  }

  /* Formulario Editor de Ecosistema */
  .editor-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 12px;
  }

  .editor-action-buttons {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .editor-action-buttons button {
    width: 100%;
    justify-content: center;
  }

  .eco-edit-card {
    padding: 18px 14px;
  }

  .eco-edit-card .content-fields label input,
  .eco-edit-card .content-fields label textarea {
    font-size: 16px;
  }

  .sticky-bottom-bar {
    position: sticky;
    bottom: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  .sticky-bottom-bar button {
    width: 100%;
    justify-content: center;
  }
}

/* 3. TELÉFONOS COMPACTOS (<= 480px) */
@media (max-width: 480px) {
  .maintenance-shell {
    padding: 14px 12px 64px;
  }

  .brand {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .pillar-card {
    padding: 18px 14px;
  }

  .master-identity-card {
    padding: 18px 12px;
  }

  .form-container-card {
    padding: 18px 12px;
  }

  /* Chatbot optimizado en pantallas móviles */
  .chatbot-widget {
    bottom: 14px;
    right: 14px;
    z-index: 9999;
  }

  .chatbot-toggle-btn {
    width: 48px;
    height: 48px;
  }

  .chatbot-window {
    position: fixed;
    top: 8px;
    bottom: 70px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    border-radius: var(--radius-md);
    z-index: 10000;
  }

  .chatbot-chips-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .chat-chip-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .chatbot-input-area input {
    font-size: 16px;
  }

  .metric-grid.metric-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* 4. TELÉFONOS MUY PEQUEÑOS (<= 360px) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .section-main-title {
    font-size: 1.45rem;
  }

  .formula-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .identity-header h2 {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   Estilos para Cambio y Recuperación de Contraseñas (Vieja / Correo)
   ========================================================================== */

.login-subtext {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: -14px;
  margin-bottom: 20px;
}

.login-links-row {
  margin-top: 18px;
  text-align: center;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(56, 189, 248, 0.4);
}

.text-link-btn:hover {
  color: #7dd3fc;
  text-decoration-color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
}

.reset-email-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--muted);
}

.reset-email-badge strong {
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

.dev-code-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: #fde68a;
  animation: pulseDevGlow 2.5s infinite alternate;
}

@keyframes pulseDevGlow {
  0% { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.07); }
  100% { border-color: rgba(245, 158, 11, 0.6); background: rgba(245, 158, 11, 0.14); }
}

.dev-code-alert strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  color: #fbbf24;
  margin-left: 4px;
}

.dev-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Opciones en Dashboard de cuentas */
.password-change-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.pwd-option-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.pwd-option-box:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pwd-option-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pwd-opt-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pwd-option-title strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

.pwd-option-title .field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: 0;
}

.pwd-email-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .password-change-options {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Botón de Registro Condicionado & Navegación de Usuario en Portada
   ========================================================================== */
.user-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-nav-link:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

.nav-register-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  color: #ffffff;
}

.hero-user-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-register-btn {
  padding: 14px 26px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4) !important;
  border: none !important;
}

.hero-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6) !important;
}

.hero-social-btn {
  padding: 14px 22px !important;
  font-size: 0.95rem !important;
}

/* ==========================================================================
   Portal de Registro & Autenticación de Usuario (registro.html)
   ========================================================================== */
.auth-body {
  background: #070709;
  color: #f4f4f7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.auth-header {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.brand-link {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.back-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 60px;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 580px;
  background: rgba(18, 18, 23, 0.8);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 36px 32px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: rgba(139, 92, 246, 0.2);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.auth-badge-row {
  margin-bottom: 12px;
}

.auth-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.auth-badge.success-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.auth-badge.warn-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.auth-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
  margin-bottom: 24px;
}

.grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.security-question-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 12px 0 16px;
}

.sec-box-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.sec-icon {
  font-size: 1.3rem;
}

.sec-box-header strong {
  font-size: 0.88rem;
  color: #ffffff;
}

.code-email-summary {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.code-email-summary strong {
  color: #a78bfa;
}

.code-input {
  font-family: monospace;
  font-size: 1.6rem !important;
  letter-spacing: 8px !important;
  text-align: center !important;
  padding: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
}

.security-challenge-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.challenge-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}

.challenge-question {
  font-size: 1.05rem;
  color: #ffffff;
}

.auth-sub-actions {
  margin-top: 18px;
  text-align: center;
}

/* ==========================================================================
   Plataforma Xrepot Social (social.html)
   ========================================================================== */
.social-body {
  background: #070709;
  color: #f4f4f7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.social-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.social-header-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.social-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-badge-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.social-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.social-link.active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.user-pill-logged {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 6px;
}

.avatar-circle-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
}

.user-pill-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-pill-meta strong {
  font-size: 0.82rem;
  color: #ffffff;
}

.user-pill-meta small {
  font-size: 0.7rem;
  color: var(--muted);
}

.btn-logout-mini {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-logout-mini:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* LAYOUT PRINCIPAL DE 3 COLUMNAS */
.social-main-layout {
  max-width: 1260px;
  margin: 28px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* COLUMNA IZQUIERDA */
.profile-summary-card {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
}

.profile-banner {
  height: 70px;
  background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%);
}

.profile-content {
  padding: 0 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -36px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #121217;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  background: #8b5cf6;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.profile-content h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #ffffff;
}

.profile-handle {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 2px 0 10px;
}

.profile-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  margin-bottom: 16px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
  margin-bottom: 16px;
}

.stat-box strong {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
}

.stat-box span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-actions {
  width: 100%;
}

.sidebar-links-card {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 16px;
}

.sidebar-links-card h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 14px;
  padding-left: 8px;
}

.eco-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eco-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d4d4d8;
  text-decoration: none;
  transition: all 0.2s;
}

.eco-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.eco-nav-item.active {
  background: rgba(139, 92, 246, 0.16);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* FEED COMPOSER */
.feed-composer-card {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.composer-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.composer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: #8b5cf6;
  flex-shrink: 0;
}

.composer-input-wrapper {
  flex: 1;
}

.composer-input-wrapper textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
  padding: 4px 0;
}

.composer-input-wrapper textarea::placeholder {
  color: #71717a;
}

.composer-image-preview {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  max-width: 100%;
}

.composer-image-preview img {
  max-height: 200px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.btn-remove-preview {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 12px;
  cursor: pointer;
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: 14px;
  gap: 12px;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-select-label select {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  outline: none;
}

.btn-attach-image {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #e4e4e7;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-attach-image:hover {
  background: rgba(255, 255, 255, 0.08);
}

.composer-submit-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-counter {
  font-size: 0.76rem;
  color: #71717a;
}

.composer-error {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* BARRA DE FILTROS */
.feed-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.feed-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.feed-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.feed-pill-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
  color: #ffffff;
}

/* TARJETAS DE POSTS */
.post-card {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.post-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.post-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.post-author-meta {
  flex: 1;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-name-row strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.post-handle {
  font-size: 0.8rem;
  color: var(--muted);
}

.post-time {
  font-size: 0.78rem;
  color: #71717a;
}

.post-cat-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 4px;
}

.cat-general { background: rgba(161, 161, 170, 0.12); color: #a1a1aa; }
.cat-gaming { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.cat-business { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.cat-tech { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

.post-body {
  margin-bottom: 16px;
}

.post-text {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #f4f4f5;
  margin: 0 0 12px;
  word-break: break-word;
}

.post-image-box {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
}

.post-image-box img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.post-footer {
  display: flex;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.btn-post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-post-action:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.btn-like.liked {
  color: #f43f5e;
}

.btn-like.liked .action-icon {
  transform: scale(1.15);
}

/* CAJÓN DE COMENTARIOS */
.post-comments-drawer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: #ffffff;
  flex-shrink: 0;
}

.comment-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 14px;
  flex: 1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.comment-meta strong {
  font-size: 0.82rem;
  color: #ffffff;
}

.comment-meta small {
  font-size: 0.72rem;
  color: #71717a;
}

.comment-text {
  font-size: 0.86rem;
  color: #e4e4e7;
  margin: 0;
}

.no-comments-msg {
  font-size: 0.82rem;
  color: #71717a;
  text-align: center;
  padding: 8px 0;
}

.comment-input-form {
  display: flex;
  gap: 8px;
}

.comment-input-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 14px;
  color: #ffffff;
  font-size: 0.86rem;
}

/* COLUMNA DERECHA (WIDGETS) */
.widget-card {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
}

.widget-card h4 {
  font-size: 0.92rem;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 8px;
}

.widget-lead {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.eco-mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.guidelines-list li {
  position: relative;
  padding-left: 14px;
}

.guidelines-list li::before {
  content: '•';
  color: #8b5cf6;
  position: absolute;
  left: 0;
}

/* ==========================================================================
   Panel Admin: Directorio de Usuarios & Exportación Xrepot ID
   ========================================================================== */
.dashboard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.lead-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
  max-width: 650px;
  line-height: 1.5;
}

.users-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.export-btn-csv {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.export-btn-csv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.export-btn-json {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #d4d4d8 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.export-btn-json:hover {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* KPI Cards estilizadas */
.kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(18, 19, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card-glow-purple:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
  transform: translateY(-3px);
}

.kpi-card-glow-blue:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
  transform: translateY(-3px);
}

.kpi-card-glow-green:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
  transform: translateY(-3px);
}

.kpi-icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Controles del Directorio (Buscador, Filtros, Switcher) */
.user-directory-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.user-search-wrapper {
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}

.search-input-box {
  position: relative;
  width: 100%;
}

.search-input-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  pointer-events: none;
}

.search-input-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 36px 10px 38px;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
}

.search-input-box input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.btn-clear-input {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
}

.btn-clear-input:hover {
  color: #ffffff;
}

.directory-actions-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Pastillas de filtro por Rol */
.filter-pills-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.filter-pill {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  color: #ffffff;
}

.filter-pill.active {
  background: rgba(139, 92, 246, 0.25);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pill-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
}

/* Switcher de Vistas */
.view-switcher-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.btn-view-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-view-toggle:hover {
  color: #ffffff;
}

.btn-view-toggle.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.user-results-summary {
  margin-bottom: 18px;
}

.user-count-display {
  font-size: 0.84rem;
  color: var(--muted);
}

.user-count-display strong {
  color: #e2e8f0;
}

/* ==========================================================================
   VISTA 1: TARJETAS DE PERFIL / PASAPORTES DIGITALES (XREPOT ID PASS)
   ========================================================================== */
.user-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.user-id-pass-card {
  background: rgba(18, 20, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.user-id-pass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

.user-id-pass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.12);
}

.user-id-pass-card.card-is-admin {
  border-color: rgba(99, 102, 241, 0.25);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, rgba(18, 20, 29, 0.75) 100%);
}

.user-id-pass-card.card-is-admin::before {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.6), transparent);
}

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

.pass-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.pass-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pass-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #0e1017;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.pass-title-meta {
  flex: 1;
  min-width: 0;
}

.pass-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pass-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pass-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-founder {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-admin {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-member {
  background: rgba(255, 255, 255, 0.05);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pass-handle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.pass-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #a78bfa;
}

.you-pill-card {
  font-size: 0.68rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Chip de Xrepot ID */
.pass-chip-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pass-chip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.pass-chip-box .btn-copy-id {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pass-chip-box .btn-copy-id:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.4);
  color: #ffffff;
}

.pass-id-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #e2e8f0;
  word-break: break-all;
}

/* Lista de detalles */
.pass-details-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
}

.pass-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-link {
  color: #d4d4d8;
  text-decoration: none;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.detail-value {
  color: #f4f4f5;
  font-weight: 500;
}

.sec-q-pill {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 1px 6px;
  border-radius: 6px;
}

.pass-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.pass-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-count {
  color: #34d399;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.protected-pill {
  font-size: 0.74rem;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* Empty State */
.users-empty-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon-large {
  font-size: 2.4rem;
}

/* ==========================================================================
   VISTA 2: TABLA REFINADA
   ========================================================================== */
.table-panel {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.admin-data-table thead th {
  background: rgba(255, 255, 255, 0.035);
  padding: 14px 18px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.admin-data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.admin-data-table tbody tr.tr-admin-row {
  background: rgba(99, 102, 241, 0.03);
}

.role-pill-table {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.role-pill-table.pill-admin {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.role-pill-table.pill-founder {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.role-pill-table.pill-member {
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
}

.user-cell-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  flex-shrink: 0;
}

.user-handle-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  font-family: monospace;
}

.id-copy-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xrepot-id-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-email-link {
  color: #d4d4d8;
  text-decoration: none;
}

.user-email-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.age-badge {
  font-size: 0.75rem;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.sec-q-badge {
  font-size: 0.74rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 150px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posts-count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.table-time {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.you-table-badge {
  font-size: 0.72rem;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Badges de Administrador en Red Social (Feed & Comentarios)
   ========================================================================== */
.author-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 70, 239, 0.18));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
}

.author-admin-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 12px;
}

.pill-admin-crown {
  font-size: 0.85rem;
  margin-left: 2px;
}

/* ==========================================================================
   Pulido Visual & Estilo Premium (Glows, Sombras, Micro-animaciones)
   ========================================================================== */
.post-card {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(139, 92, 246, 0.1) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

.feed-composer-card {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

.btn-post-action {
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease !important;
}

.btn-post-action:active {
  transform: scale(0.94);
}

.btn-like.liked .action-icon {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1.15); }
}

.kpi-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
}




