/* Evita el zoom automático del navegador móvil al enfocar inputs */
input, textarea, select { font-size: 16px; }

/* Evita scroll horizontal en cualquier dispositivo */
html { max-width: 100vw; overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════
   DESKTOP LAYOUT — TeKiero Lindura  (min-width: 769px)
   desktop-init.js inyecta .desktop-content en el DOM.
═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {

  /* ── Raíz ──────────────────────────────────────────────── */
  html, body { height: 100vh; overflow: hidden; }
  body {
    padding: 0;
    background: #2a0040;
    align-items: stretch;
    justify-content: stretch;
  }

  /* ── Sin marco de teléfono ─────────────────────────────── */
  .phone {
    width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #1a001a;
    display: flex;
    flex-direction: column;
  }

  /* ── Screen: grid de 3 zonas ───────────────────────────── */
  .screen {
    border-radius: 0 !important;
    flex: 1;
    min-height: 0 !important;   /* anula los min-height: 680px/700px de cada página */
    overflow: hidden;
    display: grid !important;
    grid-template-columns: 220px 1fr;
    grid-template-rows: 62px 1fr;
    grid-template-areas:
      "header  header"
      "sidebar content";
  }

  /* ── HEADER — barra superior ───────────────────────────── */
  .header {
    grid-area: header;
    border-radius: 0 !important;
    height: 62px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #1a001a;
    overflow: hidden;
  }

  /* ── SIDEBAR ───────────────────────────────────────────── */
  .bottom-nav {
    grid-area: sidebar;
    /* Resetear estilos móviles */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    background: #0f0018 !important;
    border-top: none !important;
    border-right: 2px solid #3a0050;
    border-radius: 0 !important;
    padding: 24px 0 0 !important;
    gap: 0 !important;
    height: auto;
    overflow-y: auto;
    /* Etiqueta superior en el sidebar */
    position: relative;
  }

  .nav-item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 14px 20px !important;
    gap: 12px !important;
    border-radius: 0 !important;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-item:hover { background: rgba(255, 105, 182, 0.1) !important; }
  .nav-item.active {
    background: rgba(255, 105, 182, 0.18) !important;
    border-left-color: #ffe600 !important;
  }

  .nav-icon {
    font-size: 20px !important;
    opacity: 0.6;
    flex-shrink: 0;
  }
  .nav-item.active .nav-icon { opacity: 1 !important; }

  .nav-label {
    display: block !important;
    font-size: 14px !important;
    color: #ffb3d9 !important;
    font-weight: 600 !important;
    letter-spacing: 0;
  }
  .nav-item.active .nav-label {
    color: #ffe600 !important;
    font-weight: 800 !important;
  }

  .nav-dot { display: none !important; }

  /* ── CONTENIDO ─────────────────────────────────────────── */
  .desktop-content {
    grid-area: content;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #3a0050;
  }

  /* ── Ajustes por página ─────────────────────────────────── */

  /* Chat: vistas usan todo el espacio */
  .view { flex: 1; min-height: 0; overflow: hidden; }

  /* IA: limitar ancho de la conversación */
  .chat-area        { max-width: 860px; margin: 0 auto; width: 100%; }
  .api-input-wrap   { max-width: 860px; margin: 0 auto 8px; }
  .suggestions      { max-width: 860px; margin: 0 auto; }

  /* Perfil: ancho máximo centrado */
  .scroll { max-width: 700px; margin: 0 auto; width: 100%; }

  /* Mapa: expandir zona del mapa */
  .map-area { flex: 1 !important; min-height: 0 !important; height: auto !important; }

  /* ── Scrollbar fino ────────────────────────────────────── */
  ::-webkit-scrollbar       { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: #1a001a; }
  ::-webkit-scrollbar-thumb { background: #7a003f; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: #ff69b6; }
}
