/* ================================================================
   CANAL DE DENUNCIAS — LEON HOUSE 1993, S.L.
   Premium Dark Mode + Glassmorphism Design
   Ley 2/2023 Compliant Whistleblower System
   ================================================================ */

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

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  --bg-primary: #080e1e;
  --bg-secondary: #0d1628;
  --bg-tertiary: #111d35;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);

  --blue-primary: #2563eb;
  --blue-light: #3b82f6;
  --blue-glow: rgba(37, 99, 235, 0.3);
  --gold: #c9a227;
  --gold-light: #e8c44a;
  --gold-glow: rgba(201, 162, 39, 0.2);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.2);
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-blue: 0 4px 20px rgba(37, 99, 235, 0.25);
  --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.2);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201, 162, 39, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--text-secondary); }
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: white; }

/* ── Glass Card ───────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition);
}
.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #1d4ed8 100%);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #1a1208;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  box-shadow: 0 6px 30px rgba(201, 162, 39, 0.35);
  transform: translateY(-1px);
  color: #1a1208;
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: white;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); color: white; }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Navigation ───────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(8, 14, 30, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.navbar-brand img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.navbar-brand-text { line-height: 1.2; }
.navbar-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  display: block;
}
.navbar-brand-sub {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-nav a, .navbar-nav button {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.navbar-nav a:hover, .navbar-nav a.active,
.navbar-nav button:hover {
  color: white;
  background: var(--glass-bg-hover);
}
.navbar-nav a.active { color: var(--gold); }

.navbar-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--blue-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-shield {
  width: 120px; height: 120px;
  margin: 0 auto 32px;
  position: relative;
  animation: float 4s ease-in-out infinite;
}
.hero-shield svg { width: 100%; height: 100%; }

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.trust-item svg { color: var(--green); flex-shrink: 0; }
.trust-sep { width: 1px; height: 20px; background: var(--glass-border); }

/* ── Feature Cards ────────────────────────────────────────────── */
.features-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title { margin-bottom: 12px; }
.section-subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon.blue { background: rgba(37, 99, 235, 0.15); color: var(--blue-light); }
.feature-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.feature-icon.gold { background: rgba(201, 162, 39, 0.15); color: var(--gold-light); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); }

.feature-card h3 { font-size: 1.05rem; margin: 0; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }

/* ── Process Steps ────────────────────────────────────────────── */
.process-section {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
  position: relative;
}
.process-step {
  text-align: center;
  padding: 28px 20px;
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-primary), #1d4ed8);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-blue);
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; }

/* ── CTA Banner ───────────────────────────────────────────────── */
.cta-banner {
  margin: 40px 24px;
  padding: 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(201, 162, 39, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-xl);
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { margin-bottom: 32px; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Page Layout ──────────────────────────────────────────────── */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  flex: 1;
}
.page-header {
  text-align: center;
  margin-bottom: 48px;
}
.page-header h1 { margin-bottom: 12px; }

/* ── Información Page ─────────────────────────────────────────── */
.info-sections { display: flex; flex-direction: column; gap: 20px; }
.info-card { padding: 32px; }
.info-card h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card h2 .icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.15);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li {
  display: flex;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.info-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.timeline-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  border: 2px solid rgba(37, 99, 235, 0.4);
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-content h4 { font-size: 0.95rem; margin-bottom: 4px; color: white; }
.timeline-content p { font-size: 0.88rem; color: var(--text-secondary); }

.plazo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plazo-item {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  text-align: center;
}
.plazo-num { font-size: 2rem; font-weight: 800; color: var(--blue-light); }
.plazo-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

.responsable-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(201, 162, 39, 0.07);
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 39, 0.2);
}
.responsable-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.responsable-info h4 { color: white; font-size: 1rem; margin-bottom: 4px; }
.responsable-info p { font-size: 0.85rem; margin: 0; }

/* ── Formulario Denuncia ──────────────────────────────────────── */
.form-container { max-width: 750px; margin: 0 auto; }

.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  gap: 0;
}
.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--glass-border);
  transition: background var(--transition);
}
.step-item.completed:not(:last-child)::after { background: var(--blue-primary); }
.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--glass-border);
  color: var(--text-muted);
  background: var(--bg-secondary);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.step-item.active .step-circle {
  border-color: var(--blue-primary);
  color: white;
  background: var(--blue-primary);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}
.step-item.completed .step-circle {
  border-color: var(--green);
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
}
.step-label { font-size: 0.75rem; color: var(--text-muted); text-align: center; }
.step-item.active .step-label { color: var(--blue-light); }
.step-item.completed .step-label { color: var(--green); }

.form-step { display: none; animation: fadeInUp 0.4s ease; }
.form-step.active { display: block; }

.form-card { padding: 36px; }

.tipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.tipo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.tipo-option:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.05);
  color: white;
}
.tipo-option.selected {
  border-color: var(--blue-primary);
  background: rgba(37, 99, 235, 0.1);
  color: white;
}
.tipo-option svg { flex-shrink: 0; color: var(--blue-light); }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-label .required { color: var(--red); margin-left: 2px; }
.form-label .optional { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; margin-left: 4px; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue-primary);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 0.8rem; color: var(--red); margin-top: 6px; display: none; }
.form-input.error, .form-textarea.error { border-color: var(--red); }

.char-count { font-size: 0.75rem; color: var(--text-muted); text-align: right; margin-top: 4px; }

/* Identidad toggle */
.identity-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.identity-option {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.identity-option:hover { border-color: var(--glass-border-hover); }
.identity-option.selected {
  border-color: var(--blue-primary);
  background: rgba(37, 99, 235, 0.08);
}
.identity-option svg { margin-bottom: 8px; color: var(--blue-light); }
.identity-option h4 { font-size: 0.95rem; margin-bottom: 4px; }
.identity-option p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }
.identity-option.recommended::after {
  content: 'Recomendado';
  display: block;
  font-size: 0.7rem;
  color: var(--gold-light);
  margin-top: 6px;
  font-weight: 600;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue-primary);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

/* Success state */
.success-state {
  text-align: center;
  padding: 48px 32px;
  animation: fadeInUp 0.6s ease;
}
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 3px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--green);
  animation: scaleIn 0.5s ease;
}
.codigo-display {
  background: rgba(16, 185, 129, 0.07);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}
.codigo-display .codigo-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.codigo-display .codigo-value {
  font-family: 'Courier New', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.15em;
}
.codigo-warning {
  font-size: 0.85rem;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

/* ── Consultar Estado ─────────────────────────────────────────── */
.estado-search { max-width: 600px; margin: 0 auto 40px; }
.search-box {
  display: flex;
  gap: 12px;
}
.search-box .form-input { font-family: 'Courier New', monospace; font-size: 1.1rem; letter-spacing: 0.08em; }

.estado-result { animation: fadeInUp 0.4s ease; }
.estado-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}
.estado-badge.pendiente { background: rgba(245, 158, 11, 0.15); color: var(--orange); border: 1px solid rgba(245, 158, 11, 0.3); }
.estado-badge.en_revision { background: rgba(37, 99, 235, 0.15); color: var(--blue-light); border: 1px solid rgba(37, 99, 235, 0.3); }
.estado-badge.cerrada { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.estado-badge.archivada { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); border: 1px solid rgba(100, 116, 139, 0.3); }

.estado-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.estado-info-item {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}
.estado-info-item label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.estado-info-item span { font-size: 0.95rem; color: white; font-weight: 500; }

.estado-progress {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}
.progress-step {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-bottom: 3px solid var(--glass-border);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.progress-step.done { border-bottom-color: var(--green); color: var(--green); }
.progress-step.current { border-bottom-color: var(--blue-primary); color: var(--blue-light); font-weight: 600; }

/* ── Admin Panel ──────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 73px);
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(8, 14, 30, 0.9);
  border-right: 1px solid var(--glass-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-section-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  margin-top: 16px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.sidebar-item:hover, .sidebar-item.active {
  background: var(--glass-bg-hover);
  color: white;
}
.sidebar-item.active { color: var(--gold-light); }
.sidebar-item .badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.admin-main {
  flex: 1;
  padding: 32px;
  overflow-x: auto;
}
.admin-page { display: none; }
.admin-page.active { display: block; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-value { font-size: 1.8rem; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Table */
.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--glass-bg); }
.data-table tr:last-child td { border-bottom: none; }

.table-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}
.filter-select {
  padding: 8px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* Prioridad badge */
.prioridad-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.prioridad-badge.urgente { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.prioridad-badge.alta { background: rgba(245, 158, 11, 0.15); color: var(--orange); }
.prioridad-badge.normal { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }
.prioridad-badge.baja { background: rgba(16, 185, 129, 0.1); color: var(--green); }

/* Detail panel */
.detail-panel {
  position: fixed;
  top: 0; right: 0;
  width: 520px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  padding: 28px;
  overflow-y: auto;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.detail-panel.open { transform: translateX(0); }
.detail-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  display: none;
}
.detail-panel-overlay.open { display: block; }

/* Login */
.login-container {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card { width: 100%; max-width: 400px; padding: 40px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo img { width: 60px; height: 60px; border-radius: 12px; }
.login-logo h2 { margin-top: 12px; font-size: 1.2rem; }
.login-logo p { font-size: 0.85rem; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding: 32px 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.footer-content { max-width: 800px; margin: 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 4px; }
.footer-logo span { font-weight: 700; font-size: 0.9rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a { font-size: 0.82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-secondary); }
.footer-legal { font-size: 0.78rem; color: var(--text-muted); }

/* ── Alerts / Toasts ──────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: #6ee7b7; }
.alert-info { background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.25); color: #93c5fd; }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); color: #fcd34d; }

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  min-width: 280px;
  animation: slideInRight 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.toast.success { background: #065f46; border: 1px solid #10b981; color: #d1fae5; }
.toast.error { background: #7f1d1d; border: 1px solid #ef4444; color: #fee2e2; }
.toast.info { background: #1e3a8a; border: 1px solid #3b82f6; color: #dbeafe; }

/* ── Loader ───────────────────────────────────────────────────── */
.loader {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.6); }
}

/* ── Skeleton ─────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  height: 16px;
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

/* ── Divider ──────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--glass-border); margin: 24px 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(8, 14, 30, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px;
  }
  .hamburger { display: flex; }
  .navbar { position: relative; }

  .hero { padding: 48px 20px; }
  .hero-trust-bar .trust-sep { display: none; }
  .hero-trust-bar { flex-direction: column; gap: 12px; }

  .plazo-grid { grid-template-columns: 1fr; }
  .identity-toggle { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 12px; flex-direction: row; flex-wrap: wrap; gap: 4px; overflow-x: auto; }
  .sidebar-section-label { display: none; }
  .admin-main { padding: 20px; }

  .detail-panel { width: 100%; height: 80vh; top: auto; bottom: 0; transform: translateY(100%); }
  .detail-panel.open { transform: translateY(0); }

  .cta-banner { padding: 32px 20px; margin: 20px 12px; }
  .form-card { padding: 24px 20px; }

  .tipos-grid { grid-template-columns: 1fr; }
  .stepper { gap: 4px; }
  .step-label { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-nav { flex-direction: column; gap: 12px; }
  .form-nav .btn { width: 100%; }
}
