@import url('https://fonts.googleapis.com/css2?family=Gorditas&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Gorditas", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 17px;
  
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f0f4ef;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
}

.loader-container {
  text-align: center;
}

.loader-logo {
  width: 60px;
  animation: float 1.6s ease-in-out infinite;
  margin-bottom: 1rem;
}

.loader-text {
  color: #3b6d4f;
  font-size: 1rem;
  font-style: italic;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

body {
   font-family: "Gorditas", serif;
  background: #fefeff;
  color: #3d3e44;
  font-size: 20px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.site-header {
  background: #f7faff;
  border-bottom: 1px solid #e0ebf4;
  padding: 1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo img {
  width: 38px;
  height: 38px;
}

.logo h1 {
  font-family: "Gorditas", serif;
  font-size: 1.7rem;
  color: #509bd0;
  margin: 0;
}

.site-nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: #3d3e44;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: #509bd0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #444;
}

.cookies-section {
  background: #f1f9ff;
  padding: 1rem 5%;
  text-align: center;
}

.cookies-div {
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  padding: 1.4rem;
  border-radius: 14px;
  border: 1px solid #d2e8f3;
  box-shadow: 0 6px 16px rgba(80, 155, 208, 0.08);
}

.cookies-button {
  background: #509bd0;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  margin: 0.5rem;
  border-radius: 28px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cookies-button:hover {
  background: #3a83bb;
}

.site-footer {
  background: #f4f9fc;
  padding: 4rem 5% 2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  width: 40px;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.95rem;
  color: #5e6c75;
  max-width: 320px;
}

.footer-contact h3,
.footer-hours h3 {
  color: #509bd0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-contact p,
.footer-hours p {
  font-size: 0.95rem;
  color: #4c5c66;
  margin: 0.3rem 0;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-socials img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.footer-socials img:hover {
  transform: scale(1.2);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #509bd0;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #9a9fa3;
  margin-top: 1rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: #509bd0;
  color: white;
  font-size: 1.3rem;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(80, 155, 208, 0.2);
  transition: background 0.3s ease;
}

.scroll-to-top:hover {
  background: #3a83bb;
}

@media (max-width: 768px) {
  .site-nav ul {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links ul {
    flex-direction: column;
    gap: 0.8rem;
  }
}

.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slides {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 1rem 2rem;
  z-index: 2;
}

.hero-overlay h2 {
   font-family: "Gorditas", serif;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-overlay p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #f9f9f9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cta-button {
  background: #509bd0;
  color: white;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background: #3a83bb;
}

@media (max-width: 768px) {
  .hero-overlay h2 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}

.about-section {
  background: #f7fcff;
  padding: 6rem 5%;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1 1 420px;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(80, 155, 208, 0.12);
}

.about-text {
  flex: 1 1 480px;
  color: #3d3e44;
}

.about-text h2 {
  font-family: "Gorditas", serif;
  font-size: 2.2rem;
  color: #509bd0;
  margin-bottom: 1.2rem;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #4a5a5f;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }
}

.animated-classes {
  padding: 6rem 0;
  background: #ffffff;
}

.section-title {
  text-align: center;
   font-family: "Gorditas", serif;
  font-size: 2.4rem;
  color: #509bd0;
  margin-bottom: 4rem;
}

.class-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 2rem 5%;
  transition: background 0.5s ease;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.class-row:hover {
  background: #509bd0;
}

.class-row img {
  width: 64px;
  height: 64px;
  transform: scale(0.8);
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.class-row:hover img {
  transform: scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.class-info h3 {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.class-info p {
  font-size: 1rem;
  color: #555;
  max-width: 500px;
  transition: color 0.3s ease;
}

.class-row:hover .class-info h3,
.class-row:hover .class-info p {
  color: #fff;
}

@media (max-width: 768px) {
  .class-row {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .class-info p {
    max-width: 100%;
  }
}

.photo-gallery {
  background: #f8fbff;
  padding: 6rem 5%;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.6s;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(80, 155, 208, 0.95), rgba(80, 155, 208, 0.6));
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0 0 20px 20px;
  transition: bottom 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  bottom: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-section {
  background: #fffefd;
  padding: 6rem 5%;
}

.testimonial-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.testimonial-card {
  background: #f4f9fc;
  border: 1px solid #dbe9f2;
  border-radius: 20px;
  padding: 2rem;
  flex: 1 1 280px;
  max-width: 360px;
  box-shadow: 0 6px 18px rgba(80, 155, 208, 0.08);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.9s ease forwards;
}

.testimonial-card.delay-1 {
  animation-delay: 0.2s;
}
.testimonial-card.delay-2 {
  animation-delay: 0.4s;
}

.quote {
  font-style: italic;
  color: #4a5a5f;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  position: relative;
}

.quote::before {
  content: '“';
  font-size: 2.5rem;
  position: absolute;
  top: -0.8rem;
  left: -0.6rem;
  color: #bdd8e6;
}

.person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #509bd0;
}

.person span {
  font-weight: 500;
  color: #3d3e44;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .testimonial-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

.schedule-section {
  background: #fefeff;
  padding: 6rem 5%;
  text-align: center;
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.tab {
  background: #eef4f9;
  color: #509bd0;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active,
.tab:hover {
  background: #509bd0;
  color: white;
  box-shadow: 0 6px 12px rgba(80, 155, 208, 0.2);
}

.schedule-content {
  margin-top: 3rem;
}

.day-schedule {
  display: none;
  animation: fadeSlide 0.6s ease;
}

.day-schedule.active {
  display: block;
}

.day-schedule p {
  font-size: 1.1rem;
  margin: 1rem 0;
  color: #3d3e44;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.join-section {
  background: linear-gradient(135deg, #f9faff, #eef7fb);
  padding: 6rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-content {
  max-width: 700px;
  margin: 0 auto;
  animation: popFade 1s ease;
}

.join-content h2 {
  font-family: "Gorditas", serif;
  font-size: 2.5rem;
  color: #509bd0;
  margin-bottom: 1.5rem;
}

.join-content p {
  font-size: 1.1rem;
  color: #4d5c66;
  margin-bottom: 2rem;
}

.join-button {
  background: #509bd0;
  color: white;
  font-weight: bold;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.join-button:hover {
  background: #3a83bb;
}

@keyframes popFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.title_background {
  background: #f0f8ff;
  padding: 6rem 5% 2rem;
  text-align: center;
  border-bottom: 1px solid #d0e5f0;
}

.title_background .title {
   font-family: "Gorditas", serif;
  font-size: 2.3rem;
  color: #509bd0;
  letter-spacing: 0.3px;
}

.text_background {
  background: #ffffff;
  padding: 4rem 5% 6rem;
}

.text_background .text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5a5f;
  background: #f9fbfd;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #e1edf5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .title_background .title {
    font-size: 1.8rem;
  }

  .text_background .text {
    font-size: 1rem;
    padding: 2rem;
  }
}