/* RewardOdds — "Ledger": reglas adaptativas (mobile-first overrides) */

@media (max-width: 1040px) {
  .lgr-pie__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .lgr-pie__grid .lgr-pie__col:last-child {
    grid-column: span 2;
    border-right: none;
    padding-left: 0;
    margin-top: var(--e-4);
  }
  .lgr-mapa {
    grid-template-columns: repeat(2, 1fr);
  }
  .lgr-mapa > div:nth-child(2) {
    border-right: none;
  }
  .lgr-mapa > div:nth-child(n + 3) {
    border-top: var(--borde) solid var(--linea-sutil);
  }
}

@media (max-width: 860px) {
  .lgr-riel {
    flex-direction: column;
  }
  .lgr-riel__item {
    flex: 1 1 80px;
    border-right: none;
    border-top: var(--borde) solid var(--linea-sutil);
    padding-top: var(--e-2);
    padding-bottom: var(--e-2);
  }
  .lgr-riel__item:first-child {
    border-top: none;
  }
  h1 {
    font-size: var(--tipo-800);
  }
}

/* El menú horizontal de 7 enlaces no entra con comodidad por debajo de
   1024px (se probó en tablet 768px: el texto envolvía y los enlaces
   quedaban pegados al borde) — el menú tipo cajón cubre tablet y móvil. */
@media (max-width: 1023px) {
  .lgr-nav {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fondo);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--e-4);
    transform: translateX(100%);
    transition: transform var(--dur) var(--easing);
    overflow-y: auto;
    border-top: var(--borde) solid var(--linea-sutil);
  }
  .lgr-nav.es-abierto {
    transform: translateX(0);
  }
  .lgr-nav__enlace {
    padding: var(--e-3) var(--e-2);
    border-bottom: var(--borde) solid var(--linea-sutil);
    border-radius: 0;
    font-size: var(--tipo-400);
  }
  .lgr-nav-boton {
    display: flex;
  }
}

@media (max-width: 767px) {
  .lgr-barra-utilidad__fila {
    font-size: 0.7rem;
  }
  /* La barra utilitaria envuelve a dos líneas en anchos angostos: el héroe
     necesita el alto real para no calcular un min-height corto de más. */
  :root {
    --alto-cabecera: 120px;
  }

  .lgr-criterios {
    grid-template-columns: 1fr;
  }
  .lgr-criterio {
    border-right: none !important;
  }
  .lgr-criterio:nth-child(n + 2) {
    border-top: var(--borde) solid var(--linea-sutil);
  }
  .lgr-criterio:first-child {
    border-top: none;
  }

  .lgr-pros-contras {
    grid-template-columns: 1fr;
  }
  .lgr-mapa {
    grid-template-columns: 1fr;
  }
  .lgr-mapa > div {
    border-right: none !important;
    border-top: var(--borde) solid var(--linea-sutil);
  }
  .lgr-mapa > div:first-child {
    border-top: none;
  }
  .lgr-pie__grid {
    grid-template-columns: 1fr;
  }
  .lgr-pie__col {
    border-right: none;
    padding-left: 0;
    margin-top: var(--e-4);
  }
  .lgr-pie__col:first-child {
    margin-top: 0;
  }
  .lgr-medidor-fila {
    grid-template-columns: 7rem 1fr 2.5rem;
  }
  .lgr-veredicto {
    position: static;
  }
  .lgr-404 {
    font-size: 3.5rem;
  }
  .lgr-confianza__item {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .lgr-hero__acciones {
    flex-direction: column;
    align-items: stretch;
  }
  .lgr-hero__acciones .lgr-boton {
    width: 100%;
  }
  .lgr-cabecera-pagina__fila {
    flex-direction: column;
    align-items: flex-start;
  }
  .lgr-cookies {
    left: var(--e-2);
    right: var(--e-2);
    bottom: var(--e-2);
    padding: var(--e-3);
  }
  .lgr-modal-edad__panel {
    padding: var(--e-5) var(--e-3);
  }
  .lgr-marca__caja {
    width: 91px;
    height: 36px;
  }
}
