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

/* RGC · Grafo de Conocimiento · frontend */

/* Directorio y mapa de la portada. */
.rgc-mapbox{min-height:500px}
.rgc-map-info__link{margin-left:auto;color:#7c142e!important;font-weight:800;text-decoration:underline!important;text-underline-offset:3px}
.rgc-directory-empty{padding:24px;border:1px dashed #c9b8b2;border-radius:16px;background:#fff;text-align:center}
.rgc-mini-item em{display:inline-block;margin-top:7px;color:#7c142e;font-size:.75rem;font-style:normal;font-weight:800}

/* Leaflet: protección frente a estilos heredados del antiguo mapa SVG. */
.rgc-mapbox .leaflet-tile-pane{z-index:200!important}
.rgc-mapbox .leaflet-overlay-pane{z-index:400!important}
.rgc-mapbox .leaflet-shadow-pane{z-index:500!important}
.rgc-mapbox .leaflet-marker-pane{z-index:600!important}
.rgc-mapbox .leaflet-tooltip-pane{z-index:650!important}
.rgc-mapbox .leaflet-popup-pane{z-index:700!important}
.rgc-mapbox .leaflet-overlay-pane svg{display:block!important;width:auto!important;height:auto!important;max-width:none!important}
.rgc-map-marker-shell{display:block!important;overflow:visible!important;border:0!important;background:transparent!important}
.rgc-map-marker{display:block!important;width:100%!important;height:100%!important;border:2px solid #fff!important;border-radius:999px!important;box-shadow:0 2px 9px rgba(49,8,21,.48)!important;transition:transform .15s ease,box-shadow .15s ease!important}
.rgc-map-marker--ayto{background:#bb5555!important}
.rgc-map-marker--dip{background:#7c142e!important;box-shadow:0 0 0 3px rgba(124,20,46,.22),0 2px 10px rgba(49,8,21,.48)!important}
.rgc-map-marker-shell:hover .rgc-map-marker,.rgc-map-marker-shell:focus .rgc-map-marker{transform:scale(1.28);box-shadow:0 4px 14px rgba(49,8,21,.62)!important}

/* --------------------------------------------------------------------------
   Ficha territorial pública · v2.0.18
   Diseño compacto, modular y completamente aislado del resto de la web.
   -------------------------------------------------------------------------- */
body.single-rgc_entidad .fusion-page-title-bar{display:none!important}
body.single-rgc_entidad #main{padding-top:0!important;padding-bottom:0!important;background:#f7f6f5}
body.single-rgc_entidad #content,
body.single-rgc_entidad .post-content{width:100%!important;max-width:none!important;margin:0!important}
body.single-rgc_entidad #main>.fusion-row,
body.single-rgc_entidad #main .fusion-row{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}

.rgc-entity-page{
  --rgc-burgundy:#8c1232;
  --rgc-burgundy-dark:#650c23;
  --rgc-red:#a22045;
  --rgc-text:#252025;
  --rgc-muted:#6f656a;
  --rgc-line:#eadfe2;
  --rgc-soft:#fbf7f5;
  --rgc-soft-2:#f7f0ed;
  --rgc-white:#fff;
  --rgc-shadow:0 9px 28px rgba(52,20,32,.075);
  width:100%;
  color:var(--rgc-text);
  font-family:"Inter",Arial,sans-serif;
  font-size:16px;
  line-height:1.55;
}
.rgc-entity-page *,.rgc-entity-page *::before,.rgc-entity-page *::after{box-sizing:border-box}
.rgc-entity-page a{color:inherit}
.rgc-entity-page button,.rgc-entity-page select{font:inherit}
.rgc-entity-page svg{display:block;width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rgc-entity-page :focus-visible{outline:3px solid #ffbf47;outline-offset:3px}
.rgc-entity-shell{width:min(calc(100% - 40px),1400px);margin:0 auto;padding:24px 0 44px}

.rgc-entity-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 15px;color:#7b7176;font-size:.78rem;font-weight:500}
.rgc-entity-breadcrumb a{text-decoration:none}
.rgc-entity-breadcrumb a:hover{color:var(--rgc-burgundy);text-decoration:underline;text-underline-offset:3px}

/* Cabecera */
.rgc-entity-hero.rgc-entity-hero--showcase{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(330px,.76fr);
  gap:30px;
  min-height:310px;
  padding:30px 32px;
  border-radius:18px;
  overflow:hidden;
  color:#fff;
  background:radial-gradient(circle at 73% 28%,rgba(255,255,255,.09),transparent 34%),linear-gradient(135deg,var(--rgc-burgundy-dark),var(--rgc-burgundy) 58%,#a00f3b);
  box-shadow:0 15px 40px rgba(73,11,31,.18);
}
.rgc-entity-hero--showcase .rgc-entity-hero__main{display:flex;flex-direction:column;min-width:0;position:relative;z-index:1}
.rgc-entity-hero--showcase .rgc-entity-hero__copy{min-width:0}
.rgc-entity-kicker{display:block;margin:0 0 8px;color:#f3cbd5;font-size:.68rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.rgc-entity-hero__title-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.rgc-entity-hero--showcase h1{margin:0;color:#fff;font-size:clamp(2.35rem,4vw,3.85rem);font-weight:700;letter-spacing:-.035em;line-height:1}
.rgc-entity-region-pill{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 17px;border:1px solid rgba(255,255,255,.52);border-radius:9px;background:rgba(255,255,255,.06);color:#fff;font-size:.82rem;font-weight:600}
.rgc-entity-hero__subtitle{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 0;color:rgba(255,255,255,.94);font-size:.92rem;font-weight:500}
.rgc-entity-hero__subtitle strong{font-weight:600}
.rgc-entity-hero__type-icon{display:flex;align-items:center;justify-content:center;width:23px;height:23px;line-height:0}
.rgc-entity-hero__type-icon svg{width:20px;height:20px;margin:0}
.rgc-entity-hero__quick-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.rgc-entity-hero__quick-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:rgba(255,255,255,.06);color:#fff!important;font-size:.75rem;font-weight:600;text-decoration:none!important}
.rgc-entity-hero__quick-actions a:hover{background:rgba(255,255,255,.16)}
.rgc-entity-hero__quick-actions svg{width:15px;height:15px}

.rgc-entity-hero__facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:auto;padding-top:24px}
.rgc-entity-hero__fact{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:center;min-width:0;padding:0 17px;border-left:1px solid rgba(255,255,255,.3)}
.rgc-entity-hero__fact:first-child{padding-left:0;border-left:0}
.rgc-entity-hero__fact-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;line-height:0}
.rgc-entity-hero__fact-icon svg{width:24px;height:24px;margin:0}
.rgc-entity-hero__fact>div{min-width:0}
.rgc-entity-hero__fact>div>span{display:block;margin-bottom:2px;color:rgba(255,255,255,.76);font-size:.7rem;line-height:1.25}
.rgc-entity-hero__fact strong{display:block;color:#fff;font-size:.87rem;font-weight:600;line-height:1.25;overflow-wrap:anywhere}

.rgc-entity-hero__map-column{position:relative;z-index:1;display:flex;flex-direction:column;min-width:0}
.rgc-entity-hero__map{flex:1;min-height:205px;border:1px solid rgba(255,255,255,.55);border-radius:13px;background:#eee9e5;overflow:hidden;isolation:isolate}
.rgc-entity-hero__map--empty{display:grid;place-items:center;padding:22px;color:#6c6267;text-align:center}
.rgc-entity-hero__map--empty p{margin:0}
.rgc-entity-hero__map .leaflet-control-attribution{display:none!important}
.rgc-entity-map-label{padding:6px 9px!important;border:1px solid #d7bdc5!important;border-radius:7px!important;color:#372a30!important;font-family:"Inter",Arial,sans-serif!important;font-size:12px!important;line-height:1.35!important;box-shadow:0 7px 18px rgba(62,20,36,.16)!important}
.rgc-map-external.rgc-map-external--hero{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;margin-top:12px;padding:8px 13px;border:1px solid rgba(255,255,255,.65);border-radius:999px;background:transparent;color:#fff!important;font-size:.79rem;font-weight:600;cursor:pointer}
.rgc-map-external--hero:hover{background:rgba(255,255,255,.1)}
.rgc-map-external--hero svg{width:17px;height:17px}

/* Resumen de macroencuesta */
.rgc-survey-overview{display:grid;grid-template-columns:minmax(210px,.92fr) minmax(0,2.1fr) auto;gap:18px;align-items:center;margin-top:18px;padding:18px 20px;border:1px solid var(--rgc-line);border-radius:14px;background:#fff;box-shadow:var(--rgc-shadow)}
.rgc-survey-overview__intro>span{display:block;margin-bottom:5px;color:var(--rgc-burgundy);font-size:.875rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.rgc-survey-overview__intro h2{margin:0;color:#342b2e;font-size:1.25rem;font-weight:600;line-height:1.35}
.rgc-survey-overview__groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.rgc-survey-overview__group{display:flex;align-items:flex-start;gap:8px;min-height:58px;padding:10px;border:1px solid #ede4e7;border-radius:9px;background:#fff}
.rgc-survey-overview__check{display:flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;border:1px solid #d3c7cb;border-radius:50%;color:#9e9297;font-size:.7rem;font-weight:700}
.rgc-survey-overview__group.is-complete .rgc-survey-overview__check{border-color:#54a95a;color:#3d9a45}
.rgc-survey-overview__group strong{display:block;color:var(--rgc-burgundy);font-size:.875rem;font-weight:700}
.rgc-survey-overview__group div>span{display:block;color:#5d5358;font-size:.875rem;line-height:1.4}
.rgc-survey-overview__button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 17px;border:1px solid #c99eaa;border-radius:8px;background:#fff;color:var(--rgc-burgundy)!important;font-size:.9375rem;font-weight:600;text-decoration:none!important;white-space:nowrap}
.rgc-survey-overview__button:hover{background:#fff7f9}

/* Módulos de contenidos */
.rgc-entity-modules{display:grid;gap:18px;margin-top:18px}
.rgc-entity-module{padding:16px;border:1px solid var(--rgc-line);border-radius:14px;background:#fff;box-shadow:var(--rgc-shadow);scroll-margin-top:20px}
.rgc-entity-module--practices,.rgc-entity-module--events{background:var(--rgc-soft)}
.rgc-entity-module__header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.rgc-entity-module__title{display:flex;align-items:center;gap:9px;min-width:0}
.rgc-entity-module__icon{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #ead7dd;border-radius:50%;background:#fff;color:var(--rgc-burgundy);line-height:0}
.rgc-entity-module__icon svg{width:16px;height:16px;margin:0}
.rgc-entity-module__header h2{margin:0;color:var(--rgc-burgundy);font-size:.9rem;font-weight:700;letter-spacing:.01em;text-transform:uppercase;line-height:1.2}
.rgc-entity-module__header>a{display:inline-flex;align-items:center;gap:7px;color:var(--rgc-burgundy)!important;font-size:.72rem;font-weight:600;text-decoration:none!important;white-space:nowrap}
.rgc-entity-module__header>a:hover{text-decoration:underline!important;text-underline-offset:3px}
.rgc-entity-module__empty{margin:0;padding:22px;border:1px dashed #dbcbd0;border-radius:10px;background:rgba(255,255,255,.72);color:var(--rgc-muted);font-size:.84rem;text-align:center}

.rgc-entity-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rgc-entity-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e9dfe2;border-radius:9px;background:#fff}
.rgc-entity-card__media{display:block;aspect-ratio:16/8.9;overflow:hidden;background:#eee7e4;text-decoration:none}
.rgc-entity-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.rgc-entity-card:hover .rgc-entity-card__media img{transform:scale(1.025)}
.rgc-entity-card__media-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#a58f97}
.rgc-entity-card__media-placeholder svg{width:32px;height:32px}
.rgc-entity-card__body{display:flex;flex:1;flex-direction:column;padding:11px 12px 12px}
.rgc-entity-card__meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:6px}
.rgc-entity-card__meta time{color:var(--rgc-burgundy);font-size:.61rem;font-weight:700;text-transform:uppercase}
.rgc-entity-card__meta span{display:inline-flex;padding:3px 6px;border-radius:999px;background:#eaf3fb;color:#4f7091;font-size:.56rem;font-weight:600;text-transform:uppercase}
.rgc-entity-card h3{margin:0 0 7px;color:#292328;font-size:.86rem;font-weight:600;line-height:1.35}
.rgc-entity-card h3 a{text-decoration:none!important}
.rgc-entity-card h3 a:hover{color:var(--rgc-burgundy)}
.rgc-entity-card p{display:-webkit-box;overflow:hidden;margin:0;color:#6d6368;font-size:.7rem;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.rgc-entity-card__link{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:10px;color:var(--rgc-burgundy)!important;font-size:.68rem;font-weight:600;text-decoration:none!important}
.rgc-entity-card__link:hover{text-decoration:underline!important;text-underline-offset:3px}

/* Documentos */
.rgc-entity-documents{overflow:hidden;border:1px solid #e7dcdf;border-radius:9px;background:#fff}
.rgc-entity-documents__head,.rgc-entity-document{display:grid;grid-template-columns:minmax(340px,2.45fr) minmax(100px,.7fr) 110px 90px 112px;align-items:center}
.rgc-entity-documents__head{min-height:34px;background:#f8f3f2;color:#55494f;font-size:.65rem;font-weight:600}
.rgc-entity-documents__head>span{padding:8px 10px}
.rgc-entity-document{min-height:60px;border-top:1px solid #eee5e7;color:#5d5358;font-size:.69rem}
.rgc-entity-document:first-of-type{border-top:0}
.rgc-entity-document:nth-child(odd){background:#fdfafa}
.rgc-entity-document>[role="cell"]{min-width:0;padding:8px 10px}
.rgc-entity-document__main{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center}
.rgc-entity-document__cover{display:block;width:34px;height:44px;overflow:hidden;border:1px solid #e0d5d8;border-radius:4px;background:#eee7e4}
.rgc-entity-document__cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.rgc-entity-document__main strong{display:block;color:#342b30;font-size:.72rem;font-weight:600;line-height:1.35}
.rgc-entity-document__main div>span{display:block;overflow:hidden;margin-top:2px;color:#81767b;font-size:.62rem;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
.rgc-entity-document__type>span{display:inline-flex;padding:3px 7px;border-radius:999px;background:var(--rgc-burgundy);color:#fff;font-size:.58rem;font-weight:600}
.rgc-entity-document__action{display:flex;align-items:center;justify-content:flex-end;border-left:1px solid #eee5e7}
.rgc-entity-document__action a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border:1px solid var(--rgc-burgundy);border-radius:7px;background:#fff;color:var(--rgc-burgundy)!important;font-size:.65rem;font-weight:600;text-decoration:none!important;white-space:nowrap}
.rgc-entity-document__action a:hover{background:var(--rgc-burgundy);color:#fff!important}

/* Jornadas */
.rgc-entity-event-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rgc-entity-event{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e7dcdf;border-radius:10px;background:#fff}
.rgc-entity-event__media{display:block;aspect-ratio:16/9;overflow:hidden;background:#eee7e4;text-decoration:none!important}
.rgc-entity-event__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.rgc-entity-event:hover .rgc-entity-event__media img{transform:scale(1.025)}
.rgc-entity-event__content{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;flex:1;padding:13px}
.rgc-entity-event__date{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:start;min-height:58px;border:1px solid #cda6b1;border-radius:8px;color:var(--rgc-burgundy);line-height:1}
.rgc-entity-event__date strong{font-size:1.08rem;font-weight:700}
.rgc-entity-event__date span{margin-top:4px;font-size:.68rem;font-weight:700}
.rgc-entity-event__body{display:flex;flex-direction:column;min-width:0}
.rgc-entity-event h3{margin:0 0 7px;color:#2b2529;font-size:1rem;font-weight:600;line-height:1.35}
.rgc-entity-event h3 a{text-decoration:none!important}
.rgc-entity-event h3 a:hover{color:var(--rgc-burgundy)}
.rgc-entity-event p{margin:0 0 7px;color:#76676e;font-size:.88rem;line-height:1.45}
.rgc-entity-event__tags{display:flex;flex-wrap:wrap;gap:5px}
.rgc-entity-event__tags span{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eaf4e9;color:#4f8a4b;font-size:.72rem;font-weight:600}
.rgc-entity-event__body>a{display:inline-flex;align-items:center;gap:5px;margin-top:auto;padding-top:10px;color:var(--rgc-burgundy)!important;font-size:.82rem;font-weight:600;text-decoration:none!important}

/* Paginación independiente de noticias y buenas prácticas */
.rgc-entity-pagination{display:flex;justify-content:center;margin-top:20px;padding-top:18px;border-top:1px solid var(--rgc-line)}
.rgc-entity-pagination ul{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:0!important;padding:0!important;list-style:none!important}
.rgc-entity-pagination li{margin:0!important;padding:0!important}
.rgc-entity-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 11px;border:1px solid #dbc6cd;border-radius:999px;background:#fff;color:var(--rgc-burgundy)!important;font-size:.82rem;font-weight:600;text-decoration:none!important}
.rgc-entity-pagination .page-numbers:hover{border-color:var(--rgc-burgundy);background:#fff7f9}
.rgc-entity-pagination .current{border-color:var(--rgc-burgundy);background:var(--rgc-burgundy);color:#fff!important}

/* Macroencuesta desarrollada */
.rgc-entity-module--survey-detail{margin-top:18px;padding:0;background:#fff;overflow:hidden}
.rgc-survey-accordion{background:#fff}
.rgc-survey-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:74px;padding:17px 20px;cursor:pointer;list-style:none}
.rgc-survey-accordion>summary::-webkit-details-marker{display:none}
.rgc-survey-accordion__heading>span{display:block;margin-bottom:4px;color:var(--rgc-burgundy);font-size:.875rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.rgc-survey-accordion__heading>strong{display:block;color:var(--rgc-text);font-size:1.25rem;font-weight:600;line-height:1.3}
.rgc-survey-accordion__action{display:flex;align-items:center;gap:8px;color:var(--rgc-burgundy);font-size:.9375rem;font-weight:600}
.rgc-survey-accordion__action svg{width:18px;height:18px;transition:transform .2s ease}
.rgc-survey-accordion[open] .rgc-survey-accordion__action svg{transform:rotate(180deg)}
.rgc-survey-accordion__body{padding:18px 20px 22px;border-top:1px solid var(--rgc-line);background:var(--rgc-soft)}
.rgc-survey-accordion__intro{margin:0 0 18px;color:var(--rgc-muted);font-size:1.0625rem;line-height:1.6}
.rgc-survey-years{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 15px}
.rgc-survey-years a{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:8px 12px;border:1px solid #d7c3c9;border-radius:999px;background:#fff;color:var(--rgc-burgundy)!important;font-size:.875rem;font-weight:600;text-decoration:none!important}
.rgc-survey-years a.is-active{border-color:var(--rgc-burgundy);background:var(--rgc-burgundy);color:#fff!important}
.rgc-gt-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--rgc-line);border-radius:10px 10px 0 0;background:#fff}
.rgc-gt-tab{min-height:64px;padding:10px;border:0;border-right:1px solid var(--rgc-line);background:#fff;color:#463b41;cursor:pointer;text-align:center}
.rgc-gt-tab:last-child{border-right:0}
.rgc-gt-tab strong{display:block;margin-bottom:4px;color:var(--rgc-burgundy);font-size:.875rem;font-weight:700}
.rgc-gt-tab span{display:block;font-size:.875rem;font-weight:500;line-height:1.35}
.rgc-gt-tab.is-active{background:var(--rgc-burgundy);color:#fff}
.rgc-gt-tab.is-active strong{color:#fff}
.rgc-gt-selector-mobile{display:none;color:#463b41;font-size:.9375rem;font-weight:600}
.rgc-gt-selector-mobile select{width:100%;margin-top:6px;padding:9px;border:1px solid var(--rgc-line);border-radius:8px;background:#fff}
.rgc-gt-panel{padding:20px;border:1px solid var(--rgc-line);border-top:0;border-radius:0 0 10px 10px;background:#fff}
.rgc-gt-panel[hidden]{display:none!important}
.rgc-gt-summary{margin-bottom:5px;padding-bottom:14px;border-bottom:1px solid var(--rgc-line)}
.rgc-gt-summary>span{display:block;margin-bottom:4px;color:var(--rgc-burgundy);font-size:.875rem;font-weight:700}
.rgc-gt-summary h3{margin:0;color:var(--rgc-text);font-size:1.5rem;font-weight:600;line-height:1.2}
.rgc-survey-entry{padding:18px 0;border-bottom:1px solid var(--rgc-line)}
.rgc-survey-entry:last-child{padding-bottom:0;border-bottom:0}
.rgc-survey-entry__meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:6px}
.rgc-survey-entry__meta span{color:var(--rgc-burgundy);font-size:.875rem;font-weight:700}
.rgc-survey-entry__meta em{display:inline-flex;padding:4px 9px;border-radius:999px;background:#f5e9ed;color:#8b3c53;font-size:.8125rem;font-style:normal;font-weight:500}
.rgc-survey-entry h4{margin:0 0 10px;color:#342b2e;font-size:1.1875rem;font-weight:600;line-height:1.4}
.rgc-survey-entry__answer{color:#5f555a;font-size:1.0625rem;line-height:1.65}
.rgc-survey-entry__answer p{margin:0 0 9px}
.rgc-survey-entry__answer p:last-child{margin-bottom:0}
.rgc-answer-list{display:grid;gap:5px;margin:0;padding-left:18px}

/* Mapa ampliado */
body.rgc-map-lightbox-open{overflow:hidden!important}
.rgc-map-lightbox[hidden]{display:none!important}
.rgc-map-lightbox{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:clamp(16px,3vw,44px)}
.rgc-map-lightbox__backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(17,10,14,.82);cursor:pointer;backdrop-filter:blur(3px)}
.rgc-map-lightbox__dialog{position:relative;z-index:1;display:flex;flex-direction:column;width:min(1400px,96vw);height:min(850px,90vh);overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.45)}
.rgc-map-lightbox__header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;border-bottom:1px solid var(--rgc-line)}
.rgc-map-lightbox__header>div>span{display:block;color:var(--rgc-burgundy);font-size:.64rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.rgc-map-lightbox__header h2{margin:2px 0 0;color:var(--rgc-text);font-size:1.25rem;font-weight:600}
.rgc-map-lightbox__close{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid #d8bdc5;border-radius:50%;background:#fff;color:var(--rgc-burgundy);cursor:pointer}
.rgc-map-lightbox__close span{font-size:1.8rem;line-height:1}
.rgc-map-lightbox__map{flex:1;min-height:0;isolation:isolate}
.rgc-map-lightbox__map .leaflet-control-attribution{display:none!important}
.rgc-map-overview{position:absolute;right:18px;bottom:18px;z-index:800;width:230px;height:155px;overflow:hidden;border:4px solid #fff;border-radius:10px;background:#e9e4df;box-shadow:0 10px 30px rgba(32,14,21,.3);isolation:isolate}
.rgc-map-overview .leaflet-control-attribution,.rgc-map-overview .leaflet-control-zoom{display:none!important}
.rgc-map-overview::after{content:"ESPAÑA · zona ampliada";position:absolute;left:7px;top:7px;z-index:900;padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--rgc-burgundy);font-size:.54rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;pointer-events:none}
.rgc-map-overview-rectangle{stroke:#8a1432!important;stroke-width:4px!important;fill:#b73958!important;fill-opacity:.2!important;vector-effect:non-scaling-stroke}

@media(max-width:1180px){
  .rgc-entity-hero.rgc-entity-hero--showcase{grid-template-columns:minmax(0,1.3fr) minmax(310px,.8fr);gap:22px}
  .rgc-entity-hero__facts{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:17px}
  .rgc-entity-hero__fact:nth-child(3){padding-left:0;border-left:0}
  .rgc-survey-overview{grid-template-columns:1fr}
  .rgc-survey-overview__button{justify-self:start}
  .rgc-entity-card-grid,.rgc-entity-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rgc-entity-documents__head,.rgc-entity-document{grid-template-columns:minmax(300px,2fr) minmax(95px,.75fr) 100px 80px 105px}
}

@media(max-width:820px){
  .rgc-entity-shell{width:min(calc(100% - 28px),1400px);padding-top:18px}
  .rgc-entity-hero.rgc-entity-hero--showcase{grid-template-columns:1fr;padding:24px}
  .rgc-entity-hero__map{min-height:270px}
  .rgc-survey-overview__groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rgc-entity-documents__head{display:none}
  .rgc-entity-document{grid-template-columns:1fr 1fr;padding:12px}
  .rgc-entity-document>[role="cell"]{padding:7px 0;border:0}
  .rgc-entity-document>[role="cell"]::before{content:attr(data-label);display:block;margin-bottom:3px;color:var(--rgc-burgundy);font-size:.58rem;font-weight:700;text-transform:uppercase}
  .rgc-entity-document__main{grid-column:1/-1}
  .rgc-entity-document__main::before{display:none!important}
  .rgc-entity-document__action{justify-content:flex-start}
  .rgc-gt-tabs{display:none}
  .rgc-gt-selector-mobile{display:block;margin-bottom:10px}
  .rgc-gt-panel{border-top:1px solid var(--rgc-line);border-radius:10px}
}

@media(max-width:560px){
  .rgc-entity-shell{width:calc(100% - 20px);padding-bottom:30px}
  .rgc-entity-breadcrumb{font-size:.68rem}
  .rgc-entity-hero.rgc-entity-hero--showcase{padding:20px 16px;border-radius:14px}
  .rgc-entity-hero--showcase h1{font-size:clamp(2rem,12vw,2.8rem)}
  .rgc-entity-region-pill{min-height:34px;padding:6px 12px}
  .rgc-entity-hero__facts{grid-template-columns:1fr;padding-top:17px}
  .rgc-entity-hero__fact,.rgc-entity-hero__fact:nth-child(3){padding:10px 0;border-top:1px solid rgba(255,255,255,.25);border-left:0}
  .rgc-entity-hero__fact:first-child{border-top:0}
  .rgc-entity-hero__map{min-height:220px}
  .rgc-survey-overview{padding:15px}
  .rgc-survey-overview__groups{grid-template-columns:1fr}
  .rgc-entity-module{padding:13px;border-radius:12px}
  .rgc-entity-module__header{align-items:flex-start}
  .rgc-entity-module__header>a{white-space:normal;text-align:right}
  .rgc-entity-card-grid,.rgc-entity-event-grid{grid-template-columns:1fr}
  .rgc-entity-card__media{aspect-ratio:16/9}
  .rgc-entity-document{grid-template-columns:1fr}
  .rgc-entity-document__main{grid-column:auto}
  .rgc-survey-accordion>summary{align-items:flex-start;padding:15px}
  .rgc-survey-accordion__action>span{display:none}
  .rgc-survey-accordion__body{padding:15px}
  .rgc-map-lightbox{padding:8px}
  .rgc-map-lightbox__dialog{width:100%;height:88vh;border-radius:12px}
  .rgc-map-overview{right:10px;bottom:10px;width:140px;height:95px;border-width:3px}
}

@media(prefers-reduced-motion:reduce){
  .rgc-entity-page *,.rgc-entity-page *::before,.rgc-entity-page *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* RGC v2.0.41 · evita el doble scroll horizontal provocado por elementos de ancho viewport */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* RGC v2.0.54 · documentos publicados en el mapa/directorio de entidades. */
.rgc-map-info{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.rgc-map-info>strong{min-width:180px}
.rgc-map-info__documents{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:7px 11px;border:1px solid #ded1d5;border-radius:999px;background:#fff;color:#6f656a!important;text-decoration:none!important;white-space:nowrap}
.rgc-map-info__documents b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 6px;border-radius:999px;background:#eee7e9;color:#6f656a;font-size:.84rem}
.rgc-map-info__documents span{font-size:.76rem;font-weight:750}
.rgc-map-info__documents.has-documents{border-color:#d8b5c0;background:#fff8fa;color:#7c142e!important}
.rgc-map-info__documents.has-documents b{background:#7c142e;color:#fff}
.rgc-map-info__documents:hover,.rgc-map-info__documents:focus-visible{border-color:#7c142e;box-shadow:0 0 0 3px rgba(124,20,46,.1)}
.rgc-mini-list .rgc-mini-item{display:flex;align-items:center;gap:14px;width:100%}
.rgc-mini-item__entity{display:flex;flex:1;min-width:0;flex-direction:column;color:inherit!important;text-decoration:none!important}
.rgc-mini-item__entity strong,.rgc-mini-item__entity span{overflow-wrap:anywhere}
.rgc-mini-item__documents{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:82px;padding:7px 9px;border:1px solid #ded1d5;border-radius:12px;background:#fff;color:#6f656a!important;text-align:center;text-decoration:none!important}
.rgc-mini-item__documents b{margin-right:5px;font-size:1rem;line-height:1}
.rgc-mini-item__documents span{font-size:.68rem;font-weight:750}
.rgc-mini-item.has-documents .rgc-mini-item__documents{border-color:#d8b5c0;background:#fff7f9;color:#7c142e!important}
.rgc-mini-item.has-documents .rgc-mini-item__documents b{color:#7c142e}
.rgc-mini-item__documents:hover,.rgc-mini-item__documents:focus-visible{border-color:#7c142e;background:#7c142e!important;color:#fff!important}
.rgc-mini-item__documents:hover b,.rgc-mini-item__documents:focus-visible b{color:#fff}
@media(max-width:700px){
  .rgc-map-info__documents{order:3;margin-left:0}
  .rgc-map-info__link{order:4;margin-left:0}
  .rgc-mini-list .rgc-mini-item{align-items:flex-start}
  .rgc-mini-item__documents{min-width:70px;flex-direction:column;gap:3px}
  .rgc-mini-item__documents b{margin-right:0}
}

/* RGC v2.0.54 · prioridad frente a enlaces/overlays heredados de la portada. */
#rgcCompactDirectory .rgc-mini-item__entity{
  position:relative!important;
  inset:auto!important;
  z-index:1!important;
}
#rgcCompactDirectory .rgc-mini-item__documents,
#rgcMapInfo .rgc-map-info__documents{
  position:relative!important;
  inset:auto!important;
  z-index:4!important;
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* RGC v2.0.56 · directorio público en columnas de contenido. */
#rgcCompactDirectory .rgc-mini-item em{display:none!important}
.rgc-entity-directory-table-wrap{
  width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  border-top:1px solid #eadfe2;
  background:#fff;
  scrollbar-width:thin;
  scrollbar-color:#cdbdc2 transparent;
}
.rgc-entity-directory-table{
  width:100%;
  min-width:760px;
  margin:0;
  border:0;
  border-collapse:collapse;
  table-layout:fixed;
  background:#fff;
}
.rgc-entity-directory-table th,
.rgc-entity-directory-table td{
  padding:10px 12px;
  border:0;
  border-bottom:1px solid #eee6e8;
  vertical-align:middle;
}
.rgc-entity-directory-table thead th{
  background:#faf8f8;
  color:#71676b;
  font-size:.68rem;
  font-weight:800;
  line-height:1.2;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.035em;
  white-space:normal;
}
.rgc-entity-directory-table thead th:first-child,
.rgc-entity-directory-table tbody th{
  width:42%;
  text-align:left;
}
.rgc-entity-directory-table tbody td{
  width:11.6%;
  text-align:center;
}
.rgc-entity-directory-table tbody tr:last-child th,
.rgc-entity-directory-table tbody tr:last-child td{border-bottom:0}
.rgc-entity-directory-table tbody tr:hover th,
.rgc-entity-directory-table tbody tr:hover td{background:#fdfafb}
.rgc-entity-directory-name{
  display:block;
  overflow-wrap:anywhere;
  color:#302a2d!important;
  font-size:.86rem;
  line-height:1.35;
  text-decoration:none!important;
}
.rgc-entity-directory-name strong{font-weight:750}
.rgc-entity-directory-name span{
  color:#83797d;
  font-size:.78rem;
  font-weight:500;
  white-space:nowrap;
}
.rgc-entity-directory-name:hover strong,
.rgc-entity-directory-name:focus-visible strong{color:#7c142e}
.rgc-entity-directory-count{
  display:inline-grid;
  place-items:center;
  min-width:28px;
  height:28px;
  padding:0 6px;
  border-radius:6px;
  color:#aaa0a4!important;
  font-size:.82rem;
  font-weight:650;
  font-variant-numeric:tabular-nums;
  line-height:1;
  text-decoration:none!important;
}
.rgc-entity-directory-count.has-content{color:#7c142e!important;font-weight:850}
.rgc-entity-directory-count:hover,
.rgc-entity-directory-count:focus-visible{
  background:#7c142e;
  color:#fff!important;
  box-shadow:none;
}
@media(max-width:800px){
  .rgc-entity-directory-table{min-width:700px}
  .rgc-entity-directory-table thead th:first-child,
  .rgc-entity-directory-table tbody th{width:38%}
  .rgc-entity-directory-table th,
  .rgc-entity-directory-table td{padding:9px 8px}
}

/* RGC v2.0.61 · directorio reutilizable en las páginas públicas de entidades. */
.rgc-public-entity-directory{
  width:min(calc(100% - 36px),1400px);
  margin:34px auto 54px;
  color:#302a2d;
  font-family:"Inter",Arial,sans-serif;
}
.rgc-public-entity-directory *{box-sizing:border-box}
.rgc-public-entity-directory__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:20px;
}
.rgc-public-entity-directory__head h2{margin:4px 0 0;font-size:clamp(1.65rem,2.6vw,2.35rem);line-height:1.12}
.rgc-public-entity-directory__head p{max-width:570px;margin:0;color:#756b70;line-height:1.55}
.rgc-public-entity-directory__filters{
  display:grid;
  grid-template-columns:minmax(220px,1.25fr) minmax(210px,.85fr) auto;
  gap:14px;
  align-items:end;
  margin-bottom:20px;
  padding:16px;
  border:1px solid #eadfe2;
  border-radius:14px;
  background:#fff;
}
.rgc-public-entity-directory__filters>div{display:grid;gap:6px}
.rgc-public-entity-directory__filters label{color:#51484c;font-size:.78rem;font-weight:750}
.rgc-public-entity-directory__filters input,
.rgc-public-entity-directory__filters select{
  width:100%;
  min-height:44px;
  padding:9px 12px;
  border:1px solid #d8cdd1;
  border-radius:9px;
  background:#fff;
  color:#302a2d;
  font:inherit;
}
.rgc-public-entity-directory .rgc-directory-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 10px}
.rgc-public-entity-directory .rgc-directory-head p{margin:0;color:#756b70;font-size:.85rem;font-weight:650}
.rgc-public-entity-directory .rgc-accordion{overflow:hidden;border:1px solid #e8dde0;border-radius:12px;background:#fff}
.rgc-public-entity-directory .rgc-accordion+.rgc-accordion{margin-top:10px}
.rgc-public-entity-directory .rgc-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;cursor:pointer;color:#4a4045;font-weight:750}
.rgc-public-entity-directory .rgc-accordion>summary small{color:#8a7e83;font-size:.75rem;font-weight:600}
.rgc-public-entity-directory .rgc-entity-directory-table{min-width:820px}
.rgc-public-entity-directory .rgc-entity-directory-table thead th:first-child,
.rgc-public-entity-directory .rgc-entity-directory-table tbody th{width:45%}
.rgc-public-entity-directory .rgc-entity-directory-table tbody td{width:11%}
.rgc-public-entity-directory .rgc-entity-directory-count{
  min-width:34px;
  height:34px;
  border-radius:999px;
  background:#f1edef;
  color:#81767b!important;
}
.rgc-public-entity-directory .rgc-entity-directory-count.has-content{
  background:#e5f3ea;
  color:#176b38!important;
}
.rgc-public-entity-directory .rgc-entity-directory-count:hover,
.rgc-public-entity-directory .rgc-entity-directory-count:focus-visible{background:#7c142e;color:#fff!important}
@media(max-width:900px){
  .rgc-public-entity-directory__head{align-items:flex-start;flex-direction:column}
  .rgc-public-entity-directory__filters{grid-template-columns:1fr 1fr}
  .rgc-public-entity-directory__filters .rgc-btn{grid-column:1/-1;width:100%}
}
@media(max-width:620px){
  .rgc-public-entity-directory{width:min(calc(100% - 24px),1400px);margin-top:24px}
  .rgc-public-entity-directory__filters{grid-template-columns:1fr}
  .rgc-public-entity-directory__filters .rgc-btn{grid-column:auto}
}

/* v2.2.1 · búsqueda predictiva y resultados visibles sin depender de <details>. */
.rgc-directory-search-host{position:relative;z-index:30}
.rgc-directory-predictive{position:absolute;z-index:9999;top:calc(100% + 7px);left:0;right:0;display:grid;max-height:320px;overflow:auto;border:1px solid #d7c9ce;border-radius:14px;background:#fff;box-shadow:0 20px 50px rgba(55,20,32,.2)}
.rgc-directory-predictive[hidden]{display:none!important}
.rgc-directory-predictive button{display:grid;gap:2px;width:100%;padding:11px 14px;border:0;border-bottom:1px solid #eee5e8;background:#fff;color:#30272b;font:inherit;text-align:left;cursor:pointer}
.rgc-directory-predictive button:last-child{border-bottom:0}
.rgc-directory-predictive button:hover,.rgc-directory-predictive button:focus-visible{background:#fff3f6;color:#7c142e}
.rgc-directory-predictive strong{font-size:.92rem}.rgc-directory-predictive span{color:#7f7478;font-size:.78rem}
.rgc-filtered-directory{overflow:hidden;border:1px solid #e8dde0;border-radius:12px;background:#fff}
.rgc-filtered-directory>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-bottom:1px solid #eadfe2;color:#4a4045}
.rgc-filtered-directory>header span{color:#8a7e83;font-size:.78rem;font-weight:650}
.rgc-filtered-directory .rgc-entity-directory-table-wrap{border-top:0}

/* v2.2.2 · listado de entidades siempre visible, sin depender de acordeones. */
.rgc-filtered-directory--always-visible{display:block!important;min-height:1px}
.rgc-filtered-directory--always-visible .rgc-entity-directory-table-wrap{display:block!important;visibility:visible!important;opacity:1!important}
.rgc-entity-directory-region th{
  padding:12px 14px!important;
  border-top:1px solid #e6d9dd!important;
  border-bottom:1px solid #e6d9dd!important;
  background:#fbf5f7!important;
  color:#7c142e!important;
  text-align:left!important;
}
.rgc-entity-directory-region:first-child th{border-top:0!important}
.rgc-entity-directory-region strong{font-size:.82rem;font-weight:850;text-transform:uppercase;letter-spacing:.055em}
.rgc-entity-directory-region small{margin-left:9px;color:#8a7e83;font-size:.72rem;font-weight:650;text-transform:none;letter-spacing:0}
.rgc-public-entity-directory .rgc-entity-directory-region th{background:#fbf7f8!important}

/* Validación pública localizada. */
.rgc-field.has-validation-error input,
.rgc-field.has-validation-error select,
.rgc-field.has-validation-error textarea{
  border-color:#a7193f!important;
  box-shadow:0 0 0 3px rgba(167,25,63,.10)!important;
}
.rgc-field-error{display:block;margin-top:7px;color:#9c1736;font-size:.82rem;font-weight:750;line-height:1.4}

/* v2.2.4 · directorio por comunidades en acordeón exclusivo. */
.rgc-filtered-directory--accordion{overflow:visible;border:0;background:transparent}
.rgc-filtered-directory--accordion>header{margin-bottom:10px;border:1px solid #e8dde0;border-radius:12px;background:#fff}
.rgc-region-accordion-list{display:grid;gap:10px}
.rgc-region-accordion{overflow:hidden;border:1px solid #e6dadd;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(58,28,38,.035)}
.rgc-region-accordion__heading{margin:0!important;padding:0!important;font:inherit!important}
.rgc-region-accordion__toggle{
  display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:15px 18px;border:0;background:#fff;color:#4a4045;font:inherit;text-align:left;cursor:pointer;transition:background .18s ease,color .18s ease
}
.rgc-region-accordion__toggle:hover,.rgc-region-accordion__toggle:focus-visible{background:#fbf5f7;color:#7c142e;outline:0}
.rgc-region-accordion__toggle>span:first-child{display:flex;align-items:baseline;gap:10px;min-width:0}
.rgc-region-accordion__toggle strong{font-size:.9rem;font-weight:850;letter-spacing:.035em;text-transform:uppercase}
.rgc-region-accordion__toggle small{color:#8a7e83;font-size:.76rem;font-weight:650;white-space:nowrap}
.rgc-region-accordion__icon{position:relative;flex:0 0 28px;width:28px;height:28px;border:1px solid #dbcbd0;border-radius:999px;background:#fff}
.rgc-region-accordion__icon::before,.rgc-region-accordion__icon::after{content:"";position:absolute;top:50%;left:50%;width:10px;height:2px;border-radius:2px;background:#8f1736;transform:translate(-50%,-50%);transition:transform .18s ease}
.rgc-region-accordion__icon::after{transform:translate(-50%,-50%) rotate(90deg)}
.rgc-region-accordion.is-open .rgc-region-accordion__toggle{background:#fbf5f7;color:#7c142e}
.rgc-region-accordion.is-open .rgc-region-accordion__icon::after{transform:translate(-50%,-50%) rotate(0deg)}
.rgc-region-accordion__panel[hidden]{display:none!important}
.rgc-region-accordion__panel{border-top:1px solid #eadfe2;background:#fff}
.rgc-region-accordion__panel .rgc-entity-directory-table-wrap{border:0;border-radius:0}
@media(max-width:620px){
  .rgc-region-accordion__toggle{padding:13px 14px}
  .rgc-region-accordion__toggle>span:first-child{align-items:flex-start;flex-direction:column;gap:2px}
  .rgc-region-accordion__toggle small{white-space:normal}
}
