/* =========================================================
   RESPONSIVE — mobile-first overrides
   Breakpoints: 480 / 768 / 1024 / 1280
   ========================================================= */

/* Mobile nav (default: hidden links, visible toggle) */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    gap: 0;
    padding: var(--space-3) 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-med) var(--ease-standard);
  }
  .nav-links.is-open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: var(--space-3) var(--container-padding);
  }
  .nav-links a.is-active::after { display: none; }
  .nav-links a.is-active { background: var(--bg-elevated); }

  .nav-social { display: none; }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 4/5; max-width: 420px; margin: 0 auto var(--space-5); }
  .hero-actions { justify-content: center; text-align: center; }
  .hero-title, .hero-subtitle, .hero-copy, .hero-eyebrow { text-align: center; }
  .hero-copy { margin-left: auto; margin-right: auto; }

  .tme-grid { grid-template-columns: 1fr; }
  .tme-cover { max-width: 320px; margin: 0 auto; }
  #libro .tme-cover { height: 300px; max-width: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 360px; margin: 0 auto; }

  .truth-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-box { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
  .truth-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-7) 0; }
  .hero { padding-top: var(--space-6); padding-bottom: var(--space-7); }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: 0; width: 100%; }

  #libro .tme-cover { height: auto; aspect-ratio: 3/4; }
}

@media (min-width: 1024px) {
  .hero-concepts { display: block; }
}

/* Selector de idioma visible en móvil, junto al botón de menú */
@media (max-width: 1023px) {
  .lang-switch { order: 2; margin-left: auto; margin-right: var(--space-3); }
  .nav-toggle { order: 3; }
}
