:root {
  --primary: #009efa;
  --dark: #1a1a1a;
  --light: #ffffff;
  --gray: #73ccff;

}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  padding-top: 60px;
  padding-bottom: 60px;
}

a {
  text-decoration: none;
  color: inherit;
}

h3 {
  text-align: center;
}

p {
  text-align: justify;
}

#hero {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(to right, #009fe3, #004f9f);
  color: var(--light);
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;

  transition: background 0.5s ease, transform 0.7s ease;
}

.btn-primary:hover {
  background: linear-gradient(to right, #81d9ff, #009fe3);
  transform: scale(1.1);
  border-radius: 5px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 95vh;
  background: url('images/hero4.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);

}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  /* opacidad solo sobre imagen */
  z-index: 1;
  /* detrás del texto */
}

.hero-content {
  position: relative;
  z-index: 2;
  /* por encima del fondo opaco */
  max-width: 700px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Locations Hero Section */
.locations-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.21), rgba(0, 0, 0, 0.242)),
    url('images/hero5.png') center/cover no-repeat;
  height: 130vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.locations-hero .hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.locations-hero h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.locations-hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Courses */
section {
  padding: 4rem 1rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#about-section {
  max-width: 600px;
}

.course-card {
  background: var(--light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease-in;
}

.course-card:hover {
  transform: translateY(-10px);
}

.course-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 2px solid rgb(0, 153, 255);
  border-radius: 8px;
  /* Opcional: para esquinas ligeramente redondeadas */
}

#about-jane {
  display: block;
  margin: 0 auto;
  max-width: 570px;
  /* Ajusta según tu contenido real */
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 8px;
}

#about-jane2 {
  display: block;
  margin: 0 auto;
  max-width: 450px;
  /* Ajusta según tu contenido real */
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 2px solid rgb(0, 153, 255);
  border-radius: 8px;
}

.course-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-content h3 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-size: 1.25rem;
}

.course-content p {
  flex: 1;
  font-size: .95rem;
  margin-bottom: 1rem;
}

/* Testimonials */
#testimonials {
  background: #f5f5f5;
  /* o el color que prefieras */
}

.testimonial-wrapper {
  max-width: 900px;
  width: min(90vw, 900px);
  margin: 0 auto;
  position: relative;
  text-align: center;
  aspect-ratio: 16 / 9;
  height: auto;
}

.testimonial {
  opacity: 0;
  transform: translateX(20%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem;
  text-align: center;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.testimonial cite {
  display: block;
  margin-top: .75rem;
  font-style: normal;
  font-weight: 600;
}

/* Contact */
form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 2rem 1rem;
}

@media (max-width: 768px) {
  .logo img {
    height: 20px;
  }

  .testimonial {
    padding: 0.25rem;
  }

  .testimonial-wrapper {
    aspect-ratio: 4 / 3;
  }

  .menu-overlay {
    height: 80%;
  }

  .menu-overlay ul {
    flex-direction: column;
    gap: 50px;
    align-items: center;
  }

  .menu-overlay li {
    margin: 10px 0;
  }

  .locations-hero {
    height: 85vh;
  }
}

@media (max-width: 600px) {
  .hamburger {
    width: 22px;
    height: 22px;
  }

  .hamburger span {
    height: 3px;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: rgb(79, 79, 79);
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: rgb(79, 79, 79);
  }

  #about-jane {
    max-width: 90%;
    /* Ajusta según tu contenido real */
  }

  body {
  padding-top: 0px;
  }
}