:root {
  --dojo-black: #0A0A0A;
  --dojo-danger: #DC2626;
  --dojo-bright-red: #EF4444;
  --dojo-light: #F8FAFC;
  --dojo-muted: #F1F5F9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--dojo-black);
  background: var(--dojo-light);
  overflow-x: hidden;
}

.text-gold { color: var(--dojo-bright-red); }
.btn-danger { background-color: var(--dojo-danger); border-color: var(--dojo-danger); }
.btn-danger:hover { background-color: var(--dojo-bright-red); border-color: var(--dojo-bright-red); }
.btn-outline-danger { color: var(--dojo-danger); border-color: var(--dojo-danger); }
.btn-outline-danger:hover { background-color: var(--dojo-danger); border-color: var(--dojo-danger); color: #fff; }
.btn { transition: transform 200ms ease, box-shadow 200ms ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.btn:focus-visible { outline: 3px solid var(--dojo-danger); outline-offset: 2px; }

.btn-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap, 1rem);
}
@media (max-width: 991px) {
  .btn-actions .btn { width: 100%; }
}

.navbar { background-color: var(--dojo-black); }
.navbar-brand { font-weight: 800; letter-spacing: -0.02em; }
.navbar .nav-link { color: rgba(255,255,255,0.85); }
.navbar .nav-link:hover { color: #fff; }
.navbar .nav-link:focus-visible { outline: 2px solid var(--dojo-danger); outline-offset: 2px; border-radius: 4px; }

.hero {
  background-image: url('../fondoindex.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.85) 100%);
}
.hero h1 { font-weight: 800; letter-spacing: -0.02em; }
.hero .lead { font-weight: 400; opacity: 0.92; }

.pillar-icon { font-size: 2.25rem; color: var(--dojo-danger); }

.icon-badge {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dojo-danger); color: #fff; border-radius: 50%;
}

.nav-icon {
  color: var(--dojo-danger);
  font-size: 1.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  transition: color 200ms ease, background 200ms ease;
}
.nav-icon:hover { color: #fff; background: var(--dojo-danger); }
.nav-icon:focus-visible { outline: 2px solid var(--dojo-danger); outline-offset: 2px; border-radius: 50%; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.lang-switch a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 200ms ease, background 200ms ease;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active {
  color: #fff;
  background: var(--dojo-danger);
}
.lang-switch a:focus-visible { outline: 2px solid var(--dojo-danger); outline-offset: 2px; }
.lang-sep { color: rgba(255, 255, 255, 0.35); }

.btn-social {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dojo-danger); color: #fff; border: none; border-radius: 50%;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease;
}
.btn-social:hover { background: var(--dojo-bright-red); color: #fff; transform: translateY(-2px); }
.btn-social:focus-visible { outline: 2px solid var(--dojo-danger); outline-offset: 2px; }

.step-number {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dojo-danger); color: #fff; font-weight: 800; font-size: 1.5rem;
  border-radius: 50%;
}

.section-title { font-weight: 800; letter-spacing: -0.02em; color: var(--dojo-black); }
.guarantee { background: #FEE2E2; border: 1px solid #FCA5A5; }

.card, .border-0 { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.footer { background-color: var(--dojo-black); }

.scroll-top {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 1040;
  background: var(--dojo-black); color: #fff; border: none; width: 44px; height: 44px;
  border-radius: 50%; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.scroll-top.show { display: inline-flex; }

.whatsapp-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1050;
  width: 60px;
  height: 60px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.whatsapp-float.show { display: inline-flex; }
.whatsapp-float:hover {
  background: #1EBE5D;
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}
.whatsapp-float:focus-visible {
  outline: 3px solid var(--dojo-danger);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}

.parallax {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  background-image: url('../instructores-mitsukidojo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}
.parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.parallax .container,
.parallax .py-md-4 {
  position: relative;
  z-index: 1;
  width: 100%;
}

.parallax-sport {
  position: relative;
  overflow: hidden;
  background-image: url('../fondo-sport.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.parallax-sport::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.parallax-sport .container,
.parallax-sport .py-md-4,
.parallax-sport .row {
  position: relative;
  z-index: 1;
}
.parallax-sport .card {
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.parallax-sport .card h3 { color: #fff; }
.parallax-sport .card p { color: rgba(255, 255, 255, 0.85); }

.galeria-slide {
  height: 480px;
  object-fit: cover;
  cursor: zoom-in;
}
.galeria-item {
  padding: 0 0.25rem;
}
.galeria-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 0.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.galeria-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.galeria-thumb:focus-visible {
  outline: 3px solid var(--dojo-danger);
  outline-offset: 2px;
}
.modal-img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

@media (max-width: 768px) {
  .parallax,
  .parallax-sport {
    background-attachment: scroll;
  }
  .galeria-slide {
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; box-shadow: none; }
  .galeria-thumb:hover { transform: none; }
}
