#elige-caminito { margin-block: 1.4rem 1.6rem; }
#elige-caminito .ec-titulo { margin: 0 0 .75rem; font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.25; }
.ec-tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(5px, 1.75vw, 16px); }
.ec-tarjeta, .ec-opcion {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  min-width: 0; gap: .35rem; padding: .65rem; border: 2px solid var(--borde);
  background: var(--hoja); color: var(--tinta); border-radius: 17px;
  line-height: 1.3; text-align: center; overflow-wrap: anywhere;
}
.ec-tarjeta:hover, .ec-opcion:hover { border-color: var(--marco); background: var(--fondo); }
.ec-opcion[aria-pressed="true"] { border-color: var(--acento); background: var(--bien-fondo); }
.ec-campo { color: var(--acento); font-size: clamp(.86rem, 2.5vw, 1.1rem); }
.ec-mini { display: block; min-width: 0; min-height: 0; overflow: hidden; }
.ec-mini img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ec-tarjeta .ec-mini { height: clamp(52px, 9vw, 82px); }
.ec-elegido { font-size: .9rem; color: var(--tinta); }
.ec-jugar { display: block; width: max-content; min-width: 7.25rem; margin: .85rem auto 0; }
.ec-dialogo {
  box-sizing: border-box; width: min(46rem, calc(100% - 1.25rem)); max-height: min(85vh, 47rem);
  max-height: min(87dvh, 47rem); margin: auto; padding: 0; border: 2px solid var(--marco);
  border-radius: 22px; background: var(--hoja); color: var(--tinta); overflow: hidden;
}
.ec-dialogo[open] { display: flex; flex-direction: column; }
.ec-dialogo [hidden] { display: none !important; }
.ec-dialogo::backdrop { background: rgba(20,35,28,.55); }
.ec-cabecera, .ec-filtros, .ec-pie { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; }
.ec-cabecera { justify-content: space-between; }
.ec-cabecera h2 { font-size: clamp(1.05rem, 3.5vw, 1.4rem); margin: 0; line-height: 1.25; }
.ec-boton, .ec-busqueda, .ec-nivel {
  box-sizing: border-box; min-height: 44px; min-width: 0; padding: .45rem .7rem;
  border: 1.5px solid var(--borde); border-radius: 12px; background: var(--hoja); color: var(--tinta); font: inherit;
}
.ec-boton { color: var(--acento); font-weight: 700; }
.ec-filtros { flex-wrap: wrap; padding-block: 0; }
.ec-busqueda { flex: 1 1 160px; max-width: 100%; }
.ec-nivel { flex: 1 1 150px; max-width: 100%; }
.ec-estado { margin: .45rem 1rem; font-size: .875rem; color: var(--suave); }
.ec-desplazable { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .3rem .85rem .8rem; }
.ec-resultados { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(115px, 100%), 1fr)); gap: .5rem; }
.ec-dialogo[data-tipo="trazo"] .ec-resultados { grid-template-columns: repeat(auto-fill, minmax(min(155px, 100%), 1fr)); }
.ec-opcion { padding: .45rem; border-radius: 12px; }
.ec-opcion .ec-mini { height: 65px; }
.ec-dialogo[data-tipo="trazo"] .ec-opcion .ec-mini { height: 40px; }
.ec-nombre { font-size: .88rem; font-weight: 700; }
.ec-detalle { font-size: .77rem; color: var(--suave); }
.ec-mas { display: block; margin: .75rem auto 0; }
.ec-pie { justify-content: flex-start; border-top: 1px solid var(--borde); }
@media (max-width: 450px) {
  .ec-tarjeta { padding: .5rem .2rem; border-radius: 12px; }
  .ec-elegido { font-size: .8rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .ec-dialogo { max-height: 95vh; max-height: 95dvh; }
  .ec-filtros, .ec-cabecera, .ec-pie { padding-block: .25rem; }
  .ec-estado { margin-block: .15rem; }
}
