:root {
  --primary: #c8960a;
  --primary-light: #f5d742;
  --primary-dark: #9e7708;
  --dark: #0a0a0f;
  --darker: #050508;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  padding-top: 70px;
}

/* Bootstrap overrides */
.btn-danger {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

.btn-outline-danger {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

.text-danger {
  --bs-text-opacity: 1;
  color: var(--primary) !important;
}

.bg-danger {
  --bs-bg-opacity: 1;
  background-color: var(--primary) !important;
}

.badge.bg-danger {
  background-color: var(--primary) !important;
}

/* Navbar */
#mainNavbar {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

#mainNavbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.brand-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  color: var(--primary);
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Navbar social icons */
.nav-social {
  display: none;
}

.nav-social-link {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.nav-social-link:hover {
  color: var(--primary) !important;
}

@media (min-width: 992px) {
  .nav-social {
    display: flex;
  }
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,15,0.55) 0%, rgba(10,10,15,0.3) 50%, rgba(10,10,15,0.55) 100%);
  z-index: 1;
}

.hero-side {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-side-left {
  left: 0;
  width: clamp(80px, 10vw, 140px);
  background: linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.88) 75%, transparent 100%);
}

.hero-side-right {
  right: 0;
  width: clamp(100px, 12vw, 170px);
  background: linear-gradient(to left, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.88) 75%, transparent 100%);
}

.kanji-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 70vh;
}

.kanji-char {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}

.meaning-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 75vh;
}

.meaning-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.syllable {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.meaning {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.55rem, 0.8vw, 0.8rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  text-align: center;
  margin-top: 0.25rem;
}

.meaning-divider {
  width: clamp(20px, 3vw, 40px);
  height: 1px;
  background: var(--primary);
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Sections */
.section-padding {
  padding: 90px 0;
}

/* About cards */
.about-card {
  background: white;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* Dojo cards */
.dojo-card {
  transition: all 0.3s ease;
}

.dojo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* Sensei */
.sensei-card {
  border: 1px solid rgba(0,0,0,0.03);
}

.sensei-avatar {
  width: 100px;
  height: 100px;
  background: rgba(200, 150, 10, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Schedule */
.schedule-card {
  transition: all 0.3s ease;
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.schedule-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.weapons-row {
  background: rgba(200, 150, 10, 0.06);
  border-radius: 8px;
}

.kids-row {
  background: rgba(200, 150, 10, 0.03);
  border-radius: 8px;
}

/* Gallery */
.gallery-item {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img,
.gallery-item video {
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Video play overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .video-play-overlay {
  opacity: 1;
}

.gallery-item[data-type="video"]:hover .video-play-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Dojo section */
.dojo-section {
  position: relative;
  overflow: hidden;
}

.dojo-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 0;
}

.dojo-bg-img {
  flex: 1;
  width: 33.333%;
  object-fit: cover;
}

.dojo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,10,15,0.25) 0%, rgba(10,10,15,0.25) 50%, rgba(10,10,15,0.25) 100%);
  z-index: 1;
}

/* Sensei card with background */
.sensei-bg-card {
  position: relative;
  background: url('../img/marcelo-merediz-sensei-aikido.png') top center/cover no-repeat;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;

  display: flex;
  align-items: flex-end;   /* contenido abajo */
  justify-content: center;
  min-height: 460px;       /* ajustar a gusto */
}

.sensei-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,15,0.25);
  z-index: 1;
}

.sensei-card-content {
  position: relative;
  z-index: 2;
}

/* Shidoin Omar Parma */
.shidoin-section {
  background: linear-gradient(180deg, #fafaf8 0%, #e9e8e3 100%);
}

.shidoin-text {
  color: #3a3a3a;
  line-height: 1.75;
}

.shidoin-figure {
  margin: 0;
}

.shidoin-img {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at center, #000 60%, transparent 82%);
  mask-image: radial-gradient(circle at center, #000 60%, transparent 82%);
}

/* CDA section with slideshow */
.cda-section {
  position: relative;
  overflow: hidden;
}

.cda-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cda-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.cda-slide.active {
  opacity: 1;
}

.cda-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,15,0.25);
  z-index: 1;
}

.cda-info-card {
  background: rgba(255,255,255,0.60);
}

/* Footer logo */
.footer-logo {
  height: 40px;
  width: auto;
}

/* Footer */
.footer-section {
  background: var(--darker);
  color: white;
}

.footer-section a {
  color: white;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary) !important;
}

/* Contact form */
#contactForm .form-control {
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
  transition: all 0.3s;
}

#contactForm .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 150, 10, 0.15);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Toast notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .section-padding {
    padding: 60px 0;
  }
  .gallery-item img {
    height: 180px;
  }
  .shidoin-img {
    max-width: 280px;
  }
}
