/* ============================================================
   Portal Cliente — estilos compartidos
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #17160f;
  --ink-soft: #57554a;
  --line: #e4e1d8;
  --accent: #2b4dff;
  --accent-ink: #ffffff;
  --ok: #1d7a4c;
  --wait: #b8860b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 22, 15, 0.04), 0 8px 24px rgba(23, 22, 15, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100f0c;
    --surface: #1a1914;
    --ink: #f3f1e9;
    --ink-soft: #a8a496;
    --line: #2c2a22;
    --accent: #6b83ff;
    --accent-ink: #0d0d0d;
    --ok: #4fd394;
    --wait: #e0ac3f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wrap--wide {
  max-width: 720px;
  justify-content: flex-start;
  padding-top: 64px;
}

.brand {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.brand strong {
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 40ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 8px;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.help {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.error {
  font-size: 13px;
  color: #c0392b;
  margin: -4px 0 16px;
}

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:active {
  transform: scale(0.98);
}

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 12px;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.project-card + .project-card {
  margin-top: 20px;
}

.project-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.field-label {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.field-value {
  font-size: 14px;
  font-weight: 500;
}

.field-value a {
  text-decoration: none;
  font-weight: 600;
}

.field-value a:hover {
  text-decoration: underline;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  height: 140px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 24px;
}
