/* Common Section Styles */
section {
  padding: 3rem 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

section h2 {
  font-family: var(--font-header);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--color-text-main);
  padding-bottom: 0.5rem;
  display: inline-block;
  width: 100%;
}

.intro-text {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
  color: var(--color-text-main);
}

/* About Section */
.about-section {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Study Section */
.study-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4ab3bf 100%);
  color: var(--color-white);
  border-radius: 8px;
}

.study-section h2 {
  color: var(--color-text-main);
  border-bottom-color: var(--color-white);
}

.study-section .intro-text {
  color: var(--color-text-main);
}

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

.pathway-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

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

.pathway-card h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.pathway-card p {
  color: var(--color-text-main);
  line-height: 1.6;
}

/* Teachers Section */
.teachers-section {
  background-color: var(--color-background);
}

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

.teacher-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.teacher-card h3 {
  font-family: var(--font-header);
  font-size: 1.4rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.teacher-card p {
  color: var(--color-text-main);
  line-height: 1.6;
}

/* Why Study Section */
.why-study-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #f9d16f 100%);
  border-radius: 8px;
}

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

.benefit-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  border-left: 5px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateX(5px);
}

.benefit-card h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--color-text-main);
  line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.commitment-card {
  background: linear-gradient(135deg, var(--color-background) 0%, #fffdf5 100%);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--color-primary);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.commitment-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.commitment-card h3 {
  font-family: var(--font-header);
  font-size: 1.4rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.commitment-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #4ab3bf 0%, var(--color-primary) 100%);
  color: var(--color-white);
  border-radius: 8px;
}

.testimonials-section h2 {
  color: var(--color-text-main);
  border-bottom-color: var(--color-white);
}

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

.testimonial-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-main);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-text-main);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  opacity: 0.3;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-text-main);
  text-align: right;
  margin: 0;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  text-align: center;
  border-radius: 8px;
  padding: 4rem 2rem;
}

.cta-section h2 {
  color: var(--color-text-main);
  border: none;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  color: var(--color-text-main);
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--color-white);
  color: var(--color-text-main);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--color-text-main);
  color: var(--color-white);
}

/* Responsive Design */
@media (max-width: 640px) {
  section {
    padding: 2rem 1rem;
  }

  /* Ajuste específico para slideshow solo en la página de inicio */
  .home-page .slideshow-section {
    padding: 0rem;
    margin-bottom: 1rem;
    margin-left: calc(-8vw);
    margin-right: calc(-8vw);
    width: 100vw;
  }

  /* Ajustes del contenedor del slideshow en móvil */
  .home-page .slideshow-container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Reducir fuentes del slideshow en móvil */
  .home-page .slide-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .home-page .slide-content p {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  }

  .pathways-grid,
  .teachers-grid,
  .benefits-grid,
  .commitment-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Tablet - Reducción de tamaño de fuentes */
@media (min-width: 769px) and (max-width: 1024px) {
  section h2 {
    font-size: 1.8rem;
  }

  .intro-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .pathway-card h3,
  .benefit-card h3 {
    font-size: 1.2rem;
  }

  .pathway-card p,
  .benefit-card p,
  .teacher-card p,
  .commitment-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .teacher-card h3,
  .commitment-card h3 {
    font-size: 1.1rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .card-number {
    font-size: 2.5rem;
  }

  .testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
  }

  .testimonial-quote::before {
    font-size: 2.5rem;
  }

  .testimonial-author {
    font-size: 0.9rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1.1rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
  }

  .pathways-grid,
  .benefits-grid,
  .commitment-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teachers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
