@font-face {
  font-family: 'Garet';
  src:url('../fonts/Garet-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Garet-Bold';
  src:url('../fonts/Garet-Bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Colors */
  --bg: F8FAFC;
  /* Clean slate background */
  --surf: #FFFFFF;
  /* Pure white for premium cards */
  --surf2: #F1F5F9;
  /* Light gray for nested cards/strips */
  --txt: #1E293B;
  /* Dark slate for readable main text */
  --muted: #64748B;
  /* Cool gray for secondary text */
  --brd: #E2E8F0;
  /* Subtle divider borders */

  /* Typography */
  --font-main: 'Garet', sans-serif;
  --font-title: 'Garet-Bold', sans-serif;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  line-height: 1.5;
  padding: 0;
}

header {
  /*text-align: center;*/
  padding: 0 1rem 1.5rem;
  border-bottom: 1px solid var(--brd);
  background: var(--surf);
  animation: fadeInDown 0.8s ease-out;
}

header h1 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  /*background: linear-gradient(90deg, #FF2400, #706BFF, #EB4CF0, #06D6A0);*/
  background: linear-gradient(90deg, #FF7A00, #10414F, #32B186);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.layout,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 1.5rem;
  margin: 2rem auto;
  align-items: start;
}

@media(max-width:780px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* CARDS */
.card,
.map-card,
.hint-card,
.info-card,
.leg-card {
  background: var(--surf);
  border-radius: 16px;
  border: 1px solid var(--brd);
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.1);
}

/* MAP SPECIFICS */
.map-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 30%, rgba(76, 201, 240, .04) 0%, transparent 65%);
}

.map-lbl {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .7rem;
}

.mun {
  stroke: #0d1b2a;
  stroke-width: 28;
  cursor: pointer;
  transition: filter .15s, opacity .2s;
}

.mun:hover {
  filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 255, 255, .5));
}

.mun.active {
  stroke: #666;
  stroke-width: 50;
  filter: brightness(100%) drop-shadow(0 0 14px currentColor);
}

.mun.dimmed {
  /*filter: contrast(100%) brightness(60%);*/
  filter: opacity(30%);
}

/* PANEL & DETAILS */
.panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hint-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  min-height: 155px;
  justify-content: center;
}

.hint-icon {
  font-size: 2.4rem;
}
.hint-icon img{
  height: 2.5rem;
}

.hint-txt {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.5;
}

.info-card {
  flex-direction: column;
  gap: .95rem;
  display: none;
  animation: fu .25s ease;
}

.info-card.on {
  display: flex;
}

@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ihead {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.iname {
  font-family: var(--font-title);
  font-size: .97rem;
  font-weight: 900;
  line-height: 1.2;
}

.isub,
.isede {
  font-size: .71rem;
  color: var(--muted);
  margin-top: .1rem;
  font-weight: 600;
}

.isede {
  margin-top: .04rem;
}

.mstrip {
  background: var(--surf2);
  border-radius: 9px;
  padding: .5rem .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  border: 1px solid var(--brd);
}

.mstrip strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.mstrip span {
  color: var(--muted);
}

.agrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
}

.acard {
  background: var(--surf2);
  border-radius: 10px;
  padding: .75rem .85rem;
  border: 1px solid var(--brd);
}

#doc_diagnostico {
  font-size: 0.9rem;
}

#doc_diagnostico a {
  text-decoration: none;
}

#coordinador img{
  float: left;
  margin: 15px 15px 0 0;
  border-radius: 30px;
}

.aname {
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .28rem;
}

.acount {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.pbar {
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .05);
  overflow: hidden;
  margin-top: .38rem;
}

.pfill {
  height: 100%;
  border-radius: 3px;
  transition: width .55s cubic-bezier(.34, 1.56, .64, 1);
}

.plbl {
  font-size: .64rem;
  color: var(--muted);
  margin-top: .26rem;
  font-weight: 600;
}

.cbtn {
  align-self: flex-end;
  background: var(--surf2);
  border: 1px solid var(--brd);
  color: var(--txt);
  border-radius: 7px;
  padding: .35rem .8rem;
  cursor: pointer;
  font-size: .72rem;
  font-family: var(--font-main);
  font-weight: 600;
  transition: background .15s, transform 0.1s;
}

.cbtn:hover {
  background: var(--brd);
  transform: scale(1.02);
}

/* LEGEND */
.leg-title {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .7rem;
}

.leg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .26rem;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: .42rem;
  cursor: pointer;
  padding: .2rem .28rem;
  border-radius: 5px;
  transition: background .13s;
}

.leg-item:hover {
  background: var(--surf2);
}

.leg-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.leg-name {
  color: var(--muted);
  font-size: .9rem;
}

/* METRICS / CHARTS SPECIFICS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .layout {
    padding: 0 1rem;
  }
}

.card-header {
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--txt);
  font-family: var(--font-title);
}

.chart-container {
  position: relative;
  height: 450px;
  width: 100%;
}

.stats-summary {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--brd);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--txt);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--brd);
  background: var(--surf);
}

.suplente, .region {
  font-weight: 600;
  margin: 0 0 6px;
  color: #36b54e;
}

.role {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 12px;
}

.excerpt {
  font-size: 0.95rem;
  color: #1f2937;
  margin: 0;
}

.presenta{
  background: var(--surf);
  border-radius: 16px;
  border: 1px solid var(--brd);
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.presenta p{
  margin-top:15px;
  text-align: justify;
}

.cita{
  padding-left:30px;
  font-style: italic;
}

#ic-badge{
  width:45px;
  height:auto;
}

.icon-lineas-accion{
  width: 5rem;
  float: left;
  margin: 5px 15px;
}

.row{
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
}
.col {
  flex: 1 0 0;
}
.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

#hint{
  height: 270px;
}
#info{
  min-height: 1110px;
}