/* Homepage motion: visible defaults also override the legacy reveal rule. */
.index-hero[data-particulas] { isolation: isolate; background: var(--bg, #08090b); }
.index-hero[data-particulas]::before,
.index-hero[data-particulas]::after { display: none; animation: none; }
.index-hero .hero-focus > span { display: inline-block; }
.index-hero .hero-focus > span:not(.hero-highlight) { color: var(--text, #f4f5f7); }
body > section[data-reveal] { opacity: 1; transform: none; transition: none; }
.hero-stats strong { font-variant-numeric: tabular-nums; }
.portada-thumb { display: none; }
.inicio-ligas { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.inicio-ligas .btn-access { justify-content: center; min-height: 52px; }
.inicio-ligas .inicio-ligas-btn { background: #d4af37; border-color: #d4af37; color: #0a0a0a; }
.site-header a.logo-container { text-decoration: none; }
/* En celular arriba queda un solo botón (menú): sin "Compartir" ni enlaces que ya están abajo. */
@media (max-width: 600px) {
  .site-header .pg-compartir.visible { display: none; }
  .site-header .menu-toggle { margin-left: auto; }
  .main-nav li.nav-dup { display: none; }
}

@-webkit-keyframes portada-focus {
  from { opacity: .35; -webkit-filter: blur(10px); -webkit-transform: translateY(18px); }
  to { opacity: 1; -webkit-filter: blur(0); -webkit-transform: translateY(0); }
}
@keyframes portada-focus {
  from { opacity: .35; filter: blur(10px); transform: translateY(18px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes portada-reveal {
  from { opacity: .25; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .index-hero .hero-focus > span { -webkit-animation: portada-focus .8s cubic-bezier(.23,1,.32,1) backwards; animation: portada-focus .8s cubic-bezier(.23,1,.32,1) backwards; }
  .index-hero .hero-focus > span:nth-of-type(2) { -webkit-animation-delay: .14s; animation-delay: .14s; }
  .index-hero .hero-focus > span:nth-of-type(3) { -webkit-animation-delay: .28s; animation-delay: .28s; }
  body > section.portada-reveal { animation: portada-reveal .65s cubic-bezier(.23,1,.32,1) backwards; }
}
@media (max-width: 600px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* Barra flotante tipo cápsula; la sección actual queda rellena en el color de la marca. */
  .portada-thumb:not([hidden]) {
    position: fixed; z-index: 900; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    max-width: 440px; margin: 0 auto;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 6px;
    background: rgba(21,24,29,.84); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.1); border-radius: 24px; box-shadow: 0 12px 32px rgba(0,0,0,.5);
  }
  .portada-thumb a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; border-radius: 18px; color: #a8adb6; font-size: .72rem; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .3s cubic-bezier(.23,1,.32,1), color .3s cubic-bezier(.23,1,.32,1), transform .15s ease; }
  .portada-thumb a i { font-size: 1.1rem; transition: transform .3s cubic-bezier(.23,1,.32,1); }
  .portada-thumb a[aria-current="location"] { background: var(--primary, #b6ff00); color: var(--on-primary, #08090b) !important; }
  .portada-thumb a[aria-current="location"] > * { color: inherit !important; }
  .portada-thumb a[aria-current="location"] i { transform: translateY(-1px) scale(1.12); }
  .portada-thumb a:active { transform: scale(.94); }
  .portada-thumb a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  body #pyn-comunidad { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  #pn-cookie-banner .pn-cb-inner { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) { .portada-thumb a, .portada-thumb a i { transition: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .index-hero [class*="hero-anim-"], .index-hero .hero-focus > span,
  body > section.portada-reveal { -webkit-animation: none; animation: none; opacity: 1; transform: none; -webkit-filter: none; filter: none; }
}
