/* Explicadores v6: cuenta de hospital, comparativa, carrusel de logos y mapa del Bajío. */

/* ---------- Cuenta de hospital ---------- */
.gx { background: var(--g-arena6); padding: clamp(72px, 9vw, 140px) 0; }
.gx__grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (min-width: 960px) { .gx__grid { grid-template-columns: 1fr 1.05fr; } }
.gx__lead { font-size: var(--t-lead); color: var(--tinta-2); margin: 20px 0 36px; max-width: 40ch; }
.gx__set { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.gx__lab { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.gx__billout { display: block; font-family: var(--fd); font-stretch: 115%; font-weight: 800; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; color: var(--bosque); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.gx__range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.gx__range::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--ocre) 0 var(--p, 19%), rgba(41, 53, 26, .14) var(--p, 19%)); }
.gx__range::-moz-range-track { height: 12px; border-radius: 99px; background: rgba(41, 53, 26, .14); }
.gx__range::-moz-range-progress { height: 12px; border-radius: 99px; background: var(--ocre); }
.gx__range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -10px; border-radius: 50%; background: var(--bosque); border: 5px solid var(--crema); box-shadow: 0 2px 10px rgba(28, 36, 18, .3); }
.gx__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bosque); border: 5px solid var(--crema); }
.gx__range:focus-visible { outline: 3px solid var(--ocre); outline-offset: 4px; border-radius: 8px; }
.gx__ticks { display: flex; justify-content: space-between; font-size: .85rem; color: var(--tinta-2); }
.gx__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.gx__chip { position: relative; }
.gx__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gx__chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 2px solid rgba(41, 53, 26, .22); font-weight: 600; font-variant-numeric: tabular-nums; transition: background var(--dur-3) var(--ease-std), color var(--dur-3) var(--ease-std), border-color var(--dur-3) var(--ease-std); }
.gx__chip input:checked + span { background: var(--bosque); border-color: var(--bosque); color: var(--crema); }
.gx__chip input:focus-visible + span { outline: 3px solid var(--ocre); outline-offset: 3px; }
@media (hover: hover) { .gx__chip:hover span { border-color: var(--bosque); } }

.gx__paper {
  position: relative; background: #fffdf8; color: var(--tinta); padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) clamp(40px, 4vw, 56px);
  border-radius: var(--r) var(--r) 0 0; box-shadow: 0 30px 60px -30px rgba(28, 36, 18, .35);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 24px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 24px 100%;
}
.gx__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 18px; font-weight: 600; }
.gx__head strong { font-family: var(--fd); font-stretch: 112%; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.gx__bar { display: flex; height: 56px; border-radius: 14px; overflow: hidden; gap: 3px; background: #fffdf8; }
.gx__seg { display: block; height: 100%; width: var(--w, 33%); min-width: 4px; transition: width var(--dur-5) var(--ease-enter); }
.gx__seg--ded, .gx__key--ded { background: var(--ocre); }
.gx__seg--coa, .gx__key--coa { background: var(--ocre-claro); }
.gx__seg--ins, .gx__key--ins { background: var(--olivo); }
.gx__rows { margin: 22px 0 0; }
.gx__rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px dashed rgba(41, 53, 26, .2); }
.gx__rows dt { display: flex; align-items: center; gap: 10px; }
.gx__rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gx__key { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.gx__total { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 22px; }
.gx__total span { font-family: var(--fd); font-stretch: 115%; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.gx__total strong { font-family: var(--fd); font-stretch: 118%; font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem); line-height: .9; color: var(--ocre-txt); font-variant-numeric: tabular-nums; }
.gx__note { font-size: .85rem; color: var(--tinta-2); margin: 18px 4px 0; max-width: 60ch; }

/* ---------- Comparativa ---------- */
.cx { background: var(--crema); padding: clamp(72px, 9vw, 140px) 0; }
.cx__t { max-width: 14ch; margin-bottom: clamp(36px, 5vw, 64px); }
.cx__table { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); }
.cx__row { display: contents; }
.cx__row > span { padding: 20px 18px; border-bottom: 1px solid var(--linea); display: flex; align-items: center; }
.cx__row--head > span { font-family: var(--fd); font-stretch: 110%; font-weight: 800; text-transform: uppercase; font-size: .95rem; line-height: 1.1; border-bottom: 2px solid var(--bosque); align-items: end; padding-top: 28px; }
.cx__rl { font-weight: 600; }
.cx__c { color: var(--tinta-2); }
.cx__c--me { background: var(--bosque); color: var(--crema) !important; font-weight: 600; border-bottom-color: rgba(255, 252, 245, .14) !important; }
.cx__row--head .cx__c--me { border-radius: 22px 22px 0 0; color: var(--ocre-claro) !important; font-size: 1.1rem; border-bottom: 2px solid var(--ocre-claro); }
.cx__row--last .cx__c--me { border-radius: 0 0 22px 22px; border-bottom: 0 !important; }
.cx__row:not(.cx__row--head) .cx__c--me::before { content: ""; width: 20px; height: 20px; flex: none; margin-right: 10px; border-radius: 50%; background: var(--ocre-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329351a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.cx__short { display: none; }
.gx__total span { white-space: nowrap; }
@media (max-width: 759px) {
  .cx__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cx__short { display: inline; }
  .cx__table { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .cx__row > span { padding: 12px 8px; font-size: .88rem; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
  .cx__row:not(.cx__row--head) .cx__c--me::before { display: none !important; }
  .cx__rl { grid-column: 1 / -1; padding: 22px 0 6px !important; border-bottom: 0 !important; font-size: 1rem !important; }
  .cx__row--head .cx__rl { display: none; }
  .cx__row--head > span { font-size: .78rem; padding-top: 16px; }
  .cx__row--head .cx__c--me { font-size: .85rem; }
  .cx__row:not(.cx__row--head) .cx__c--me::before { width: 16px; height: 16px; margin-right: 6px; background-size: 10px; }
  .cx__c--me { border-radius: 0; }
  .cx__row:not(.cx__row--head):not(.cx__row--last) .cx__c--me { border-radius: 0; }
  .cx__row:not(.cx__row--head) .cx__c--me { border-radius: 14px; }
  .cx__row--head .cx__c--me { border-radius: 14px 14px 0 0; }
  .cx__row:not(.cx__row--head) > .cx__c { align-items: flex-start; }
}

/* ---------- Carrusel de logos (v9: sin botón, se detiene con el cursor o con movimiento reducido; monocromos, peso óptico normalizado, bordes desvanecidos) ---------- */
.lx { background: var(--crema); padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--linea); }
.lx__in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 48px); max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.lx__t { margin: 0; font-size: .9rem; font-weight: 500; color: var(--tinta-2); line-height: 1.3; white-space: nowrap; }
.lx__t span { display: block; color: var(--tinta); font-weight: 650; }
.lx__track { min-width: 0; overflow: hidden; padding-block: 6px; -webkit-mask: linear-gradient(90deg, #0000, #000 12%, #000 88%, #0000); mask: linear-gradient(90deg, #0000, #000 12%, #000 88%, #0000); }
.lx__row { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; animation: lx 42s linear infinite; }
.lx__row li { flex: none; display: flex; align-items: center; justify-content: center; height: 48px; padding-inline: clamp(28px, 3.4vw, 48px); }
.lx__row a { display: flex; align-items: center; height: 100%; }
.lx__row img { display: block; height: var(--lh, 28px); width: var(--lw, auto); max-width: none; object-fit: contain; filter: brightness(0); opacity: .5; transition: opacity var(--dur-3); }
.lx__row a:hover img, .lx__row a:focus-visible img { opacity: .85; }
.lx__track:hover .lx__row, .lx__track:focus-within .lx__row { animation-play-state: paused; }
@keyframes lx { to { transform: translateX(calc(-100% / 3)); } }
@media (prefers-reduced-motion: reduce) { .lx__row { animation: none; } }
@media (max-width: 640px) {
  .lx__in { grid-template-columns: minmax(0, 1fr); gap: 14px 16px; }
  .lx__t { white-space: normal; }
  .lx__t span { display: inline; }
  .lx__track { grid-column: 1 / -1; grid-row: 2; margin-inline: calc(var(--gutter) * -1); }
  .lx__row li { padding-inline: 26px; }
  .lx__row img { height: calc(var(--lh) * .85); width: calc(var(--lw) * .85); }
}

/* ---------- Mapa de México (Simplemaps, uso comercial libre) ---------- */
.mx { width: 100%; height: auto; overflow: visible; display: block; }
.mx__st { fill: #3d4b25; stroke: #1b2310; stroke-width: .8; stroke-linejoin: round; transition: fill var(--dur-3); }
.mx__st:nth-child(3n) { fill: #46552b; }
.mx__st:nth-child(3n+1) { fill: #56622f; }
.mx__st--gto, .mx__st--gto:nth-child(n) { fill: var(--ocre); stroke: #f0c588; stroke-width: 1.2; }
@media (hover: hover) { .mx__st:not(.mx__st--gto):hover { fill: #6b7a3a; } }
.mx__arc { fill: none; stroke: var(--ocre-claro); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .9; }
.mx__ring { fill: none; stroke: var(--ocre-claro); stroke-width: 2; opacity: .6; transform-box: fill-box; transform-origin: center; }
.mx__pt circle { fill: var(--crema); stroke: #1b2310; stroke-width: 1.5; }
.mx__pt--main circle { fill: var(--ocre); stroke: var(--crema); stroke-width: 3; }
@media (max-width: 640px) { .mx__pt circle { r: 7px; } .mx__pt--main circle { r: 12px; } }
@media (prefers-reduced-motion: no-preference) {
  .mx.is-in .mx__arc { animation: mxd 1.6s var(--ease-enter) both; animation-delay: calc(var(--i) * 110ms); }
  .mx:not(.is-in) .mx__arc { stroke-dashoffset: 1; }
  .mx.is-in .mx__ring { animation: mxr 2.6s var(--ease-enter) infinite 1.6s; }
}
@keyframes mxd { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mxr { from { transform: scale(.6); opacity: .7; } to { transform: scale(2.2); opacity: 0; } }
