/* =========================
   CONFIGURACIÓN GENERAL
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #f9faf9;
}

a {
  text-decoration: none;
}


/* =========================
   NAVBAR
   ========================= */

.navbar {
  position: relative;
  z-index: 1000;

  background: #ffffff;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 5px 30px;

  border-bottom: 1px solid #e0e0e0;
}

.nav-left a {
  display: block;
}

.logo-nav {
  height: 55px;
  width: auto;
  display: block;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-buttons a {
  color: #2f7d6d;
  font-weight: bold;
  font-size: 15px;

  transition: color 0.3s ease;
}

.nav-buttons a:hover {
  color: #064f43;
}


/* =========================
   HERO DEL CURSO
   ========================= */

/* =========================
   HERO DEL CURSO
   ========================= */

.curso-hero {
  width: 100%;

  padding: 38px 20px 42px;

  text-align: center;

  background: #eaf4f2;
}

.curso-hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.curso-label {
  display: block;

  color: #2f7d4b;

  font-size: 15px;
  font-weight: bold;

  margin-bottom: 12px;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.curso-hero h1 {
  color: #064f43;

  font-size: 40px;

  margin: 0 0 18px;

  line-height: 1.2;

  background: transparent;

  padding: 0;
}

.curso-hero p {
  max-width: 700px;

  margin: 0 auto;

  color: #37474f;

  font-size: 19px;

  line-height: 1.5;
}
/* =========================
   INFORMACIÓN DEL CURSO
   ========================= */

.curso-info {
  max-width: 1200px;

  margin: 0 auto;

  padding: 80px 30px;

  display: grid;

  grid-template-columns: 1.6fr 1fr;

  gap: 50px;

  align-items: start;
}

.curso-contenido h2 {
  color: #064f43;

  font-size: 32px;

  margin: 0 0 20px;
}

.curso-contenido > p {
  color: #333;

  font-size: 17px;

  line-height: 1.7;

  margin-bottom: 20px;
}


/* =========================
   CARACTERÍSTICAS
   ========================= */

.caracteristicas {
  margin-top: 35px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 15px;
}

.caracteristica {
  display: flex;

  align-items: center;

  gap: 12px;
}

.caracteristica span {
  width: 28px;
  height: 28px;

  flex-shrink: 0;

  border-radius: 50%;

  background: #2f8b52;

  color: white;

  display: flex;

  align-items: center;
  justify-content: center;

  font-weight: bold;

  font-size: 14px;
}

.caracteristica p {
  margin: 0;

  color: #333;

  font-size: 15px;

  line-height: 1.4;
}


/* =========================
   DATOS DEL CURSO
   ========================= */

.curso-datos {
  background: #ffffff;

  padding: 30px;

  border-radius: 20px;

  border: 1px solid #eeeeee;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.curso-datos h3 {
  color: #064f43;

  font-size: 22px;

  margin: 0 0 25px;
}

.dato {
  padding: 15px 0;

  border-bottom: 1px solid #eeeeee;

  display: flex;

  justify-content: space-between;

  gap: 15px;
}

.dato:last-of-type {
  border-bottom: none;
}

.dato strong {
  color: #37474f;

  font-size: 14px;
}

.dato span {
  color: #2f7d6d;

  font-size: 14px;

  font-weight: bold;

  text-align: right;
}


/* =========================
   BOTÓN WHATSAPP
   ========================= */

.btn-whatsapp {
  display: block;

  margin-top: 25px;

  padding: 14px 20px;

  background: #2f7d6d;

  color: white;

  text-align: center;

  border-radius: 30px;

  font-weight: bold;

  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #25685b;

  transform: translateY(-2px);
}


/* =========================
   CONTENIDOS
   ========================= */

.contenidos {
  background: #f9faf9;

  padding: 80px 30px;
}

.section-header {
  max-width: 750px;

  margin: 0 auto 50px;

  text-align: center;
}

.section-header span {
  display: block;

  color: #2f7d4b;

  font-size: 14px;

  font-weight: bold;

  letter-spacing: 1px;

  margin-bottom: 10px;
}

.section-header h2 {
  color: #064f43;

  font-size: 36px;

  margin: 0 0 15px;
}

.section-header p {
  color: #37474f;

  font-size: 17px;

  line-height: 1.6;

  margin: 0;
}


/* =========================
   TARJETAS DE CONTENIDO
   ========================= */

.contenidos-grid {
  max-width: 1200px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.contenido-card {
  background: #ffffff;

  padding: 30px 25px;

  border-radius: 18px;

  border: 1px solid #eeeeee;

  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contenido-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contenido-numero {
  color: #2f8b52;

  font-size: 14px;

  font-weight: bold;

  margin-bottom: 15px;
}

.contenido-card h3 {
  color: #064f43;

  font-size: 20px;

  margin: 0 0 12px;
}

.contenido-card p {
  color: #333;

  font-size: 15px;

  line-height: 1.6;

  margin: 0;
}


/* =========================
   ¿PARA QUIÉN?
   ========================= */

.dirigido {
  padding: 80px 30px;

  background:
    linear-gradient(
      135deg,
      #eaf4f2,
      #d8ebe7
    );
}

.dirigido-content {
  max-width: 800px;

  margin: 0 auto;

  text-align: center;
}

.dirigido-content > span {
  display: block;

  color: #2f7d4b;

  font-size: 14px;

  font-weight: bold;

  letter-spacing: 1px;

  margin-bottom: 12px;
}

.dirigido-content h2 {
  color: #064f43;

  font-size: 34px;

  margin: 0 0 20px;
}

.dirigido-content p {
  color: #37474f;

  font-size: 17px;

  line-height: 1.7;

  margin: 0 auto 15px;
}


/* =========================
   LLAMADO A LA ACCIÓN
   ========================= */

.cta {
  padding: 80px 20px;

  text-align: center;

  background: #ffffff;
}

.cta h2 {
  color: #064f43;

  font-size: 32px;

  margin: 0 0 15px;
}

.cta p {
  color: #37474f;

  font-size: 17px;

  margin: 0 0 30px;
}

.cta-btn {
  display: inline-block;

  background: #2f7d6d;

  color: white;

  padding: 14px 30px;

  border-radius: 30px;

  font-weight: bold;

  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #25685b;

  transform: translateY(-2px);
}


/* =========================
   WHATSAPP FLOTANTE
   ========================= */

.whatsapp-float {
  position: fixed;

  bottom: 20px;
  right: 20px;

  width: 58px;
  height: 58px;

  z-index: 1000;

  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}


/* =========================
   FOOTER
   ========================= */

footer {
  background: #222;

  color: #ccc;

  text-align: center;

  padding: 25px 20px;
}

footer p {
  margin: 0 0 10px;

  font-size: 14px;
}

footer a {
  color: #ffffff;

  font-weight: bold;

  font-size: 14px;
}

footer a:hover {
  color: #b9ded7;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

  .curso-info {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .contenidos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 700px) {

  .navbar {
    padding: 6px 15px;
  }

  .logo-nav {
    height: 45px;
  }

  .nav-buttons {
    gap: 12px;
  }

  .nav-buttons a {
    font-size: 13px;
  }

  .curso-hero {
    padding: 35px 20px;
  }

  .curso-hero h1 {
    font-size: 36px;
  }

  .curso-hero p {
    font-size: 17px;
  }

  .curso-info {
    padding: 60px 20px;
  }

  .curso-contenido h2 {
    font-size: 28px;
  }

  .caracteristicas {
    grid-template-columns: 1fr;
  }

  .contenidos {
    padding: 60px 20px;
  }

  .contenidos-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .dirigido {
    padding: 60px 20px;
  }

  .dirigido-content h2 {
    font-size: 28px;
  }

  .cta {
    padding: 60px 20px;
  }

  .cta h2 {
    font-size: 28px;
  }

}


@media (max-width: 480px) {

  .navbar {
    flex-direction: column;

    gap: 8px;

    padding: 10px;
  }

  .nav-buttons {
    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;
  }

  .curso-hero h1 {
    font-size: 32px;
  }

}