/* =========================================================
   01 — VARIABLES
========================================================= */

:root{

  /* Tipografía */
  --fj-text:#666970;
  --fj-muted:rgba(15,23,42,.72);

  /* Fondos */
  --fj-bg:#F4F7FB;
  --fj-surface:#ffffff;
  --fj-surface-soft:#F3F8FF;

  /* Azul UI */
  --fj-primary:#5094DE;
  --fj-primary-700:#1F63C8;
  --fj-primary-600:#2E75D9;
  --fj-primary-400:#73ACEE;

  /* Navy estructural */
  --fj-navy:#0B1F3A;

  /* Gradientes */
  --fj-grad-primary:linear-gradient(
    135deg,
    var(--fj-primary-700),
    var(--fj-primary)
  );

  /* Bordes */
  --border:rgba(15,23,42,.12);

  /* Sombras */
  --shadow-md:0 12px 34px rgba(2,8,23,.10);
  --shadow-lg:0 22px 60px rgba(2,8,23,.16);

  /* Radios */
  --r-xl:22px;
  --r-lg:16px;
  --r-md:12px;

}


/* =========================================================
   02 — BASE
========================================================= */

body{

  background:var(--fj-bg);
  color:var(--fj-text);

  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;

  text-rendering:optimizeLegibility;

}

a{
  text-decoration:none;
}

:focus-visible{

  outline:none;
  box-shadow:0 0 0 .25rem rgba(80,148,222,.25);
  border-radius:10px;

}


/* =========================================================
   03 — SKIP LINK (accesibilidad)
========================================================= */

.skip-link{

  position:absolute;
  left:-999px;
  top:10px;

  background:#fff;
  color:#000;

  padding:.6rem .8rem;

  border-radius:10px;
  border:2px solid #000;

  z-index:9999;

}

.skip-link:focus{
  left:10px;
}


/* =========================================================
   04 — TOPBAR
========================================================= */

.fj-topbar{

  background:var(--fj-grad-primary);
  border-bottom:1px solid rgba(255,255,255,.12);

  backdrop-filter:blur(10px);

}

.fj-topbar-row{

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:1rem;
  padding:.55rem 0;

}

.fj-brand{

  display:flex;
  align-items:center;
  gap:.75rem;

  color:#fff;

}


.fj-brand-title{

  font-weight:900;
  letter-spacing:.2px;

}

.fj-brand-sub{

  font-size:.88rem;
  opacity:.85;
  font-weight:600;

}

.brand-logo{
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo-header{
  height:60px;
  width:auto;
}


/* =========================================================
   05 — NAVBAR
========================================================= */

.fj-nav .fj-navlink{

  color:rgba(255,255,255,.92);

  font-weight:700;

  padding:.52rem .72rem;
  border-radius:12px;

  display:inline-flex;
  align-items:center;
  gap:.45rem;

}

.fj-navlink:hover{

  background:rgba(255,255,255,.12);

}

.fj-navlink-ghost{

  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);

}

.fj-navlink-ghost:hover{

  background:rgba(255,255,255,.18);

}


/* =========================================================
   06 — DROPDOWN
========================================================= */

.fj-dd{

  min-width:280px;

  border-radius:16px;
  border:1px solid rgba(11,16,32,.10);

  padding:.75rem;

}

.fj-dd-title{

  font-size:.72rem;

  text-transform:uppercase;
  letter-spacing:.08em;

  font-weight:900;

  color:rgba(15,23,42,.60);

  margin:.15rem .25rem .45rem;

}

.dropdown-item{

  font-weight:650;

  border-radius:10px;

  padding:.62rem .7rem;

}

.dropdown-item:hover{

  background:rgba(80,148,222,.12);
  color:var(--fj-navy);

}

/* =========================================================
   07 — HERO
========================================================= */

.fj-hero{

  position:relative;
  min-height:560px;

  padding:2.2rem 0 3rem;
  color:#fff;
  overflow:hidden;

}

.fj-hero::before{

  content:"";
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      180deg,
      rgba(21,66,124,.78) 0%,
      rgba(21,66,124,.68) 45%,
      rgba(21,66,124,.88) 100%
    ),
    url(../images/fondo.jpg);

  background-size:cover;
  background-position:center;

  transform:scale(1.02);
  z-index:0;

}

.fj-hero::after{

  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(1100px 520px at 50% 25%, rgba(80,148,222,.12), transparent 62%),
    radial-gradient(900px 380px at 20% 0%, rgba(115,172,238,.10), transparent 60%);

  z-index:0;

}

.fj-hero-inner{
  position:relative;
  z-index:1;
}

.fj-card-center{

  width:min(1600px, 100%);
  margin:0 auto;

}

.fj-kicker{

  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.72rem;
  opacity:.92;

}

.fj-h1{

  font-weight:950;
  letter-spacing:-.35px;
  line-height:1.05;

  margin:.45rem 0 .25rem;

  font-size:clamp(1.75rem, 2.8vw, 2.6rem);

}

.fj-lead{

  color:rgba(255,255,255,.90);
  font-weight:450;
  line-height:1.45;

  margin:0 0 1.1rem;

}


/* =========================================================
   08 — SEARCH CARD
========================================================= */

.fj-searchcard{

  background:rgba(255,255,255,.94);
  color:var(--fj-text);

  border:1px solid rgba(255,255,255,.42);
  border-radius:22px;

  box-shadow:var(--shadow-lg);
  overflow:hidden;

}

.fj-searchcard-body{
  padding:1.1rem 1.2rem 1.25rem;
}


/* =========================================================
   09 — FILTROS (OPTIMIZADOS)
========================================================= */

.fj-filter-shell{

  background:rgba(255,255,255,.84);

  border:1px solid rgba(18,48,85,.10);
  border-radius:18px;

  padding:1rem;
  margin-bottom:1rem;

  box-shadow:0 12px 26px rgba(2,8,23,.06);

}

.fj-filter-bar{

  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  gap:1rem;
  align-items:end;

}

.fj-filter-group{

  display:flex;
  flex-direction:column;
  gap:.4rem;

}



.fj-label{

  font-weight:900;
  color:rgba(15,23,42,.88);
  font-size:.95rem;

}

.fj-hint,
.fj-hint-inline{

  color:rgba(15,23,42,.64);
  font-weight:450;
  font-size:.88rem;
  line-height:1.4;

}

.fj-input{

  min-height:48px;

  border-radius:14px !important;
  border:1px solid rgba(15,23,42,.16) !important;

  background:linear-gradient(180deg, #ffffff, #fbfdff);

}

.fj-input:focus{

  border-color:rgba(80,148,222,.65) !important;
  box-shadow:0 0 0 .25rem rgba(80,148,222,.25) !important;

}

.fj-btn-ghost{

  background:rgba(255,255,255,.78);
  border:1px solid rgba(18,48,85,.14);
  color:rgba(11,31,58,.92);

  font-weight:900;

  border-radius:16px;
  padding:.7rem 1rem;

  transition:
    transform .14s ease,
    background .14s ease,
    filter .14s ease;

}

.fj-btn-ghost:hover{

  background:rgba(255,255,255,.95);
  transform:translateY(-1px);
  filter:brightness(1.01);
  color:rgba(11,31,58,.92);

}

.fj-btn-clear{

  min-width:132px;
  min-height:48px;

  justify-content:center;

}


/* =========================================================
   10 — ESTADO VACÍO
========================================================= */

.fj-empty{

  border:2px dashed rgba(80,148,222,.35);
  background:rgba(80,148,222,.08);

  border-radius:16px;

  padding:1rem 1.1rem;

  color:rgba(11,31,58,.92);
  text-align:center;

}

.fj-empty strong{

  display:block;
  font-size:1.05rem;
  color:#676E77;
  margin-bottom:.2rem;

}

.fj-intro-empty{
  margin-top:.25rem;
}


/* =========================================================
   11 — CABECERA DE RESULTADOS
========================================================= */

.fj-directory-head{

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:1rem;
  flex-wrap:wrap;

  margin-bottom:.9rem;

}

.fj-card-title{

  font-weight:950;
  letter-spacing:-.12px;
  color:rgba(11,31,58,.96);

}


/* =========================================================
   12 — GRID DEL DIRECTORIO
========================================================= */

.fj-directory-grid{
  margin-bottom:0;
}

.fj-dir-col{

  background:#fff;

  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);

  box-shadow:0 12px 35px rgba(0,0,0,.08);

  overflow:hidden;
  height:100%;

}

.fj-dir-col-header{

  padding:.9rem 1rem;

  font-weight:800;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:.75rem;

  border-bottom:1px solid rgba(15,23,42,.08);
  background:#f7f9fc;

}

.fj-dir-col-title-wrap{

  display:flex;
  align-items:center;
  gap:.5rem;

}

.fj-dir-count{

  font-weight:700;
  color:#64748b;

  min-width:20px;
  text-align:right;

}

.fj-dir-list{

  max-height:280px;
  overflow:auto;

  padding:.65rem;

}


/* =========================================================
   13 — ITEMS DE LISTA
========================================================= */

.fj-dir-item{

  border-radius:14px;
  padding:.8rem .9rem;

  border:1px solid rgba(15,23,42,.08);

  margin-bottom:.45rem;

  cursor:pointer;
  background:#fff;

  transition:all .15s ease;

}

.fj-dir-item:last-child{
  margin-bottom:0;
}

.fj-dir-item:hover{

  background:#f5f8ff;
  border-color:#3b82f6;

}

.fj-dir-item.active{

  border-color:#4f7eff;
  background:#eef3ff;
  box-shadow:inset 0 0 0 1px rgba(79,126,255,.12);

}

.fj-dir-name{

  font-weight:800;
  font-size:.97rem;
  line-height:1.25;

  margin-bottom:.22rem;

}

.fj-dir-meta{

  font-size:.84rem;
  color:#64748b;

}

/* =========================================================
   14 — DETALLE OFICINA
========================================================= */

.fj-dir-detail{

  margin-top:1.2rem;

  border-radius:20px;
  border:1px solid rgba(15,23,42,.10);

  background:#fff;

  box-shadow:0 18px 45px rgba(0,0,0,.08);

  padding:1.1rem;

}

.fj-dir-detail-header{

  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-bottom:1rem;

}

.fj-dir-title{

  font-weight:900;
  font-size:1.15rem;

}

.fj-dir-subtitle{

  font-size:.9rem;
  color:#64748b;

}

.fj-dir-detail-grid{

  display:grid;
  grid-template-columns:1fr 1fr;

  gap:1rem;

}

.fj-dir-card{

  border-radius:16px;

  border:1px solid rgba(15,23,42,.08);
  background:#fff;

  padding:1rem;

}

.fj-dir-card-title{

  font-weight:800;
  margin-bottom:.75rem;

  display:flex;
  align-items:center;
  gap:.45rem;

}

.fj-dir-row{

  display:flex;
  justify-content:space-between;

  gap:.5rem;

  padding:.35rem 0;

  border-bottom:1px solid rgba(0,0,0,.04);

}

.fj-dir-row:last-child{
  border-bottom:none;
}


/* =========================================================
   15 — MAPA
========================================================= */

.fj-dir-map iframe{

  width:100%;
  height:260px;

  border:none;
  border-radius:14px;

}

.fj-map-actions{

  display:flex;
  gap:.5rem;
  margin-top:.6rem;

}

.fj-btn-primary{

  background:linear-gradient(
    135deg,
    var(--fj-primary-600),
    var(--fj-primary)
  );

  color:#fff;

  border:1px solid rgba(255,255,255,.18);

  font-weight:800;

  padding:.55rem .9rem;

  border-radius:14px;

  box-shadow:0 8px 20px rgba(2,8,23,.14);

}

.fj-btn-primary:hover{

  transform:translateY(-1px);
  filter:brightness(1.05);

  color:white;

}


/* =========================================================
   16 — SECCIONES GENERALES
========================================================= */

.fj-section{
  padding:2rem 0;
}

.fj-section-soft{

  background:linear-gradient(
    180deg,
    rgba(255,255,255,.78),
    rgba(255,255,255,.45)
  );

  border-top:1px solid rgba(11,16,32,.06);
  border-bottom:1px solid rgba(11,16,32,.06);

}

.fj-h2{

  font-weight:950;
  letter-spacing:-.22px;

  margin:.15rem 0 .35rem;

  color:#666970;

}

.fj-section-sub{

  color:var(--fj-muted);
  max-width:100ch;

}


/* =========================================================
   17 — CARDS SERVICIOS
========================================================= */

.fj-mini{

  background:#fff;

  border:1px solid rgba(15,23,42,.10);
  border-radius:20px;

  box-shadow:0 10px 30px rgba(2,8,23,.06);

  transition:.15s;

}

.fj-mini:hover{

  transform:translateY(-2px);
  box-shadow:0 18px 48px rgba(2,8,23,.10);

}

.fj-mini-ico{

  width:42px;
  height:42px;

  border-radius:12px;

  display:grid;
  place-items:center;

  background:rgba(80,148,222,.12);
  border:1px solid rgba(80,148,222,.22);

}

.fj-mini-title{

  font-weight:900;
  margin:.7rem 0 .3rem;

}

.fj-mini-text{

  color:var(--fj-muted);
  line-height:1.5;

}


/* =========================================================
   18 — NEWS
========================================================= */

.fj-card{

  background:#fff;

  border-radius:20px;
  border:1px solid rgba(15,23,42,.10);

  box-shadow:var(--shadow-md);

}

.fj-news-thumb{

  height:160px;

  border-radius:14px;

  background-size:cover;
  background-position:center;

}

.fj-news-meta{

  font-size:.85rem;
  color:#64748b;

}

.fj-news-h3{

  font-weight:900;
  margin:.2rem 0;

}

.fj-news-p{

  color:var(--fj-muted);

}


/* =========================================================
   19 — FOOTER
========================================================= */

.fj-footer{

  background:var(--fj-grad-primary);
  color:#fff;

}

.fj-subfooter{

  background:rgba(0,0,0,.15);

}

.fj-subfooter-text{

  color:rgba(255,255,255,.70);

}

.fj-social{

  width:36px;
  height:36px;

  border-radius:12px;

  display:grid;
  place-items:center;

  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);

  color:#fff;

  transition:.15s;

}

.fj-social:hover{

  background:rgba(255,255,255,.18);

}


/* =========================================================
   20 — MODAL ENCUESTA
========================================================= */

.fj-stars{

  display:flex;
  gap:.35rem;

}

.fj-star{

  font-size:1.6rem;
  color:#d1d5db;

  cursor:pointer;

}

.fj-star-input{
  display:none;
}

.fj-star-input:checked + .fj-star{
  color:#facc15;
}


/* =========================================================
   21 — RESPONSIVE
========================================================= */

@media (max-width:992px){

  .fj-dir-detail-grid{

    grid-template-columns:1fr;

  }

}

@media (max-width:768px){

  .fj-dir-list{
    max-height:none;
  }

}

@media (max-width:576px){

  .fj-searchcard-body{
    padding:1rem;
  }

}

/* =========================================================
   FILTER BAR PRO
========================================================= */

.fj-filter-shell{

  position:relative;

  background:rgba(255,255,255,.82);

  border:1px solid rgba(15,23,42,.08);

  border-radius:18px;

  padding:1rem;

  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  box-shadow:
  0 12px 35px rgba(2,8,23,.08),
  inset 0 1px 0 rgba(255,255,255,.6);

}


/* grid perfecto */

.fj-filter-bar{

  display:grid;

  grid-template-columns:
  minmax(0,1fr)
  minmax(0,1fr)
  auto;

  gap:1rem;

  align-items:end;

}

/* alineación inputs */

.fj-filter-group{

  display:flex;
  flex-direction:column;

  gap:.35rem;

}



/* botón limpiar consistente */

.fj-btn-clear{

  min-width:130px;
  min-height:48px;

}

/* =========================================================
   SCROLL PROFESIONAL
========================================================= */

.fj-dir-list{

  max-height:320px;
  overflow:auto;

  padding:.65rem;

}

/* scrollbar moderna */

.fj-dir-list::-webkit-scrollbar{

  width:8px;

}

.fj-dir-list::-webkit-scrollbar-thumb{

  background:rgba(80,148,222,.35);
  border-radius:20px;

}

.fj-dir-list::-webkit-scrollbar-thumb:hover{

  background:rgba(80,148,222,.55);

}

.fj-dir-list::-webkit-scrollbar-track{

  background:transparent;

}

/* =========================================================
   DETAIL ANIMATION
========================================================= */

.fj-dir-detail{

  animation: fjDetailFade .25s ease;

}

@keyframes fjDetailFade{

  from{

    opacity:0;
    transform:translateY(8px);

  }

  to{

    opacity:1;
    transform:translateY(0);

  }

}

/* =========================================================
   ITEM ACTIVE
========================================================= */

.fj-dir-item.active{

  border-color:#3b82f6;

  background:#eef4ff;

  box-shadow:

  0 6px 18px rgba(59,130,246,.12),
  inset 0 0 0 1px rgba(59,130,246,.15);

}

/* =========================================================
   AJUSTE VISUAL DE FILTROS DEL DIRECTORIO
========================================================= */

.fj-searchcard{
  background: rgba(255,255,255,.96);
  color: var(--fj-text);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.fj-searchcard-body{
  padding: 1.2rem 1.2rem 1.35rem;
}

/* contenedor superior de filtros */
.fj-filter-shell{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.88));
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 1rem 1rem .95rem;
  box-shadow:
    0 10px 26px rgba(2,8,23,.05),
    inset 0 1px 0 rgba(255,255,255,.65);
  margin-bottom: 1rem;
}

/* grid filtros */
.fj-filter-bar{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
  gap: 1rem;
  align-items: end;
}

/* grupos */
.fj-filter-group{
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
}

/* labels */
.fj-label{
  font-weight: 900;
  color: var(--fj-navy-900);
  font-size: .94rem;
  line-height: 1.2;
  margin: 0;
}

/* hints */
.fj-hint{
  color: rgba(15,23,42,.62);
  font-weight: 450;
  font-size: .88rem;
  line-height: 1.35;
  margin: 0;
}

.fj-hint-inline{
  color: rgba(15,23,42,.56);
  font-weight: 500;
  font-size: .86rem;
}

/* inputs */
.fj-input{
  min-height: 46px;
  height: 46px;
  border-radius: 14px !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
  padding-left: .85rem;
  padding-right: .85rem;
}

.fj-input:hover{
  border-color: rgba(80,148,222,.34) !important;
}

.fj-input:focus{
  border-color: rgba(80,148,222,.62) !important;
  box-shadow:
    0 0 0 .24rem rgba(80,148,222,.18),
    inset 0 1px 2px rgba(15,23,42,.03) !important;
}

/* acciones */
.fj-filter-actions{
  display: flex;
  align-items: end;
  justify-content: flex-end;
  min-width: 132px;
}

/* botón limpiar */
.fj-btn-clear{
  min-width: 132px;
  height: 46px;
  padding: 0 1rem;
  border-radius: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: linear-gradient(180deg,#ffffff,#eef4ff);
  border: 1px solid rgba(80,148,222,.24);
  color: var(--fj-primary-700);
  box-shadow: 0 8px 20px rgba(2,8,23,.06);
}

.fj-btn-clear:hover{
  background: linear-gradient(180deg,#ffffff,#e8f1ff);
  border-color: rgba(80,148,222,.38);
  color: var(--fj-primary-700);
  transform: translateY(-1px);
}

/* cabecera de resultados más clara */
.fj-directory-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: .1rem 0 .9rem;
  padding-top: .1rem;
  border-top: 1px solid rgba(15,23,42,.06);
}

.fj-directory-head > div:first-child{
  padding-top: .85rem;
}

#directoryTitle{
  font-size: 1.02rem;
  font-weight: 950;
  color: var(--fj-navy-900);
  letter-spacing: -.15px;
}

#directorySubtitle{
  color: rgba(15,23,42,.62) !important;
  font-size: .92rem;
  margin-top: .12rem;
}

/* responsive */
@media (max-width: 991.98px){
  .fj-filter-bar{
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .fj-filter-actions{
    justify-content: stretch;
    min-width: 0;
  }

  .fj-btn-clear{
    width: 100%;
  }
}

#btnClearJurisdiction{
  height:44px;
  border-radius:12px;
  font-weight:600;
}

/* =========================================================
   FILTROS ALINEADOS EN UNA LÍNEA
========================================================= */

.fj-filter-shell{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.88));
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 1rem;
  box-shadow:
    0 10px 26px rgba(2,8,23,.05),
    inset 0 1px 0 rgba(255,255,255,.65);
  margin-bottom: 1rem;
}

.fj-filter-top{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) 132px;
  gap: 1rem;
  align-items:end;
}

.fj-filter-control{
  display:flex;
  flex-direction:column;
  gap:.45rem;
  min-width:0;
}

.fj-filter-action{
  display:flex;
  align-items:end;
}

.fj-btn-clear{
  width:100%;
  height:46px;
  min-height:46px;
  padding:0 1rem;
  border-radius:14px !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background: linear-gradient(180deg,#ffffff,#eef4ff);
  border: 1px solid rgba(80,148,222,.24);
  color: var(--fj-primary-700);
  box-shadow: 0 8px 20px rgba(2,8,23,.06);
}

.fj-btn-clear:hover{
  background: linear-gradient(180deg,#ffffff,#e8f1ff);
  border-color: rgba(80,148,222,.38);
  color: var(--fj-primary-700);
  transform: translateY(-1px);
}

.fj-filter-bottom{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) 132px;
  gap: 1rem;
  margin-top: .55rem;
}

.fj-label{
  font-weight:900;
  color: var(--fj-navy-900);
  font-size:.94rem;
  line-height:1.2;
  margin:0;
}

.fj-hint{
  color: rgba(15,23,42,.62);
  font-weight:450;
  font-size:.88rem;
  line-height:1.35;
  margin:0;
}

.fj-hint-inline{
  color: rgba(15,23,42,.56);
  font-weight:500;
  font-size:.86rem;
}

.fj-input{
  min-height:46px;
  height:46px;
  border-radius:14px !important;
  border:1px solid rgba(15,23,42,.14) !important;
  background:#fff !important;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
  padding-left:.85rem;
  padding-right:.85rem;
}

.fj-input:hover{
  border-color: rgba(80,148,222,.34) !important;
}

.fj-input:focus{
  border-color: rgba(80,148,222,.62) !important;
  box-shadow:
    0 0 0 .24rem rgba(80,148,222,.18),
    inset 0 1px 2px rgba(15,23,42,.03) !important;
}

@media (max-width: 991.98px){
  .fj-filter-top,
  .fj-filter-bottom{
    grid-template-columns:1fr;
  }

  .fj-filter-action{
    align-items:stretch;
  }

  .fj-btn-clear{
    width:100%;
  }

  .fj-filter-bottom > div:last-child{
    display:none;
  }
}

/* =========================================================
   PÁGINA FISCALES
========================================================= */

.fj-page{
  min-height: calc(100vh - 80px);
  background: linear-gradient(180deg, #f7f9fc, #eef3f9);
}

.fj-page-hero{
  padding: 2rem 0 3rem;
}

.fj-page-wrap{
  width: min(1100px, 100%);
  margin: 0 auto;
}

.fj-page-title{
  margin-bottom: .35rem;
}

.fj-page-sub{
  color: var(--fj-muted);
  margin-bottom: 1.2rem;
}

.fj-list-toolbar{
  margin-bottom: 1rem;
}

.fj-list-search{
  max-width: 560px;
}
/*
.fj-simple-list-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(2,8,23,.06);
  overflow: hidden;
}

.fj-simple-list-head{
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #f7f9fc;
  border-bottom: 1px solid rgba(15,23,42,.08);
  font-weight: 900;
  color: var(--fj-navy-900);
}

.fj-simple-list-body{
  display: grid;
}

.fj-simple-row{
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(15,23,42,.06);
  align-items: center;
}

.fj-simple-row:last-child{
  border-bottom: none;
}

.fj-simple-name{
  font-weight: 800;
  color: var(--fj-navy-900);
}

.fj-simple-jurisdiction{
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 767.98px){
  .fj-simple-list-head{
    display: none;
  }

  .fj-simple-row{
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .fj-simple-jurisdiction::before{
    content: "Jurisdicción: ";
    font-weight: 800;
    color: var(--fj-navy-900);
  }
}*/

/* =========================================================
   BOTONES MEJORADOS
========================================================= */

.btn{
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    filter .18s ease;
}

/* -------------------------
   BOTÓN PRIMARIO
------------------------- */
.fj-btn-primary{
  background: linear-gradient(135deg, var(--fj-primary-600), var(--fj-primary));
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
  border-radius: 16px;
  padding: .72rem 1.02rem;
  box-shadow:
    0 10px 24px rgba(31,99,200,.18),
    inset 0 1px 0 rgba(255,255,255,.20);
}

.fj-btn-primary:hover,
.fj-btn-primary:focus-visible{
  background: linear-gradient(135deg, #2568d0, #458ce0);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
  box-shadow:
    0 16px 30px rgba(31,99,200,.24),
    inset 0 1px 0 rgba(255,255,255,.24);
  filter: brightness(1.02);
}

.fj-btn-primary:active{
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(31,99,200,.16),
    inset 0 1px 0 rgba(255,255,255,.18);
}

/* -------------------------
   BOTÓN GHOST / SECUNDARIO
------------------------- */
.fj-btn-ghost{
  background: #fff;
  color: var(--fj-navy-900);
  border: 1px solid rgba(15,23,42,.14);
  font-weight: 900;
  border-radius: 16px;
  padding: .72rem 1.02rem;
  box-shadow:
    0 4px 10px rgba(2,8,23,.04),
    inset 0 1px 0 rgba(255,255,255,.90);
}

.fj-btn-ghost:hover,
.fj-btn-ghost:focus-visible{
  background: #f3f8ff;
  color: var(--fj-primary-700);
  border-color: rgba(80,148,222,.36);
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px rgba(80,148,222,.12),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.fj-btn-ghost:active{
  transform: translateY(0);
  background: #eef5ff;
  box-shadow:
    0 6px 14px rgba(80,148,222,.08),
    inset 0 1px 0 rgba(255,255,255,.96);
}

/* -------------------------
   ICONOS DENTRO DEL BOTÓN
------------------------- */
.fj-btn-primary i,
.fj-btn-ghost i{
  transition: transform .18s ease, opacity .18s ease;
}

.fj-btn-primary:hover i,
.fj-btn-ghost:hover i{
  transform: translateX(1px);
}

/* -------------------------
   TAMAÑOS PEQUEÑOS
------------------------- */
.btn-sm.fj-btn-primary,
.btn-sm.fj-btn-ghost{
  padding: .62rem .9rem;
  border-radius: 14px;
}

/* -------------------------
   ESTADO DISABLED
------------------------- */
.fj-btn-primary:disabled,
.fj-btn-ghost:disabled,
.btn.disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================================
   ENCUESTA — ESTRELLAS HOVER + SELECCIÓN
========================================================= */

.fj-stars{
  display: inline-flex;
  flex-direction: row-reverse; /* importante */
  align-items: center;
  gap: .45rem;
  user-select: none;
}

.fj-star-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fj-star{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  cursor: pointer;
  transition:
    transform .14s ease,
    border-color .14s ease,
    background-color .14s ease,
    box-shadow .14s ease;
}

.fj-star i{
  font-size: 20px;
  color: rgba(15,23,42,.22); /* gris base */
  transition:
    color .14s ease,
    transform .14s ease,
    opacity .14s ease;
}

/* Hover sobre la estrella actual y las "anteriores" visuales */
.fj-stars .fj-star:hover,
.fj-stars .fj-star:hover ~ .fj-star{
  border-color: rgba(245,197,24,.38);
  background: rgba(255,248,214,.7);
}

.fj-stars .fj-star:hover i,
.fj-stars .fj-star:hover ~ .fj-star i{
  color: #f5c518;
  transform: scale(1.04);
}

/* Selección fija */
.fj-star-input:checked + .fj-star,
.fj-star-input:checked + .fj-star ~ .fj-star{
  border-color: rgba(245,197,24,.38);
  background: rgba(255,248,214,.7);
}

.fj-star-input:checked + .fj-star i,
.fj-star-input:checked + .fj-star ~ .fj-star i{
  color: #f5c518;
}

/* Focus accesible */
.fj-star-input:focus-visible + .fj-star{
  outline: 3px solid rgba(53,86,198,.28);
  outline-offset: 2px;
}

/* Cuando no hay hover, mantener visibles las seleccionadas */
.fj-stars:hover .fj-star-input:checked + .fj-star i,
.fj-stars:hover .fj-star-input:checked + .fj-star ~ .fj-star i{
  color: #f5c518;
}

/* ===============================
   MODAL MÁS GRANDE
=============================== */
.fj-modal-900{
  max-width: 900px;
}

@media (min-width: 1200px){
  .fj-modal-900{
    max-width: 980px;
  }
}

/* ===============================
   ALERTA IMPORTANTE (UX + institucional)
=============================== */
.fj-alert-important{
  background: #f1f6fb; /* azul muy suave institucional */
  border: 1px solid rgba(31, 99, 200, 0.25);
  border-left: 4px solid #1F63C8;
  border-radius: 12px;
  padding: 16px 18px;
}

/* Título */
.fj-alert-important .fw-bold{
  color: #1F63C8;
  font-size: 0.95rem;
  letter-spacing: .02em;
}

/* Texto justificado (clave) */
.fj-alert-important p{
  text-align: justify;
  text-justify: inter-word;
  font-size: 0.92rem;
  color: rgba(15,23,42,.85);
}

/* ===============================
   MEJORA GENERAL MODAL BODY
=============================== */
.fj-modal-card .modal-body{
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 18px;
}

/* Scroll más limpio */
.fj-modal-card .modal-body::-webkit-scrollbar{
  width: 6px;
}
.fj-modal-card .modal-body::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.15);
  border-radius: 10px;
}