@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #08080C;
  --card: #16141D;
  --card-hover: #1E1B28;
  --border: #2A2735;
  --border-focus: #6C4DFF;
  --text: #F6F5FA;
  --muted: #A8A2B8;
  --primary: #6C4DFF;
  --primary-light: #8E7CEF;
  --primary-dark: #4326C9;
  --primary-gradient: linear-gradient(135deg, #6C4DFF 0%, #8E7CEF 100%);
  --accent: #00BFA6;
  --accent-soft: rgba(0, 191, 166, 0.14);
  --primary-soft: rgba(108, 77, 255, 0.14);
  --danger: #FF4E6A;
  --danger-soft: rgba(255, 78, 106, 0.14);
  --warning: #FFB020;
  --warning-soft: rgba(255, 176, 32, 0.14);
  --success: #00BFA6;
  --success-soft: rgba(0, 191, 166, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, .brand-name, .doc-title, .badge {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Navbar */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 8, 12, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.nav-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(108, 77, 255, 0.35);
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #FFFFFF 30%, #8E7CEF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-item {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.nav-item:hover {
  color: var(--text);
  background: var(--card);
}
.nav-item.active {
  color: #fff;
  background: var(--primary-soft);
  border: 1px solid rgba(108, 77, 255, 0.4);
}

.lang-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3px;
  display: flex;
  gap: 2px;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.lang-toggle button.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(108, 77, 255, 0.4);
}

/* Container */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-light);
  border: 1px solid rgba(108, 77, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.app-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-block;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.effective {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: #FFFFFF;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--primary-light);
}

p, li {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

ul, ol {
  padding-left: 24px;
}
li {
  margin-bottom: 6px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.callout {
  background: var(--card);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  margin: 22px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.callout p {
  margin: 0;
  color: var(--text);
}
.callout.danger {
  border-left-color: var(--danger);
  background: rgba(255, 78, 106, 0.05);
}
.callout.warning {
  border-left-color: var(--warning);
  background: rgba(255, 176, 32, 0.05);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border);
}
th {
  background: var(--card);
  color: var(--primary-light);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}
td {
  color: var(--muted);
  background: rgba(22, 20, 29, 0.5);
}

/* Card Grid on Index */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.25s;
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 77, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(108, 77, 255, 0.15);
}
.doc-card:hover::before {
  opacity: 1;
}
.doc-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.doc-title {
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.doc-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Steps */
.steps { counter-reset: step; margin: 24px 0; }
.step {
  display: flex; gap: 16px; margin-bottom: 16px;
  padding: 18px 20px; background: var(--card); border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.step:hover {
  border-color: rgba(108, 77, 255, 0.35);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-gradient); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 12px rgba(108, 77, 255, 0.3);
}
.step-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: #FFFFFF; }
.step-content p { font-size: 14px; margin: 0; color: var(--muted); }

/* Form */
.request-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; margin: 24px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 18px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14px; font-family: inherit;
  outline: none; transition: all .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.2);
}
.form-group textarea { min-height: 95px; resize: vertical; }
.form-group select { cursor: pointer; }

.submit-btn {
  width: 100%; padding: 16px; border: none; border-radius: 32px;
  background: var(--primary-gradient); color: white; font-size: 16px;
  font-weight: 700; cursor: pointer; transition: all .2s;
  box-shadow: 0 6px 20px rgba(108, 77, 255, 0.4);
  font-family: 'Outfit', sans-serif;
}
.submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 77, 255, 0.5);
}
.submit-btn:active {
  transform: translateY(0);
}

.form-success {
  display: none; text-align: center; padding: 36px 24px;
  background: var(--card); border: 1px solid var(--accent); border-radius: 20px; margin: 24px 0;
  box-shadow: 0 0 25px rgba(0, 191, 166, 0.15);
}
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.form-success h3 { color: #FFFFFF; margin-bottom: 8px; font-size: 20px; }
.form-success p { color: var(--muted); font-size: 15px; }

/* Rights Grid */
.rights-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 24px 0;
}
.right-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
  transition: all 0.2s;
}
.right-card:hover {
  border-color: rgba(108, 77, 255, 0.3);
  transform: translateY(-2px);
}
.right-card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.right-card .icon.blue { background: var(--primary-soft); color: var(--primary-light); }
.right-card .icon.red { background: var(--danger-soft); color: var(--danger); }
.right-card .icon.green { background: var(--accent-soft); color: var(--accent); }
.right-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: #FFFFFF; }
.right-card p { font-size: 13px; margin: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 60px;
}
footer a {
  margin: 0 10px;
  color: var(--muted);
}
footer a:hover {
  color: var(--primary-light);
}

/* Multi-language */
.es { display: none; }
body.lang-es .en { display: none; }
body.lang-es .es { display: revert; }

@media (max-width: 680px) {
  .nav-content { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-header-row { display: flex; justify-content: space-between; align-items: center; }
  .nav-links { overflow-x: auto; padding-bottom: 4px; }
  .container { padding: 28px 16px 60px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .request-form { padding: 20px 16px; }
}
