/* ===== ESTILOS CRÍTICOS - HARDCODEADOS (backup por si las variables CSS no cargan) ===== */
:root {
  --c1: #007a87;
  --c2: #00b4cc;
  --grad: linear-gradient(135deg, #007a87 0%, #00b4cc 100%);
  --r: 14px;
  --muted: #6b7280;
  --bg: #f9fafb;
  --border: #e5e7eb;
  --text: #111827;
}

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

/* Reset base */
#gpa-app, .gpa-wrap, .gpa-wrap * {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* BOTONES - colores hardcodeados como fallback de los inline styles */
.gpa-btn-primary, .gpa-btn.gpa-btn-primary {
  background: linear-gradient(135deg, #007a87, #00b4cc) !important;
  color: #fff !important;
  border: none !important;
}
.gpa-btn-outline, .gpa-btn.gpa-btn-outline {
  background: transparent !important;
  color: #007a87 !important;
  border: 1.5px solid #007a87 !important;
}

/* CAMPOS DISABLED - siempre visible */
input[disabled], select[disabled], textarea[disabled],
input[readonly], select[readonly], textarea[readonly] {
  background: #f8fafc !important;
  color: #374151 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #374151 !important;
}

/* PAGE HEADER - fallback */
.gpa-page-header {
  background: linear-gradient(135deg, #007a87 0%, #00b4cc 100%);
  background: var(--grad, linear-gradient(135deg, #007a87 0%, #00b4cc 100%));
  border-radius: 14px;
  border-radius: var(--r, 14px);
  padding: 28px 32px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.gpa-page-header, .gpa-page-header *, .gpa-hdr-title, .gpa-hdr-sub, .gpa-back-arrow {
  color: #fff !important;
}

/* HERO - fallback */
.gpa-hero {
  background: linear-gradient(135deg, #007a87 0%, #00b4cc 100%);
  background: var(--grad, linear-gradient(135deg, #007a87 0%, #00b4cc 100%));
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.gpa-hero * { color: #fff !important; }

/* ================================================================
   GP Ambassadors — Frontend CSS v1.0
   Generación Presente · Inter · #007a87 → #00b4cc
   IMPORTANTE: Todos los colores tienen valores hardcoded como fallback
   para que funcionen aunque las variables CSS no estén disponibles.
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --c1:     #007a87;
  --c2:     #00b4cc;
  --grad:   linear-gradient(135deg, #007a87 0%, #00b4cc 100%);
  --dark:   #005a65;
  --light:  #e8f8fa;
  --white:  #ffffff;
  --text:   #111827;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --bg:     #f8fafc;
  --r:      14px;
  --shadow: 0 8px 40px rgba(0,122,135,.13);
  --font:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
.gpa-wrap, .gpa-wrap * { box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }
.gpa-wrap { color: #111827; margin: 0 auto; padding: 0 0 60px; max-width: 860px; }
.gpa-wrap-sm  { max-width: 460px; }
.gpa-wrap-md  { max-width: 620px; }
.gpa-register-wrap { max-width: 680px; }
.gpa-intranet { max-width: 900px; }
.gpa-hidden   { display: none !important; }

/* ── PAGE HEADER — degradado corporativo siempre visible ──── */
.gpa-page-header {
  background: linear-gradient(135deg, #007a87 0%, #00b4cc 100%);
  background: var(--grad, linear-gradient(135deg, #007a87 0%, #00b4cc 100%));
  border-radius: 14px;
  border-radius: var(--r, 14px);
  padding: 28px 32px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.gpa-page-header::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.07);
  border-radius: 50%; pointer-events: none;
}
.gpa-back-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 600; text-decoration: none;
  margin-bottom: 12px; transition: color .15s;
}
.gpa-back-arrow:hover { color: #fff; }
.gpa-hdr-title {
  color: #fff;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.5px; margin: 0;
}
.gpa-hdr-sub { color: rgba(255,255,255,.82); font-size: 14px; margin: 8px 0 0; line-height: 1.5; }

/* ── BOTONES — reglas absolutas, sin variables como único valor ── */
.gpa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: 10px; border: 1.5px solid transparent;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: box-shadow .2s, transform .15s;
  -webkit-appearance: none; appearance: none; line-height: 1;
}
.gpa-btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* PRIMARY — degradado + texto blanco, siempre */
.gpa-btn-primary {
  background: linear-gradient(135deg, #007a87 0%, #00b4cc 100%);
  background: var(--grad, linear-gradient(135deg, #007a87 0%, #00b4cc 100%));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,122,135,.25);
}
.gpa-btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(0,122,135,.38);
  transform: translateY(-1px);
}

/* OUTLINE — borde teal, texto teal, fondo transparente */
.gpa-btn-outline {
  background: transparent;
  color: #007a87 !important;
  color: var(--c1, #007a87) !important;
  border-color: #007a87;
  border-color: var(--c1, #007a87);
}
.gpa-btn-outline:hover:not(:disabled) {
  background: #e8f8fa;
  background: var(--light, #e8f8fa);
  box-shadow: 0 4px 14px rgba(0,122,135,.18);
  transform: translateY(-1px);
}

/* SECONDARY — fondo blanco, texto oscuro */
.gpa-btn-secondary {
  background: #fff; color: #111827 !important;
  border-color: #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.gpa-btn-secondary:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

.gpa-btn-full { width: 100%; }
.gpa-btn-link {
  background: none; border: none;
  color: #007a87; color: var(--c1, #007a87);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; padding: 0; text-decoration: none;
  display: inline; height: auto;
}
.gpa-btn-link:hover { text-decoration: underline; }

/* Botón Google */
.gpa-btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 46px; border-radius: 10px;
  border: 1.5px solid #e5e7eb; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: #111827; text-decoration: none;
  transition: box-shadow .18s, border-color .18s; margin-bottom: 10px;
}
.gpa-btn-google:hover { border-color: #4285F4; box-shadow: 0 4px 12px rgba(66,133,244,.15); }

/* Spinner */
.btn-spin { animation: gpa-spin .7s linear infinite; }
@keyframes gpa-spin { to { transform: rotate(360deg); } }

/* ── FORMULARIOS ──────────────────────────────────────────── */
.gpa-auth-body {
  background: #fff; border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 40px rgba(0,122,135,.1);
  padding: 32px;
}
.gpa-form { width: 100%; }
.gpa-field { margin-bottom: 18px; }
.gpa-label { display: block; font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.gpa-req   { color: #ef4444; margin-left: 2px; }

.gpa-input {
  width: 100%; height: 46px;
  border-radius: 10px; border: 1.5px solid #e5e7eb;
  padding: 0 14px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400;
  color: #111827; background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.gpa-input::placeholder { color: #9ca3af; font-weight: 400; }
.gpa-input:focus { outline: none; border-color: #007a87; box-shadow: 0 0 0 3px rgba(0,122,135,.14); }
.gpa-input.error { border-color: #ef4444; }

/* Campos deshabilitados — texto SIEMPRE visible */
.gpa-input:disabled,
.gpa-input[disabled],
.gpa-input-readonly {
  background: #f8fafc !important;
  color: #374151 !important;
  opacity: 1 !important;
  cursor: default;
  border-color: #e5e7eb !important;
  -webkit-text-fill-color: #374151; /* fix iOS que pone gris el texto */
}

select.gpa-input {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 6 5-6' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
}
textarea.gpa-input { height: auto; padding: 12px 14px; resize: vertical; }
.gpa-textarea { min-height: 110px; }

.gpa-input-wrap { position: relative; }
.gpa-input-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #6b7280; pointer-events: none;
}
.gpa-input-wrap .gpa-input { padding-left: 42px; }

.gpa-eye-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 6px; color: #6b7280; line-height: 1;
}
.gpa-eye-btn svg { width: 18px; height: 18px; display: block; }
.gpa-eye-btn:hover { color: #007a87; }

.gpa-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gpa-grid-2 .gpa-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .gpa-grid-2 { grid-template-columns: 1fr; } .gpa-grid-2 .gpa-full { grid-column: 1; } }

/* ── ALERTS ───────────────────────────────────────────────── */
.gpa-alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.gpa-alert-success { background: #d1fae5; color: #065f46; }
.gpa-alert-error   { background: #fee2e2; color: #991b1b; }
.gpa-alert-info    { background: #e8f8fa; color: #005a65; }
.gpa-alert-warn    { background: #fef9c3; color: #854d0e; }
.gpa-notice { background: #e8f8fa; border-left: 4px solid #007a87; padding: 14px 18px; border-radius: 8px; font-size: 14px; }

.gpa-form-feedback { font-size: 13px; font-weight: 500; padding: 10px 14px; border-radius: 8px; margin-top: 12px; display: none; }
.gpa-form-feedback.ok  { display: block; background: #d1fae5; color: #065f46; }
.gpa-form-feedback.err { display: block; background: #fee2e2; color: #991b1b; }

.gpa-nopaste-notice {
  display: flex; align-items: center; gap: 8px;
  background: #fef9c3; border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: #854d0e; margin-bottom: 18px;
}

/* ── AUTH LINKS ───────────────────────────────────────────── */
.gpa-auth-links {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px; margin-top: 18px;
  font-size: 13px; color: #6b7280;
}
.gpa-auth-links-sep { opacity: .4; }
.gpa-auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px; color: #6b7280; font-size: 12px;
}
.gpa-auth-divider::before, .gpa-auth-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.gpa-link { color: #007a87; font-weight: 600; text-decoration: none; }
.gpa-link:hover { text-decoration: underline; }
.gpa-link-bold { font-weight: 700; }
.gpa-auth-footer-note { text-align: center; font-size: 13px; color: #6b7280; margin-top: 20px; }

/* ── STEPPER ──────────────────────────────────────────────── */
.gpa-stepper { display: flex; align-items: center; margin-bottom: 24px; padding: 0 4px; }
.gpa-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
.gpa-step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 4px; transition: background .3s; }
.gpa-step-line.done { background: #007a87; }
.gpa-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e5e7eb; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: all .25s; z-index: 1;
}
.gpa-step.active .gpa-step-num { background: linear-gradient(135deg,#007a87,#00b4cc); color: #fff; box-shadow: 0 0 0 4px rgba(0,122,135,.18); }
.gpa-step.done   .gpa-step-num { background: #007a87; color: #fff; }
.gpa-step-label  { font-size: 11px; font-weight: 600; color: #6b7280; text-align: center; white-space: nowrap; }
.gpa-step.active .gpa-step-label, .gpa-step.done .gpa-step-label { color: #007a87; }

.gpa-step-panel { display: none; background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 28px 32px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.gpa-step-panel.active { display: block; }
.gpa-step-heading { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.gpa-step-heading-num { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#007a87,#00b4cc); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.gpa-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5e7eb; }

.gpa-pass-meter { height: 4px; background: #e5e7eb; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.gpa-pass-fill  { height: 100%; width: 0; border-radius: 4px; transition: all .3s; }
.gpa-pass-hint  { font-size: 11px; color: #6b7280; margin-top: 4px; display: block; }

.gpa-file-drop { border: 2px dashed #e5e7eb; border-radius: 10px; padding: 28px; text-align: center; cursor: pointer; position: relative; transition: border-color .18s, background .18s; }
.gpa-file-drop:hover { border-color: #007a87; background: #e8f8fa; }
.gpa-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.gpa-file-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #6b7280; font-size: 13px; }
.gpa-file-placeholder svg { color: #007a87; opacity: .6; }
.gpa-file-preview { max-height: 80px; border-radius: 8px; object-fit: cover; }

.gpa-confirm-box { background: #f8fafc; border-radius: 12px; padding: 20px; }
.gpa-confirm-box .gpa-conf-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e5e7eb; font-size: 13px; }
.gpa-confirm-box .gpa-conf-row:last-child { border-bottom: none; }
.gpa-conf-key { color: #6b7280; font-weight: 600; }
.gpa-check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #111827; cursor: pointer; line-height: 1.5; }
.gpa-check-label input[type=checkbox] { margin-top: 2px; accent-color: #007a87; flex-shrink: 0; width: 16px; height: 16px; }

/* ── CARD LOGIN ───────────────────────────────────────────── */
.gpa-card-login-panel { margin-top: 10px; padding: 16px; background: #f8fafc; border-radius: 12px; border: 1px solid #e5e7eb; }
.gpa-pin-input { font-size: 24px; letter-spacing: 10px; text-align: center; }
.gpa-pin-notice { font-size: 13px; color: #6b7280; margin-bottom: 12px; }

/* ── CONTENT BOX ──────────────────────────────────────────── */
.gpa-content-box { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.04); margin-bottom: 16px; }
.gpa-box-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #e5e7eb; }
.gpa-box-header h2, .gpa-box-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #111827; }
.gpa-count-badge { background: #e8f8fa; color: #007a87; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }

/* ── NOTIFICACIONES ───────────────────────────────────────── */
.gpa-notif-list { display: flex; flex-direction: column; gap: 2px; }
.gpa-notif-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.gpa-notif-row:hover { background: #f8fafc; }
.gpa-notif-row.unread { background: #e8f8fa; }
.gpa-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; margin-top: 5px; flex-shrink: 0; }
.gpa-notif-row.unread .gpa-notif-dot { background: #007a87; }
.gpa-notif-body-wrap { flex: 1; min-width: 0; }
.gpa-notif-title { font-size: 14px; font-weight: 600; color: #111827; }
.gpa-notif-body  { font-size: 13px; color: #6b7280; margin-top: 2px; }
.gpa-notif-time  { font-size: 11px; color: #6b7280; white-space: nowrap; flex-shrink: 0; }

/* ── STATUS PILLS ─────────────────────────────────────────── */
.gpa-status-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.gpa-status-pill.active, .gpa-status-pill.approved { background: #d1fae5; color: #065f46; }
.gpa-status-pill.pending  { background: #fef3c7; color: #92400e; }
.gpa-status-pill.suspended, .gpa-status-pill.rejected { background: #fee2e2; color: #991b1b; }

/* ── DATA TABLE ───────────────────────────────────────────── */
.gpa-data-table { display: flex; flex-direction: column; }
.gpa-data-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.gpa-data-row:last-child { border-bottom: none; }
.gpa-data-row > span { color: #6b7280; font-size: 13px; }
code { font-family: monospace; font-size: 12px; background: #f8fafc; padding: 2px 6px; border-radius: 4px; color: #111827; }
.gpa-highlight { color: #007a87 !important; font-weight: 700; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.gpa-empty { text-align: center; padding: 32px; color: #6b7280; font-size: 14px; }

/* ── LOGOUT ───────────────────────────────────────────────── */
.gpa-logout-btn { display: inline-flex; align-items: center; gap: 7px; color: #6b7280; font-size: 14px; font-weight: 600; text-decoration: none; transition: color .15s; font-family: inherit; background: none; border: none; cursor: pointer; }
.gpa-logout-btn:hover { color: #dc2626; }

/* ═══════════════════════════════════════════════════════════
   INTRANET / DASHBOARD
═══════════════════════════════════════════════════════════ */

/* HERO — degradado siempre, texto siempre blanco */
.gpa-hero {
  background: linear-gradient(135deg, #007a87 0%, #00b4cc 100%);
  background: var(--grad, linear-gradient(135deg, #007a87 0%, #00b4cc 100%));
  border-radius: 14px; padding: 28px 32px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 20px; color: #fff;
  box-shadow: 0 8px 32px rgba(0,122,135,.22);
  position: relative; overflow: hidden;
}
.gpa-hero::after { content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px; background: rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
/* TODOS los textos dentro del hero son blancos */
.gpa-hero * { color: #fff; }
.gpa-hero-av { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex-shrink: 0; position: relative; overflow: hidden; }
.gpa-hero-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gpa-hero-status-dot { position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; }
.gpa-hero-status-dot.active   { background: #4ade80; }
.gpa-hero-status-dot.pending  { background: #fbbf24; }
.gpa-hero-status-dot.suspended{ background: #f87171; }
.gpa-hero-info { flex: 1; min-width: 0; }
.gpa-hero-greeting { font-size: 14px; opacity: .85; margin-bottom: 2px; }
.gpa-hero-name { font-size: clamp(20px, 4vw, 28px); font-weight: 800; margin: 0 0 4px; letter-spacing: -.5px; }
.gpa-hero-name span { font-weight: 600; }
.gpa-hero-meta { font-size: 13px; opacity: .8; }
.gpa-coord-badge { background: rgba(255,255,255,.22); border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 700; margin-left: 8px; }
.gpa-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.gpa-hero-stat { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 12px 16px; text-align: center; min-width: 80px; backdrop-filter: blur(4px); }
.gpa-hero-stat-val { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.1; }
.gpa-hero-stat-val span { font-size: 12px; font-weight: 600; opacity: .85; }
.gpa-hero-stat-key { font-size: 10px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; color: #fff; }
.crew-badge { font-size: 13px; font-weight: 800; color: #fff; }

/* MÓDULOS */
.gpa-modules { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.gpa-mod { background: #fff; border-radius: 14px; border: 1.5px solid #e5e7eb; padding: 18px 12px; text-align: center; text-decoration: none; color: #111827; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: box-shadow .18s, border-color .18s, transform .15s; cursor: pointer; position: relative; }
.gpa-mod:hover { border-color: #007a87; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,122,135,.15); }
.gpa-mod-icon { width: 44px; height: 44px; border-radius: 12px; background: #e8f8fa; display: flex; align-items: center; justify-content: center; color: #007a87; overflow: hidden; }
.gpa-mod-icon svg { width: 22px; height: 22px; }
.gpa-mod-label { font-size: 12px; font-weight: 600; color: #111827; line-height: 1.3; }
.gpa-mod-badge { position: absolute; top: 8px; right: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* DOS COLUMNAS */
.gpa-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* GP CREW */
.gpa-crew-card { background: #f8fafc; border-radius: 12px; padding: 16px; margin-bottom: 16px; border: 1px solid #e5e7eb; }
.gpa-crew-badge { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.gpa-crew-badge.bronze { background: #fef3c7; color: #92400e; }
.gpa-crew-badge.silver { background: #f1f5f9; color: #334155; }
.gpa-crew-badge.gold   { background: #fef9c3; color: #713f12; }
.gpa-crew-desc { font-size: 13px; color: #6b7280; line-height: 1.5; margin-bottom: 12px; }
.gpa-crew-bar  { height: 8px; background: #e5e7eb; border-radius: 8px; overflow: hidden; }
.gpa-crew-fill { height: 100%; background: linear-gradient(135deg,#007a87,#00b4cc); border-radius: 8px; transition: width .6s ease; }

.gpa-crews-list { display: flex; flex-direction: column; gap: 10px; }
.gpa-crew-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: #f8fafc; border: 1.5px solid #e5e7eb; transition: border-color .15s; }
.gpa-crew-item.current  { border-color: #007a87; background: #e8f8fa; }
.gpa-crew-item:not(.unlocked) { opacity: .5; }
.gpa-crew-item-badge { font-size: 24px; flex-shrink: 0; }
.gpa-crew-item-name { font-size: 14px; font-weight: 700; color: #111827; }
.gpa-crew-item-desc { font-size: 12px; color: #6b7280; }
.gpa-crew-current-tag { margin-left: auto; font-size: 11px; color: #007a87; font-weight: 700; white-space: nowrap; }
.gpa-achievement-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #f8fafc; margin-bottom: 6px; font-size: 13px; }
.gpa-achievement-ico { font-size: 18px; }
.gpa-achievement-title { flex: 1; font-weight: 600; color: #111827; }
.gpa-achievement-pts { color: #007a87; font-weight: 700; }

/* FORMULARIOS DE SOLICITUD */
.gpa-forms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.gpa-form-card { background: #fff; border-radius: 14px; border: 1.5px solid #e5e7eb; padding: 24px 20px; text-decoration: none; color: #111827; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .18s, border-color .18s, transform .15s; }
.gpa-form-card:hover { border-color: #007a87; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,122,135,.15); }
.gpa-form-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #e8f8fa; }
.gpa-form-card-icon svg { width: 24px; height: 24px; color: #007a87; }
.gpa-form-card-title { font-size: 15px; font-weight: 700; color: #111827; }
.gpa-form-card-desc  { font-size: 13px; color: #6b7280; line-height: 1.5; }
.gpa-form-card-cta   { font-size: 12px; font-weight: 700; color: #007a87; margin-top: 4px; }

.gpa-history-list { display: flex; flex-direction: column; gap: 2px; }
.gpa-history-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: 10px; transition: background .15s; }
.gpa-history-row:hover { background: #f8fafc; }
.gpa-history-icon { width: 36px; height: 36px; flex-shrink: 0; }
.gpa-history-icon svg { width: 22px; height: 22px; }
.gpa-history-info { flex: 1; min-width: 0; }
.gpa-history-info strong { display: block; font-size: 14px; font-weight: 600; color: #111827; }
.gpa-history-info time { font-size: 12px; color: #6b7280; }
.gpa-history-note { font-size: 12px; color: #6b7280; margin-top: 2px; font-style: italic; }

/* DOWNLOADS */
.gpa-downloads-list { display: flex; flex-direction: column; gap: 8px; }
.gpa-download-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; border: 1.5px solid #e5e7eb; background: #fff; text-decoration: none; color: #111827; transition: box-shadow .18s, transform .15s, border-color .15s; }
.gpa-download-item:hover { border-color: #007a87; box-shadow: 0 4px 14px rgba(0,122,135,.12); transform: translateY(-1px); }
.gpa-dl-icon { color: #007a87; flex-shrink: 0; }
.gpa-dl-info { flex: 1; }
.gpa-dl-name { font-size: 14px; font-weight: 600; color: #111827; }
.gpa-dl-size { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* PERFIL */
.gpa-profile-layout-single { max-width: 640px; }

/* ═══════════════════════════════════════════════════════════
   TARJETA DIGITAL
═══════════════════════════════════════════════════════════ */
.gpa-card-wrap { max-width: 440px; margin: 0 auto; font-family: 'Inter', sans-serif; }
.gpa-card-pg-hdr { background: linear-gradient(135deg, #007a87 0%, #00b4cc 100%); border-radius: 14px; padding: 20px 24px; margin-bottom: 20px; color: #fff; position: relative; overflow: hidden; }
.gpa-card-pg-hdr::after { content: ''; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; background: rgba(255,255,255,.07); border-radius: 50%; }
.gpa-card-pg-hdr * { color: #fff; }
.gpa-card-pg-hdr h1 { font-size: 24px; font-weight: 800; margin: 0; }
.gpa-card-pg-hdr p  { margin: 6px 0 0; opacity: .82; font-size: 13px; }

/* ID Card 3D */
.gpa-id-card-wrap { perspective: 1000px; margin-bottom: 12px; }
.gpa-id-card { width: 100%; max-width: 400px; aspect-ratio: 1.586; position: relative; transform-style: preserve-3d; transition: transform .6s ease; border-radius: 18px; cursor: pointer; margin: 0 auto; display: block; }
.gpa-id-card.flipped { transform: rotateY(180deg); }
.gpa-id-front, .gpa-id-back { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.gpa-id-front { background: linear-gradient(145deg, #007a87 0%, #00b4cc 100%); padding: 18px 20px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.gpa-id-back  { background: linear-gradient(145deg, #005a65 0%, #007a87 100%); transform: rotateY(180deg); padding: 18px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.gpa-id-front *, .gpa-id-back * { color: #fff; }
.gpa-id-org   { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; opacity: .75; }
.gpa-id-badge { position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,.2); border-radius: 20px; padding: 3px 10px; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.gpa-id-badge.inactive { background: rgba(255,0,0,.3); }
.gpa-id-av    { width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.gpa-id-av img { width: 100%; height: 100%; object-fit: cover; }
.gpa-id-name  { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.gpa-id-role  { font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: 1px; }
.gpa-id-loc   { font-size: 11px; opacity: .7; }
.gpa-id-bc-wrap { margin-top: 4px; background: rgba(255,255,255,.12); border-radius: 8px; padding: 8px 10px; }
.gpa-id-bc-num { font-family: monospace; font-size: 9px; letter-spacing: 1.5px; opacity: .75; margin-top: 2px; }
.gpa-id-numrow { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.15); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.gpa-id-numlabel { font-size: 9px; opacity: .7; text-transform: uppercase; letter-spacing: 1px; }
.gpa-id-num   { font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.gpa-id-qr img { border-radius: 8px; background: rgba(255,255,255,.1); padding: 4px; display: block; }
.gpa-id-qrhint { font-size: 10px; opacity: .6; }
.gpa-id-legal  { font-size: 10px; opacity: .5; line-height: 1.5; max-width: 280px; }
.gpa-flip-btn  { display: flex; align-items: center; gap: 6px; margin: 8px auto 0; background: none; border: none; color: #6b7280; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.gpa-flip-btn:hover { color: #007a87; }

.gpa-card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gpa-card-actions .gpa-btn { flex: 1; min-width: 140px; }

.gpa-data-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.gpa-data-box-hdr { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; font-size: 15px; font-weight: 700; color: #111827; }
.gpa-stt-pill { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.gpa-stt-pill.active   { background: #d1fae5; color: #065f46; }
.gpa-stt-pill.pending  { background: #fef3c7; color: #92400e; }
.gpa-stt-pill.suspended{ background: #fee2e2; color: #991b1b; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .gpa-modules { grid-template-columns: repeat(3, 1fr); }
  .gpa-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gpa-page-header { padding: 20px; border-radius: 12px; margin-bottom: 16px; }
  .gpa-hdr-title   { font-size: 22px; }
  .gpa-auth-body   { padding: 20px; }
  .gpa-step-panel  { padding: 20px; }
  .gpa-content-box { padding: 16px; }
  .gpa-forms-grid  { grid-template-columns: 1fr 1fr; }
  .gpa-card-actions { flex-direction: column; }
  .gpa-step-label  { display: none; }
  .gpa-hero        { padding: 20px; flex-direction: column; align-items: flex-start; }
  .gpa-hero-stats  { margin-left: 0; width: 100%; }
}
@media (max-width: 400px) {
  .gpa-forms-grid  { grid-template-columns: 1fr; }
  .gpa-modules     { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gpa-mod         { padding: 12px 8px; }
  .gpa-mod-icon    { width: 36px; height: 36px; }
  .gpa-mod-label   { font-size: 10px; }
}
