* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #333;
  background-color: #f9f9f9;
}

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

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo h1 {
  font-size: 24px;
  color: #043d6c;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-list li a:hover {
  color: #043d6c;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s;
}

.nav.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.hero {
  height: 500px;
  background-image: url('imagenes/INICIO3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-ubicacion {
  height: 200px;
  background-image: url('imagenes/tetinos.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #043d6c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #828f1d;;
}

/* Sections */
.section {
  padding: 60px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #043d6c;
}

/* About */
.about p {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

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

.course-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #043d6c;
}

.course-card p {
  font-size: 16px;
  color: #666;
}

/* Testimonials */
.testimonials {
  background-color: #f1f1f1;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 80px;
}

.testimonial {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
  color: #666;
}

.testimonial h4 {
  font-size: 18px;
  color: #043d6c;
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  align-self: center;
}

#form-mensaje {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

/* Footer */
.footer {
  background-color: #043d6c;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  
}

.footer a {
  color: #828f1d;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-list {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background-color: #fff;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav.active .nav-list {
      display: flex;
  }

  .hamburger {
      display: flex;
  }

  .hero h1 {
      font-size: 32px;
  }

  .hero p {
      font-size: 16px;
  }

  .section h2 {
      font-size: 28px;
  }
}

.map-card {
  gap: 40px;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

.nav-list li a.active {
  color: #043d6c;
  border-bottom: 2px solid #043d6c;
}

/* Enhanced "Ver Más" Button in Course Cards */
.course-card .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.course-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background-color: #828f1d;
}

/* Enhanced Course Section Content */
.section {
  padding: 40px 30px;
  max-width: 2000px;
  margin: 0 auto;
}

.section h2 {
  font-size: 40px;
  color: #043d6c;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #043d6c;
}

.section p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555;
}

.section ul {
  list-style: none;
  margin: 20px 0;
}

.section ul li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #333;
}

.section ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #043d6c;
  font-size: 20px;
}

.section .btn {
  display: block;
  margin: 30px auto 0;
  text-align: center;
  width: fit-content;
}

.map-card {
  gap: 40px;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

.map-card iframe {
  width: 100%;
  max-width: 600px;
  height: 450px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-ubicacion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-ubicacion h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero-ubicacion p {
  font-size: 16px;
  margin-bottom: 20px;
}

.logo img {
  max-height: 100PX;
  width: auto;
}