/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #f8f6f3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
site-navbar {
  display: contents;
}

.navbar {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: #f8f6f3;
  font-size: 1.8rem;
  font-weight: 300;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #f8f6f3;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #dc143c;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #dc143c;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #f8f6f3;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero section */
.hero {
  background: linear-gradient(rgba(139, 69, 19, 0.7), rgba(160, 82, 45, 0.7)),
    url("assets/images/hero-background.svg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #dc143c, #b91c3c);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* Features section */
.features {
  padding: 80px 0;
  background-color: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: linear-gradient(135deg, #f8f6f3, #ffffff);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-left: 4px solid #dc143c;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: #8b4513;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Philosophy section */
.philosophy {
  padding: 80px 0;
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: white;
}

.philosophy-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.philosophy p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Page content styles */
.page-header {
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.page-content {
  padding: 60px 0;
  background-color: #ffffff;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  color: #8b4513;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #dc143c;
  padding-bottom: 0.5rem;
}

.content-section h3 {
  color: #a0522d;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Gallery page */
.gallery-section {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  margin: 0;
  background: linear-gradient(135deg, #f8f6f3, #ffffff);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #dc143c;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 1rem 1.25rem;
  color: #8b4513;
  font-size: 1rem;
  font-weight: 500;
}

/* Contact form */
.contact-form {
  background: linear-gradient(135deg, #f8f6f3, #ffffff);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #8b4513;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc143c;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* FAQ styles */
.faq-item {
  background: linear-gradient(135deg, #f8f6f3, #ffffff);
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: white;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: bold;
}

.faq-question:hover {
  background: linear-gradient(135deg, #a0522d, #8b4513);
}

.faq-answer {
  padding: 1.5rem;
  display: none;
  line-height: 1.8;
}

.faq-answer.active {
  display: block;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: linear-gradient(135deg, #8b4513, #a0522d);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .philosophy h2 {
    font-size: 2rem;
  }
}

/* Zen Wisdom Section */
.zen-wisdom {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f6f3, #ffffff);
  position: relative;
}

.zen-wisdom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("assets/images/zen-pattern.svg");
  background-size: 200px 200px;
  pointer-events: none;
}

.wisdom-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dojo-image {
  text-align: center;
  position: relative;
}

.zen-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zen-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(139, 69, 19, 0.3);
}

.wisdom-text {
  padding: 2rem;
}

.zen-quote {
  margin: 0 0 2rem 0;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(220, 20, 60, 0.05),
    rgba(139, 69, 19, 0.05)
  );
  border-left: 4px solid #dc143c;
  border-radius: 10px;
  position: relative;
}

.zen-quote::before {
  content: '"';
  font-size: 4rem;
  color: #dc143c;
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: serif;
  line-height: 1;
}

.quote-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #8b4513;
  font-weight: 300;
  font-style: italic;
  margin: 0;
  text-align: center;
  font-family: "Georgia", serif;
}

.quote-attribution {
  display: block;
  text-align: right;
  margin-top: 1rem;
  font-size: 1rem;
  color: #a0522d;
  font-style: normal;
  font-weight: 400;
}

.wisdom-explanation {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2c2c2c;
  text-align: justify;
  margin: 0;
}

/* Responsive design for zen wisdom section */
@media screen and (max-width: 768px) {
  .wisdom-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .wisdom-text {
    padding: 1rem;
  }

  .quote-text {
    font-size: 1.3rem;
  }

  .zen-wisdom {
    padding: 60px 0;
  }
}

@media screen and (max-width: 480px) {
  .quote-text {
    font-size: 1.2rem;
  }

  .wisdom-explanation {
    font-size: 1rem;
    text-align: left;
  }
}
/* Logo styles */
.logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Responsive logo adjustments */
@media screen and (max-width: 768px) {
  .logo-image {
    height: 40px;
    max-width: 150px;
  }
}

@media screen and (max-width: 480px) {
  .logo-image {
    height: 35px;
    max-width: 120px;
  }
}
/* Philosophy Highlight Box Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Responsive adjustments for philosophy box */
@media screen and (max-width: 768px) {
  .philosophy-highlight-box blockquote {
    font-size: 1.5rem !important;
    letter-spacing: 1px !important;
  }
}

@media screen and (max-width: 480px) {
  .philosophy-highlight-box blockquote {
    font-size: 1.2rem !important;
    letter-spacing: 0.5px !important;
  }

  .philosophy-highlight-box {
    padding: 2rem 1rem !important;
  }
}
/* Dojo Gallery Carousel */
.dojo-gallery {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f6f3, #ffffff);
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

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

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.carousel-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.carousel-caption p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
  font-style: italic;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(220, 20, 60, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(220, 20, 60, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background: #dc143c;
  transform: scale(1.2);
}

/* Responsive carousel */
@media screen and (max-width: 768px) {
  .carousel-wrapper {
    height: 400px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-caption {
    padding: 2rem 1rem 1rem;
  }

  .carousel-caption h3 {
    font-size: 1.3rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .carousel-wrapper {
    height: 300px;
  }

  .carousel-caption h3 {
    font-size: 1.1rem;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }

  .dojo-gallery {
    padding: 60px 0;
  }
}

/* Schedule page (Horarios) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.schedule-section .schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: #4a4a4a;
}

.schedule-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.schedule-dot.schedule-class-aikido {
  background-color: #c41e3a;
}

.schedule-dot.schedule-class-kids {
  background-color: #1e5f9e;
}

.schedule-dot.schedule-class-weapons {
  background-color: #7c2d8a;
}

.schedule-dot.schedule-class-meditation {
  background-color: #1b4d2e;
}

.schedule-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
  border-radius: 8px;
  outline: none;
}

.schedule-scroll:focus-visible {
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.35);
}

.schedule-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.schedule-table thead th {
  background: linear-gradient(180deg, #c9a227 0%, #b8922a 100%);
  color: #2c2418;
  font-weight: 600;
  padding: 0.85rem 0.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.schedule-table tbody th.schedule-col-time,
.schedule-table thead th.schedule-col-time {
  background: linear-gradient(180deg, #e8dcc8 0%, #dfd2bc 100%);
  color: #2c2418;
  font-weight: 600;
}

.schedule-table tbody th.schedule-col-time {
  min-width: 7.5rem;
}

.schedule-table td {
  background-color: #faf8f5;
  color: #2c2c2c;
  padding: 0.85rem 0.6rem;
  vertical-align: middle;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  line-height: 1.35;
}

.schedule-table .schedule-cell-empty {
  background-color: #f3f0eb;
}

.schedule-class {
  font-weight: 600;
  display: inline-block;
  max-width: 14rem;
}

.schedule-class-aikido {
  color: #b91c3c;
}

.schedule-class-kids {
  color: #1e5f9e;
}

.schedule-class-weapons {
  color: #7c2d8a;
}

.schedule-class-meditation {
  color: #1b4d2e;
}

@media screen and (max-width: 768px) {
  .schedule-table {
    font-size: 0.8rem;
  }

  .schedule-table td,
  .schedule-table thead th,
  .schedule-table tbody th.schedule-col-time {
    padding: 0.65rem 0.4rem;
  }
}
