/* Tablets y pantallas medianas (hasta 1024px) */
@media screen and (max-width: 1024px) {
  .bio-content {
    padding: 0 1rem;
  }

  .contributions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dojo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dispositivos móviles (hasta 768px) */
@media screen and (max-width: 768px) {
  /* Header y navegación */
  header {
    padding: 0.8rem 1rem;
  }

  .logo span {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 100;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 80px 1rem 2rem;
    transition: 0.3s ease-in-out;
    z-index: 90;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 1rem 0;
  }

  /* Hero section */
  .hero {
    height: 60vh;
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Bio section */
  .bio {
    padding: 2rem 1rem;
  }

  .bio-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .bio-header img {
    width: 200px;
    height: 200px;
  }

  .bio-title h2 {
    font-size: 1.8rem;
  }

  .bio-badges {
    justify-content: center;
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.8rem;
  }

  /* Grids y cards */
  .contributions-grid,
  .dojo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contribution-item,
  .dojo-card {
    padding: 1.5rem;
  }

  /* Timeline */
  .timeline {
    padding: 2rem 1rem;
  }

  .timeline h2 {
    font-size: 1.8rem;
  }

  .timeline-item {
    margin-left: 0;
    padding: 1rem;
  }

  /* Testimonials */
  .testimonials {
    padding: 2rem 1rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  /* Gallery */
  .gallery {
    padding: 2rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* CTA Section */
  .cta {
    padding: 2rem 1rem;
  }

  .dojo-info {
    margin: 1rem 0;
    padding: 1rem;
  }

  /* Language selector */
  .language-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 95;
  }
}

/* Dispositivos muy pequeños (hasta 480px) */
@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .bio-title h2 {
    font-size: 1.5rem;
  }

  .contribution-item .icon {
    font-size: 2rem;
  }

  .dojo-info {
    font-size: 0.9rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* Ajustes para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-size: cover;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }
}

/* Ajustes para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  .dojo-card,
  .contribution-item,
  .testimonial-card {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* Ajustes para preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
} 