@import url("media.css");
/* Reset + base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --text: #0f172a;
  --muted: #475569;
  --light: #f8fafc;
  --radius: 8px;
  --transition: 0.18s ease;
}

/* Cuerpo y contenedor  */
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.05rem;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Menú de navegación */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.nav-inner {
  height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 2rem;
}

/* Hamburguesa */
.hamburger-label {
  display: block;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 26px;
  height: 26px;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.menu-toggle {
  display: none;
}

/* Menú desktop */
.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1.2rem;           /* ← más espacio razonable */
}

.nav-menu li a {
  padding: 0.4rem 0.8rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary);  
}

/* Usuario desktop */
.user-menu {
  position: relative;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.user-trigger:hover {
  color: var(--primary);
}

.chevron {
  width: 14px;               /* más pequeño aún, para que no rompa alineado */
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.4;
  margin-top: -1px;          /* ajuste fino vertical */
}

/* Puente invisible para evitar que se pierda el hover */
.user-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;               /* este es el puente */
  background: transparent;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0;             /* sin margen para que no haya gap */
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  min-width: 170px;
  list-style: none;
  padding: 0.4rem 0;
  z-index: 20;
}

/* Fondo completo al hover en cada ítem */
.user-dropdown li a {
  display: block;
  padding: 0.65rem 1.3rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.user-dropdown li a:hover {
  background: var(--primary);
  color: white;
}

/* Mostrar dropdown cuando hover en .user-menu (incluye puente) */
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
  display: block;
}

/* Menú móvil */
.mobile-menu {
  display: none;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

/* Selector clave: hermano siguiente al checkbox */
#menu-toggle:checked ~ .mobile-menu {
  display: block;
}

.mobile-link,
.mobile-user a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.mobile-link:hover,
.mobile-user a:hover {
  background: #f8fafc;
  color: var(--primary);
}

.mobile-user {
  border-top: 1px solid #e2e8f0;
  margin-top: 0.8rem;
}

.mobile-user .strong {
  color: var(--primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 1.6rem;
  height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #164e63 8%, #86198f 100%);
  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.5), rgba(15,23,42,0.15));
  pointer-events: none;
  z-index: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.3rem;
}

.subtitle {
  font-size: 1.25rem;
  max-width: 680px;
  margin: 0 auto 2.8rem;
  opacity: 0.92;
}

/* Botones – con hover real y feedback */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

/* Botones básicos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  user-select: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.35);
}

.btn-outline {
  background: rgba(255,255,255,0.25);
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.25);
}

.btn-outline-dark {
  background: rgba(255,255,255,0.25);
  border: 2px solid var(--muted);
  color: var(--text);
}

.btn-outline-dark:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.25);
}

/* Intro breve */
.intro {
  padding: 4rem 0 5rem;               /* mucho espacio arriba para separar del hero */
  background: var(--light);
  text-align: center;
}

.intro h2 {
  font-size: clamp(2.1rem, 5.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 auto 2rem;                /* centrado y espacio debajo */
  max-width: 800px;                   /* evita que se estire demasiado */
}

.intro .lead {
  font-size: 1.2rem;
  line-height: 1.85;                  /* texto aireado y legible */
  color: var(--muted);
  margin: 0 auto;                     /* centrado perfecto */
  max-width: 680px;                   /* ancho cómodo, no se estira */
}

/* Sección Últimos cursos - minimalista y atractivo */
.courses {
  padding: 6rem 0 5rem;
  background: white;
  text-align: center;
}

.section-title {
  font-size: clamp(2.1rem, 5.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 3.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.course-card {
  display: block;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.card-image {
  position: relative;
  height: auto;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: 160px !important;
  text-align: center;
}

.card-body {
  padding: 1rem;
  text-align: left;
}

.card-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.card-price {
  margin-bottom: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
}

.price-individual {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.price-membership {
  font-size: 0.95rem;
  color: var(--muted);
}

.card-cta {
  display: block;
  margin-top: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
}

.section-cta {
  margin-top: 0.4rem;
}

/* Section Software */
.section.software {
  background-color: #f9f9f9;
  padding: 3rem 0;
  text-align: center;
}

.software-components {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.component {
  width: 300px;
  text-align: center;
  margin-bottom: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.component h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.component img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.component p {
  font-size: 1.1rem;
  color: #666;
}

.software {
  padding: 6rem 0 5rem;
  background: var(--light);
  text-align: center;
}

.software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.software-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
}

.software-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.software-card-image {
  display: inline-block;
  height: 120px;
  overflow: hidden;
  padding-right: 0.3rem;
}

.software-card-image img {
  width: auto;
  height: 100%;
  object-fit: contain;            /* para logos/software, contain es mejor que cover */
  background: #f8fafc;            /* fondo claro si la imagen es transparente */
  padding: 1rem;
  transition: transform 0.3s ease;
}

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

.badge-freeware {
  background: #10b981;            /* verde emerald */
  color: white;
  z-index: 50;
}

.badge-premium {
  background: #f59e0b;            /* ámbar/orange */
  color: white;
}

.software-card-body {
  display: inline-block;
  position: relative;
}

.software-card-body h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  text-align: left;
}

.software-card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.6;
  text-align: left;
}

.software-card-cta {
  display: block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem;
}

/* Sección de agradecimiento y donaciones */
.support {
  padding: 6rem 0 7rem;
  background: white;
  text-align: center;
}

.support .section-title {
  font-size: clamp(2.1rem, 5.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.support .section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.support-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.support .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.support .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Botones de pago */

.btn-mercadopago {
  background: #00b1ea;
  color: white;
}

.btn-mercadopago:hover {
  background: #009cd1;
}

.btn-paypal {
  background: #0070ba;
  color: white;
}

.btn-paypal:hover {
  background: #005ea6;
}

.btn-patreon {
  background: #f96854;
  color: white;
}

.btn-patreon:hover {
  background: #e55b47;
}

.support-thanks {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

/* Footer - minimalista, limpio y responsive */
.footer {
  padding: 5rem 0 3rem;
  background: #0f172a;
  color: #e2e8f0;
  margin-top: 4rem;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: white;
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: white;
}

.footer-logo-img {
  height: 2.2rem;
}

.footer-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.95rem;
  color: #64748b;
}

/* Contenido del perfil */
/* Contenido del perfil */
.profile-content {
  padding: 6rem 0;
  background: var(--light);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.profile-sidebar {
  order: 1;
}

.profile-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  text-align: center;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.profile-email,
.profile-joined {
  color: var(--muted);
  margin-bottom: 1rem;
}

.membership-status {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f0fdfa;
  border-radius: 12px;
  border: 1px solid #ccfbf1;
}

.membership-status strong {
  display: block;
  font-size: 1.3rem;
  color: #0d9488;
  margin-bottom: 0.5rem;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn .small {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
}

.btn-outline-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  user-select: none;
  background: rgba(255,255,255,0.25);
  color: #0d9488;
  border: 2px solid #0d9488;
}

.btn-outline-small:hover {
  background: white;
  color: #FFF;
  background-color: #0d9488; 
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.link.danger {
  color: #dc2626;
}

/* Cursos activos */
.profile-main h2,
.profile-downloads h2 {
  font-size: 2rem;
  margin-bottom: 1.8rem;
  color: var(--text);
}

.courses-list,
.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-course,
.download-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.profile-course img,
.download-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.course-info h3,
.download-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.course-info p,
.download-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero pequeño para páginas internas (soporte) */
.page-hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #164e63 8%, #86198f 100%);
  color: white;
  text-align: center;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.45), rgba(15,23,42,0.65));
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Sección servicios */
.services {
  padding: 6rem 0;
  background: var(--light);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card .card-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Certificación */
.certification {
  padding: 5rem 0;
  background: white;
  text-align: center;
}

/* CTA contacto */
.contact-cta {
  padding: 6rem 0;
  background: var(--light);
  text-align: center;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 2rem;
}

/* Hero del curso individual */
.course-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #164e63 8%, #86198f 100%);
  color: white;
}

.course-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(15,23,42,0.7));
}

.course-hero-content {
  margin-bottom: 3rem;
  text-align: center;
}

.course-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.course-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.course-subtitle {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  opacity: 0.92;
}

.course-price-box {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.price-individual {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-membership {
  color: #cbd5e1;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

.course-hero-image {
  max-width: 800px;
  margin: 0 auto;
}

.course-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Detalles del curso */
.course-details {
  padding: 6rem 0;
  background: var(--light);
}

.course-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.course-info-left h2,
.course-info-right h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  color: var(--text);
}

/* Listas con checks */
.course-features,
.course-requirements {
  list-style: none;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.course-features li,
.course-requirements li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.course-features li::before,
.course-requirements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3rem;
}

/* Módulos (lista de secciones/capítulos) */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.module {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.module summary {
  cursor: pointer;
  list-style: none;
}

.module-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: #f8fafc;
  font-weight: 600;
  font-size: 1.15rem;
}

.module-lessons {
  font-size: 0.95rem;
  color: var(--muted);
}

.lessons {
  list-style: none;
  padding: 0;
}

.lesson {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.18s ease;
}

.lesson:last-child {
  border-bottom: none;
}

.lesson:hover {
  background: #f8fafc;
}

.lesson-order {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  min-width: 60px;
}

.lesson-name {
  flex: 1;
  font-size: 1.05rem;
}

.badge-free {
  background: #10b981;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* CTA final */
.course-cta {
  padding: 5rem 0;
  background: white;
  text-align: center;
}

.course-cta h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1.2rem;
}

/* Hero para páginas de software individual (usa .hero del index pero con grid para imagen) */
.software-hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

.software-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.45), rgba(15,23,42,0.65));
}

.software-hero {
  display: block; /* móvil: columna */
}

.software-hero-content {
  text-align: center;
  margin-bottom: 3rem;
}

.software-badge {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.software-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.software-subtitle {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  opacity: 0.92;
}

.software-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

.software-hero-image {
  max-width: 800px;
  margin: 0 auto;
}

.software-hero-image img {
  width: 20%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.software-version {
  font-size: 0.8em;
  padding: 0.61em;
  border-radius: var(--radius);
  background-color: #10b981;
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: uppercase;
  margin-bottom: 2em;
  display: block;
}

.software-hero-detail {
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.software-titulo {
  display: flex;
  direction: flex-row;
  font-size: clamp(2.6rem, 7.5vw, 4.2rem);
  align-items: center;
  text-align: center;
  justify-content: center;
}

.software-titulo img {
  height: auto;
  padding: 0.2em;
}

/* beneficios de soporte */
.support-benefits {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  justify-content: center;
}

/* Listas de características (checks verdes) */
.features-list {
  list-style: none;
  max-width: 1024px;
  margin: 0.8em auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
  justify-content: center;
}

.features-list li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.8rem;
}

.lead {
  width: 100%;
  display: flex;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.85;                  /* texto aireado y legible */
  color: var(--muted);
  margin: 0 auto;                     /* centrado perfecto */
  max-width: 680px;                   /* ancho cómodo, no se estira */
}

.titulo-lead {
  text-align: center;
  font-weight: 800;
  font-size: 2rem;
  padding: 1em;
}

.tarjeta {
  width: 100%;
  max-width: 16rem;
  background: white;
  font-size: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

/* Estilos generales para las secciones FAQ y CTA */
.text-center {
  text-align: center;
}
/* ==================== SECCIÓN FAQ ==================== */
.faq {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #222;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Quitar el marcador nativo del <summary> */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 50px 20px 25px;
  font-weight: 600;
  font-size: 1.15rem;
  position: relative;
  user-select: none;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Flecha personalizada */
.faq-item summary::after {
  content: '❯';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.4rem;
  color: #007bff;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Hover en la pregunta */
.faq-item summary:hover {
  background-color: #f5f8ff;
}

/* Contenido de la respuesta (animación suave) */
.faq-item p {
  margin: 0;
  padding: 0 25px 10px 25px;
  line-height: 1.6;
  color: #444;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item[open] p {
  max-height: 400px; /* suficiente para la mayoría de respuestas */
  padding: 0 25px 25px 25px;
}

/* ==================== SECCIÓN CTA (LLAMADA A ACCIÓN) ==================== */
.software-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  color: #3f3f46;
  text-align: center;
}

.software-cta h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.software-cta .texto {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.95;
  text-align: center;
}

/* Contador de descargas */
.software-cta span {
  display: block;
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 600;
}

/* Manejo de formularios */
.register-form {
  padding: 6rem 0 8rem;
  background: var(--light);
}

.form-register {
  max-width: 460px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.membership-option {
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: #f0fdfa;
  border-radius: 8px;
  border: 1px solid #ccfbf1;
}

/* Formulario nueva pregunta */
.qa-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.qa-form h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.qa-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1.05rem;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1.2rem;
}

.qa-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}

.qa-form .btn {
  width: 100%;
  padding: 1rem;
}
.login-form {
  padding: 6rem 0 8rem;
  background: var(--light);
}

.form-login {
  max-width: 460px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.05rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: border 0.18s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--muted);
}

.checkbox-label input {
  width: auto;
}

.link {
  color: var(--primary);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.btn.full {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.1rem;
}

.form-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--muted);
}

/* Mensaje de error (opcional) */
.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

/* ==================== SECCIÓN CARACTERÍSTICAS ==================== */
/* ==================== SECCIÓN CARACTERÍSTICAS ==================== */
.features {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.features h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 60px;
  color: #1a1a1a;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.status-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.status-group h3 {
  font-size: 1.8rem;
  color: #007bff;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Contenedor de tarjetas por grupo */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* Tarjeta individual */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

/* Icono superior */
.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #007bff;
  line-height: 1;
}

/* Título y descripción */
.feature-card h4 {
  font-size: 1.35rem;
  margin: 0 0 14px 0;
  color: #222;
  font-weight: 600;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  color: #555;
  line-height: 1.65;
  font-size: 1.05rem;
}

/* ==================== SECCIÓN EJEMPLOS DE CÓDIGO ==================== */
.code-examples {
  padding: 80px 0;
  background-color: #ffffff;
}

.code-examples h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 60px;
  color: #1a1a1a;
  font-weight: 600;
}

/* Grid de tarjetas de código */
.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

/* Tarjeta de código individual */
.code-card {
  background: #0f1117;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  transition: all 0.25s ease;
  position: relative;
}

.code-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Contenedor del código */
.code-card pre {
  margin: 0;
  padding: 28px 32px;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #c9d1d9;
  scrollbar-width: thin;
  scrollbar-color: #444 #1e2028;
}

/* Scrollbar personalizado (WebKit) */
.code-card pre::-webkit-scrollbar {
  height: 8px;
}

.code-card pre::-webkit-scrollbar-track {
  background: #1e2028;
}

.code-card pre::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.code-card pre::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Paleta de colores para el código (minimalista y legible) */
.code-card code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  white-space: pre;
  display: block;
}

/* Resaltar palabras clave básicas (opcional, pero mejora mucho la legibilidad) */
.code-card code .keyword   { color: #ff79c6; }  /* purple */
.code-card code .string    { color: #50fa7b; }  /* green */
.code-card code .number    { color: #bd93f9; }  /* purple light */
.code-card code .function  { color: #8be9fd; }  /* cyan */
.code-card code .comment   { color: #6272a4; }  /* gray-blue */

/* Responsive */
@media (max-width: 768px) {
  .code-examples {
    padding: 60px 0;
  }

  .code-examples h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .code-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .code-card pre {
    padding: 24px 28px;
    font-size: 0.92rem;
  }
}

.apoyo-titulo {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1.2rem;
}

/* ESTILOS DE PLATAFORMA DE CURSADA */
/* Barra de progreso del curso */
.course-progress-bar {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.2rem;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.progress-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  max-width: 55%;
}

.progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--muted);
  width: 30%;
}

.progress-fill {
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  width: 200px;
  max-width: 100%;
}


/* Layout de cursada */
.course-player {
  padding: 4rem 0;
  background: var(--light);
}

.course-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.course-main {
  order: 1;
  padding: 0.4em;
}

/* Video */
.lesson-video {
  position: relative;
  padding-bottom: 56.25%;     /* 16:9 aspect ratio */
  height: 0;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.lesson-video .frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Contenido lección */
.lesson-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.lesson-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
}

.lesson-materials {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.lesson-materials h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.lesson-materials ul {
  list-style: none;
}

.lesson-materials li {
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.lesson-materials a {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.lesson-materials a:hover {
  text-decoration: underline;
}

.lesson-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sidebar módulos */
.course-sidebar {
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.course-sidebar h2 {
  font-size: 1.5em;
  margin-bottom: 1.2rem;
}

.modules-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.module summary {
  cursor: pointer;
  list-style: none;
}

.module-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem;
  background: #f8fafc;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
}

.module-progress {
  font-size: 0.9rem;
  color: var(--muted);
}

.lessons-list {
  list-style: none;
  padding: 0.5rem 0 0;
}

.lessons-list li {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}

.lessons-list li:last-child {
  border-bottom: none;
}

.lesson.completed a {
  color: var(--muted);
  cursor: pointer;
}

.lesson.current a {
  color: var(--primary);
  font-weight: 600;
}

.lessons-list a {
  text-decoration: none;
  color: var(--text);
}

/* Sección Q&A - limpia y destacada para instructor */
.qa-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

.qa-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.qa-intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.qa-thread {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.qa-question {
  margin-bottom: 1.5rem;
}

.qa-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.qa-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.qa-question p,
.qa-answer p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Resaltar respuesta del instructor */
.qa-answer.instructor {
  background: #f0fdfa;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.qa-no-answer {
  font-style: italic;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

/* Formulario nueva pregunta */
.qa-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.qa-form h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.qa-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1.05rem;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1.2rem;
}

.qa-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}

.qa-form .btn {
  width: 100%;
  padding: 1rem;
}
