/* Ajustes específicos para pantallas táctiles y teléfonos */
@media (min-width: 801px) {
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .nav-links {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 28px, 620px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      'brand language theme'
      'nav nav nav';
    min-height: 70px;
    padding: 14px 0;
    gap: 14px;
  }

  .brand {
    grid-area: brand;
    font-size: 18px;
  }

  .nav-links {
    grid-area: nav;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    gap: 22px;
    padding-top: 4px;
    overflow-x: auto;
    font-size: 10px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .language-switcher {
    grid-area: language;
    margin-left: auto;
  }

  .theme-toggle {
    grid-area: theme;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 48px;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button,
  .invite-banner .button {
    width: 100%;
  }

  .hero-art {
    min-height: 350px;
  }

  .features {
    padding: 68px 0;
  }

  .feature-card {
    min-height: 138px;
    padding: 22px;
  }

  .feature-card p {
    max-width: calc(100% - 28px);
  }

  .invite-banner {
    margin-bottom: 48px;
    padding: 42px 20px;
  }

  .footer {
    padding-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .topbar { align-items: center; }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .language-switcher {
    position: static;
    font-size: 10px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .hero-art {
    min-height: 300px;
  }

  .pixel-cat {
    transform: translateX(-50%) scale(.62);
  }

  .sun {
    top: 32px;
    right: 22px;
    transform: scale(.68);
    transform-origin: top right;
  }

  .cloud-one {
    top: 64px;
    left: 20px;
    transform: scale(.75);
    transform-origin: left top;
  }

  .counter {
    right: 14px;
    bottom: 27px;
    transform: scale(.78);
    transform-origin: right bottom;
  }

  .invite-banner h2 {
    font-size: 22px;
  }
}

@media (max-width: 350px) {
  .hero-art {
    min-height: 270px;
  }

  .hero-text {
    font-size: 14px;
  }
}
