/*MERCE NARCIS*/
/* ═══════════════════════════════════════════════════════════════════════════════
   custom.css  —  Estilos consolidados CiutatQueCuida
   Organización:
     1.  Base / Reset parcial
     2.  Formularios heredados
     3.  Modales (react-modal legacy)
     4.  Botones legacy (btn-blau, btn-turquesa, …)
     5.  LoginDropdown  (ld-*)
     6.  LoginScreen    (ls-*)
     7.  UserLayout     (ul-*)
     8.  AdminLayout    (al-*)
     9.  MenuPrincipal usuario  (mp-*)
    10.  MenuPrincipalADMIN / CercaTableADMIN  (ca-*)
    11.  Resultats / ResultatsCategoria  (res-*)
    12.  Componentes de formulario admin  (fa-*)
    13.  ModificarScreen  (ms-*)
    14.  Utilitarios compartidos
    15.  Animaciones
    16.  Colores xPunto
    17. FORMULARI PRINCIPAL  (fp-*)
   ═══════════════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────────────────
   1. BASE
   ───────────────────────────────────────────────────────────────────────────── */
body {
  background: #F5FCF8;
}

h2, h3, h4 { color: #656469; }
h3 { font-size: 16px; font-weight: bold; }

.ml-10  { margin-left: 10px; }
.ml-20  { margin-left: 40px; }
.align-right  { text-align: right; }
.align-center { text-align: center; }


/* ─────────────────────────────────────────────────────────────────────────────
   2. FORMULARIOS HEREDADOS
   ───────────────────────────────────────────────────────────────────────────── */
.contenedor-formulario {
  width: 80%;
  margin: 0;
  padding-left: 40px;
  border-radius: 10px;
  background-color: #FFF;
  padding-bottom: 40px;
}

.form-inputCat, .form-control {
  display: block;
  width: 70%;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: rgb(223 223 223);
  padding: 1rem 1.5rem;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.tabla-valores {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.tabla-valores th {
  background-color: #ddd;
  padding: 8px;
  text-align: center;
  position: relative;
}
.tabla-valores td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  position: relative;
}
.valor-referencia {
  background-color: #efefef;
  font-weight: bold;
  cursor: pointer;
  text-align: center !important;
}

.info-icon    { font-size: 14px; margin-left: 5px; opacity: 0.6; }
.input-valor  { width: 60px; padding: 5px; text-align: center; }
.suma-total   { font-size: 16px; margin-top: 10px; font-weight: bold; }
.error        { color: red; font-weight: bold; }

.btn-guardar {
  margin-top: 15px;
  padding: 10px;
  background-color: #00afa9;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s;
}
.btn-guardar:hover { background-color: #0a7d79; }

.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
  padding: 10px;
  margin-bottom: 20px;
}

td#verd   { background: #ffffff; }
td#vermell{ background: #d07d85; }
td#groc   { background: #e8ab77; }

thead { font-weight: bold; }

.table > :not(caption) > * > * {
  padding: 0.5rem;
  background-color: #FFF;
  border-bottom-width: 1px;
  width: 70%;
}

/* DataTable overrides */
.iSAVrt  { font-weight: bold; font-size: 13px !important; padding-top: 10px; }
.bQdYbR  { min-width: 92px !important; }
.eVPPvF, .glyQNg { padding-left: 10px !important; padding-right: 10px !important; }

button.print,
button.download { color: #649D35 !important; }
button.print:hover,
button.download:hover { background-color: #DDD !important; }
button.print:hover::after,
button.download:hover::after { content: '' !important; }

.data-table-extensions > .data-table-extensions-action > button::after {
  display: block; white-space: nowrap; width: 60px;
  margin-top: 30px; margin-left: -20px;
  animation: fadeIn 0.4s; text-align: center;
  background: #f5f5f5; line-height: 24px; border-radius: 5px;
  font-size: 13px; color: #649D35 !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. MODALES LEGACY (react-modal)
   ───────────────────────────────────────────────────────────────────────────── */
.ReactModalPortal > div { opacity: 0; }

.ReactModalPortal .ReactModal__Overlay {
  align-items: center;
  display: flex;
  justify-content: center;
  transition: opacity .2s ease-in-out;
  z-index: 999;
}
.ReactModalPortal .ReactModal__Overlay--after-open  { opacity: 1; }
.ReactModalPortal .ReactModal__Overlay--before-close{ opacity: 0; }

.modal-fondo {
  background-color: rgba(0,0,0,0.3);
  bottom: 0; left: 0; right: 0; top: 0;
  position: fixed;
}

.modal#modalUser {
  background: white;
  border-radius: 5px;
  color: rgb(51,51,51);
  display: inline;
  max-height: 620px;
  width: 500px;
  outline: none;
  padding: 10px;
  overflow-y: scroll;
}

header img { width: 200px; margin: 10px; }


/* ─────────────────────────────────────────────────────────────────────────────
   4. BOTONES LEGACY
   ───────────────────────────────────────────────────────────────────────────── */
.btn-blau, .btn-turquesa, .btn-rosa, .btn-lila,
.btn-turquesa2, .btn-close {
  display: inline-block;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.84px;
  color: rgb(250 250 250);
  transition-duration: 300ms;
}
.btn-blau    { background-color: rgb(0 95 113);   padding: 18px 2.25rem; }
.btn-turquesa{ background-color: rgb(0 175 169);  padding: 18px 2.25rem; }
.btn-rosa    { background-color: rgb(226 0 120);  padding: 18px 2.25rem; }
.btn-lila    { background-color: rgb(0 43 103);   padding: 10px; }
.btn-turquesa2{ background-color: rgb(75 133 147); padding: 10px; }
.btn-close   { background-color: rgb(0 0 0);      padding: 8px; }

.btn-blau:hover, .btn-turquesa:hover, .btn-rosa:hover,
.btn-lila:hover, .btn-turquesa2:hover, .btn-close:hover {
  background-color: rgb(39 39 39);
}


/* ─────────────────────────────────────────────────────────────────────────────
   5. LOGIN DROPDOWN  (ld-*)
   ───────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

.ld-wrap { position: relative; }

.ld-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 10px;
  background: #002b67; color: #fff;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.ld-trigger:hover { background: #003a8a; }
.ld-trigger svg { transition: transform 0.2s; }
.ld-trigger.open svg { transform: rotate(180deg); }

.ld-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; background: #fff; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
  padding: 28px;
  animation: ldDropIn 0.18s ease;
  z-index: 200;
}
@keyframes ldDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ld-title { font-size: 20px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.ld-desc  { font-size: 13px; color: #9ca3af; margin: 0 0 20px; }

.ld-field { margin-bottom: 14px; }
.ld-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}
.ld-input {
  width: 100%; padding: 11px 13px; box-sizing: border-box;
  border-radius: 9px; border: 1.5px solid #e5e7eb;
  font-size: 14px; color: #111827; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ld-input:focus {
  border-color: #6f9b19;
  box-shadow: 0 0 0 3px rgba(111,155,25,0.12);
}
.ld-input::placeholder { color: #d1d5db; }

.ld-pass-wrap { position: relative; }
.ld-pass-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #9ca3af; font-size: 14px; padding: 0;
}
.ld-pass-toggle:hover { color: #6b7280; }

.ld-row-forgot { display: flex; justify-content: flex-end; margin: -4px 0 14px; }
.ld-forgot-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: #6b7280; text-decoration: underline; padding: 0;
}
.ld-forgot-btn:hover { color: #374151; }

.ld-error {
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #991b1b; font-size: 12px;
  padding: 9px 12px; border-radius: 7px; margin-bottom: 14px;
}
.ld-btn {
  width: 100%; padding: 12px; border-radius: 9px; border: none;
  background: #002b67; color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.ld-btn:hover:not(:disabled) { background: #003a8a; }
.ld-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ld-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(2px);
}
.ld-modal {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 420px; padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.ld-modal-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #111827; }
.ld-modal-desc  { margin: 0 0 22px; font-size: 14px; color: #6b7280; line-height: 1.55; }
.ld-modal-input {
  width: 100%; padding: 11px 13px; font-size: 14px; box-sizing: border-box;
  border: 1.5px solid #e5e7eb; border-radius: 8px; outline: none;
}
.ld-modal-input:focus { border-color: #6f9b19; }
.ld-modal-error {
  padding: 9px 12px; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 8px; color: #dc2626; font-size: 13px; margin-bottom: 12px;
}
.ld-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.ld-modal-cancel {
  flex: 1; padding: 11px; border-radius: 9px; font-size: 14px; font-weight: 500;
  background: #f3f4f6; color: #374151; border: none; cursor: pointer;
}
.ld-modal-cancel:hover { background: #e5e7eb; }
.ld-modal-send {
  flex: 1; padding: 11px; border-radius: 9px; font-size: 14px; font-weight: 600;
  background: #002b67; color: #fff; border: none; cursor: pointer;
}
.ld-modal-send:hover:not(:disabled) { background: #003a8a; }
.ld-modal-send:disabled { opacity: 0.6; cursor: not-allowed; }
.ld-modal-ok-btn {
  width: 100%; padding: 11px; border-radius: 9px; font-size: 14px; font-weight: 600;
  background: #002b67; color: #fff; border: none; cursor: pointer;
}
.ld-modal-ok-btn:hover { background: #003a8a; }

@media (max-width: 600px) {
  .ld-dropdown { width: calc(100vw - 32px); right: -16px; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. LOGIN SCREEN  (ls-*)
   ───────────────────────────────────────────────────────────────────────────── */
.ls-hero {
  background: #002b67;
  padding: 96px 32px 80px;
  text-align: center;
  position: relative; overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.ls-hero::before {
  content: '';
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: rgba(111,155,25,0.12); pointer-events: none;
}
.ls-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(111,155,25,0.2); border: 1px solid rgba(111,155,25,0.35);
  color: #a8cc47; font-size: 11px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 24px;
}
.ls-hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6f9b19;
}
.ls-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 72px); color: #fff; line-height: 1.1; margin: 0 0 20px;
}
.ls-hero-title em { font-style: italic; color: #6f9b19; }
.ls-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px); color: rgba(255,255,255,0.65);
  max-width: 560px; margin: 0 auto 48px; line-height: 1.7;
}
.ls-hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.ls-stat-val {
  font-family: 'DM Serif Display', serif; font-size: 40px; color: #fff; line-height: 1;
}
.ls-stat-lbl {
  font-size: 11px; color: rgba(255,255,255,0.5);
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.07em;
}
.ls-stat-sep { width: 1px; background: rgba(255,255,255,0.15); align-self: stretch; }

.ls-features-section {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 32px; font-family: 'DM Sans', sans-serif;
}
.ls-section-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6f9b19; margin-bottom: 12px;
}
.ls-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3vw, 40px); color: #111827;
  margin: 0 0 48px; max-width: 480px; line-height: 1.2;
}
.ls-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.ls-feat-card {
  background: #fff; border-radius: 16px; border: 1px solid #f3f4f6;
  padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s;
}
.ls-feat-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px);
}
.ls-feat-icon  { font-size: 28px; margin-bottom: 14px; }
.ls-feat-title { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.ls-feat-text  { font-size: 13px; color: #6b7280; line-height: 1.65; margin: 0; }

.ls-footer {
  background: #f9fafb; border-top: 1px solid #f0f0f0;
  text-align: center; padding: 32px;
  font-size: 13px; color: #9ca3af; font-family: 'DM Sans', sans-serif;
}

@media (max-width: 600px) {
  .ls-hero-stats { gap: 28px; }
  .ls-stat-sep { display: none; }
  .ls-features-section { padding: 48px 16px; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. USER LAYOUT  (ul-*)
   ───────────────────────────────────────────────────────────────────────────── */
.ul-hero {
  position: relative;
  height: 200px;
  background: #002b67;
  overflow: hidden;
}
.ul-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.35;
}
.ul-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,43,103,0.9) 0%, rgba(0,43,103,0.45) 100%);
}
.ul-hero-content {
  position: relative; z-index: 1;
  max-width: 1500px; margin: 0 auto;
  padding: 0 32px; height: 100%;
  display: flex; align-items: center; gap: 22px;
}
.ul-hero-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: rgba(255,255,255,0.6);
  overflow: hidden;
}
.ul-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ul-hero-info { flex: 1; min-width: 0; }
.ul-hero-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #a8cc47; margin-bottom: 6px;
}
.ul-hero-name {
  font-size: clamp(20px, 3vw, 32px); font-weight: 700;
  color: #fff; margin: 0 0 12px; line-height: 1.1;
}
.ul-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ul-hero-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
  font-size: 12px; font-weight: 500;
  padding: 4px 11px; border-radius: 99px;
  white-space: nowrap;
}
.ul-hero-chip a { color: inherit; text-decoration: none; }
.ul-hero-chip a:hover { text-decoration: underline; }
.ul-body {
  max-width: 1500px; margin: 0 auto;
  padding: 32px 32px 64px;
}

@media (max-width: 600px) {
  .ul-hero { height: auto; padding: 24px 0; }
  .ul-hero-content { padding: 0 16px; }
  .ul-body { padding: 20px 16px 48px; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   8. ADMIN LAYOUT  (al-*)
   ───────────────────────────────────────────────────────────────────────────── */
.al-layout { display:flex; min-height:calc(100vh - 80px); background:#f9fafb; }

.al-sidebar {
  width:220px; flex-shrink:0;
  background:#fff; border-right:1px solid #e5e7eb;
  display:flex; flex-direction:column;
}

/* Avatar */
.al-sidebar-avatar-wrap {
  display:flex; align-items:center; gap:10px;
  padding:18px 16px; border-bottom:1px solid #f3f4f6;
}
.al-avatar-circle {
  width:36px; height:36px; border-radius:50%;
  background:#111827; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; flex-shrink:0;
}
.al-avatar-info { min-width:0; }
.al-avatar-name {
  font-size:13px; font-weight:600; color:#111827; margin:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.al-avatar-badge {
  display:inline-block; margin-top:2px;
  padding:1px 7px; border-radius:20px;
  background:#dcfce7; color:#15803d;
  font-size:10px; font-weight:600;
}

/* Nav */
.al-sidebar-nav { flex:1; padding:10px 8px; overflow-y:auto; }
.al-nav-group-label {
  font-size:10px; font-weight:700; color:#9ca3af;
  text-transform:uppercase; letter-spacing:0.09em;
  padding:8px 14px 4px; margin:0;
}
.al-nav-btn {
  width:100%; display:flex; align-items:center; gap:10px;
  padding:9px 14px; border-radius:10px;
  font-size:13.5px; font-weight:500;
  border:none; cursor:pointer; text-align:left; margin-bottom:2px;
  transition:background 0.15s, color 0.15s;
  background:transparent; color:#4b5563;
}
.al-nav-btn:hover { background:#f3f4f6; color:#111827; }
.al-nav-btn.active { background:#111827; color:#fff; font-weight:600; }

/* Footer */
.al-sidebar-footer {
  padding:14px 16px; border-top:1px solid #f3f4f6;
  font-size:11px; color:#9ca3af;
}

.al-main { flex:1; min-width:0; overflow-y:auto; }

/* ─────────────────────────────────────────────────────────────────────────────
   9. MENU PRINCIPAL USUARIO  (mp-*)
   ───────────────────────────────────────────────────────────────────────────── */
.mp-section-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6f9b19; margin-bottom: 8px;
}
.mp-section-title {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 700;
  color: #111827; margin: 0 0 24px; line-height: 1.2;
}
.mp-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 20px;
}
.mp-nueva-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px;
  background: #6f9b19; color: #fff;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: background 0.2s;
}
.mp-nueva-btn:hover { background: #5a7f14; }
.mp-nueva-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.mp-cards { display: flex; flex-direction: column; gap: 12px; }
.mp-card {
  background: #fff; border-radius: 14px;
  border: 1px solid #f3f4f6;
  padding: 18px 22px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}
.mp-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  border-color: #e5e7eb;
}
.mp-card-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.mp-card-fecha { font-size: 13px; font-weight: 600; color: #374151; }
.mp-card-id {
  font-size: 11px; color: #9ca3af;
  background: #f9fafb; padding: 2px 8px; border-radius: 6px;
}
.mp-card-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-cat-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 3px 8px; border-radius: 20px;
  font-weight: 600;
}
.mp-cat-dot { width: 6px; height: 6px; border-radius: 50%; }
.mp-card-footer {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid #f9fafb;
  display: flex; align-items: center; justify-content: space-between;
}
.mp-ver-link {
  font-size: 12px; color: #002b67; font-weight: 600;
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.mp-ver-link:hover { color: #003a8a; }

.mp-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 24px;
}
.mp-pag-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e5e7eb;
  background: #fff; color: #374151; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.mp-pag-btn:hover:not(:disabled) { background: #f9fafb; border-color: #d1d5db; }
.mp-pag-btn.active { background: #002b67; color: #fff; border-color: #002b67; }
.mp-pag-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.mp-empty {
  text-align: center; padding: 56px 24px;
  color: #9ca3af; font-size: 14px;
}
.mp-empty-icon { font-size: 48px; margin-bottom: 16px; }

.mp-alert-error {
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #991b1b; font-size: 13px; padding: 10px 14px;
  border-radius: 8px; margin-bottom: 16px;
}

.mp-global-score          { display:flex; flex-direction:column; align-items:center; gap:6px; }
.mp-global-score-label    { font-size:11px; color:#9ca3af; font-weight:500; white-space:nowrap; }
.mp-global-score-circle   { width:56px; height:56px; border-radius:50%; border:3px solid; display:flex; align-items:center; justify-content:center; }
.mp-global-score-circle span { font-size:15px; font-weight:800; }
.mp-global-score-tag      { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; }
/* ─────────────────────────────────────────────────────────────────────────────
   10. CERCA TABLE ADMIN  (ca-*)
   ───────────────────────────────────────────────────────────────────────────── */
.ca-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px;
}
.ca-label-super {
  font-size: 11px; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.ca-h2 {
  font-size: 26px; font-weight: 700; color: #111827;
  margin: 0 0 4px;
}
.ca-subtext {
  font-size: 14px; color: #6b7280;
}
.ca-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; margin-bottom: 20px;
}
.ca-search-wrap { position: relative; }
.ca-search-icon {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); color: #9ca3af;
  pointer-events: none;
}
.ca-search-input {
  padding: 9px 13px 9px 34px;
  border: 1.5px solid #e5e7eb; border-radius: 9px;
  font-size: 14px; color: #111827; outline: none;
  width: 260px; transition: border-color 0.2s, box-shadow 0.2s;
}
.ca-search-input:focus {
  border-color: #6f9b19;
  box-shadow: 0 0 0 3px rgba(111,155,25,0.1);
}
.ca-btn-filter {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 9px;
  border: 1.5px solid #e5e7eb; background: #fff;
  font-size: 13px; font-weight: 600; color: #374151;
  cursor: pointer; transition: all 0.2s;
  position: relative;
}
.ca-btn-filter:hover { border-color: #d1d5db; background: #f9fafb; }
.ca-btn-filter.active {
  border-color: #e20078; background: #fff0f8; color: #e20078;
}
.ca-badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 99px; padding: 0 5px;
  background: #e20078; color: #fff; font-size: 10px; font-weight: 700;
}

/* Tabla admin */
.ca-table-wrap { overflow-x: auto; }
.ca-table {
  width: 100%; border-collapse: collapse;
}
.ca-table thead tr {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.ca-table th {
  font-size: 12px; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 12px; text-align: left;
  white-space: nowrap; cursor: pointer;
  user-select: none;
}
.ca-table th:hover { color: #374151; }
.ca-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f9fafb;
  font-size: 14px; color: #374151;
}
.ca-table tbody tr { cursor: pointer; transition: background 0.15s; }
.ca-table tbody tr:hover { background: #f0fdf4; }

/* Score badge circular */
.ca-score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
  border-width: 2px; border-style: solid;
}

/* Skeleton rows */
.ca-skeleton-cell {
  height: 12px; border-radius: 6px;
  background: #f3f4f6; animation: pulse 1.4s ease-in-out infinite;
}

/* Paginación */
.ca-pagination {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; padding: 14px 0 0;
}
.ca-pag-info { font-size: 13px; color: #9ca3af; }
.ca-pag-btns { display: flex; gap: 4px; }
.ca-pag-btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 7px; border: 1px solid #e5e7eb;
  background: #fff; color: #374151; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ca-pag-btn:hover:not(:disabled) { background: #f9fafb; border-color: #d1d5db; }
.ca-pag-btn.active { background: #111827; color: #fff; border-color: #111827; }
.ca-pag-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Panel conclusiones (drawer lateral) */
.ca-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(1px);
  z-index: 900;
}
.ca-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 580px;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  z-index: 901;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ca-drawer-header {
  padding: 24px 28px 20px;
  background: #1e3a5f;
  flex-shrink: 0;
}
.ca-drawer-body {
  flex: 1; overflow-y: auto; padding: 24px 28px;
}
.ca-drawer-footer {
  padding: 16px 28px;
  border-top: 1px solid #f3f4f6;
  display: flex; justify-content: flex-end; gap: 10px;
  background: #fafafa; flex-shrink: 0;
}

/* Textarea conclusiones */
.ca-textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; border: 1.5px solid #e5e7eb;
  border-radius: 10px; font-size: 14px; line-height: 1.6;
  color: #111827; resize: vertical; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.ca-textarea:focus {
  border-color: #6f9b19;
  box-shadow: 0 0 0 3px rgba(111,155,25,0.1);
}


/* ─────────────────────────────────────────────────────────────────────────────
   11. RESULTATS  (res-*)
   ───────────────────────────────────────────────────────────────────────────── */

/* Encabezado resultados */
.res-header {
  margin-bottom: 32px;
  margin-top: 16px;
}
.res-header-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: space-between;
}
.res-back-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  border: 1.5px solid #e5e7eb; background: #fff;
  color: #374151; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.res-back-btn:hover { border-color: #6f9b19; }

.res-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.res-pill {
  padding: 5px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  background: #f3f4f6; color: #6b7280;
}
.res-pill-score {
  padding: 5px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
}

/* Tarjeta categoría */
.res-cat-card {
  cursor: pointer;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}
.res-cat-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.res-cat-stripe { height: 5px; }
.res-cat-body   { padding: 20px 20px 24px; }
.res-cat-circle { width: 90px; height: 90px; margin: 0 auto 16px; }
.res-cat-name {
  font-size: 13px; font-weight: 700;
  text-align: center; color: #374151;
  line-height: 1.4; margin: 0;
}
.res-cat-hint {
  text-align: center; font-size: 11px;
  color: #9ca3af; margin-top: 6px;
}

/* Modal detalle categoría */
.res-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.res-modal-panel {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; max-width: 560px;
  max-height: 85vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 1001;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.res-modal-header {
  padding: 24px 28px 20px;
  /* background: catColor – aplicado via style dinámico */
}
.res-modal-header-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.75); margin-bottom: 6px;
}
.res-modal-header-title {
  font-size: 20px; font-weight: 700; color: #fff;
  margin: 0; line-height: 1.3;
}
.res-modal-close-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.2);
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.res-modal-media-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 6px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.2);
  font-size: 13px; color: #fff; font-weight: 600;
}
.res-modal-body {
  flex: 1; overflow-y: auto; padding: 24px 28px;
}
.res-modal-footer {
  padding: 14px 28px;
  border-top: 1px solid #f3f4f6;
  display: flex; justify-content: flex-end;
  background: #fafafa;
}

/* Filas de preguntas dentro del modal */
.res-row {
  background: #fafafa; border-radius: 12px;
  padding: 16px 18px; border: 1px solid #f3f4f6;
}
.res-row-question {
  margin: 0 0 10px; font-size: 12px;
  color: #374151; line-height: 1.5; font-weight: 500;
}
.res-progress-bar-bg {
  flex: 1; height: 8px;
  background: #f3f4f6; border-radius: 99px;
  overflow: hidden; min-width: 80px;
}
.res-progress-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.6s ease;
}
.res-semaforo-value {
  font-size: 15px; font-weight: 800;
}
.res-semaforo-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  white-space: nowrap;
  border-width: 1px; border-style: solid;
}

/* Tarjeta global y sello */
.res-global-card {
  background: #fff; border-radius: 18px; overflow: hidden;
}
.res-sello-card {
  background: #fff; border-radius: 18px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 20px; overflow: hidden;
}
.res-sello-avatar {
  border: 3px solid #e5e7eb;
  border-radius: 50%; padding: 6px;
}
.res-sello-avatar img {
  width: 72px; height: 72px; border-radius: 50%;
}


/* ─────────────────────────────────────────────────────────────────────────────
   12. FORMULARIOS ADMIN  (fa-*)
   ───────────────────────────────────────────────────────────────────────────── */
.fa-page {
  max-width: 1200px; margin: 0 auto; padding: 32px;
}
.fa-label-super {
  font-size: 11px; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.fa-h2 {
  font-size: 26px; font-weight: 700; color: #111827;
  margin: 0 0 4px;
}
.fa-subtext { font-size: 14px; color: #6b7280; }

/* Acordeón */
.fa-accordion {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.fa-accordion-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; cursor: pointer;
  background: #fff; border: none; width: 100%; text-align: left;
  transition: background 0.15s;
}
.fa-accordion-header:hover { background: #f9fafb; }
.fa-accordion-body { padding: 0 20px 20px; }

.fa-cat-badge {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.fa-accordion-title {
  font-size: 15px; font-weight: 600; color: #111827; flex: 1;
}

/* Tabla edición constantes/indicadores */
.fa-edit-table { width: 100%; border-collapse: collapse; }
.fa-edit-table thead tr {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.fa-edit-table th {
  font-size: 12px; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 12px; text-align: left;
}
.fa-edit-table td {
  padding: 8px 12px; border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.fa-edit-table tr.changed {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
}

/* Input edición */
.fa-input {
  padding: 7px 10px;
  border: 1.5px solid #e5e7eb; border-radius: 7px;
  font-size: 14px; color: #111827; outline: none;
  transition: border-color 0.2s;
  width: 80px;
}
.fa-input:focus { border-color: #6f9b19; }

/* Suma / validación */
.fa-suma-ok  { color: #6f9b19; font-weight: 700; font-size: 13px; }
.fa-suma-err { color: #e20078; font-weight: 700; font-size: 13px; }

/* Botón guardar */
.fa-btn-save {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px; border: none;
  background: #111827; color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.fa-btn-save:hover:not(:disabled) { background: #1f2937; }
.fa-btn-save:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sub-tabs */
.fa-subtabs {
  display: flex; gap: 4px; margin-bottom: 16px;
}
.fa-subtab {
  padding: 6px 14px; border-radius: 7px; border: 1px solid #e5e7eb;
  background: #fff; font-size: 13px; font-weight: 500; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
}
.fa-subtab.active {
  background: #111827; color: #fff; border-color: #111827;
}
.fa-subtab:hover:not(.active) { background: #f9fafb; }

/* Alert info/warning */
.fa-alert-info {
  padding: 11px 15px; border-radius: 9px;
  background: #eff6ff; border: 1px solid #bfdbfe;
  color: #1e40af; font-size: 13px; margin-bottom: 14px;
}
.fa-alert-warning {
  padding: 11px 15px; border-radius: 9px;
  background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e; font-size: 13px; margin-bottom: 14px;
}

/* Variables PDF */
.fa-var-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  cursor: pointer; user-select: none; transition: opacity 0.15s;
}
.fa-var-chip:hover { opacity: 0.8; }
.fa-var-chip.global {
  background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe;
}
.fa-var-chip.pregunta {
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}

/* Nivel de texto PDF */
.fa-nivel-block {
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 10px; border-width: 1px; border-style: solid;
}
.fa-nivel-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.fa-nivel-textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: 13px; line-height: 1.6;
  resize: vertical; outline: none; font-family: inherit;
  transition: border-color 0.2s;
}
.fa-nivel-textarea:focus { border-color: #6f9b19; }


/* ─────────────────────────────────────────────────────────────────────────────
   13. MODIFICAR SCREEN / PERFIL  (ms-*)
   ───────────────────────────────────────────────────────────────────────────── */
.ms-section-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.ms-readonly-field {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px; border: 1.5px solid #f3f4f6;
  border-radius: 9px; background: #f9fafb;
  font-size: 14px; color: #6b7280;
}
.ms-input {
  width: 100%; padding: 11px 13px; box-sizing: border-box;
  border: 1.5px solid #e5e7eb; border-radius: 9px;
  font-size: 14px; color: #111827; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ms-input:focus {
  border-color: #6f9b19;
  box-shadow: 0 0 0 3px rgba(111,155,25,0.1);
}
.ms-foto-preview {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid #f3f4f6;
}
.ms-foto-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f3f4f6; display: flex;
  align-items: center; justify-content: center;
  font-size: 28px; color: #d1d5db;
}
.ms-btn-primary {
  padding: 10px 22px; border-radius: 9px; border: none;
  background: #111827; color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.ms-btn-primary:hover:not(:disabled) { background: #1f2937; }
.ms-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.ms-btn-secondary {
  padding: 10px 22px; border-radius: 9px;
  border: 1.5px solid #e5e7eb; background: #fff;
  color: #374151; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.ms-btn-secondary:hover { background: #f9fafb; border-color: #d1d5db; }

.ms-alert-success {
  padding: 11px 15px; border-radius: 9px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #166534; font-size: 13px; margin-bottom: 14px;
}
.ms-alert-error {
  padding: 11px 15px; border-radius: 9px;
  background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b; font-size: 13px; margin-bottom: 14px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   14. UTILITARIOS COMPARTIDOS
   ───────────────────────────────────────────────────────────────────────────── */

/* Empty state genérico */
.u-empty-state {
  text-align: center; padding: 56px 24px;
  color: #9ca3af; font-size: 14px;
}
.u-empty-icon { font-size: 40px; margin-bottom: 12px; }

/* Grid 2 columnas */
.u-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}


/* Overlay modal genérico */
.u-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.u-modal-box {
  background: #fff; border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  width: 100%; max-width: 700px;
  overflow: hidden;
}
.u-modal-header {
  padding: 22px 28px 0px 28px;
  border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between;
}
.u-modal-title  { font-size: 18px; font-weight: 700; color: #111827; }
.u-modal-body   { padding: 22px 28px; }
.u-modal-footer {
  padding: 18px 28px;
  border-top: 1px solid #f3f4f6;
  display: flex; justify-content: flex-end; gap: 10px;
  background: #fafafa;
}
.u-modal-close-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: #f3f4f6; color: #6b7280;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.u-modal-close-btn:hover { background: #e5e7eb; }

/* Botones utilitarios */
.u-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 9px; border: none;
  background: #111827; color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.u-btn-primary:hover:not(:disabled) { background: #1f2937; }
.u-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.u-btn-secondary {
  padding: 9px 20px; border-radius: 9px;
  border: 1.5px solid #e5e7eb; background: #fff;
  color: #374151; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.u-btn-secondary:hover { background: #f9fafb; border-color: #d1d5db; }

.u-btn-danger {
  padding: 9px 20px; border-radius: 9px; border: none;
  background: #e20078; color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.u-btn-danger:hover:not(:disabled) { background: #b8005f; }
.u-btn-danger:disabled { opacity: 0.55; cursor: not-allowed; }

/* Badges / chips genéricos */
.u-badge-green {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}
.u-badge-amber {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  background: #fffbeb; color: #92400e; border: 1px solid #fde68a;
}
.u-badge-pink {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  background: #fdf2f8; color: #9d174d; border: 1px solid #fbcfe8;
}

/* Input genérico */
.u-input {
  padding: 9px 13px; border: 1.5px solid #e5e7eb;
  border-radius: 9px; font-size: 14px; color: #111827;
  outline: none; width: 100%; box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.u-input:focus {
  border-color: #6f9b19;
  box-shadow: 0 0 0 3px rgba(111,155,25,0.1);
}
.u-input::placeholder { color: #d1d5db; }

/* Label de campo */
.u-field-label {
  display: block; font-size: 12px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}

.ms-foto-upload {
  width: 82px; height: 82px; border-radius: 12px;
  border: 2px dashed #d1d5db;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; flex-shrink: 0;
  background: #f9fafb; transition: border-color 0.2s;
}
.ms-foto-upload:hover { border-color: #111827; }
.ms-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}

.ms-modal-content {
  position: relative;
  width: 90%; max-width: 700px;
  height: auto; min-height: 60vh; max-height: 120vh;
  padding: 0; border: none; border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  background: #fff;
  outline: none;
}
.ft-seccion-label { font-size:11px; font-weight:700; color:#6b7280; text-transform:uppercase; letter-spacing:0.06em; margin:0 0 6px; }
/* ── GestioMunicipis i USuaris card buttons ─────────────────────────── */
.gm-btn-edit   { display:inline-flex; align-items:center; gap:5px; padding:6px 11px; border-radius:7px; font-size:12px; font-weight:500; background:#f3f4f6; color:#374151; border:none; cursor:pointer; }
.gm-btn-users  { display:inline-flex; align-items:center; gap:5px; padding:6px 11px; border-radius:7px; font-size:12px; font-weight:500; background:#eff6ff; color:#2563eb; border:none; cursor:pointer; }
.gm-btn-delete { display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border-radius:7px; font-size:12px; font-weight:500; background:#fef2f2; color:#dc2626; border:none; cursor:pointer; }
.gu-avatar    { width:30px; height:30px; border-radius:50%; background:#e5e7eb; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#4b5563; flex-shrink:0; }
.gu-btn-edit  { display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border-radius:7px; font-size:12px; font-weight:500; background:#eff6ff; color:#2563eb; border:none; cursor:pointer; margin-right:6px; }
.gu-btn-delete{ display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border-radius:7px; font-size:12px; font-weight:500; background:#fef2f2; color:#dc2626; border:none; cursor:pointer; }
.gu-btn-swap  { display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:7px; font-size:12px; font-weight:500; background:#eff6ff; color:#2563eb; border:1px solid #bfdbfe; cursor:pointer; }
/* ─────────────────────────────────────────────────────────────────────────────
   15. ANIMACIONES
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes mp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. ColoresxPunto
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* 🎨 Colores principales */
  --color-1: #6f9b19;   /* verde */
  --color-2: #e20078;   /* rosa */
  --color-3: #002b67;   /* azul oscuro */
  --color-4: #00afa9;   /* turquesa */
  --color-5: #005f71;   /* teal oscuro */
  --color-6: #7c3aed;   /* violeta */
  --color-7: #dc2626;   /* rojo */
  --color-8: #d97706;   /* ámbar */
  --color-9: #0ea5e9;   /* azul claro */

  /* 🌫 Backgrounds suaves */
  --color-1-50: #f0fdf4;
  --color-2-50: #fdf2f8;
  --color-3-50: #eff6ff;
  --color-4-50: #f0fdfa;
  --color-5-50: #ecfeff;
  --color-6-50: #f5f3ff;
  --color-7-50: #fef2f2;
  --color-8-50: #fffbeb;
  --color-9-50: #f0f9ff;


  --color-success: var(--color-1);
  --color-warning: var(--color-8);
  --color-danger: var(--color-2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   17. FORMULARI PRINCIPAL  (fp-*)
   ─────────────────────────────────────────────────────────────────────────── */
.fp-btn-back {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 8px; border: none;
  background: #f3f4f6; color: #374151;
  font-size: 13px; font-weight: 500; cursor: pointer;
  margin-bottom: 18px; transition: background 0.15s;
}
.fp-btn-back:hover { background: #e5e7eb; color: #111827; }
.fp-wrapper    { max-width: 860px; margin: 0 auto; padding: 24px 0 48px; }

/* Header */
.fp-header     { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:32px; }
.fp-title      { font-size:28px; font-weight:700; color:#111827; margin:4px 0 4px; }

/* Progress */
.fp-progress-wrap  { display:flex; align-items:center; gap:10px; min-width:180px; }
.fp-progress-bar   { flex:1; height:8px; border-radius:99px; background:#e5e7eb; overflow:hidden; }
.fp-progress-fill  { height:100%; border-radius:99px; background:var(--color-success,#22c55e); transition:width 0.4s ease; }
.fp-progress-label { font-size:13px; font-weight:700; color:#374151; white-space:nowrap; }

/* Acordeón contenedor */
.fp-accordion { display:flex; flex-direction:column; gap:10px; }

/* Item acordeón */
.fp-ac-item {
  background:#fff;
  border:1.5px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.fp-ac-item--open {
  border-color: var(--cat-color, #e5e7eb);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.fp-ac-item--done {
  background:#fafafa;
  border-color:#e5e7eb;
}

/* Trigger */
.fp-ac-trigger {
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; background:none; border:none; cursor:pointer;
  gap:12px; text-align:left;
}
.fp-ac-trigger:disabled { cursor:default; }

.fp-ac-left  { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.fp-ac-right { flex-shrink:0; }

/* Número badge */
.fp-ac-num {
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700;
}
.fp-ac-item--done .fp-ac-num { opacity:0.7; }

/* Título */
.fp-ac-title {
  font-size:14px; font-weight:600; color:#374151; text-transform:uppercase;
  letter-spacing:0.05em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.fp-ac-item--open .fp-ac-title { color:#111827; }
.fp-ac-item--done .fp-ac-title { color:#9ca3af; }

/* Score badge (categoría completada) */
.fp-ac-score {
  display:inline-flex; align-items:center;
  padding:3px 10px; border-radius:20px;
  font-size:12px; font-weight:700;
}

/* Chevron */
.fp-ac-chevron { display:flex; align-items:center; }

/* Body (panel con el formulario) */
.fp-ac-body {
  border-top:1px solid #f3f4f6;
  background:#fafafa;
}

/* ── Panel interior de cada formulario (fp-cat-panel) ───────────────────────── */
.fp-cat-panel { padding:24px 24px 20px; }

/* Fase badge */
.fp-fase-badge-wrap   { display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.fp-fase-badge        { display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; background:#eff6ff; color:#2563eb; }
.fp-fase-badge--prog  { background:#f0fdf4; color:#15803d; }
.fp-fase-resultado    { font-size:12px; color:#6b7280; }

/* Lista de preguntas */
.fp-preguntas { display:flex; flex-direction:column; gap:16px; margin-bottom:24px; }

/* Pregunta individual */
.fp-pregunta           { display:flex; flex-direction:column; gap:6px; }
.fp-pregunta--indent   { padding-left:16px; border-left:3px solid #e5e7eb; }

.fp-pregunta-label {
  display:flex; align-items:flex-start; gap:8px;
  font-size:14px; font-weight:500; color:#374151; line-height:1.5;
}
.fp-pregunta-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%;
  background:#f3f4f6; color:#6b7280;
  font-size:11px; font-weight:700; flex-shrink:0; margin-top:1px;
}

/* Input numérico */
.fp-input {
  padding:9px 13px; font-size:14px;
  border:1.5px solid #e5e7eb; border-radius:8px;
  outline:none; color:#111827; background:#fff;
  width:180px; box-sizing:border-box;
  transition:border-color 0.15s;
}
.fp-input:focus { border-color:#111827; }

/* Select */
.fp-select {
  padding:9px 13px; font-size:14px;
  border:1.5px solid #e5e7eb; border-radius:8px;
  outline:none; color:#111827; background:#fff;
  max-width:360px; width:100%; box-sizing:border-box;
  cursor:pointer; transition:border-color 0.15s;
}
.fp-select:focus { border-color:#111827; }

/* Footer del panel */
.fp-cat-footer { display:flex; justify-content:flex-end; padding-top:4px; }