/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #f4f7fa;
    color: #333;
  }
  
  header {
    background: #004aad;
    padding: 1rem 2rem;
    color: white;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  
  .nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  .logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    padding: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }
  
  
  /* Hero */
  .hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #004aad, #00c3ff);
    color: white;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  /* Contenido principal */
  .contenido {
    padding: 2rem;
    text-align: center;
  }
  
  .contenido ul {
    list-style: none;
    margin-top: 1rem;
  }
  
  .contenido li {
    margin-bottom: 0.5rem;
  }
  
  /* Cursos */
  .cursos {
    padding: 2rem;
    background: #fff;
  }
  
  .cursos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .curso-card {
    background: #e6f0ff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  .curso-card a {
    display: inline-block;
    margin-top: 1rem;
    color: #004aad;
    font-weight: bold;
    text-decoration: none;
  }
  
  /* Temarios */
  .temarios {
    padding: 2rem;
    background: #f0f5ff;
  }
  
  .temarios h3 {
    margin-top: 2rem;
    color: #004aad;
  }
  
  /* CTA */
  .cta {
    background: #004aad;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
  }
  
  .boton-comprar {
    display: inline-block;
    margin: 1rem;
    padding: 0.75rem 1.5rem;
    background: #ffcb05;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
  }
  
  .subtext {
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Footer */
  footer {
      background: linear-gradient(180deg, #003366, #005f99);
  border-top: 4px solid #ffd700;
    color: white;
    padding: 2rem;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }
  
  .footer-section h4 {
    margin-bottom: 1rem;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section li a {
    color: #ccc;
    text-decoration: none;
  }


  .footer-section li a {
    color: #ccc;
    text-decoration: none;
  }


  
  .footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
  }
  



footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #ffd700; /* Amarillo al pasar el mouse, opcional */
  text-decoration: underline;
}










  /* Botón flotante subir */
#btn-subir {
  position: fixed;
  bottom: 150px;
  right: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  background-color: #004aad;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}

/* Animaciones de fade */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.5s;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}



/* CENTRAR TÍTULO DE CURSOS */
.cursos h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* EFECTO HOVER EN TARJETAS */
.curso-card {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.curso-card:hover {
  background-color: #d4e8ff;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .cursos-container {
    grid-template-columns: 1fr;
  }

  .curso-card {
    margin: 0 auto;
    width: 90%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .boton-comprar {
    width: 90%;
  }
}

/* CENTRAR TÍTULO DE CURSOS */
.cursos h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ESTILO PARA IMÁGENES DE CURSO */
.curso-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* EFECTO HOVER EN TARJETAS */
.curso-card {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.curso-card:hover {
  background-color: #d4e8ff;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .cursos-container {
    grid-template-columns: 1fr;
  }

  .curso-card {
    margin: 0 auto;
    width: 90%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .boton-comprar {
    width: 90%;
  }
}



/* Animaciones de fade */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.5s;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}




.subtitulo-cursos {
  font-size: 1.1rem;
  color: #333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-weight: 400;
}




.razones {
  text-align: center;
  margin: 2rem auto;
  padding: 0 1rem;
}

.razones h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.razones-lista {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.razones-lista li {
  margin: 0.5rem 0;
}






.floating-btn {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  transition: transform 0.2s;
}
.floating-btn:hover {
  transform: scale(1.1);
}
.floating-btn img {
  width: 70%;
  height: 70%;
}

/* Separación entre botones */
.floating-btn.messenger {
  bottom: 80px;
}





.boton-whatsapp {
  background-color: #148d41;
  color: white !important;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.boton-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
