:root {
  /* Paleta de colores con morado como base */
  --primary-color: #7c3aed;
  /* Morado vibrante principal */
  --primary-dark: #5b21b6;
  /* Morado oscuro hover */
  --primary-light: #a78bfa;
  /* Morado claro */
  --secondary-color: #2563eb;
  /* Azul pasa a ser secundario */
  --accent-color: #10b981;
  /* Verde acento */
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gray-color: #e2e8f0;
  --text-color: #334155;
  --text-light: #64748b;
  --white-color: #ffffff;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Transiciones */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Bordes */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--dark-color);
}

a {
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  transition: var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 40px;
  /* ajusta este valor a tu gusto */
  width: auto;
  /* mantiene proporción */
  display: block;
  /* evita espacios raros */
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu li {
  margin-left: 1.75rem;
}

.nav-menu a {
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-menu a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

.nav-menu a:hover:after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 0.95rem;
  border: none;
  outline: none;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.btn i {
  font-size: 0.9em;
}

/* Botones */
.btn-primary {
  background-color: var(--white-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 6px 12px rgba(124, 58, 237, 0.35);
  /* glow morado */
}

.btn-outline {
  background-color: transparent;
  color: var(--white-color);
  border: 1px solid var(--white-color);
}

.btn-outline:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
/* Hero Section */
.hero {
  /* MÁS PEQUEÑO Y CON MENOS PADDING */
  height: auto;
  min-height: 560px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white-color);
  display: flex;
  align-items: center;
  padding-top: 60px;
  /* antes 80px */
  padding-bottom: 24px;
  /* agregado para compactar */
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  /* un poco menos para aligerar visualmente */
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 20%
    );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  /* ligeramente más compacto */
}

.hero h1 {
  font-size: 3rem;
  /* antes 3.25rem */
  margin-bottom: 1rem;
  /* antes 1.5rem */
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.15rem;
  /* antes 1.25rem */
  margin-bottom: 1.5rem;
  /* antes 2.5rem */
  opacity: 0.9;
  max-width: 92%;
  /* antes 90% */
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  /* antes 1rem */
}

/* Imagen a la derecha, centrada verticalmente */
.hero-image {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 440px;
  z-index: 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-slow);
  margin-top: 3%;
}

.hero-image:hover {
  transform: translateY(-50%) scale(1.02);
}

.hero-image img {
  width: 100%;
  height: auto;
  /* evita tapar borde inferior redondeado */
  object-fit: cover;
  object-position: center;
  display: block;
  image-orientation: from-image;
  /* corrige rotación por EXIF en navegadores compatibles */
  transform: rotate(0deg);
  /* asegura orientación correcta en Android/WebKit */
  transition: var(--transition-slow);
}

.hero-image:hover img {
  transform: scale(1.05);
}

/* Features Section */
.section {
  padding: 7rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.75rem;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 1.5rem auto 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

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

.feature-card {
  background-color: var(--white-color);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  color: var(--white-color);
  font-size: 1.75rem;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2);
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: rotate(5deg) scale(1.1);
}

.feature-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Cursos Section */
.courses {
  background-color: var(--gray-color);
  position: relative;
  overflow: hidden;
}

.courses:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgwLDAsMCwwLjAyKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==");
  opacity: 0.3;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.course-card {
  background-color: var(--white-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.course-image {
  height: 200px;
  background-color: var(--primary-light);
  position: relative;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.course-card:hover .course-image img {
  transform: scale(1.08);
}

.course-content {
  padding: 1.75rem;
}

.course-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.course-card:hover .course-category {
  background-color: var(--primary-dark);
}

.course-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.course-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Testimonios */
.testimonials {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1e293b 100%);
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.testimonials:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==");
}

.testimonials .section-title h2,
.testimonials .section-title p {
  color: var(--white-color);
}

.testimonials .section-title h2:after {
  background: linear-gradient(90deg, var(--white-color), var(--accent-color));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  transition: var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.12);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial-content:before {
  content: "";
  background-image: url("https://www.svgrepo.com/show/312259/quote.svg");
  background-size: 40px 40px;
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  position: absolute;
  top: -10px;
  left: -10px;
  opacity: 0.2;
}

.testimonial-content:after {
  content: "";
  background-image: url("https://www.svgrepo.com/show/312259/quote.svg");
  transform: rotate(180deg);
  background-size: 40px 40px;
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: -10px;
  right: -10px;
  opacity: 0.2;
}

.testimonial-content:before {
  top: -0.5rem;
  left: -1rem;
}

.testimonial-content:after {
  bottom: -2.5rem;
  right: -1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
}

.testimonial-card:hover .author-avatar {
  border-color: var(--primary-color);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--white-color);
}

.author-info p {
  font-size: 0.875rem;
  opacity: 0.8;
  color: var(--gray-color);
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 25%
    );
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 5rem 0 2rem;
  position: relative;
}

footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==");
  opacity: 0.2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: var(--transition-fast);
}

.footer-logo:hover {
  color: var(--primary-color);
}

.footer-about p {
  opacity: 0.7;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--white-color);
  font-size: 1rem;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.footer-links h3 {
  color: var(--white-color);
  margin-bottom: 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white-color);
  transform: translateX(5px);
}

.footer-newsletter h3 {
  color: var(--white-color);
  margin-bottom: 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-newsletter h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-newsletter p {
  opacity: 0.7;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.newsletter-form:hover {
  box-shadow: 0 0 0 2px var(--primary-color);
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  background-color: transparent;
  font-family: inherit;
  color: var(--white-color);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: var(--white-color);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

/* Animaciones suaves */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Responsive Design - Optimizado para PC, Tablet y Android */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .section {
    padding: 5rem 0;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    width: 45%;
    opacity: 0.9;
    right: 0px;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }

  .features-grid,
  .courses-grid,
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
  }

  .nav-menu li {
    margin: 0.5rem 0;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .mobile-menu-btn:hover {
    transform: rotate(90deg);
  }

  .hero {
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    height: auto;
    padding-bottom: 4rem;
    flex-direction: column;
    /* apila contenido */
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image {
    position: relative;
    /* ✅ quita absolute */
    width: 98%;
    /* más pequeño */
    max-width: 360px;
    /* límite */
    margin: 2rem auto 0;
    /* separación respecto a botones */
    top: auto;
    right: auto;
    transform: none;
    /* quita translate */
  }

  .hero-image img {
    border-radius: var(--border-radius-md);
  }

  .section {
    padding: 4rem 0;
  }

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

  .features-grid,
  .courses-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }

  .nav-menu {
    display: flex !important;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
    background-color: transparent;
    border: none;
    gap: 0.75rem;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: var(--border-radius-md);
    padding: 0.875rem 1.25rem;
  }

  .newsletter-form input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .btn {
    padding: 0.75rem 1.25rem;
  }
}

/* Mejoras para Android y touch devices */
@media (hover: none) {
  .btn:hover,
  .feature-card:hover,
  .course-card:hover,
  .testimonial-card:hover,
  .social-link:hover {
    transform: none;
    /* Evitar transform en touch para mejor rendimiento */
  }

  /* Usar active en lugar de hover para touch */
  .btn:active,
  .feature-card:active,
  .course-card:active,
  .testimonial-card:active,
  .social-link:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
  }
}

.hero-image img {
  max-width: 100%;
  height: auto;
  transition: opacity 1s ease-in-out;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-login {
  background-color: var(--primary-color);
  /* azul base */
  color: #fff !important;
  /* texto blanco forzado */
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 5px 30px !important;
  /* más ancho y forzado */
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  /* asegura que padding funcione bien */
}

/* Hover */
.btn-login:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 12px rgba(124, 58, 237, 0.4);
}

/* Click (activo) */
.btn-login:active {
  transform: scale(0.97);
  box-shadow: 0 3px 6px rgba(0, 114, 255, 0.4);
}

.lang-switcher {
  margin-left: 1rem;
}

.lang-switcher select {
  padding: 0.45rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-md);
  background: #fff;
  color: var(--dark-color);
  font-family: inherit;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.lang-switcher select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.features {
  padding-top: 60px;
  background-color: #f9f9f9;
  text-align: center;
}

.features-area {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.features-area-item {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: 320px;
  max-width: 100%;
}

.features-area-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.features-area-item-icon {
  margin-bottom: 15px;
}

.features-area-item-icon img {
  width: 48px;
  height: 48px;
}

.features-area-item-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #121212;
}

.features-area-item-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

/* ========== CONTACT PRO ========== */
.contact-pro {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-color) 100%
  );
  color: var(--white-color);
  overflow: hidden;
}

/* header */
.contact-pro__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.contact-pro__header .chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* grid */
.contact-pro__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

/* cards (glass) */
.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(8px);
}

/* info card */
.info-card {
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.5rem 0 1rem;
}

.info-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 1rem;
}

.info-row i {
  color: #fff;
  opacity: 0.9;
}

.muted {
  color: rgba(255, 255, 255, 0.9);
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  margin: 1rem 0 1.25rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
}

/* form card (blanca) */
.form-card {
  background: #fff;
  color: var(--dark-color);
  padding: 1.5rem;
}

/* fields con label flotante e icono */
.field {
  position: relative;
  margin-bottom: 1rem;
}

.field__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
}

.field input,
.field textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 2.5rem;
  /* espacio para icono */
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #fff;
  color: var(--dark-color);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

/* label flotante */
.field label {
  position: absolute;
  left: 2.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  background: transparent;
  padding: 0 0.25rem;
  pointer-events: none;
  transition: all 0.15s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -8px;
  transform: translateY(0);
  font-size: 0.75rem;
  color: #4b5563;
  background: #fff;
}

/* Oculta SIEMPRE el texto del placeholder */
.field input::placeholder,
.field textarea::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

/* inline group: código país + número */
.field--inline {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.field--grow {
  margin: 0;
}

.select-wrap select {
  width: 100%;
  height: 100%;
  padding: 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #fff;
  color: var(--dark-color);
  appearance: none;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
}

/* errores y focus sin azul */
.field .error {
  display: none;
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.field input:hover,
.field textarea:hover,
.select-wrap select:hover {
  border-color: #d1d5db;
}

.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  /* halo gris, no azul */
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ========== BOTÓN SUBMIT (basado en btn-primary) ========== */
.btn.btn-submit {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn.btn-submit:hover,
.btn.btn-submit:focus,
.btn.btn-submit:active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

/* links sin azul */
.link-plain,
.link-plain:visited,
.link-plain:hover,
.link-plain:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* status */
.form-status {
  margin-top: 1rem;
  font-weight: 600;
}

/* decor */
.decor {
  position: absolute;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.25;
}

.decor--one {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff, transparent);
  top: -120px;
  left: -80px;
}

.decor--two {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff, transparent);
  bottom: -140px;
  right: -80px;
}

/* responsive */
@media (max-width: 1100px) {
  .contact-pro__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .contact-pro__grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .form-card {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .field--inline {
    grid-template-columns: 1fr;
  }
}

/* Modal look & feel */
.modal-content {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: #0f172a;
  color: #fff;
  /* texto general en el header */
  border-bottom: none;
}

/* Asegura el título en blanco (más específico que Bootstrap) */
.modal-header .modal-title {
  color: #fff !important;
}

.modal-title {
  font-weight: 700;
}

.modal-footer {
  border-top: none;
}

.modal-body p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.modal-body ul {
  margin-left: 1.25rem;
}

/* (Opcional) enlaces en el header también blancos */
.modal-header a {
  color: #fff;
}

.modal-header a:hover {
  color: #e5e7eb;
}

@media (max-width: 768px) {
  .lang-switcher {
    display: flex;
    justify-content: center; /* 🔑 centra el contenido */
    margin: 0.5rem 0;
  }

  .lang-switcher select {
    height: 42px;
    border-radius: 8px;
    padding: 5px 20px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    box-sizing: border-box;

    width: 120px; /* ancho fijo */
    text-align: start;
  }
}

/* === Light Blue–Purple Pro (overrides) === */
:root {
  --brand-blue: #2563eb; /* azul */
  --brand-purple: #7c3aed; /* morado */
  --brand-blue-50: #eef4ff; /* azul suave */
  --brand-purple-50: #f6f2ff; /* morado suave */
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text-900: #0f172a;
  --text-600: #475569;
  --border: #e5e7eb;
}

/* Canvas claro */
body {
  background: var(--surface) !important;
  color: var(--text-900) !important;
}
body::before {
  content: none !important;
} /* quita grid oscuro */

/* Header claro */
header {
  background: #fff !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
.nav-menu a {
  color: var(--text-900) !important;
}
.nav-menu a:hover {
  color: var(--brand-purple) !important;
}
.logo {
  color: var(--brand-purple) !important;
}

/* Hero claro con degradado azul→morado */
.hero {
  background: linear-gradient(
    135deg,
    var(--brand-blue-50),
    var(--brand-purple-50)
  ) !important;
  color: var(--text-900) !important;
}
.hero h1 {
  color: var(--text-900) !important;
  text-shadow: none !important;
}
.hero p {
  color: var(--text-600) !important;
}

/* Botones primarios */
.btn,
.btn-login,
.btn-primary {
  background: linear-gradient(90deg, #3b82f6, #a78bfa) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.22) !important;
}
.btn:hover,
.btn-login:hover,
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Cards claras */
.feature-card,
.course-card,
.testimonial-card,
.form-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06) !important;
  color: var(--text-900) !important;
}
.feature-card p,
.course-card p,
.section-title p {
  color: var(--text-600) !important;
}

/* Badges */
.course-category {
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.9),
    rgba(124, 58, 237, 0.9)
  ) !important;
  color: #fff !important;
  border: 0 !important;
}

/* Secciones alternas suaves */
.section {
  background: var(--surface) !important;
}
.section.section--alt,
.courses {
  background: var(--surface-alt) !important;
}

/* Testimonios claro */
.testimonials {
  background: var(--surface-alt) !important;
}
.testimonials .section-title h2,
.testimonials .section-title p {
  color: var(--text-900) !important;
}

/* Footer claro */
footer {
  background: #fff !important;
  color: var(--text-900) !important;
  border-top: 1px solid var(--border);
}
.footer-links a {
  color: var(--text-600) !important;
}
.footer-links a:hover {
  color: var(--brand-purple) !important;
}

/* Newsletter */
.newsletter-form {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
.newsletter-form input {
  color: var(--text-900) !important;
}
.newsletter-form button {
  background: linear-gradient(90deg, #3b82f6, #a78bfa) !important;
  color: #fff !important;
}

/* 1) Todos los "muted" en negro */
.muted,
.muted * {
  color: #0f172a !important;
}

/* 2) Links dentro de muted (incluye .link-plain) también negros */
.muted a,
.muted a.link-plain,
.muted a:visited,
.muted a:hover,
.muted a:active {
  color: #0f172a !important;
  text-decoration-color: #0f172a !important;
}

/* 3) Botón "Ingresar": texto siempre blanco */
a.btn-login,
a.btn-login:visited,
a.btn-login:hover,
a.btn-login:active {
  color: #ffffff !important;
}

/* quita la rotación en pantallas táctiles */
@media (hover: none) {
  .mobile-menu-btn:hover { transform: none; }
}

/* deja el efecto solo para dispositivos con hover real (desktop) */
@media (any-hover: hover) {
  .mobile-menu-btn:hover { transform: rotate(90deg); }
}
