/*
 * Estilos Móviles - Isshinryu Legacy
 * Autor: Pablo Molina (PuntaCode)
 * Rol: Sensei y Desarrollador Full Stack
 * 
 * Optimizaciones responsivas para dispositivos móviles
 * Asegura una experiencia fluida en todas las pantallas
 */

/* Ajustes generales para móviles */
@media (max-width: 768px) {
  body {
    overflow-x: hidden; /* Prevenir scroll horizontal */
    width: 100%;
  }

  /* Header ajustes */
  header {
    padding: 0.8rem;
    width: 100%;
  }

  .logo span {
    font-size: 1rem;
  }

  /* Ajustes de secciones */
  section {
    padding: 2rem 1rem;
    width: 100%;
    overflow: hidden;
  }

  /* Bio section */
  .bio-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .bio-header img {
    width: 180px;
    height: 180px;
  }

  .bio-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .bio-title .subtitle {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  /* Grids responsivos */
  .contributions-grid,
  .dojo-grid,
  .gallery-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin: 1rem 0;
  }

  /* Cards y elementos */
  .contribution-item,
  .dojo-card,
  .testimonial-card {
    width: 100%;
    margin: 0;
    padding: 1rem;
  }

  /* Timeline */
  .timeline-item {
    margin: 1rem 0;
    width: 100%;
  }

  /* Hero section */
  .hero {
    height: 60vh;
    padding: 1rem;
  }

  .hero-content {
    width: 100%;
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  /* CTA section */
  .cta {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #c62828);
  }

  .cta h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    color: #fff;
  }

  .cta p {
    text-align: center;
    padding: 0 1rem;
    color: #fff;
  }

  .dojo-info {
    background: #fff !important;
    color: #222 !important;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
    padding: 1.7rem 1.2rem;
    margin: 0 auto 1.5rem auto;
    max-width: 400px;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1.5px solid #eee;
  }

  .dojo-info:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  }

  .dojo-info h3 {
    color: var(--primary-color, #e53935) !important;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.5px;
  }

  .dojo-details {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .dojo-address, .dojo-schedule {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.08rem;
    color: #222 !important;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dojo-info .icon {
    color: var(--primary-color, #e53935) !important;
    font-size: 1.2rem;
    min-width: 22px;
    text-align: center;
  }

  .dojo-info p, .dojo-info span {
    margin: 0;
    line-height: 1.5;
    color: #222 !important;
    font-size: 1.08rem;
    text-align: left;
    font-weight: 500;
  }

  .btn-primary {
    margin-top: 1.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  /* Navegación móvil */
  nav.active {
    width: 100vw;
    height: 100vh;
    padding: 4rem 1rem;
  }

  nav ul {
    width: 100%;
    padding: 0;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  /* Selector de idiomas */
  .language-selector {
    position: fixed;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .bio-title h2 {
    font-size: 1.3rem;
  }

  .bio-title .subtitle {
    font-size: 0.9rem;
  }

  .language-selector {
    right: 3rem;
  }

  .menu-toggle {
    right: 0.5rem;
  }

  .dojo-info {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
    padding: 1rem;
  }

  .cta {
    padding: 1.5rem 0.5rem;
  }
}

@media (max-width: 600px) {
  .dojo-info {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  .dojo-info h3 {
    font-size: 1.05rem;
  }
  .dojo-details {
    padding-top: 0.7rem;
    margin-top: 0.7rem;
    gap: 0.7rem;
  }
  .dojo-address, .dojo-schedule {
    font-size: 0.98rem;
  }
  .dojo-info .icon {
    font-size: 1.05rem;
    min-width: 18px;
  }
}

.video-title {
  font-size: 1.1rem;
  color: #e53935;
  margin: 3rem 0 1rem 0;
  text-align: center;
}
.video-title:first-of-type {
  margin-top: 0;
}

.video-section iframe {
  margin-bottom: 2.5rem;
} 