/*
  Tema visual compartido, tomado 1:1 de la identidad de "SEO para IA"
  (Documents/Claude Folder/SEO para IA — Tailwind v4, ver app/globals.css):
  oscuro + aurora azul/teal + CTA naranja, tipografía Inter + Fragment Mono.
  Todas las páginas de IA Manager cargan este archivo antes que su CSS propio.
*/

:root {
  --color-bg: #05070e;
  --color-panel: #10141f;
  --color-panel-soft: #171c2b;
  --color-border: #232a3d;

  --color-aurora-blue: #1b4fd8;
  --color-aurora-teal: #17c9a0;

  --color-text: #ffffff;
  --color-text-muted: #8d94a3;
  --color-text-dim: #5b6273;

  --color-cta: #ff9e1b;
  --color-cta-hover: #e88f10;
  --color-cta-text: #000000;

  --color-status-excelente: #1b4fd8;
  --color-status-good: #17c9a0;
  --color-status-fair: #e8a33d;
  --color-status-poor: #e5484d;

  --color-error-bg: #2a1416;
  --color-error-fg: #ff6b6f;

  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
}

a { color: inherit; }

/* --- Fondo "aurora": dos resplandores difusos fijos detrás de todo --- */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora-bg::before,
.aurora-bg::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.35;
}
.aurora-bg::before { top: -20%; left: -10%; background: var(--color-aurora-blue); }
.aurora-bg::after { bottom: -25%; right: -10%; background: var(--color-aurora-teal); }

.app-root {
  position: relative;
  z-index: 10;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* --- Botones --- */
.btn {
  font-family: var(--font-sans);
  font-size: .875rem;
  border-radius: 9999px;
  padding: .75rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-cta {
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-weight: 600;
}
.btn-cta:hover { background: var(--color-cta-hover); }
.btn-cta:disabled { background: var(--color-panel-soft); color: var(--color-text-dim); cursor: not-allowed; }

.btn-outline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-outline:hover { background: var(--color-panel-soft); color: var(--color-text); }

.btn-text {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: .8rem;
  padding: .4rem .6rem;
  border-radius: 9999px;
}
.btn-text:hover { color: var(--color-aurora-teal); }

.btn-danger-text { color: var(--color-status-poor); }
.btn-danger-text:hover { color: #ff8589; }

/* --- Cards / paneles --- */
.card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.card-soft {
  background: var(--color-panel-soft);
  border-radius: 12px;
}

/* --- Inputs --- */
.input {
  width: 100%;
  font-family: var(--font-sans);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-panel-soft);
  color: var(--color-text);
  padding: .65rem .9rem;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  border-color: var(--color-aurora-teal);
  box-shadow: 0 0 0 3px rgba(23, 201, 160, .2);
}
.input-pill { border-radius: 9999px; padding: 1rem 1.25rem; box-shadow: 0 4px 20px rgba(0,0,0,.3); }

/* --- Badges de estado: punto de color + texto mono uppercase --- */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  margin-right: .4rem;
  flex-shrink: 0;
}
.status-dot.excelente { background: var(--color-status-excelente); }
.status-dot.good { background: var(--color-status-good); }
.status-dot.fair { background: var(--color-status-fair); }
.status-dot.poor { background: var(--color-status-poor); }

.label-mono {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-text-dim);
}

/* --- Nav / header compartido --- */
.app-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(16, 20, 31, .7);
  backdrop-filter: blur(6px);
}
.app-header .brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.app-header .brand .logo-badge {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: block; flex-shrink: 0;
}
.app-header .brand .logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-header h1 { font-size: 1.05rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nav { display: flex; align-items: center; gap: .4rem; }
.app-nav a, .app-nav button {
  font-family: var(--font-sans);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: 8px;
  color: var(--color-text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
}
#lang-toggle-btn {
  font-family: var(--font-mono) !important;
  border: 1px solid var(--color-border) !important;
  font-size: .72rem !important;
  padding: .35rem .6rem !important;
  letter-spacing: .04em;
}
.app-nav a.active, .app-nav a:hover, .app-nav button:hover {
  background: var(--color-panel-soft);
  color: var(--color-aurora-teal);
}
.app-nav .username { color: var(--color-text-dim); font-size: .78rem; margin-right: .4rem; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--color-border); }
th { color: var(--color-text-muted); font-weight: 500; font-size: .8rem; }
td { font-size: .9rem; }
