/* =========================================================
   TOKENS
========================================================= */
:root{
  --navy-900: #081a30;
  --navy-800: #0d2b4e;
  --navy-700: #163a63;
  --gold-500: #c99a3b;
  --gold-400: #dcb45c;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --text-dark: #1c2b3a;
  --text-muted: #5b6b7c;
  --border-soft: #e2e7ee;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 10px;
  --shadow-md: 0 12px 30px rgba(8, 26, 48, 0.14);
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

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

html{ scroll-behavior:smooth; }

body{
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }

h1,h2,h3{ font-family: var(--font-display); color: var(--navy-900); line-height:1.2; }

.eyebrow{
  display:inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  display:inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn--gold{
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
}
.btn--gold:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline{
  border: 2px solid var(--navy-800);
  color: var(--navy-800);
}
.btn--outline:hover{ background: var(--navy-800); color: var(--white); }

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.logo img{ height: 52px; }

.main-nav{ display:flex; gap: 2rem; }
.main-nav a{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a.active,
.main-nav a:hover{ color: var(--navy-800); }
.main-nav a.active::after{
  content:'';
  position:absolute;
  left:0; bottom:-4px;
  width:100%; height:2px;
  background: var(--gold-500);
}

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
}
.nav-toggle span{ width:24px; height:2px; background: var(--navy-800); }

/* =========================================================
   HERO / BANNERS
========================================================= */
.hero{ background: var(--navy-900); }

.banner{
  position: relative;
  overflow: hidden;
}
.banner--video{ aspect-ratio: 16/7; }
.banner--foto{ aspect-ratio: 16/5; }

.banner__track{
  position:relative;
  width:100%; height:100%;
}

.banner__slide{
  position:absolute; inset:0;
  opacity:0;
  visibility:hidden;
  transition: opacity 0.8s ease;
}
.banner__slide.is-active{ opacity:1; visibility:visible; }

.banner__media{
  width:100%; height:100%;
  object-fit: cover;
}

.banner--video .banner__overlay{
  position:absolute; left:0; bottom:0; right:0;
  padding: 2.5rem 3rem;
  background: linear-gradient(180deg, rgba(8,26,48,0) 0%, rgba(8,26,48,0.85) 90%);
  color: var(--white);
}
.banner__eyebrow{
  display:block;
  font-family: var(--font-display);
  font-size:0.75rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--gold-400);
  margin-bottom:0.5rem;
}
.banner__title{
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  max-width: 640px;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.banner__arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px;
  border-radius:50%;
  border:none;
  background: rgba(8,26,48,0.45);
  color:#fff;
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background var(--transition);
  z-index: 5;
}
.banner__arrow:hover{ background: var(--gold-500); color: var(--navy-900); }
.banner__arrow--prev{ left:1rem; }
.banner__arrow--next{ right:1rem; }

.banner__dots{
  position:absolute; bottom:0.9rem; left:0; right:0;
  display:flex; justify-content:center; gap:0.5rem;
  z-index:5;
}
.banner__dots button{
  width:9px; height:9px;
  border-radius:50%;
  border:none;
  background: rgba(255,255,255,0.5);
  cursor:pointer;
  transition: background var(--transition), transform var(--transition);
}
.banner__dots button.is-active{
  background: var(--gold-500);
  transform: scale(1.25);
}

/* =========================================================
   INTRO
========================================================= */
.intro{
  max-width: 820px;
  margin: 0 auto;
  text-align:center;
  padding: 3.5rem 1.5rem 2.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* =========================================================
   CARDS SECTION
========================================================= */
.cards-section{ padding: 2rem 1.5rem 4rem; max-width: 1100px; margin:0 auto; }
.section-head{ text-align:center; margin-bottom: 2.5rem; }
.section-head h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); }

.cards-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.consejo-card{
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align:center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.consejo-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.consejo-card img{ width:96px; height:96px; object-fit:contain; margin: 0 auto 1.2rem; }
.consejo-card h3{ font-size:1.25rem; margin-bottom:0.4rem; }
.consejo-card p{ color: var(--text-muted); margin-bottom:1.5rem; font-size:0.95rem; }

/* =========================================================
   FEATURE BAND (background image)
========================================================= */
.feature-band{
  background-size: cover;
  background-position: center;
  position: relative;
}
.feature-band::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(8,26,48,0.92), rgba(13,43,78,0.8));
}
.feature-band__overlay{
  position: relative;
  z-index:1;
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: var(--white);
  text-align:center;
}
.feature-band__overlay h2{ color:var(--white); margin-bottom:1.2rem; font-size: clamp(1.5rem,3vw,2rem); }
.feature-band__overlay p{ color: rgba(255,255,255,0.85); margin-bottom:1rem; font-size:0.98rem; }

/* =========================================================
   QUOTE
========================================================= */
.quote-section{
  text-align:center;
  padding: 4.5rem 1.5rem 2rem;
}
.quote-mark{ font-family:var(--font-display); font-size:4rem; color:var(--gold-500); line-height:1; }
.quote-section blockquote{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.8rem;
}
.quote-section cite{ color: var(--text-muted); font-style:normal; font-size:0.95rem; }

/* =========================================================
   JUSTIFICACION
========================================================= */
.justificacion{ background: var(--bg-light); padding: 3.5rem 1.5rem; }
.justificacion__inner{ max-width: 820px; margin:0 auto; }
.justificacion h2{ margin-bottom:1.2rem; }
.justificacion p{ color: var(--text-muted); margin-bottom:1rem; }

/* =========================================================
   BLOGS PREVIEW (sección en el index)
========================================================= */
.blogs-preview{ background: var(--bg-light); padding: 4rem 1.5rem; text-align:center; }
.blogs-preview__inner{ max-width: 680px; margin:0 auto; }
.blogs-preview__inner p{ color: var(--text-muted); margin: 1rem 0 1.8rem; }

/* =========================================================
   ENCABEZADO DE PÁGINA INTERNA (blog, banco, faq)
========================================================= */
.page-heading{ background: var(--navy-900); padding: 3.5rem 1.5rem; text-align:center; }
.page-heading__inner{ max-width: 680px; margin:0 auto; }
.page-heading h1{ color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0.3rem 0 0.8rem; }
.page-heading p{ color: rgba(255,255,255,0.75); }

/* =========================================================
   LISTA DE BLOGS
========================================================= */
.blog-list-section{ padding: 3.5rem 1.5rem; }
.blog-list{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.blog-empty{ text-align:center; color: var(--text-muted); }

.blog-item{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-item:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }

.blog-item__img{ background: var(--navy-700); min-height: 200px; }
.blog-item__img img{ width:100%; height:100%; object-fit: cover; }

.blog-item__content{ padding: 1.6rem 1.8rem 1.6rem 0; display:flex; flex-direction:column; justify-content:center; }
.blog-item__content h2{ font-size: 1.3rem; margin-bottom: 0.6rem; }
.blog-item__content p{ color: var(--text-muted); margin-bottom: 1.2rem; }

.btn--pdf{
  align-self: flex-start;
  display:inline-flex;
  align-items:center;
  gap: 0.5rem;
  background: var(--navy-800);
  color: var(--white);
}
.btn--pdf:hover{ background: var(--gold-500); color: var(--navy-900); }
.btn--pdf__icon{ font-size: 1rem; }

@media (max-width: 700px){
  .blog-item{ grid-template-columns: 1fr; }
  .blog-item__img{ min-height: 180px; }
  .blog-item__content{ padding: 1.4rem; }
}

/* =========================================================
   CONTACTO
========================================================= */
.contacto{ padding: 4rem 1.5rem; }
.contacto__inner{
  max-width: 1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items:center;
}
.contacto__texto h2{ margin-bottom:0.8rem; }
.contacto__texto p{ color: var(--text-muted); margin-bottom:1.5rem; }
.contacto__texto a{ color: var(--gold-500); font-weight:600; }

.contacto__telefonos{
  background: var(--navy-900);
  border-radius: var(--radius);
  padding: 2rem;
  display:flex;
  flex-direction:column;
  gap: 0.9rem;
}
.contacto__telefonos a{
  color: var(--white);
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.05rem;
  padding-bottom:0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contacto__telefonos a:last-child{ border-bottom:none; padding-bottom:0; }
.contacto__telefonos a:hover{ color: var(--gold-400); }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{ background: var(--navy-900); color: rgba(255,255,255,0.7); }
.site-footer__inner{
  max-width: 1100px;
  margin:0 auto;
  padding: 2.5rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-logo{ height:38px; filter: brightness(0) invert(1); opacity:0.85; }
.footer-nav{ display:flex; gap:1.5rem; }
.footer-nav a{ font-size:0.9rem; }
.footer-nav a:hover{ color: var(--gold-400); }
.footer-copy{ font-size:0.82rem; width:100%; text-align:center; order:3; opacity:0.6; }
.back-to-top{
  width:36px; height:36px;
  border-radius:50%;
  background: rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
}
.back-to-top:hover{ background: var(--gold-500); color: var(--navy-900); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px){
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background: var(--white);
    flex-direction:column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-soft);
    display:none;
  }
  .main-nav.is-open{ display:flex; }
  .nav-toggle{ display:flex; }

  .cards-grid{ grid-template-columns: 1fr; }
  .contacto__inner{ grid-template-columns: 1fr; }
  .banner--video, .banner--foto{ aspect-ratio: 4/5; }
  .banner--video .banner__overlay{ padding: 1.5rem; }

  .items-layout{ grid-template-columns: 1fr; }
  .items-filters{ position:static; max-height:none; }
  .items-grid{ grid-template-columns: 1fr; }
  .perfil-heading__inner{ flex-direction:column; text-align:center; }
  .perfil-table{ display:block; overflow-x:auto; white-space:nowrap; }
}

/* =========================================================
   TAGS / CHIPS (compartidos por tarjetas, perfil y filtros)
========================================================= */
.tag{
  display:inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--navy-800);
  border: 1px solid var(--border-soft);
  margin: 0 0.35rem 0.35rem 0;
}
.tag--gold{ background: rgba(201,154,59,0.14); color: var(--gold-500); border-color: rgba(201,154,59,0.3); }
.tag--muted{ color: var(--text-muted); }

/* =========================================================
   ITEMS — LAYOUT (filtros + resultados)
========================================================= */
.items-section{ padding: 2.5rem 1.5rem 4rem; max-width: 1280px; margin: 0 auto; }
.items-layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items:start;
}

/* ---- Panel de filtros ---- */
.items-filters{
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.items-filters__head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 1rem;
}
.items-filters__head h2{ font-size: 1.1rem; }
.items-filters__clear{ font-size: 0.82rem; color: var(--gold-500); font-weight:600; }
.items-filters__clear:hover{ text-decoration: underline; }

.filter-group{
  border: none;
  border-top: 1px solid var(--border-soft);
  padding: 1rem 0;
}
.filter-group:first-of-type{ border-top: none; padding-top: 0; }
.filter-group legend{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-900);
  margin-bottom: 0.6rem;
  padding: 0;
}
.filter-group--scroll{ max-height: 220px; overflow-y: auto; }

.filter-check, .filter-radio{
  display:flex;
  align-items:center;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  padding: 0.28rem 0;
  cursor: pointer;
}
.filter-check input, .filter-radio input{ accent-color: var(--gold-500); width:16px; height:16px; flex-shrink:0; }

.items-filters__submit{ width:100%; margin-top: 0.5rem; text-align:center; }

/* ---- Resultados ---- */
.items-results__count{ color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.items-empty{ color: var(--text-muted); padding: 2rem 0; }
.items-empty a{ color: var(--gold-500); font-weight:600; }

.items-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 1100px){ .items-grid{ grid-template-columns: repeat(2, 1fr); } }

.item-card{
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align:center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.item-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }

.item-card__select{
  position:absolute; top:0.9rem; right:0.9rem;
  cursor:pointer;
}
.item-card__select input{ width:20px; height:20px; accent-color: var(--gold-500); cursor:pointer; }

.item-card__photo{
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  background: var(--navy-700);
  display:flex; align-items:center; justify-content:center;
}
.item-card__photo img{ width:100%; height:100%; object-fit:cover; }
.item-card__photo-placeholder{
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight:700;
  color: var(--white);
}

.item-card__body h3{ font-size: 1.05rem; margin-bottom: 0.2rem; }
.item-card__cargo{ font-size: 0.88rem; color: var(--text-muted); }
.item-card__empresa{ font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.item-card__tags{ display:flex; flex-wrap:wrap; justify-content:center; margin-top: 0.4rem; }
.item-card__link{ margin-top: 1rem; width:100%; font-size: 0.85rem; padding: 0.7rem 1rem; }

/* =========================================================
   BARRA FLOTANTE DE SELECCIÓN
========================================================= */
.seleccion-bar{
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 140%);
  z-index: 200;
  display:flex;
  align-items:center;
  gap: 1.2rem;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.8rem 1rem 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.seleccion-bar.is-visible{ transform: translate(-50%, 0); }
.seleccion-bar p{ font-size: 0.9rem; white-space:nowrap; }
.seleccion-bar .btn{ padding: 0.6rem 1.3rem; font-size: 0.85rem; }

/* =========================================================
   PERFIL COMPLETO (item-detalle.php)
========================================================= */
.perfil-heading{ background: var(--navy-900); padding: 3rem 1.5rem; }
.perfil-heading__inner{
  max-width: 1000px; margin:0 auto;
  display:flex; align-items:center; gap: 2rem;
}
.perfil-heading__photo{
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow:hidden;
  flex-shrink:0;
  background: var(--navy-700);
  display:flex; align-items:center; justify-content:center;
  border: 3px solid var(--gold-500);
}
.perfil-heading__photo img{ width:100%; height:100%; object-fit:cover; }
.perfil-heading__photo span{ font-family: var(--font-display); font-size: 2.4rem; font-weight:700; color: var(--white); }

.perfil-heading__back{ display:inline-block; color: var(--gold-400); font-size: 0.85rem; margin-bottom: 0.6rem; }
.perfil-heading__info h1{ color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 0.3rem; }
.perfil-heading__cargo{ color: rgba(255,255,255,0.75); margin-bottom: 0.8rem; }
.perfil-heading__tags{ margin-bottom: 0.9rem; }
.perfil-heading__select{
  display:inline-flex; align-items:center; gap:0.5rem;
  color: var(--white); font-size: 0.88rem; cursor:pointer;
}
.perfil-heading__select input{ width:18px; height:18px; accent-color: var(--gold-500); }

.perfil-body{ padding: 3rem 1.5rem 4rem; }
.perfil-body__inner{ max-width: 1000px; margin:0 auto; display:flex; flex-direction:column; gap: 2.2rem; }
.perfil-block{ background: var(--bg-light); border-radius: var(--radius); padding: 1.8rem 2rem; }
.perfil-block h2{ font-size: 1.15rem; margin-bottom: 0.9rem; }
.perfil-block__subtitle{ font-size: 0.92rem; color: var(--text-muted); margin: 1rem 0 0.5rem; }
.perfil-block__tags{ display:flex; flex-wrap:wrap; }

.perfil-table{ width:100%; border-collapse: collapse; margin-top: 0.6rem; }
.perfil-table th, .perfil-table td{
  text-align:left;
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
}
.perfil-table th{ font-family: var(--font-display); font-weight:600; color: var(--navy-900); }
.perfil-table td{ color: var(--text-muted); }

/* =========================================================
   PÁGINA DE SELECCIÓN (seleccion.php)
========================================================= */
.seleccion-lista{ display:flex; flex-direction:column; gap: 1rem; max-width: 760px; margin: 0 auto; }
.seleccion-item{
  display:flex; align-items:center; gap: 1.2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
}
.seleccion-item__photo{
  width:56px; height:56px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background: var(--navy-700); display:flex; align-items:center; justify-content:center;
}
.seleccion-item__photo img{ width:100%; height:100%; object-fit:cover; }
.seleccion-item__photo span{ color:var(--white); font-family: var(--font-display); font-weight:700; }
.seleccion-item__info{ flex:1; }
.seleccion-item__info h3{ font-size: 1rem; margin-bottom: 0.15rem; }
.seleccion-item__info p{ font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.seleccion-item__info a{ font-size: 0.82rem; color: var(--gold-500); font-weight:600; }
.seleccion-item__quitar{
  border:none; background:none; cursor:pointer;
  width:32px; height:32px; border-radius:50%;
  color: var(--text-muted); font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.seleccion-item__quitar:hover{ background: rgba(201,154,59,0.15); color: var(--gold-500); }

.seleccion-cta{
  max-width: 760px; margin: 2.2rem auto 0;
  display:flex; gap: 1rem; flex-wrap:wrap;
}

.footer-admin-link{ opacity: 0.6; text-decoration: underline; }
.footer-admin-link:hover{ opacity: 1; }

.item-card__especialidades{
  display:flex;
  gap: 0.3rem;
  position:absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
}

.especialidad-cuadrito{
  position: relative;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  line-height: 1;
}

.especialidad-cuadrito .cuadrito-escudo{
  width: 100%;
  height: 100%;
  display: block;
}

/* Reemplaza SOLO estas dos reglas (::after y ::before) de
   .especialidad-cuadrito en css/styles.css por estas versiones
   -- cambian de "hacia arriba" a "hacia abajo" para que no se
   recorten cerca del borde superior de la tarjeta. Deja igual
   todo lo demas (.especialidad-cuadrito base, :hover, etc.) */

.especialidad-cuadrito::after{
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #0f1e3c;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

.especialidad-cuadrito::before{
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-9px);
  border: 5px solid transparent;
  border-bottom-color: #0f1e3c;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

.especialidad-cuadrito:hover::after,
.especialidad-cuadrito:hover::before,
.especialidad-cuadrito:focus::after,
.especialidad-cuadrito:focus::before{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.especialidad-cuadrito svg{
  width: 17px;
  height: 17px;
  display: block;
  margin-top: -2px;
}

.filter-check--color{
  display:flex;
  align-items:center;
  gap: 0.5rem;
}
.filter-check--color .especialidad-cuadrito{
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.filter-check--leyenda{
  display:flex;
  align-items:center;
  gap: 0.5rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  padding: 0.28rem 0;
  cursor: default;
}
