/* ============================================================
   Radiante v2 — Responsivo
   Media queries para tablet e mobile
   ============================================================ */

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  body.login-mode {
    padding: 0;
  }

  .login-shell {
    padding: 1rem;
    max-width: 520px;
    min-height: 100vh;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .login-visual {
    display: none;
  }

  .login-card {
    border: 1px solid rgba(8, 27, 54, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .app-header {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    align-items: stretch;
  }

  .actions-group {
    align-items: stretch;
    justify-content: stretch;
  }

  .actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .actions > .btn {
    flex: 1;
    justify-content: center;
  }

  .actions > .btn span {
    display: none;
  }

  .actions > .btn svg {
    margin: 0;
  }

  .app-status {
    font-size: 0.8125rem;
  }

  .container {
    gap: 1.25rem;
  }

  .workspace-grid,
  .results-grid,
  .results-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }

  .meta-highlight {
    grid-template-columns: 1fr;
  }

  .file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .file-row-actions {
    width: 100%;
  }

  .file-row-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .history-row-top {
    flex-direction: column;
    align-items: stretch;
  }

  .analysis-history-open {
    width: 100%;
    justify-content: center;
  }

  .analysis-history-value {
    margin-left: 0;
  }

  .cifra-values-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-value {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }

  .brand h1 {
    font-size: 1.625rem;
  }

  .brand-meta {
    gap: 0.25rem 0.5rem;
  }

  .brand .subtitle {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1rem;
  }

  .card-header {
    align-items: flex-start;
  }

  .file-list,
  .history-list {
    max-height: none;
  }

  .badge {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
  }
}
