/* =======================
   VARIABLES GENERALES
======================= */
:root {
  --primary-gold: #c9a24d;
  --dark-bg: #0f0f0f;
  --light-bg: #faf9f6;
  --dark-text: #1a1a1a;
  --border-gray: #ddd;
}

/* =======================
   RESET Y BASE
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--light-bg);
  color: var(--dark-text);
  overflow-x: hidden;
}

/* =======================
   HEADER Y NAVEGACIÓN
======================= */
header {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.title-font {
  font-family: "Poppins", sans-serif;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--dark-bg);
  display: none;
  z-index: 40;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: #eaeaea;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.05);
}

/* =======================
   HERO SECTION
======================= */
.hero-section {
  height: 100vh;
  background: url("img/logo.png") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.hero-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: #fff;
}

.hero-title .marcial {
  color: var(--primary-gold);
}

.hero-subtitle {
  color: #ddd;
  margin-top: 0.5rem;
}

.hero-button {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  border-radius: 999px;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background: var(--primary-gold);
  color: #000;
}

/* =======================
   CARDS Y DISCIPLINAS
======================= */
.card {
  background: var(--light-bg);
  border-radius: 14px;
  border: 1px solid var(--border-gray);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.discipline-icon {
  font-size: 2rem;
  color: var(--primary-gold);
}

.discipline-title {
  font-family: "Poppins", sans-serif;
}

/* =======================
   INSTRUCTOR
======================= */
.instructor-img-container {
  border: 3px solid var(--primary-gold);
}

.instructor-img {
  object-fit: cover;
}

/* =======================
   BOTONES
======================= */
.btn-primary {
  background: var(--dark-bg);
  color: #fff;
  border-radius: 999px;
}

.btn-primary:hover {
  background: var(--primary-gold);
  color: #000;
}

/* =======================
   FOOTER
======================= */
footer {
  background-color: var(--dark-bg);
}

footer a:hover {
  color: var(--primary-gold) !important;
}

footer .fa-whatsapp:hover,
footer .fa-instagram:hover,
footer .fa-facebook-f:hover {
  transform: scale(1.1);
}

/* =======================
   CINTURONES
======================= */
.belt {
  position: relative;
  background: linear-gradient(to right, #f8f8f8, #e0e0e0, #f8f8f8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#belt-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  opacity: 0.7;
}

#belt-degree {
  z-index: 10;
  color: var(--dark-text);
  font-weight: bold;
}

.belt.white { background: linear-gradient(to right, #f8f8f8, #e0e0e0, #f8f8f8); }
.belt.blue { background: linear-gradient(to right, #2e5bff, #003399, #2e5bff); }
.belt.purple { background: linear-gradient(to right, #8a2be2, #4b0082, #8a2be2); }
.belt.brown { background: linear-gradient(to right, #8b4513, #5d2906, #8b4513); }
.belt.black { background: linear-gradient(to right, #000000, #333333, #000000); }

/* =======================
   MAPA
======================= */
#map-container {
  transition: height 0.5s ease;
}

/* =======================
   RESPONSIVE PARA MÓVILES
======================= */
@media (max-width: 768px) {
  /* Espaciado general */
  body {
    padding-top: 60px;
  }

  /* Secciones */
  section {
    padding: 2rem 0 !important;
  }

  /* Contenedores */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Hero Section */
  .hero-section {
    height: 85svh;
    background-position: center 45%;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.35);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  /* Menú móvil */
  .mobile-menu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background-color: #0f0f0f !important;
  }

  .mobile-menu a {
    color: #f2f2f2 !important;
    font-size: 1.05rem;
  }

  .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-gold) !important;
  }

  /* Párrafos */
  p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Tarjetas */
  .card {
    margin-bottom: 1.5rem !important;
    padding: 1.5rem !important;
  }

  /* Cinturones */
  #belt {
    width: 200px !important;
    height: 50px !important;
    margin-bottom: 2rem !important;
  }

  #belt-info {
    max-width: 90% !important;
    margin-bottom: 2rem !important;
  }

  #belt-title {
    font-size: 1.75rem !important;
    margin-bottom: 1rem !important;
  }

  #belt-description {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }

  #belt-quote {
    font-size: 0.9rem !important;
  }

  /* Botones */
  .btn-primary {
    width: 100% !important;
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
  }

  /* Indicadores de cinturones */
  .flex.space-x-3 {
    justify-content: center;
    margin-top: 2rem !important;
  }

  .belt-indicator {
    width: 24px !important;
    height: 24px !important;
    margin: 0 6px !important;
  }

  /* Footer */
  footer {
    padding: 2rem 0 !important;
  }

  footer .mb-10 {
    margin-bottom: 2rem !important;
  }

  /* Botón de mapa */
  #toggle-map {
    margin: 1rem auto !important;
    padding: 0.75rem 1.5rem !important;
    width: 80% !important;
    display: block !important;
  }

  /* Contenedor del mapa */
  #map-container.h-64 {
    height: 200px !important;
  }

  /* Sección de contacto */
  #contacto .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* =======================
   ESTILOS PARA ESCRITORIO
======================= */
@media (min-width: 769px) {
  body {
    background:
      radial-gradient(circle at top, rgba(201, 162, 77, 0.08), transparent 60%),
      var(--light-bg);
  }

  section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
  }

  section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(45deg, transparent 48%, rgba(201, 162, 77, 0.08) 50%, transparent 52%),
      linear-gradient(-45deg, transparent 48%, rgba(201, 162, 77, 0.06) 50%, transparent 52%),
      linear-gradient(90deg, transparent 49%, rgba(201, 162, 77, 0.05) 50%, transparent 51%);
    background-size: 160% 1px, 140% 1px, 120% 1px;
    background-position: 20% 30%, 70% 60%, 50% 80%;
    pointer-events: none;
  }

  h1, h2, h3 {
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.25em;
    text-transform: uppercase;
  }

  h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    margin: 18px auto 0;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
  }

  .card {
    background:
      linear-gradient(180deg, rgba(201, 162, 77, 0.08), transparent 35%),
      var(--light-bg);
    border: 1px solid rgba(201, 162, 77, 0.4);
    box-shadow:
      inset 0 0 0 1px rgba(201, 162, 77, 0.12),
      0 10px 30px rgba(0, 0, 0, 0.06);
  }

  .hero-section {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)),
      url("img/logo.png") center/cover no-repeat;
  }

  .hero-overlay {
    background:
      radial-gradient(ellipse at top, rgba(201, 162, 77, 0.22), rgba(0, 0, 0, 0.9));
  }

  .hero-button,
  .btn-primary {
    letter-spacing: 0.25em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
  }

  .hero-button::before,
  .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(201, 162, 77, 0.4), transparent);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
  }

  .hero-button:hover::before,
  .btn-primary:hover::before {
    transform: translateX(120%);
  }

  footer {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(201, 195, 195, 0.75));
    color: #000000;
  }
}

/* =====================================================
   OPTIMIZACIÓN MÓVIL SUAVE (NO AFECTA ESCRITORIO)
===================================================== */
@media (max-width: 768px) {

  /* --- Lectura más cómoda --- */
  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  p, li {
    line-height: 1.75 !important;
    letter-spacing: 0.01em;
  }

  /* --- Títulos más amigables en móvil --- */
  h1 {
    font-size: 2.2rem !important;
  }

  h2 {
    font-size: 1.8rem !important;
    letter-spacing: 0.15em !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  /* --- Más aire entre secciones --- */
  section + section {
    margin-top: 1rem;
  }

  /* --- Cards más cómodas al scroll --- */
  .card {
    padding: 1.75rem !important;
    border-radius: 1.1rem;
  }

  .card:hover {
    transform: none; /* evita saltos raros en móvil */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }

  /* --- Botones pensados para el dedo --- */
  a,
  button {
    -webkit-tap-highlight-color: transparent;
  }

  .hero-button,
  .btn-primary {
    min-height: 52px;
    font-size: 1rem;
    padding: 0.85rem 1.25rem !important;
  }

  /* --- Hero más limpio en móvil --- */
  .hero-title {
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-top: 0.75rem;
  }

  /* --- Menú móvil más cómodo --- */
  .mobile-menu a {
    padding: 16px 0;
    font-size: 1.1rem;
  }

  /* --- Footer más legible --- */
  footer p,
  footer a {
    font-size: 0.95rem;
  }

}
