/* ================================================================
   LOE Ambassadors - Frontend CSS v3.0 · estilo editorial plano
   La otra España · Inter · acento #8eb4ff
   Mismo lenguaje que "Mis artículos" y el editor: fondo crudo,
   bordes negros de 2px, esquinas rectas, cero sombras, cero
   degradados. Los círculos (avatares, puntos de estado) son la
   única excepción a "esquinas rectas".
================================================================ */

:root {
  --c1:     #8eb4ff;
  --c2:     #8eb4ff;
  --grad:   #8eb4ff;
  --ink:    #201e1d;
  --ink-soft: #3c3c3a;
  --muted:  #6a6a66;
  --faint:  #b0aead;
  --line:   #201e1d;
  --line-soft: #d9d9d5;
  --line-field: #c9c9c3;
  --tint:   #dfe9fb;
  --white:  #ffffff;
  --text:   #201e1d;
  --border: #d9d9d5;
  --bg:     #fafaf7;
  --mark:   #dbffa9;
  --ok:     #1f8f4a;
  --ok-bg:  #e4f4e9;
  --err:    #201e1d;
  --err-bg: #dfe9fb;
  --warn:   #e8b830;
  --warn-bg: #fbf1da;
  --r:      0px;
  --shadow: none;
  --font:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset base ─────────────────────────────────────────────── */
.loe-wrap, .loe-wrap * { box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; border-radius: 0 !important; }
.loe-wrap { color: #201e1d; margin: 0 auto; padding: 30px 0 60px; max-width: 1200px; -webkit-font-smoothing: antialiased; }
.loe-wrap-sm  { max-width: 1200px; }
.loe-wrap-md  { max-width: 1200px; }
.loe-register-wrap { max-width: 1200px; }
.loe-card-wrap { max-width: 1200px; margin: 0 auto; padding: 0 0 40px; }

/* ── Page header - banner plano, borde inferior negro de 2px ── */
.loe-page-header {
  background: #8eb4ff;
  border: 2px solid #201e1d;
  padding: 28px 32px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.loe-page-header::after { content: none; }
.loe-page-header,
.loe-page-header *,
.loe-hdr-title,
.loe-hdr-sub,
.loe-back-arrow,
.loe-back-arrow svg { color: #fff !important; fill: none !important; stroke: #fff !important; }
.loe-hdr-title { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.2; letter-spacing: -0.01em; color: #fff !important; }
.loe-hdr-sub   { margin: 6px 0 0; font-size: 14px; opacity: .9; color: #fff !important; }
/* ── Enlace de volver, el mismo en todas las pantallas ──────── */
.loe-volver {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: #201e1d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.loe-volver:hover { color: #5a83d6; }
.loe-volver-sobre-color        { color: #fff !important; text-decoration: underline !important; }
.loe-volver-sobre-color:hover  { color: #fff !important; opacity: .82; }

.loe-back-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.9) !important;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  text-decoration: none; margin-bottom: 10px;
}
.loe-back-arrow:hover { color: #fff !important; opacity: 1; text-decoration: underline; }

/* ── Auth layout ────────────────────────────────────────────── */
.loe-auth-body  { background: #fff; border: 2px solid #201e1d; padding: 28px; margin-top: 0; }
.loe-auth-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: #6a6a66; justify-content: center; }
.loe-auth-links-sep { color: #c9c9c3; }
.loe-auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #b0aead; font-size: 13px; }
.loe-auth-divider::before, .loe-auth-divider::after { content: ''; flex: 1; height: 1px; background: #d9d9d5; }
.loe-auth-footer-note { text-align: center; font-size: 14px; color: #6a6a66; margin-top: 20px; }

/* ── BOTONES ════════════════════════════════════════════════════
   Plano: sin radio, sin sombra. El hover cambia borde/fondo, nunca
   eleva ni proyecta sombra. Los colores van en style="" inline en
   el PHP como respaldo - este CSS es la fuente principal ahora.
═══════════════════════════════════════════════════════════════ */
.loe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 0 !important;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  border: 2px solid #201e1d;
  line-height: 1;
  box-shadow: none !important;
}
.loe-btn:hover  { text-decoration: none; }
.loe-btn:focus-visible { outline: 2px solid #8eb4ff; outline-offset: 2px; }
.loe-btn:active { transform: none; box-shadow: none; }

/* Primario */
.loe-btn-primary {
  background: #8eb4ff !important;
  color: #fff !important;
  border: 2px solid #201e1d !important;
}
.loe-btn-primary:hover,
.loe-btn-primary:focus,
.loe-btn-primary:active {
  background: #5a83d6 !important;
  color: #fff !important;
  border: 2px solid #201e1d !important;
}

/* Outline */
.loe-btn-outline {
  background: transparent !important;
  color: #201e1d !important;
  border: 2px solid #201e1d !important;
}
.loe-btn-outline:hover,
.loe-btn-outline:focus,
.loe-btn-outline:active {
  background: #f0eee9 !important;
  color: #201e1d !important;
  border: 2px solid #201e1d !important;
}

/* Peligro: borrar la cuenta y cosas que no tienen vuelta atrás */
.loe-btn-danger {
  background: #fff !important;
  color: #b3261e !important;
  border: 2px solid #b3261e !important;
}
.loe-btn-danger:hover,
.loe-btn-danger:focus,
.loe-btn-danger:active {
  background: #fdeceb !important;
  color: #b3261e !important;
  border: 2px solid #b3261e !important;
}

/* Aviso: acciones fuertes pero reversibles, como desactivar la cuenta */
.loe-btn-aviso {
  background: #fff !important;
  color: #a15c07 !important;
  border: 2px solid #a15c07 !important;
}
.loe-btn-aviso:hover,
.loe-btn-aviso:focus,
.loe-btn-aviso:active {
  background: #fdf4e7 !important;
  color: #a15c07 !important;
  border: 2px solid #a15c07 !important;
}

.loe-btn-full { width: 100%; }

/* Spinner dentro del botón */
@keyframes loe-spin { to { transform: rotate(360deg); } }
.btn-spin { animation: loe-spin .8s linear infinite; }
.loe-hidden { display: none !important; }

/* Google button */
.loe-btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 44px; border-radius: 0 !important;
  background: #fff; border: 2px solid #201e1d;
  font-size: 14px; font-weight: 600; color: #201e1d;
  cursor: pointer; text-decoration: none; transition: background .15s;
}
.loe-btn-google:hover { background: #f0eee9; }

/* ── Selector de filtros tipo pestañas (Mis piezas, etc.) ──────────
   El borde (contenedor + separadores) es SIEMPRE #201e1d, también en
   hover: no se toca border-color en ningún estado. En hover, el botón
   NO seleccionado se pone beige; el botón seleccionado (.active) se
   queda en negro también al pasar el ratón por encima. ── */
.loet-ctl { display: flex; align-items: stretch; flex: 0 1 auto; border: 2px solid #201e1d; }
.loet-ctl .loe-filtro-btn {
  border: 0; border-right: 2px solid #201e1d; border-radius: 0;
  background: transparent; color: #201e1d; cursor: pointer;
  padding: 0 10px; white-space: nowrap; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.loet-ctl .loe-filtro-btn:last-child { border-right: 0; }
.loet-ctl .loe-filtro-btn:hover { background: #f0eee9; color: #111111; }
.loet-ctl .loe-filtro-btn.active,
.loet-ctl .loe-filtro-btn.active:hover {
  background: #201e1d; color: #fafaf7;
}

/* ── Inputs ─────────────────────────────────────────────────── */
.loe-field { display: flex; flex-direction: column; gap: 6px; }
.loe-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6a6a66; }
.loe-req   { color: #201e1d; }
.loe-input {
  width: 100%; height: 42px; padding: 0 14px;
  border: 1px solid #c9c9c3; border-radius: 0 !important;
  font-size: 14px; color: #201e1d;
  background: #fafaf7;
  transition: border-color .15s;
  font-family: inherit;
}

/* Hide native password reveal icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}
.loe-input:focus { outline: none; border-color: #8eb4ff; box-shadow: none; background: #fff; }
.loe-input::placeholder { color: #b0aead; }
textarea.loe-input { height: auto; padding: 12px 14px; resize: vertical; }
select.loe-input { cursor: pointer; }

/* Campos deshabilitados - texto SIEMPRE visible */
.loe-input:disabled,
.loe-input[readonly],
input:disabled, select:disabled, textarea:disabled,
input[readonly], select[readonly] {
  background: #f0eee9 !important;
  color: #3c3c3a !important;
  -webkit-text-fill-color: #3c3c3a !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

/* Input con icono */
.loe-input-wrap { position: relative; }
.loe-input-wrap .loe-input { padding-left: 42px; padding-right: 42px; }
.loe-input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #b0aead; pointer-events: none; }
.loe-eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #b0aead; outline: none; }
.loe-eye-btn:focus { outline: none; box-shadow: none; }
.loe-eye-btn svg { width: 18px; height: 18px; transition: opacity 0.15s ease; }

@keyframes loe-eye-pulse {
  0% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(0.95); }
  100% { transform: translateY(-50%) scale(1); }
}
.loe-eye-animate { animation: loe-eye-pulse 0.15s ease; }
.loe-eye-transition svg { opacity: 0.5; }

/* Password meter */
.loe-pass-meter { height: 4px; background: #ececea; margin-top: 6px; overflow: hidden; }
.loe-pass-fill  { height: 100%; width: 0; transition: width .3s, background .3s; }
.loe-pass-hint  { font-size: 11px; color: #6a6a66; margin-top: 2px; }

/* ── Formulario ─────────────────────────────────────────────── */
.loe-form { display: flex; flex-direction: column; gap: 16px; }
.loe-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.loe-full   { grid-column: 1 / -1; }
.loe-textarea { min-height: 120px; }
.loe-nopaste-notice { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6a6a66; background: #fafaf7; padding: 10px 14px; border: 1px solid #d9d9d5; margin-bottom: 16px; }
.loe-check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #3c3c3a; cursor: pointer; text-transform: none; letter-spacing: normal; font-weight: 400; }
.loe-check-label input { margin-top: 2px; flex-shrink: 0; }

/* Feedback */
.loe-form-feedback { display: none; padding: 12px 16px; font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.loe-feedback-ok  { display: block; background: #e4f4e9; color: #1f8f4a; border-color: #bfe3cb; }
.loe-feedback-err { display: block; background: #dfe9fb; color: #201e1d; border-color: #f2c2b8; }

/* Alerts */
.loe-alert { padding: 12px 16px; font-size: 14px; font-weight: 500; margin-bottom: 16px; border: 1px solid transparent; }
.loe-alert-success { background: #e4f4e9; color: #1f8f4a; border-color: #bfe3cb; }
.loe-alert-error   { background: #dfe9fb; color: #201e1d; border-color: #f2c2b8; }
.loe-alert-info    { background: #dfe9fb; color: #29508f; border-color: #c3d6f5; }

/* Links */
.loe-link      { color: #5a83d6; text-decoration: none; font-weight: 600; }
.loe-link:hover { text-decoration: underline; color: #8eb4ff; }
.loe-link-bold { font-weight: 700; }

/* ── Login con carné ─────────────────────────────────────── */
.loe-card-login-panel { margin-top: 16px; padding: 20px; background: #fafaf7; border: 1px solid #d9d9d5; }
.loe-pin-notice { font-size: 14px; color: #3c3c3a; margin: 0 0 12px; }

/* ── Stepper registro ───────────────────────────────────────── */
.loe-stepper {
  display: flex; align-items: center;
  margin-bottom: 28px; padding: 0 8px;
  gap: 0;
}
.loe-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.loe-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: #fff; border: 2px solid #d9d9d5; color: #b0aead;
  transition: all .2s;
}
.loe-step.active .loe-step-num { background: #8eb4ff; border-color: #201e1d; color: #fff; }
.loe-step.done   .loe-step-num { background: #201e1d; border-color: #201e1d; color: #fff; }
.loe-step-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #b0aead; white-space: nowrap; }
.loe-step.active .loe-step-label,
.loe-step.done   .loe-step-label { color: #201e1d; }
.loe-step-line   { flex: 1; height: 2px; background: #d9d9d5; transition: background .20s ease-in-out; margin: 0 4px; margin-bottom: 22px; }
.loe-step-line.done { background: #201e1d; }

/* Panel de paso */
.loe-step-panel { display: none; }
.loe-step-panel.active { display: block; }
.loe-step-heading { display: none; }
.loe-step-heading-num { width: 26px; height: 26px; background: #8eb4ff; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.loe-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; }

/* Confirm box registro */
.loe-confirm-box { background: #fafaf7; padding: 20px; border: 1px solid #d9d9d5; }

/* ── Dashboard - Hero ─────────────────────────────────────────  */
.loe-intranet { max-width: 1200px; }
.loe-hero { border: 2px solid #201e1d; padding: 28px 32px; margin-bottom: 24px; position: relative; overflow: visible; background: #8eb4ff; }
.loe-hero * { color: #fff; }

/* ── Módulos de navegación ──────────────────────────────────── */
.loe-modules {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.loe-mod {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; padding: 18px 12px;
  text-decoration: none !important; color: #3c3c3a !important;
  border: 2px solid #201e1d;
  transition: background .15s;
  position: relative;
  font-size: 12px; font-weight: 600; text-align: center;
}
.loe-mod:hover { background: #f0eee9; color: #201e1d !important; }
.loe-mod-icon {
  width: 42px; height: 42px;
  background: #dfe9fb;
  display: flex; align-items: center; justify-content: center;
}
.loe-mod-icon svg { width: 22px; height: 22px; stroke: #5a83d6; }
.loe-mod-label { font-size: 11px; font-weight: 600; color: #3c3c3a !important; line-height: 1.3; text-decoration: none !important; }
.loe-mod:hover .loe-mod-label { color: #201e1d !important; }
.loe-mod-badge {
  position: absolute; top: 6px; right: 6px;
  background: #201e1d; color: #fff;
  font-size: 10px; font-weight: 800; min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Two column layout ──────────────────────────────────────── */
.loe-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }

/* ── Content box ────────────────────────────────────────────── */
.loe-content-box {
  background: #fff; padding: 24px;
  border: 2px solid #201e1d; margin-bottom: 24px;
}
.loe-box-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.loe-box-header h2,
.loe-crew-desc { font-size: 14px; font-weight: 500; color: #3c3c3a; margin-bottom: 7px; }
.loe-box-header h3 { margin: 0; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #201e1d; }
.loe-count-badge { background: #8eb4ff; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; }

/* ── Notificaciones ─────────────────────────────────────────── */
.loe-notif-list { display: flex; flex-direction: column; gap: 2px; }
.loe-notif-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  transition: background .12s;
}
.loe-notif-row:hover { background: #fafaf7; }
.loe-notif-row.unread { background: #dfe9fb; }
.loe-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d5; flex-shrink: 0; margin-top: 6px; }
.loe-notif-row.unread .loe-notif-dot { background: #8eb4ff; }
.loe-notif-body-wrap { flex: 1; }
.loe-notif-title { font-size: 14px; font-weight: 600; color: #201e1d; }
.loe-notif-body  { font-size: 13px; color: #6a6a66; margin-top: 2px; }
.loe-notif-time  { font-size: 11px; color: #b0aead; white-space: nowrap; flex-shrink: 0; }

/* ── LOE Crew ────────────────────────────────────────────────── */
.loe-crew-card { background: #fafaf7; padding: 16px; margin-bottom: 16px; border: 1px solid #d9d9d5; }
.loe-crew-badge { display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: 800; margin-bottom: 8px; border: 1px solid transparent; }
.loe-crew-badge.bronze { background: #fbf1da; color: #92400e; }
.loe-crew-badge.silver { background: #f0eee9; color: #3c3c3a; }
.loe-crew-badge.gold   { background: #fbf1c8; color: #713f12; }
.loe-crew-bar  { height: 8px; background: #ececea; overflow: hidden; }
.loe-crew-fill { height: 100%; background: #8eb4ff; transition: width .6s ease; }
.loe-crews-list { display: flex; flex-direction: column; gap: 12px; }
.loe-crew-item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #d9d9d5; }
.loe-crew-item.locked{
    opacity:.55;
    filter:grayscale(1);
    position:relative;
}
.loe-crew-item.locked::after{
    content:'🔒';
    position:absolute;
    top:10px;
    right:10px;
    font-size:14px;
    opacity:.9;
}
.loe-crew-item.current { border-color: #201e1d; background: #dfe9fb; }
.loe-crew-item-badge { font-size: 24px; }
.loe-crew-item-name { font-size: 14px; font-weight: 700; color: #201e1d; }
.loe-crew-item-desc { font-size: 12px; color: #6a6a66; margin-top: 2px; }
.loe-crew-current-tag { margin-left: auto; font-size: 11px; font-weight: 700; color: #5a83d6; white-space: nowrap; }
.loe-achievement-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ececea; font-size: 13px; }
.loe-achievement-ico { font-size: 18px; }
.loe-achievement-title { flex: 1; color: #3c3c3a; }
.loe-achievement-pts { font-weight: 700; color: #5a83d6; }

/* ── Formularios de solicitud ───────────────────────────────── */
.loe-forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.loe-form-card, .loe-form-card * {
  text-decoration: none !important;
}
.loe-form-card {
  background: #fff; border: 2px solid #201e1d;
  padding: 20px; color: #201e1d;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .15s, border-color .15s;
}
.loe-form-card:hover { background: #fafaf7; border-color: var(--card-color, #8eb4ff); }
.loe-form-card-icon svg { width: 26px; height: 26px; stroke: var(--card-color, #5a83d6); }
.loe-form-card-title { font-size: 15px; font-weight: 700; color: #201e1d; }
.loe-form-card-desc  { font-size: 13px; color: #6a6a66; line-height: 1.5; }
.loe-form-card-cta   { font-size: 13px; font-weight: 700; color: var(--card-color, #5a83d6); margin-top: 4px; }

/* Historial de solicitudes */
.loe-history-list { display: flex; flex-direction: column; gap: 2px; }
.loe-history-row  { display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px; }
.loe-history-row:nth-child(odd) { background: #fafaf7; }
.loe-history-icon svg { width: 20px; height: 20px; margin-top: 2px; }
.loe-history-info { flex: 1; }
.loe-history-info strong { font-size: 14px; color: #201e1d; display: block; }
.loe-history-info time { font-size: 12px; color: #b0aead; display: block; margin-top: 2px; }
.loe-history-note { font-size: 13px; color: #3c3c3a; margin-top: 4px; background: #e4f4e9; padding: 6px 10px; }

/* Status pills */
.loe-status-pill { padding: 3px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.loe-status-pill.pending  { background: #fbf1da; color: #92400e; }
.loe-status-pill.approved { background: #e4f4e9; color: #1f8f4a; }
.loe-status-pill.rejected { background: #dfe9fb; color: #201e1d; }
.loe-stt-pill { padding: 3px 10px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.loe-stt-pill.active    { background: #e4f4e9; color: #1f8f4a; }
.loe-stt-pill.pending   { background: #fbf1da; color: #92400e; }
.loe-stt-pill.suspended { background: #dfe9fb; color: #201e1d; }

/* ── Carné digital ────────────────────────────────────────── */
.loe-id-card-wrap { perspective: 1200px; margin-bottom: 16px; }
.loe-id-card {
  width: 100%; max-width: 380px; aspect-ratio: 1.586;
  position: relative; transform-style: preserve-3d;
  transition: transform .6s ease;
  cursor: pointer; margin: 0 auto; display: block;
}
.loe-id-card.flipped { transform: rotateY(180deg); }
.loe-id-front, .loe-id-back {
  position: absolute; inset: 0; border: 2px solid #201e1d;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.loe-id-front {
  background: #8eb4ff;
  padding: 18px 20px; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.loe-id-back {
  background: #8eb4ff;
  transform: rotateY(180deg);
  padding: 20px; color: #fff;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center;
}
.loe-id-org   { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; color: #fff !important; }
.loe-id-badge { position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,.25); padding: 3px 10px; font-size: 10px; font-weight: 700; color: #fff !important; }
.loe-id-badge.inactive { background: rgba(200,50,30,.5); }
.loe-id-av { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; overflow: hidden; flex-shrink: 0; color: #fff !important; }
.loe-id-av img { width: 100%; height: 100%; object-fit: cover; }
.loe-id-name  { font-size: 16px; font-weight: 800; color: #fff !important; margin-top: 4px; }
.loe-id-role  { font-size: 9px; opacity: .8; text-transform: uppercase; letter-spacing: 1px; color: #fff !important; }
.loe-id-loc   { font-size: 11px; opacity: .7; color: #fff !important; }
.loe-id-bc-wrap { margin-top: 4px; background: rgba(255,255,255,.12); padding: 8px 10px; display: flex; flex-direction: column; align-items: center; }
.loe-id-bc-num  { font-family: monospace; font-size: 9px; letter-spacing: 1.5px; opacity: .8; margin-top: 4px; color: #fff !important; }
.loe-id-numrow  { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.2); padding: 6px 10px; margin-top: 4px; }
.loe-id-numlabel { font-size: 9px; opacity: .75; text-transform: uppercase; letter-spacing: 1px; color: #fff !important; }
.loe-id-num     { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #fff !important; }
.loe-id-qr img  { background: rgba(255,255,255,.12); padding: 4px; }
.loe-id-qrhint  { font-size: 10px; opacity: .7; color: #fff !important; }
.loe-id-legal   { font-size: 10px; opacity: .5; line-height: 1.5; max-width: 260px; color: #fff !important; }
.loe-flip-btn   { display: flex; align-items: center; gap: 6px; margin: 10px auto; background: none; border: none; color: #6a6a66; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.loe-flip-btn:hover { color: #5a83d6; }
.loe-card-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.loe-card-actions a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 2px solid #201e1d; font-size: 14px; font-weight: 700; text-decoration: none; }
.loe-card-actions a.primary { background: #8eb4ff !important; color: #fff !important; }
.loe-card-actions a.primary:hover { background: #5a83d6 !important; }
.loe-data-box { background: #fff; border: 2px solid #201e1d; overflow: hidden; }
.loe-data-box-hdr { padding: 14px 18px; border-bottom: 1px solid #d9d9d5; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #201e1d; }
.loe-data-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #ececea; font-size: 13px; color: #3c3c3a; }
.loe-data-row:last-child { border-bottom: none; }
.loe-data-row span:first-child { color: #6a6a66; }
.loe-data-row strong { color: #201e1d; font-weight: 600; }
.loe-data-row code { font-family: monospace; background: #f0eee9; padding: 2px 6px; font-size: 12px; }

/* ── Downloads / docs ───────────────────────────────────────── */
.loe-downloads-list { display: flex; flex-direction: column; gap: 8px; }
.loe-download-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fafaf7; border: 1px solid #d9d9d5; text-decoration: none; color: #201e1d; transition: border-color .15s, background .15s; }
.loe-download-item:hover { background: #fff; border-color: #201e1d; }
.loe-dl-icon { width: 40px; height: 40px; background: #dfe9fb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.loe-dl-icon svg { width: 20px; height: 20px; stroke: #5a83d6; }
.loe-dl-info { flex: 1; }
.loe-dl-name { font-size: 14px; font-weight: 600; color: #201e1d; }
.loe-dl-size { font-size: 12px; color: #6a6a66; margin-top: 2px; }

/* ── Perfil ─────────────────────────────────────────────────── */
.loe-profile-layout-single { display: block; }
.loe-profile-layout-single .loe-content-box:last-child { margin-bottom: 0; }

/* ── Avatar drag & drop ─────────────────────────────────────── */
.loe-avatar-uploader {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px; border: 2px dashed #201e1d; background: #fafaf7;
  cursor: pointer; transition: background .12s, border-style .12s;
}
.loe-avatar-uploader:hover,
.loe-avatar-uploader.loe-avatar-uploader-active {
  background: #eef4ff; border-style: solid;
}
.loe-avatar-preview-wrap {
  position: relative; width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid #201e1d; overflow: hidden;
  background: #8eb4ff; display: flex; align-items: center; justify-content: center;
}
.loe-avatar-preview-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.loe-avatar-initials {
  font-size: 22px; font-weight: 800; color: #fff; letter-spacing: .5px;
}
.loe-avatar-uploader-text { flex: 1; min-width: 180px; }
.loe-avatar-uploader-title { font-size: 14px; font-weight: 700; color: #201e1d; }
.loe-avatar-uploader-sub { font-size: 12px; color: #6b6963; margin: 3px 0 10px; }
.loe-avatar-uploader-btn { height: 34px !important; padding: 0 16px !important; font-size: 12px !important; }

/* ── Zona de subida de archivo (autorización, documentos) ───────
   Mismo lenguaje que el uploader de avatar: caja punteada, sin
   estilos nativos del navegador, feedback claro al elegir archivo. ── */
.loe-file-drop {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px;
  padding: 26px 18px;
  border: 2px dashed #201e1d;
  background: #fafaf7;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.loe-file-drop:hover,
.loe-file-drop.loe-file-drop-active {
  background: #eef4ff;
  border-color: #8eb4ff;
}
.loe-file-drop:focus-visible { outline: 2px solid #8eb4ff; outline-offset: 2px; }
.loe-file-drop-icon { color: #8eb4ff; }
.loe-file-drop-icon svg { display: block; }
.loe-file-drop-text { font-size: 13.5px; font-weight: 700; color: #201e1d; }
.loe-file-drop-sub  { font-size: 12px; color: #6a6a66; }
.loe-file-drop-name {
  display: none;
  align-items: center; gap: 6px;
  margin-top: 4px;
  font-size: 12.5px; font-weight: 700; color: #1f8f4a;
}
.loe-file-drop-name.loe-file-drop-name-show { display: inline-flex; }

/* ── Redes sociales (onboarding de autor) ──────────────────────── */
.loe-social-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.loe-social-field {
  display: flex; align-items: stretch; border: 2px solid #201e1d; background: #fff;
}
.loe-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; flex-shrink: 0; background: #201e1d; color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
}
.loe-social-input {
  border: none !important; flex: 1; min-width: 0;
}
@media (max-width: 640px) {
  .loe-social-row { grid-template-columns: 1fr; }
  .loe-wrap div[style*="grid-template-columns:1fr 1fr"],
  .loe-wrap div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .loe-wrap div[style*="grid-template-columns:repeat(3,1fr)"],
  .loe-wrap div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .loe-avatar-uploader { flex-direction: column; text-align: center; }
}

/* ── Logout button ──────────────────────────────────────────── */
.loe-logout-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: #6a6a66; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  padding: 10px 20px;
  border: 2px solid #d9d9d5; background: #fff;
  transition: color .15s, border-color .15s;
}
.loe-logout-btn:hover { color: #201e1d; border-color: #201e1d; }
.loe-logout-btn svg { stroke: currentColor; }

/* ── Notice ────────────────────────────────────────────────── */
.loe-notice { padding: 14px 18px; background: #dfe9fb; color: #29508f; border: 1px solid #c3d6f5; font-size: 14px; }
.loe-notice a { color: #29508f; font-weight: 700; }
.loe-empty { color: #b0aead; font-size: 14px; text-align: center; padding: 24px 0; }

/* ── Btn-link ───────────────────────────────────────────────── */
.loe-btn-link { background: none; border: none; cursor: pointer; font-size: 13px; font-weight: 700; color: #5a83d6; padding: 0; font-family: inherit; }
.loe-btn-link:hover { text-decoration: underline; color: #8eb4ff; }

/* ── Coord badge ────────────────────────────────────────────── */
.loe-coord-badge { background: rgba(255,255,255,.25); padding: 2px 10px; font-size: 11px; font-weight: 700; color: #fff !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .loe-page-header { padding: 20px; margin-bottom: 16px; }
  .loe-hdr-title   { font-size: 21px; }
  .loe-auth-body   { padding: 20px; }
  .loe-step-panel  { padding: 0; }
  .loe-content-box { padding: 16px; }
  .loe-forms-grid  { grid-template-columns: 1fr; }
  .loe-grid-2      { grid-template-columns: 1fr; }
  .loe-two-col     { grid-template-columns: 1fr; }
  .loe-modules     { grid-template-columns: repeat(3, 1fr); }
  .loe-hero        { padding: 20px; }
  .loe-stepper     { gap: 2px; }
  .loe-step-label  { display: none; }
  .loe-input,
  select.loe-input,
  textarea.loe-input { font-size: 16px; }
}
@media (max-width: 420px) {
  .loe-modules { grid-template-columns: repeat(2, 1fr); }
  .loe-card-actions { flex-direction: column; }
}

/* ── Errores inline por campo ───────────────────────────────── */
.loe-field-error {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #201e1d;
  margin-top: 4px;
}
.loe-field-error:not(:empty) {
  display: block;
}
