/* hoy-movil.css - HOY Tamaulipas en CELULAR y TABLETA (menos de 1100 px), 2026-12-05.
   Maqueta aprobada por Isaac: isaacdemos/portada_movil/. Lo pinta v2016/hoy_movil.php.
   En todas las paginas: barra del logo, carril de secciones, menu y pie nuevos.
   En la portada, ademas, el cuerpo nuevo (html.hm-on). Arriba de 1100 px no cambia nada.
   Colores: los tokens de /css/hoy-encabezado.css (medidos del logo). Base 4 px.
   Quitar todo: borrar su <link> y las lineas "hoy_movil" de index.php (ver registro de respaldos). */

@font-face {
  font-family: "Oswald";
  src: url("/css/oswald.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

.hm-barra, .hm-chips, .hm-cuerpo, .hm-pie {
  --hm-voz: "Oswald", "Arial Narrow", Arial, sans-serif;
  --hm-lectura: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hm-dato: 13px;
  --hm-cuerpo: 16px;
  --hm-fila: 18px;
  --hm-seccion: 22px;
  --hm-portada: 30px;
  --hm-orilla: 16px;     /* el unico margen lateral */
  --hm-entre: 32px;      /* entre bloques */
  --hm-radio: 6px;
  --hm-dedo: 44px;       /* lo minimo que se toca */
  --hm-barra-alto: 56px;
  display: none;
  font-family: var(--hm-lectura);
  font-size: var(--hm-cuerpo);
  line-height: 1.5;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}
/* reglas de base con :where() = peso cero: no pisan lo que traen la caja de gasolina u otras piezas metidas aqui */
:where(.hm-barra, .hm-chips, .hm-cuerpo, .hm-pie) * { box-sizing: border-box; }
:where(.hm-barra, .hm-chips, .hm-cuerpo) ul { list-style: none; margin: 0; padding: 0; }
:where(.hm-barra, .hm-chips, .hm-cuerpo, .hm-pie) a { color: inherit; text-decoration: none; }
:where(.hm-cuerpo) img { display: block; max-width: 100%; }

/* ---------- donde se usa: menos de 1100 px ---------- */
@media (max-width: 1099px) {
  .hm-chips, .hm-cuerpo, .hm-pie { display: block; }
  .hm-barra { display: flex; }
  .hm-viejo-enc, .hm-viejo-pie, .w3-sidenav { display: none !important; }
  html { scroll-padding-top: 60px; }   /* que la barra fija no tape lo que se busca con una liga a #algo */
  html.hm-on .hm-viejo { display: none !important; }
  html.hm-on .hoytira { margin-left: 16px; margin-right: 16px; }
}
@media (min-width: 600px) and (max-width: 1099px) {
  html.hm-on .hoytira { margin-left: 24px; margin-right: 24px; }
}

/* ---------- barra del logo: fija arriba, delgada ---------- */
.hm-barra {
  position: sticky; top: 0; z-index: 50;
  height: var(--hm-barra-alto);
  align-items: center; gap: 12px;
  padding: 0 var(--hm-orilla) 0 4px;
  background: var(--papel);
  border-bottom: 3px solid var(--hoy-azul);
}
.hm-logo img { display: block; height: 30px; width: auto; }
.hm-menu summary {
  list-style: none; cursor: pointer;
  width: var(--hm-dedo); height: var(--hm-dedo);
  display: grid; place-items: center;
  border-radius: var(--hm-radio);
}
.hm-menu summary::-webkit-details-marker { display: none; }
.hm-menu summary:focus-visible { outline: 3px solid var(--hoy-rojo-vivo); outline-offset: 2px; }
.hm-hamb, .hm-hamb::before, .hm-hamb::after {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--hoy-azul); position: relative;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 120ms;
}
.hm-hamb::before, .hm-hamb::after { content: ""; position: absolute; left: 0; }
.hm-hamb::before { top: -7px; }
.hm-hamb::after { top: 7px; }
.hm-menu[open] .hm-hamb { background: transparent; }
.hm-menu[open] .hm-hamb::before { transform: translateY(7px) rotate(45deg); }
.hm-menu[open] .hm-hamb::after { transform: translateY(-7px) rotate(-45deg); }
.hm-menu nav {
  position: absolute; left: 0; right: 0; top: var(--hm-barra-alto);
  max-height: calc(100vh - var(--hm-barra-alto)); max-height: calc(100dvh - var(--hm-barra-alto)); overflow-y: auto;
  background: var(--hoy-azul);
  padding: 8px 0 24px;
  box-shadow: 0 12px 24px rgba(8, 0, 120, 0.25);
}
.hm-menu nav a {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 var(--hm-orilla);
  color: #fff; font: 700 18px/1.2 var(--hm-voz); letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hm-menu nav a:active { background: var(--hoy-rojo-vivo); }

/* ---------- carril de secciones ---------- */
.hm-chips ul {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px var(--hm-orilla);
}
.hm-chips ul::-webkit-scrollbar { display: none; }
.hm-chips a {
  display: inline-flex; align-items: center; min-height: 36px; white-space: nowrap;
  padding: 0 14px; border-radius: 18px;
  background: var(--papel-2); color: var(--hoy-azul);
  font-size: 14px; font-weight: 600;
}
.hm-chips a:active { background: var(--hoy-azul); color: #fff; }

/* ---------- la nota grande ---------- */
.hm-grande { padding: 0 var(--hm-orilla); margin-top: 20px; }
.hm-foto { display: block; }
.hm-ancha {
  width: calc(100% + 2 * var(--hm-orilla)); max-width: none !important;
  margin-left: calc(-1 * var(--hm-orilla));
  height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--papel-2);
}
.hm-grande h2 {
  margin: 12px 0 0;
  font: 700 var(--hm-portada)/1.08 var(--hm-voz);
  color: var(--tinta); letter-spacing: -0.005em;
  text-wrap: balance;
}
.hm-grande h2 a:active { color: var(--hoy-azul); }
.hm-sinopsis { margin: 8px 0 0; color: var(--texto); text-wrap: pretty; }
p.hm-meta { margin: 8px 0 0; }
.hm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--hm-dato); line-height: 1.35; color: var(--texto-2); }
.hm-meta time { color: var(--hoy-rojo-vivo); font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-etq { color: var(--hoy-rojo); font-weight: 700; }

/* ---------- lista: titulo a la izquierda, foto chica a la derecha ---------- */
.hm-lista { margin: 16px var(--hm-orilla) 0 !important; border-top: 1px solid var(--filete); }
.hm-lista li { border-bottom: 1px solid var(--filete); }
.hm-fila {
  display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 12px;
  align-items: start; padding: 16px 0; min-height: var(--hm-dedo);
}
.hm-tit {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  font: 700 var(--hm-fila)/1.2 var(--hm-voz); color: var(--tinta); text-wrap: pretty;
}
.hm-fila .hm-meta { margin-top: 6px; }
.hm-fila:active .hm-tit { color: var(--hoy-azul); }
.hm-mini, .hm-sinfoto {
  display: block; width: 112px; height: 84px; object-fit: cover; border-radius: var(--hm-radio);
  background: var(--papel-2);
}

/* ---------- gasolina (la de siempre) ---------- */
.hm-gas { margin-top: var(--hm-entre); }
.hm-gas .hoygas { margin-left: var(--hm-orilla) !important; margin-right: var(--hm-orilla) !important; }

/* ---------- bloques de abajo: un solo encabezado de seccion ---------- */
.hm-bloque { margin-top: calc(var(--hm-entre) + 8px); }
.hm-cab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 var(--hm-orilla); padding-left: 12px;
  border-left: 4px solid var(--hoy-rojo-vivo);
}
.hm-cab h2 { margin: 0; font: 700 var(--hm-seccion)/1.1 var(--hm-voz); color: var(--hoy-azul); }
.hm-ver {
  display: inline-flex; align-items: center; min-height: var(--hm-dedo); gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--hoy-azul) !important; white-space: nowrap;
}
.hm-bloque .hm-grande { margin-top: 12px; }
.hm-bloque .hm-grande h2 { font-size: var(--hm-seccion); line-height: 1.12; }

/* carril horizontal (editorialistas, reels): se desliza con el dedo */
.hm-carril {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px var(--hm-orilla) 4px !important; scroll-padding-inline: var(--hm-orilla); scrollbar-width: none;
}
.hm-carril::-webkit-scrollbar { display: none; }
.hm-carril > li { flex: 0 0 auto; scroll-snap-align: start; }
.hm-columnas > li { width: 248px; }
.hm-col {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 14px; border-radius: var(--hm-radio); background: var(--papel-2);
}
.hm-quien { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--texto-2); }
.hm-quien img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; }
.hm-col .hm-tit { font-size: 17px; }
.hm-reel { width: 200px; }
.hm-reel iframe { display: block; width: 200px; height: 356px; border: 0; border-radius: var(--hm-radio); background: var(--papel-2); }

/* ---------- pie ---------- */
.hm-pie {
  margin-top: 48px; padding: 32px var(--hm-orilla) calc(32px + env(safe-area-inset-bottom));
  background: var(--hoy-azul); color: #fff; font-size: 14px; line-height: 1.5;
  border-top: 4px solid var(--hoy-rojo-vivo);
}
.hm-pie img { display: block; height: 28px; width: auto; margin-bottom: 16px; border-radius: 2px; }
.hm-pie p { margin: 0 0 8px; }
.hm-pie a { text-decoration: underline; text-underline-offset: 3px; }
.hm-der { margin-top: 16px !important; color: #c9cbec; }

/* ---------- tableta y celular acostado (600 a 1099 px) ---------- */
@media (min-width: 600px) {
  .hm-barra, .hm-chips, .hm-cuerpo, .hm-pie { --hm-orilla: 24px; --hm-portada: 34px; --hm-seccion: 24px; --hm-entre: 40px; }
  .hm-grande { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 24px; }
  .hm-ancha { width: 100%; margin-left: 0; border-radius: var(--hm-radio); }
  .hm-grande h2 { margin-top: 0; }
  .hm-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
  .hm-lista li { border-top: 1px solid var(--filete); border-bottom: 0; }
  .hm-lista li:nth-last-child(-n+2) { border-bottom: 1px solid var(--filete); }
  .hm-lista li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .hm-barra, .hm-chips, .hm-cuerpo, .hm-pie { --hm-portada: 40px; --hm-seccion: 26px; }
}
/* celular acostado (poca altura): la barra no se queda pegada */
@media (max-height: 480px) and (orientation: landscape) {
  .hm-barra { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-hamb, .hm-hamb::before, .hm-hamb::after { transition: none; }
}
@media print {
  .hm-barra, .hm-chips, .hm-pie { display: none !important; }
}
