/* =========================================================================
   LIFE CHAT — Sistema de diseño base (Fase 1)
   Fondo blanco, moderno, limpio, responsive.
   Los colores de marca se definen como variables CSS para que en el futuro
   el panel de administración pueda sobreescribirlas dinámicamente.
   ========================================================================= */

:root {
  /* Colores de marca (configurables desde administración en el futuro) */
  --lc-primary: #2952e3;
  --lc-primary-dark: #1e3fb8;
  --lc-primary-light: #eef1ff;
  --lc-text: #12131a;
  --lc-text-muted: #6b7280;
  --lc-border: #e5e7eb;
  --lc-bg: #ffffff;
  --lc-danger: #e0245e;
  --lc-success: #17a673;

  --lc-radius-sm: 8px;
  --lc-radius-md: 14px;
  --lc-radius-lg: 20px;
  --lc-shadow: 0 4px 24px rgba(18, 19, 26, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--lc-bg);
  color: var(--lc-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lc-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Layout de páginas de autenticación ---------- */
.lc-auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--lc-bg);
}

.lc-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--lc-bg);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  box-shadow: var(--lc-shadow);
  padding: 32px 28px;
}

.lc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.lc-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.lc-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lc-text);
}

.lc-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  text-align: center;
}

.lc-subtitle {
  font-size: 14px;
  color: var(--lc-text-muted);
  text-align: center;
  margin: 0 0 24px;
}

/* ---------- Formularios ---------- */
.lc-field {
  margin-bottom: 16px;
}

.lc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--lc-text);
}

.lc-field .lc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lc-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  background: var(--lc-bg);
  color: var(--lc-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lc-input:focus {
  border-color: var(--lc-primary);
  box-shadow: 0 0 0 3px var(--lc-primary-light);
}

.lc-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--lc-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.lc-btn-primary {
  background: var(--lc-primary);
  color: #ffffff;
}
.lc-btn-primary:hover {
  background: var(--lc-primary-dark);
}
.lc-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lc-btn-secondary {
  background: var(--lc-bg);
  color: var(--lc-text);
  border: 1px solid var(--lc-border);
}
.lc-btn-secondary:hover {
  background: #f9fafb;
}

.lc-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--lc-text-muted);
  margin-top: 20px;
}

/* ---------- Mensajes de estado ---------- */
.lc-alert {
  border-radius: var(--lc-radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.lc-alert.lc-alert-error {
  background: #fdecef;
  color: var(--lc-danger);
  border: 1px solid #f7c6d3;
}

.lc-alert.lc-alert-success {
  background: #e8f8f2;
  color: var(--lc-success);
  border: 1px solid #bfe9d9;
}

.lc-alert.lc-visible {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .lc-auth-card {
    padding: 24px 18px;
    border-radius: var(--lc-radius-md);
  }
  .lc-field .lc-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* =========================================================================
   Estructura general de la app (páginas después de iniciar sesión)
   ========================================================================= */
.lc-app-shell {
  min-height: 100vh;
  background: var(--lc-bg);
}

.lc-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--lc-bg);
  border-bottom: 1px solid var(--lc-border);
}

.lc-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lc-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.lc-btn-sm {
  width: auto;
  padding: 8px 14px;
  font-size: 13px;
}

.lc-btn-danger {
  background: var(--lc-danger);
  color: #fff;
}
.lc-btn-danger:hover {
  opacity: 0.9;
}

.lc-btn-ghost {
  background: transparent;
  color: var(--lc-text);
  border: 1px solid var(--lc-border);
}
.lc-btn-ghost:hover {
  background: #f9fafb;
}

/* ---------- Perfil ---------- */
.lc-cover {
  width: 100%;
  height: 180px;
  border-radius: var(--lc-radius-md);
  background: linear-gradient(135deg, var(--lc-primary-light), #f3f4f6);
  background-size: cover;
  background-position: center;
  position: relative;
}

.lc-profile-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -40px;
  padding: 0 12px;
}

.lc-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--lc-bg);
  background: var(--lc-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 30px;
  object-fit: cover;
  flex-shrink: 0;
}

.lc-profile-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.lc-profile-username {
  color: var(--lc-text-muted);
  font-size: 14px;
  margin: 0;
}

.lc-profile-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.lc-profile-bio {
  margin: 16px 0 6px;
  font-size: 14px;
  line-height: 1.5;
}

.lc-profile-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--lc-text-muted);
  margin-bottom: 6px;
}

.lc-profile-counts {
  display: flex;
  gap: 22px;
  margin: 14px 0;
}
.lc-profile-counts b {
  font-size: 15px;
  display: block;
}
.lc-profile-counts span {
  font-size: 12px;
  color: var(--lc-text-muted);
}

/* ---------- Pestañas ---------- */
.lc-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--lc-border);
  margin-bottom: 16px;
  overflow-x: auto;
}

.lc-tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lc-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.lc-tab.lc-tab-active {
  color: var(--lc-primary);
  border-bottom-color: var(--lc-primary);
}

/* ---------- Tarjetas de usuario (listas) ---------- */
.lc-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--lc-border);
}

.lc-user-card .lc-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
  border-width: 2px;
}

.lc-user-card-info {
  flex: 1;
  min-width: 0;
}
.lc-user-card-info a {
  color: var(--lc-text);
  font-weight: 600;
  font-size: 14px;
}
.lc-user-card-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--lc-text-muted);
}

.lc-user-card-actions {
  display: flex;
  gap: 6px;
}

.lc-empty-state {
  text-align: center;
  color: var(--lc-text-muted);
  font-size: 14px;
  padding: 40px 10px;
}

/* =========================================================================
   Feed y publicaciones
   ========================================================================= */
.lc-composer {
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.lc-composer textarea {
  width: 100%;
  border: none;
  resize: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-height: 60px;
  color: var(--lc-text);
}

.lc-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--lc-border);
}

.lc-select {
  padding: 7px 10px;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  font-size: 13px;
  background: var(--lc-bg);
  color: var(--lc-text);
}

.lc-post-card {
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

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

.lc-post-header .lc-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
  border-width: 2px;
}

.lc-post-header-name {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}
.lc-post-header-name a {
  color: var(--lc-text);
}

.lc-post-header-meta {
  font-size: 12px;
  color: var(--lc-text-muted);
  margin: 0;
}

.lc-post-menu {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.lc-post-content {
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 0 0 12px;
}

.lc-post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--lc-border);
  padding-top: 8px;
}

.lc-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lc-text-muted);
  background: none;
  border: none;
  border-radius: var(--lc-radius-sm);
  cursor: pointer;
}
.lc-action-btn:hover {
  background: #f9fafb;
}
.lc-action-btn.lc-action-active {
  color: var(--lc-primary);
}

.lc-reaction-picker {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--lc-border);
  border-radius: 999px;
  background: var(--lc-bg);
  box-shadow: var(--lc-shadow);
  position: absolute;
  transform: translateY(-100%);
  margin-top: -8px;
  z-index: 30;
}
.lc-reaction-picker button {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  padding: 2px;
}
.lc-reaction-picker button:hover {
  transform: scale(1.2);
}

.lc-reaction-summary {
  font-size: 12px;
  color: var(--lc-text-muted);
  margin-bottom: 6px;
}

.lc-comments-box {
  margin-top: 10px;
  border-top: 1px solid var(--lc-border);
  padding-top: 10px;
  display: none;
}
.lc-comments-box.lc-visible {
  display: block;
}

.lc-comment {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.lc-comment .lc-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
  border-width: 1px;
}
.lc-comment-bubble {
  background: #f4f5f7;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
}
.lc-comment-bubble b {
  display: block;
  font-size: 12px;
}

.lc-comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.lc-comment-form input {
  flex: 1;
}

/* =========================================================================
   Historias (barra horizontal + visor)
   ========================================================================= */
.lc-stories-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 8px;
}

.lc-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: 68px;
}

.lc-story-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--lc-primary), #7c8cf8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lc-story-ring.lc-story-seen {
  background: var(--lc-border);
}
.lc-story-ring.lc-story-add {
  background: var(--lc-border);
}

.lc-story-ring .lc-avatar {
  width: 100%;
  height: 100%;
  border-width: 2px;
  font-size: 18px;
}

.lc-story-label {
  font-size: 11px;
  color: var(--lc-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
}

.lc-story-viewer {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.lc-story-progress-row {
  display: flex;
  gap: 4px;
  padding: 8px;
}
.lc-story-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}
.lc-story-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
}

.lc-story-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  color: #fff;
}
.lc-story-header .lc-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.lc-story-header-name {
  font-size: 13px;
  font-weight: 600;
}
.lc-story-header-time {
  font-size: 11px;
  opacity: 0.8;
}
.lc-story-close {
  margin-left: auto;
  color: #fff;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.lc-story-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.lc-story-body img,
.lc-story-body video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lc-story-text-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  padding: 40px;
}

.lc-story-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 33%;
}

.lc-story-footer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}
.lc-story-footer input {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.lc-story-footer input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.lc-story-footer button {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* =========================================================================
   Reels (videos cortos)
   ========================================================================= */
.lc-reels-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  background: #000;
}

.lc-reel-item {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lc-reel-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.lc-reel-overlay-bottom {
  position: absolute;
  left: 0;
  right: 70px;
  bottom: 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.lc-reel-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.lc-reel-author .lc-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.lc-reel-author-name {
  font-size: 13px;
  font-weight: 600;
}
.lc-reel-follow-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lc-reel-caption {
  font-size: 13px;
  line-height: 1.4;
}

.lc-reel-actions {
  position: absolute;
  right: 10px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #fff;
}

.lc-reel-action-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.lc-reel-action-btn span {
  font-size: 11px;
  font-weight: 600;
}
.lc-reel-action-btn.lc-action-active {
  color: var(--lc-primary);
}

.lc-reel-comments-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 60%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 14px;
  display: none;
  flex-direction: column;
  z-index: 5;
}
.lc-reel-comments-panel.lc-visible {
  display: flex;
}
.lc-reel-comments-list {
  overflow-y: auto;
  flex: 1;
  margin-bottom: 8px;
}

/* =========================================================================
   Mensajería
   ========================================================================= */
.lc-conv-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--lc-border);
  cursor: pointer;
  text-decoration: none;
  color: var(--lc-text);
}
.lc-conv-list-item:hover {
  background: #f9fafb;
}
.lc-conv-info {
  flex: 1;
  min-width: 0;
}
.lc-conv-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.lc-conv-preview {
  font-size: 12px;
  color: var(--lc-text-muted);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-conv-preview.lc-unread {
  color: var(--lc-text);
  font-weight: 600;
}
.lc-conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.lc-conv-time {
  font-size: 11px;
  color: var(--lc-text-muted);
}
.lc-unread-badge {
  background: var(--lc-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
}

/* ---------- Ventana de chat ---------- */
.lc-chat-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.lc-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lc-border);
}
.lc-chat-header .lc-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.lc-chat-header-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.lc-chat-header-status {
  font-size: 11px;
  color: var(--lc-text-muted);
  margin: 0;
}

.lc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lc-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}
.lc-msg-row.lc-msg-own {
  align-self: flex-end;
  align-items: flex-end;
}
.lc-msg-row.lc-msg-other {
  align-self: flex-start;
  align-items: flex-start;
}

.lc-msg-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.lc-msg-own .lc-msg-bubble {
  background: var(--lc-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.lc-msg-other .lc-msg-bubble {
  background: #f1f2f4;
  color: var(--lc-text);
  border-bottom-left-radius: 4px;
}

.lc-msg-reply-preview {
  font-size: 11px;
  opacity: 0.85;
  border-left: 2px solid currentColor;
  padding-left: 6px;
  margin-bottom: 4px;
}

.lc-msg-meta {
  font-size: 10px;
  color: var(--lc-text-muted);
  margin-top: 2px;
  display: flex;
  gap: 6px;
}

.lc-msg-actions {
  display: none;
  gap: 6px;
  font-size: 10px;
}
.lc-msg-row:hover .lc-msg-actions {
  display: flex;
}
.lc-msg-actions button {
  background: none;
  border: none;
  font-size: 10px;
  color: var(--lc-text-muted);
  cursor: pointer;
  padding: 0;
}

.lc-chat-typing {
  font-size: 11px;
  color: var(--lc-text-muted);
  padding: 0 14px 4px;
  min-height: 16px;
}

.lc-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--lc-border);
}
.lc-chat-input-bar input[type="text"] {
  flex: 1;
  border: 1px solid var(--lc-border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}

.lc-chat-reply-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #f4f5f7;
  font-size: 12px;
}
.lc-chat-reply-bar.lc-visible {
  display: flex;
}

.lc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lc-primary-light);
  color: var(--lc-primary);
}

/* =========================================================================
   Páginas legales / estáticas
   ========================================================================= */
.lc-legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--lc-border);
}
.lc-legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--lc-text);
}
.lc-legal-content h1 {
  font-size: 24px;
  margin-bottom: 4px;
}
.lc-legal-content .lc-legal-updated {
  font-size: 12px;
  color: var(--lc-text-muted);
  margin-bottom: 24px;
}
.lc-legal-content h2 {
  font-size: 17px;
  margin-top: 28px;
  margin-bottom: 8px;
}
.lc-legal-content ul {
  padding-left: 20px;
}
.lc-legal-disclaimer {
  background: #fff8ec;
  border: 1px solid #f5d98a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 24px;
}
.lc-legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px;
  border-top: 1px solid var(--lc-border);
  font-size: 12px;
}

/* =========================================================================
   Navegación inferior para móvil (punto 28: responsive)
   ========================================================================= */
.lc-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  .lc-topbar-actions a[data-desktop-only],
  .lc-topbar-actions .lc-btn-secondary {
    display: none;
  }

  .lc-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--lc-bg);
    border-top: 1px solid var(--lc-border);
    z-index: 30;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  }
  .lc-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--lc-text-muted);
    text-decoration: none;
    padding: 4px 0;
  }
  .lc-bottom-nav a span.lc-bn-icon {
    font-size: 19px;
  }
  .lc-content {
    padding-bottom: 76px; /* espacio para no quedar tapado por la barra inferior */
  }
}

@media (min-width: 641px) {
  .lc-content {
    max-width: 760px;
  }
}

/* Foco visible para navegación por teclado (punto 29: accesibilidad) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lc-primary);
  outline-offset: 2px;
}
