@media (max-width: 600px) {
  html, body, *, *::before, *::after {
    box-sizing: border-box;
  }
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding: 0;
    margin: 0;
  }
  body, .container, .section, .fees-info, .video-gallery, .video-section, .relevant-links, footer {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .section, .fees-info, .video-section, .relevant-links {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }
  .section h2, .section p, .fees-info p, .fees-info small, .relevant-links a, .relevant-links h3 {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .video-gallery, .video-section {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .dojo-video {
    width: 96vw !important;
    max-width: 420px;
    min-width: 0;
    aspect-ratio: 16/9;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    background: #000;
    display: block;
  }
  .relevant-links ul {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
  }
  .relevant-links a {
    display: inline-block;
    max-width: 90vw;
    font-size: 1.05rem;
    padding: 7px 0;
    border-radius: 8px;
    background: #f4f7fb;
    color: #0077cc;
    border-bottom: 2px solid #0077cc;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    word-break: break-all;
    text-decoration: none; /* ← Esto elimina el subrayado */
  }
  .relevant-links a:hover {
    background: #e6f0fa;
    color: #005fa3;
  }
  footer {
    font-size: 0.91rem;
    padding: 7px 2vw;
    border-radius: 0 0 10px 10px;
    max-width: 100vw;
    overflow-x: hidden;
    background: #001f3f;
    color: #fff;
    text-align: center;
  }
  ::-webkit-scrollbar {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 180px;
    padding: 12px 0 6px 0;
    background-size: 120vw auto;
    background-position: center 0px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .hero .overlay {
    background: rgba(0, 40, 80, 0.92);
  }
  .hero-content {
    padding: 6px 2vw 0 2vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .hero h1 {
    font-size: 1.05rem;
    margin-bottom: 3px;
    letter-spacing: 0.01em;
    word-break: break-word;
  }
  .hero p {
    font-size: 0.89rem;
    margin: 2px 0;
    font-weight: 400;
    word-break: break-word;
  }
  .btn {
    width: 100%;
    font-size: 0.91rem;
    padding: 8px 0;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #0077cc;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: none;
    scroll-behavior: smooth;
    max-width: 100vw;
    display: block;
  }
  .section h2 {
    font-size: 1rem;
    margin-bottom: 7px;
    font-weight: 600;
    letter-spacing: 0.01em;
    word-break: break-word;
  }
  .section p {
    font-size: 0.93rem;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 400;
    padding-left: 2px;
    padding-right: 2px;
    word-break: break-word;
  }
  .section p strong {
    font-size: 1em;
    font-weight: 600;
  }
  .fees-info {
    padding: 6px 2vw;
    font-size: 0.91rem;
    max-width: 100vw;
    margin-top: 10px;
    border-radius: 9px;
    overflow-x: hidden;
  }
  .fees-info p {
    margin-bottom: 5px;
  }
  .fees-info small {
    font-size: 0.82em;
  }
  .whatsapp-badge {
    position: fixed;
    right: 2vw;
    left: auto;
    bottom: 2vw;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .whatsapp-badge img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
  }

  /* NUEVO: Estilos para el modal de video */
  .video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4vw;
    box-sizing: border-box;
  }

  .video-modal-content {
    width: 100%;
    max-width: 96vw;
    max-height: 80vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
  }

  .video-modal-content video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
  }
}

/* Estilos generales fuera de media query */
.video-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto 10px auto;
}
.dojo-video {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0;
  aspect-ratio: 16/9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #000;
  display: block;
}
.relevant-links {
  margin: 18px auto 14px auto;
  padding: 14px 0 10px 0;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  max-width: 96vw;
}
.relevant-links h3 {
  font-size: 1.13rem;
  margin-bottom: 13px;
  color: #003366;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.relevant-links ul {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
}
.relevant-links li {
  width: 98vw;
  max-width: 420px;
  list-style: none;
}
.relevant-links a {
  font-size: 0.97rem;
  padding: 8px 10px;
  min-height: 36px;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.relevant-links .icon {
  width: 18px;
  height: 18px;
}
