/* SweetAlert2 — tema oscuro */
.swal2-popup {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

:root {
  --bg: #0c0a12;
  --bg-card: #14111c;
  --bg-elevated: #1c1726;
  --accent: #7c5cff;
  --accent-2: #00d4aa;
  --text: #f4f2f8;
  --muted: #9b93ad;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #7c5cff 0%, #00d4aa 100%);
  --shadow: 0 24px 80px rgba(124, 92, 255, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 255, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 212, 170, 0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav a.link {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a.link:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav a.link-active {
  color: var(--accent-2);
  background: rgba(0, 212, 170, 0.1);
}

.nav-auth {
  display: flex;
  align-items: center;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.user-pill-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.user-pill-name {
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
}

.login-banner {
  text-align: center;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: 12px;
  color: var(--accent-2);
  font-weight: 600;
}

.user-card-lg .user-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.user-card-label {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-tag {
  color: var(--muted);
  font-size: 0.95rem;
}

.user-id-line {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* Servidores Discord (estilo tarjetas) */
.guild-section {
  margin: 2.5rem 0;
}

.guild-section-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.guild-panel-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-weight: 400;
}

.guild-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.guild-filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.guild-filter-btn:hover {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.4);
}

.guild-filter-btn.active {
  background: var(--gradient);
  color: #0c0a12;
  border-color: transparent;
}

.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.guilds-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.guild-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.15s;
}

.guild-card:hover {
  border-color: rgba(124, 92, 255, 0.35);
  transform: translateY(-1px);
}

.guild-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.guild-card-body {
  min-width: 0;
  flex: 1;
}

.guild-card-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.guild-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.guild-card-members {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.guild-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.guild-badge-bot {
  background: rgba(0, 212, 170, 0.2);
  color: var(--accent-2);
}

.guild-badge-manage {
  background: rgba(124, 92, 255, 0.2);
  color: #c4b5fd;
}

.guild-empty,
.guild-more {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.guild-more {
  margin-top: 1rem;
}

.guild-more a {
  color: var(--accent-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  color: #0c0a12;
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.4);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--shadow);
}

.hero-preview .line {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}

.hero-preview .cmd {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 2rem 0 4rem;
}

.stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Features */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0c0a12;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA */
.cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 4rem;
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent-2);
}

.footer-brand {
  color: var(--accent);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Acerca de */
.about-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.about-hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 1rem auto 0;
}

.about-lead strong {
  color: var(--text);
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.about-avatar {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.25);
  background: var(--bg-elevated);
}

.about-profile h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.about-role {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
}

.about-brand {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.about-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-project h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.about-project p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.about-muted {
  font-size: 0.9rem;
  opacity: 0.85;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.tech-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
}

.tech-group h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-2);
}

.tech-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags li {
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text);
}

/* Dashboard */
.dashboard {
  min-height: 100vh;
  padding: 2rem 0;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.user-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.user-card h1 {
  font-size: 1.5rem;
}

.user-card p {
  color: var(--muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.alert {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.4);
  color: #faa;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: center;
}

/* Páginas legales */
.legal-page {
  padding-bottom: 2rem;
}

.legal-doc {
  max-width: 780px;
  margin: 0 auto 3rem;
}

.legal-doc h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.legal-intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal-doc section {
  margin-bottom: 2rem;
}

.legal-doc h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--accent-2);
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  margin-bottom: 0.65rem;
  line-height: 1.7;
}

.legal-doc ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.legal-doc a {
  color: var(--accent-2);
  text-decoration: underline;
}

.legal-doc code {
  background: var(--bg-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
  color: var(--muted);
}

.legal-table th {
  background: var(--bg-card);
  color: var(--text);
}

/* Pill de estado en la barra de navegación */
.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.nav-status-pill:hover {
  border-color: rgba(124, 92, 255, 0.45);
  background: var(--bg-elevated);
}

.nav-status-pill.is-online {
  border-color: rgba(59, 165, 93, 0.45);
}

.nav-status-pill.is-offline {
  border-color: rgba(237, 66, 69, 0.45);
}

.nav-status-pill-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-status-pill.is-offline .nav-status-pill-img {
  filter: grayscale(0.8);
}

.nav-status-pill .nav-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55d;
  box-shadow: 0 0 6px rgba(59, 165, 93, 0.7);
}

.nav-status-pill.is-offline .nav-status-dot {
  background: #ed4245;
  box-shadow: 0 0 6px rgba(237, 66, 69, 0.6);
}

.nav-status-text {
  color: var(--text);
}

.nav-status-pct {
  color: var(--muted);
  font-weight: 600;
}

.bot-status-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.bot-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bot-status-dot.is-online {
  background: #3ba55d;
  box-shadow: 0 0 10px rgba(59, 165, 93, 0.8);
  animation: bot-pulse 2s ease-in-out infinite;
}

.bot-status-dot.is-offline {
  background: #ed4245;
  box-shadow: 0 0 8px rgba(237, 66, 69, 0.6);
}

@keyframes bot-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.bot-status-label {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.bot-status-label.is-online {
  color: #3ba55d;
}

.bot-status-label.is-offline {
  color: #ed4245;
}

.bot-status-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.bot-status-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.bot-status-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
  transition: width 0.6s ease;
}

.status-card-offline .bot-status-bar-fill {
  background: linear-gradient(90deg, #ed4245 0%, #992d2f 100%);
}

/* Página /estado.html */
.status-hero {
  margin: 1.5rem 0 2rem;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
}

.status-card-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.status-card-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124, 92, 255, 0.35);
}

.status-card-inner.is-offline .status-card-logo {
  filter: grayscale(0.85);
  border-color: rgba(237, 66, 69, 0.4);
}

.status-card-body {
  flex: 1;
  min-width: 220px;
}

.status-card-meta,
.status-card-pct,
.status-card-last {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.status-editor {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 16px;
}

.status-editors-admin {
  border-color: rgba(0, 212, 170, 0.35);
}

.status-add-editor-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.status-add-editor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-add-editor-row input {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.status-editors-list {
  list-style: none;
  margin-top: 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-editor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.status-editor-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.status-editor-info {
  flex: 1;
  min-width: 0;
}

.status-editor-info strong {
  display: block;
  font-size: 0.95rem;
}

.status-editor-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.status-editor h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.status-editor-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.status-note-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.status-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-event {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.status-event-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.status-event-content {
  width: 100%;
  min-width: 0;
}

.status-event.event-up {
  border-left: 3px solid #3ba55d;
}

.status-event.event-down {
  border-left: 3px solid #ed4245;
}

.status-event.event-note {
  border-left: 3px solid var(--accent);
}

.status-event-icon {
  font-size: 1.1rem;
  opacity: 0.9;
}

.status-event-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.status-event-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.status-event-head time {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-event-delete-full {
  color: #ed4245;
  font-size: 0.8rem;
}

.btn-event-delete-full:hover {
  background: rgba(237, 66, 69, 0.12);
  color: #ff6b6e;
}

.status-event-source {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-comment {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.event-comment-text {
  width: 100%;
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.5;
}

.event-comment-by {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.event-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.btn-event-delete-comment {
  color: #ed4245;
}

.btn-event-delete-comment:hover {
  background: rgba(237, 66, 69, 0.12);
  color: #ff6b6e;
}

.event-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.65rem;
  box-sizing: border-box;
}

.event-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 4.5rem;
}

.event-comment-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.event-form-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.btn-event-edit {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .nav-status-pct {
    display: none;
  }

  .nav-links .link:not(.link-active) {
    display: none;
  }

  .nav-links a[href*='acerca'],
  .nav-links a[href*='terminos'],
  .nav-links a[href*='privacidad'] {
    display: inline-flex;
  }

  .legal-table {
    font-size: 0.85rem;
  }
}
