/* 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-top: 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-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;
}








/* 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%;
  }
}

/* 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;
  }
}



/* Sección: ¿Qué es IdealClass? */
.contenido {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #f4f7fa;
}

.contenido h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #004aad;
}

.contenido p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  color: #333;
  line-height: 1.6;
}

/* Beneficios de IdealClass */
.beneficios {
  background-color: #ffffff;
  padding: 3rem 2rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.beneficios h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #004aad;
  margin-bottom: 2rem;
}

.beneficios ul {
  list-style: none;
  padding: 0;
}

.beneficios li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.beneficios li::before {
  content: "✔️ ";
  color: #00a859;
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Sección de llamada a la acción */
.cta-grande {
  background-color: #f0f5ff;
  text-align: center;
  padding: 3rem 2rem;
}

.cta-grande h2 {
  font-size: 2rem;
  color: #004aad;
  margin-bottom: 1rem;
}

.cta-grande p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.cta-grande .boton-comprar {
  background-color: #ffcb05;
  color: #000;
  padding: 1rem 2rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-grande .boton-comprar:hover {
  background-color: #f4b400;
}






.cta-servicio {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #004aad;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cta-servicio:hover {
  color: #0077ff;
}





.cta-doble {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-cta {
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-cta.amarillo {
  background-color: #ffc107;
  color: #000;
}

.btn-cta.amarillo:hover {
  background-color: #e0a800;
}

.btn-cta.azul {
  background-color: #004aad;
  color: #fff;
}

.btn-cta.azul:hover {
  background-color: #003c91;
}





.btn-cta.amarillo:hover {
  background-color: #e0a800;
}

.btn-cta.azul:hover {
  background-color: #003a8c;
}




.beneficios p {
  font-size: 1.1rem;
  color: #333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}




.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;
}
