:root {
  --primary: #FF6B00; /* Naranja muy vibrante acorde al logo */
  --primary-hover: #E65A00;
  --primary-soft: rgba(255, 107, 0, 0.1);
  --bg: #FDFCFB; /* Marfil sutil estilo SaaS */
  --text: #1F2937; /* Gris muy oscuro para texto */
  --title: #111827; /* Gris casi negro para títulos */
  --muted: #6B7280; /* Gris para textos secundarios */
  --line: #E5E7EB; /* Gris claro para bordes */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra suave */
  --header-height: 80px;
}

/* Reinicio de Estilos Globales con Enfoque Responsivo */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sistema de Contenedores y Grid */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header con Efecto Blur Premium */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.nav-wrap {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  height: clamp(34px, 5vw, 42px);
  width: auto;
  object-fit: contain;
}

.header-logo img {
  height: auto;
  width: 155px; /* Tamaño idéntico al de registro */
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 32px; /* Mayor espaciado entre items */
}

.main-menu a {
  font-size: 14px;
  font-weight: 700; /* Texto más negrita y legible */
  color: #374151; /* Gris oscuro idéntico a la referencia */
}

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

/* Selector de Idioma (ES) */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  margin-left: 8px;
}

.lang-switcher i {
  font-size: 10px;
  color: #9CA3AF;
}

/* Botonera Estilo Píldora Moderno */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px; /* Pill shaped */
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary {
  background: var(--primary);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--primary-soft);
  margin-left: 20px; /* Separación extra para el botón final */
}

/* Dropdowns Optimizados */
.join-dropdown { position: relative; }
.join-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.1);
  display: none;
  min-width: 220px;
}
.join-menu.open { display: block; animation: slideUp 0.3s ease-out; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sección Hero: Enfoque Centrado y Expansivo */
.hero {
  padding: clamp(80px, 12vw, 140px) 0 60px;
  background: radial-gradient(circle at top, #fdf2e9 0%, transparent 60%);
  text-align: center;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto 60px;
}

.pill {
  display: inline-flex;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-copy p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 40px;
}

.cta-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-media {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

.hero-mockup {
  transform: rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mockup:hover {
  transform: rotateX(0deg);
}

/* Secciones Generales */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.kicker {
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Tarjetas Informativas con Sombras Premium */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 20px;
  transition: all 0.4s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.06);
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--title);
}

/* Barra de Estadísticas Única (KPIs) */
.muycerk-stats-bar {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 30px 60px rgba(0,0,0,0.04);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: var(--line);
}

.stat-item .num {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item .lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Rediseño de Saber Más (Botones Naranjas Corregidos) */
.btn-pill-sm {
  background: var(--primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  transition: 0.3s;
  display: inline-block;
  margin-top: 16px;
  box-shadow: 0 4px 10px var(--primary-soft);
}

.btn-pill-sm:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Alineación de Diversidad siempre centrada */
.module-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.module-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.module-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.module-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--primary-soft);
  border-radius: 16px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.module-icon-wrapper.fallback {
  background: #f1f1f1;
}

.module-icon {
  width: 32px;
  height: auto;
  object-fit: contain;
}

.module-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* Grid para Secciones de Funcionalidades (2 Columnas: Texto | Imagen) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

@media (max-width: 991px) {
  .feature-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

/* Footer Oscuro SaaS */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 20px; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* Responsividad Estricta: 100% Fluid */
.menu-toggle { display: none; }

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  #heroSubtitle { margin: 0 auto 32px; }
  .cta-grid { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
    background: var(--primary-soft);
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    color: var(--primary);
    font-weight: 700;
  }

  .main-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 15px;
    right: 15px;
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .main-menu.open { display: flex; animation: slideUp 0.3s ease; }
  .main-menu a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .join-dropdown { width: 100%; }
}

@media (max-width: 480px) {
  .cta-grid .btn { width: 100%; }
  .section { padding: 48px 0; }
}

/* Animación de Revelado en Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Skeleton Loaders para mejor UX en carga de API */
.skeleton {
  background: #f3f4f6;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
  min-height: 100px;
  border-radius: 12px;
}

@keyframes shine { to { background-position-x: -200%; } }