/* =====================================================
   Control Maximo — Portada: tema Cielo & Oro + escena
   día/noche + tipografía + animaciones suaves
   (se carga al final para prevalecer)
   ===================================================== */

/* ---------- PALETA (día / claro por defecto) — "Arena & Ámbar" ---------- */
:root {
  --accent: #cf7d3c;       /* terracota / ámbar cálido (acento) */
  --accent-2: #e3a45e;
  --accent-dark: #a9601f;
  --ink: #2b2018;          /* títulos / texto fuerte (espresso cálido) */
  --text: #4d4038;         /* cuerpo */
  --muted: #8b7b6c;        /* secundario */
  --bg: #f7f0e6;           /* fondo de página (crema cálida) */
  --surface: #fffdf9;      /* tarjetas (blanco cálido) */
  --surface-2: #f2e9da;
  --border: rgba(43, 32, 24, 0.10);
  --shadow: 0 20px 50px rgba(74, 52, 30, 0.10);
  --ink-solid: #241a12;    /* constante oscuro (chips, eyes, etc.) */

  /* mapeo de variables usadas en sections.css */
  --cm-accent: var(--accent);
  --cm-accent-dark: var(--accent-dark);
  --cm-accent-soft: rgba(207, 125, 60, 0.12);  /* tinte ámbar suave */
  --cm-ink: var(--ink);
  --cm-muted: var(--muted);
  --cm-line: var(--border);
  --cm-shadow: var(--shadow);

  /* cielo (amanecer cálido) */
  --sky-top: #f6dab0;
  --sky-bottom: #f7f0e6;
}

/* ---------- PALETA (noche / oscuro) — espresso cálido ---------- */
html[data-theme="dark"] {
  --accent: #e9a85a;
  --accent-2: #f0bd7e;
  --accent-dark: #cf8a3c;
  --ink: #f4ebdf;
  --text: #d8cbbb;
  --muted: #9d8d7c;
  --bg: #17120d;
  --surface: #221a13;
  --surface-2: #1c1610;
  --border: rgba(255, 240, 225, 0.10);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.50);
  --cm-accent-soft: rgba(233, 168, 90, 0.14);  /* tinte ámbar suave */

  --sky-top: #2a1d12;
  --sky-bottom: #17120d;
}

/* ---------- TIPOGRAFÍA ---------- */
body, * {
  font-family: 'Inter', sans-serif;
}
h1, h2, h3, h4, h5, .navbar-brand, .section_head h3,
.business_heading h3, .payment_heading h3, .welcome_container h3,
.service-slide h1, .info_logo h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.6s ease, color 0.6s ease;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Superficies temáticas ---------- */
.top_container,
.about_section,
.practice_section,
.welcome_section {
  background-color: var(--bg) !important;
}

.solutions_section {
  background:
    radial-gradient(900px 460px at 88% -8%, var(--cm-accent-soft), transparent 60%),
    radial-gradient(760px 420px at -6% 108%, var(--cm-accent-soft), transparent 60%),
    var(--bg) !important;
}

.tool_card,
.solution_card,
.payment_card,
.tools_track span {
  background-color: var(--surface) !important;
  border-color: var(--border);
}
.tool_card { box-shadow: var(--shadow); }
.featured_payment {
  background: linear-gradient(180deg, var(--cm-accent-soft), var(--surface) 58%) !important;
}

/* texto base sobre fondo */
.business_heading p,
.payment_heading p,
.welcome_container p,
.tool_card p,
.solution_card p,
.payment_card p,
.service-slide p { color: var(--muted); }

/* fija elementos decorativos oscuros en ambos temas */
.payment-card::before,
.payment-card::after,
.pupil { background: var(--ink-solid) !important; }
.tool_card,
.solution_card,
.payment_card { background-color: var(--surface); }

/* máscara bajo el logo de la sección demo: sigue el fondo del tema */
.demo_image-box::after { background-color: var(--bg) !important; }
.eye { background-color: #ffffff !important; }

/* =====================================================
   HEADER transparente sobre el cielo
   ===================================================== */
.top_container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--bg) 80%) !important;
}
.header_section { background: transparent; }
nav.navbar.navbar-expand-lg { background: transparent !important; box-shadow: none; }
.header_section, .hero_section { position: relative; z-index: 3; }

@media (max-width: 992px) {
  .navbar-collapse.show, .navbar-collapse.collapsing {
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-top: 8px;
    backdrop-filter: blur(10px);
  }
}

/* logo: ícono + texto */
.navbar-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand_logo { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.brand_text { line-height: 1; }

/* logo dentro del loader */
.loader_logo { width: 92px; height: 92px; margin-bottom: 14px; object-fit: contain; }

/* la mascota tiene contorno oscuro fijo: en modo noche le damos un
   sutil halo claro para que resalte sobre el fondo oscuro */
html[data-theme="dark"] .brand_logo,
html[data-theme="dark"] .loader_logo {
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.9));
}

/* =====================================================
   ESCENA DE CIELO (sol/nubes · luna/estrellas)
   ===================================================== */
.sky_scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* --- Sol / Luna --- */
.sun_moon {
  position: absolute;
  top: 9%;
  right: 12%;
  width: 130px;
  height: 130px;
}

.sun, .moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* cambio día/noche instantáneo y fiable (el fondo sí hace fundido) */
  transition: none;
}

.sun {
  background-image: url('../images/soli.png');
  width: 300px;
  height: 300px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: breathe 7s ease-in-out infinite;
}

.moon {
  background: radial-gradient(circle at 38% 35%, #fff7ea 0%, #f3e3c8 45%, #d9c3a0 100%);
  box-shadow: 0 0 50px 12px rgba(245, 225, 190, 0.35), inset -16px -10px 0 -2px rgba(190, 165, 125, 0.30);
  opacity: 0;
}

/* cráteres de la luna */
.moon::before, .moon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(190, 165, 125, 0.45);
}
.moon::before { width: 22px; height: 22px; top: 28%; left: 30%; }
.moon::after { width: 14px; height: 14px; bottom: 26%; right: 32%; box-shadow: -26px -8px 0 -2px rgba(160,174,198,0.4); }

html[data-theme="dark"] .sun { opacity: 0; }
html[data-theme="dark"] .moon { opacity: 1; }
/* cráteres de la luna */
.moon::before, .moon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(190, 165, 125, 0.45);
}
.moon::before { width: 22px; height: 22px; top: 28%; left: 30%; }
.moon::after { width: 14px; height: 14px; bottom: 26%; right: 32%; box-shadow: -26px -8px 0 -2px rgba(160,174,198,0.4); }

html[data-theme="dark"] .sun { opacity: 0; }
html[data-theme="dark"] .moon { opacity: 1; }

/* --- Nubes esponjosas (día) --- */
.clouds { position: absolute; inset: 0; }
.clouds span {
  position: absolute;
  left: 0;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 70'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='34' cy='46' r='18'/%3E%3Ccircle cx='58' cy='32' r='25'/%3E%3Ccircle cx='86' cy='38' r='21'/%3E%3Ccircle cx='106' cy='48' r='15'/%3E%3Crect x='30' y='44' width='84' height='22' rx='11'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 12px 20px rgba(74, 52, 30, 0.10));
  will-change: transform;
}
.cloud-1 { width: 180px; height: 86px; top: 15%; opacity: 0.95; animation: floatCloud 50s linear infinite; }
.cloud-2 { width: 120px; height: 60px; top: 33%; opacity: 0.72; animation: floatCloud 74s linear infinite; animation-delay: -22s; }
.cloud-3 { width: 220px; height: 104px; top: 55%; opacity: 0.6;  animation: floatCloud 62s linear infinite; animation-delay: -40s; }
.cloud-4 { width: 100px; height: 50px; top: 9%;  opacity: 0.5;  animation: floatCloud 88s linear infinite; animation-delay: -12s; }

html[data-theme="dark"] .clouds { opacity: 0; }

/* --- Estrellas (noche) --- */
.stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 24%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 28% 12%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 44% 30%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 58% 16%, #cfe0ff, transparent),
    radial-gradient(1.6px 1.6px at 70% 38%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 82% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 46%, #cfe0ff, transparent),
    radial-gradient(1.2px 1.2px at 18% 52%, #fff, transparent),
    radial-gradient(1.7px 1.7px at 36% 60%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 66% 58%, #fff, transparent);
}
/* las estrellas solo aparecen y titilan en modo noche
   (así la animación no las muestra de día) */
html[data-theme="dark"] .stars {
  opacity: 1;
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

/* en pantallas pequeñas el sol/luna se hace discreto: arriba a la
   derecha, pequeño y tenue, para no taparse con el titular */
@media (max-width: 992px) {
  .sun_moon { top: 70px; right: -28px; width: 90px; height: 90px; opacity: 0.85; }
  .sun { width: 150px; height: 150px; }
  .clouds span { opacity: 0.35 !important; }
}

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes floatCloud {
  0%   { transform: translate(-28vw, 0); }
  25%  { transform: translate(12vw, -12px); }
  50%  { transform: translate(48vw, 0); }
  75%  { transform: translate(85vw, -12px); }
  100% { transform: translate(126vw, 0); }
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }

/* =====================================================
   HERO A PANTALLA COMPLETA (100vh)
   ===================================================== */
.top_container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero_section {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}
.hero_section-container {
  margin: 0 auto !important;   /* centrado vertical via flex; quita el margen superior */
  padding: 30px 0 70px;
}

/* =====================================================
   COLLAGE HUMANO DEL HERO (fotos reales + tarjetas)
   ===================================================== */
.hero_collage {
  position: relative;
  width: 100%;
  max-width: 470px;
  min-height: 460px;
  margin: 0 auto;
}
.hero_blob {
  position: absolute;
  inset: -10%;
  z-index: 0;
  border-radius: 44px;
  background: radial-gradient(circle at 60% 40%, rgba(207, 125, 60, 0.18), transparent 66%);
  filter: blur(10px);
  animation: breathe 8s ease-in-out infinite;
}
.hc_photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-2);
  box-shadow: 0 26px 60px rgba(74, 52, 30, 0.16);
  border: 4px solid var(--surface);
}
.hc_photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc_photo--main {
  width: 58%; height: 72%;
  top: 4%; left: 0; z-index: 1;
  animation: floatSlow 7s ease-in-out infinite;
}
.hc_photo--sub {
  width: 52%; height: 54%;
  right: 0; bottom: 0; z-index: 2;
  animation: floatSlow 8.5s ease-in-out infinite reverse;
}

/* tarjetas flotantes de datos */
.hc_card {
  position: absolute;
  z-index: 4;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 42px rgba(74, 52, 30, 0.16);
  white-space: nowrap;
}
.hc_card small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.hc_card b { font-size: 14px; color: var(--ink); font-weight: 800; }
.hc_card .up { color: #10b981; font-size: 11px; font-style: normal; }
.hc_avatar, .hc_thumb, .hc_icon {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--surface-2);
}
.hc_avatar { border-radius: 50%; }
.hc_thumb, .hc_icon { border-radius: 10px; border: 1px solid var(--border); }
.hc_avatar img, .hc_thumb img, .hc_icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hc_card--sales { left: -7%; top: 40%; animation: cardBob 5s ease-in-out infinite; }
.hc_card--stock { right: -9%; top: 8%;  animation: cardBob 6s ease-in-out infinite 0.4s; }
.hc_card--order { left: 14%; bottom: -5%; animation: cardBob 5.6s ease-in-out infinite 0.8s; }

@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes cardBob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 1199px) {
  .hero_collage { max-width: 420px; min-height: 420px; }
}
@media (max-width: 992px) {
  .top_container { min-height: auto; }   /* en móvil/tablet el hero ya no fuerza 100vh */
  .hero_section { display: block; }
}
@media (max-width: 768px) {
  .hero_collage { max-width: 360px; min-height: 400px; margin-top: 10px; }
}
@media (max-width: 480px) {
  .hero_collage { max-width: 300px; min-height: 360px; }
  .hc_card { padding: 9px 12px; gap: 8px; }
  .hc_card small { font-size: 9.5px; }
  .hc_card b { font-size: 12.5px; }
  .hc_card--sales { left: -4%; }
  .hc_card--stock { right: -4%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero_collage *, .clouds span { animation: none !important; }
}

/* =====================================================
   HERO ESTÁTICO (sin carrusel) — minimal y claro
   ===================================================== */
.hero_static {
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding-left: 0;
  max-width: 640px;
}
.hero_static .service-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(74, 52, 30, 0.08);
}
.hero_static h1 {
  margin: 6px 0 0;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
}
.hero_accent {
  background: linear-gradient(100deg, var(--accent-dark), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero_static p {
  margin: 20px 0 26px !important;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.hero_static .service-features { margin-bottom: 30px; max-width: none; }
.hero_static .service-features span {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}
.hero_actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.hero_actions .call_to-btn { margin: 0; }
.hero_link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-dark);
  transition: gap 0.25s ease, color 0.25s ease;
}
.hero_link:hover { color: var(--accent); gap: 12px; text-decoration: none; }

/* entrada escalonada y suave del hero */
.hero_static > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero_static .service-badge   { animation-delay: 0.05s; }
.hero_static h1               { animation-delay: 0.15s; }
.hero_static p                { animation-delay: 0.28s; }
.hero_static .service-features{ animation-delay: 0.40s; }
.hero_static .hero_actions    { animation-delay: 0.52s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (max-width: 992px) {
  .hero_static { margin-left: 0; padding-left: 0; }
}
@media (max-width: 768px) {
  .hero_static {
    margin: 0 auto;
    padding: 18px 6px 0;
    text-align: center;
  }
  .hero_static p { margin-left: auto !important; margin-right: auto !important; }
  .hero_static .service-features { justify-content: center; }
  .hero_actions { justify-content: center; flex-direction: column; gap: 16px; }
  .hero_actions .call_to-btn { width: 100%; max-width: 320px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero_static > * { animation: none; opacity: 1; transform: none; }
}

/* =====================================================
   TOGGLE de tema
   ===================================================== */
.theme_toggle {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.theme_toggle:hover { transform: rotate(18deg) scale(1.06); border-color: var(--accent); }
.theme_toggle svg { width: 20px; height: 20px; }
.theme_toggle .icon_moon { display: none; }
html[data-theme="dark"] .theme_toggle .icon_sun { display: none; }
html[data-theme="dark"] .theme_toggle .icon_moon { display: inline; }

/* =====================================================
   ANIMACIONES MÁS SUAVES (menos saturado, más elegante)
   ===================================================== */
/* glow del slide: más sutil y lento */
.service-slide {
  background: linear-gradient(135deg, var(--surface), var(--surface-2)) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
html[data-theme="dark"] .service-slide {
  background: linear-gradient(135deg, rgba(40, 30, 20, 0.82), rgba(28, 21, 14, 0.82)) !important;
}
.service-slide::before {
  background: radial-gradient(circle, var(--cm-accent-soft), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
.service-slide::after { animation: floatSoft 7s ease-in-out infinite; opacity: 0.5; }
.service-visual { opacity: 0.9; }
html[data-theme="dark"] .service-visual { opacity: 0.55; }
.service-badge { background-color: var(--surface); color: var(--ink); }
.service-features span { color: var(--ink); }

/* marquee de herramientas: más lento y elegante */
.tools_track { animation-duration: 46s; }
.tools_marquee::before { background: linear-gradient(to right, var(--bg), rgba(0,0,0,0)); }
.tools_marquee::after { background: linear-gradient(to left, var(--bg), rgba(0,0,0,0)); }

/* botones: oro refinado con degradado suave */
.call_to-btn, .sub_call_to-btn, .nav_demo-btn {
  background-image: linear-gradient(135deg, var(--accent-2), var(--accent)) !important;
  color: var(--ink-solid) !important;
  box-shadow: 0 12px 28px rgba(224, 163, 62, 0.26);
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-8px) rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sun, .clouds span, .stars, .service-slide::before, .service-slide::after { animation: none !important; }
}

/* =====================================================
   FOOTER compacto y organizado
   ===================================================== */
.info_section {
  padding: 52px 0 0 !important;
  background-color: #1c1610 !important;
}
.footer_grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 30px;
}
.footer_brand h2 { margin: 0 0 12px; font-size: 26px; color: #ffffff; }
.footer_brand p {
  margin: 0 0 18px;
  max-width: 330px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.6;
}
.footer_social { display: flex; gap: 10px; }
.footer_social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer_social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer_social img { width: 15px; height: 15px; object-fit: contain; filter: brightness(0) invert(1); }
.footer_col h5 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer_col a, .footer_col span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer_col a:hover { color: var(--accent); }
.footer_bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
}
@media (max-width: 768px) {
  .footer_grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .footer_brand p { margin-left: auto; margin-right: auto; }
  .footer_social { justify-content: center; }
  .footer_bottom { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
}

/* =====================================================
   WIDGET DE WHATSAPP — chat dentro de la página
   ===================================================== */
.wa_widget {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 999990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
body:not(.page-ready) .wa_widget { display: none; }

/* botón circular flotante (compacto, discreto) */
.wa_fab {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  animation: waPulse 2.6s ease-out infinite;
  transition: transform 0.25s ease;
}
.wa_fab:hover { transform: scale(1.08); }
.wa_fab svg { width: 32px; height: 32px; fill: #ffffff; }
.wa_fab .wa_ic_close { display: none; color: #fff; font-size: 30px; line-height: 1; }
.wa_widget.open .wa_fab .wa_ic_chat { display: none; }
.wa_widget.open .wa_fab .wa_ic_close { display: block; }
.wa_widget.open .wa_fab { animation: none; }
@keyframes waPulse {
  0%   { box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ventana de chat (estilo WhatsApp) */
.wa_popup {
  width: 320px;
  max-width: calc(100vw - 40px);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa_widget.open .wa_popup { opacity: 1; pointer-events: auto; transform: none; }

.wa_pop_head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: #0e8a6e; color: #fff; }
.wa_pop_avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wa_pop_avatar svg { width: 24px; height: 24px; fill: #fff; }
.wa_pop_titles b { display: block; font-size: 15px; font-weight: 700; }
.wa_pop_titles span { font-size: 12px; opacity: 0.85; }
.wa_pop_close { margin-left: auto; background: transparent; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }

.wa_pop_body { padding: 16px; background: #e8e2da; }
.wa_bubble { background: #fff; padding: 11px 14px; border-radius: 2px 12px 12px 12px; font-size: 13.5px; color: #222; line-height: 1.5; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); margin-bottom: 12px; }
.wa_pop_body input, .wa_pop_body textarea {
  width: 100%;
  border: 1px solid #d6d0c8;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 13.5px;
  color: #222;
  background: #fff;
  outline: none;
  resize: none;
}
.wa_pop_body input:focus, .wa_pop_body textarea:focus { border-color: #25d366; }
.wa_pop_send { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #25d366; color: #fff; font-weight: 800; font-size: 14px; transition: background 0.2s ease; }
.wa_pop_send:hover { color: #fff; background: #1eb558; }
.wa_pop_send svg { width: 20px; height: 20px; fill: #fff; }

@media (max-width: 576px) {
  .wa_widget { right: 14px; bottom: 14px; }
  .wa_fab { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .wa_fab { animation: none; } }

/* hamburguesa del menú: invisible en modo noche (icono oscuro sobre fondo oscuro) */
html[data-theme="dark"] .custom_nav-container .navbar-toggler .navbar-toggler-icon {
  filter: invert(1) brightness(1.7);
}

/* loader más suave (cielo en vez de escáner) */
.scanner-loader { background: linear-gradient(180deg, var(--sky-top), var(--bg)) !important; }
.scanner-panel { background: var(--surface) !important; box-shadow: var(--shadow) !important; }
.scanner-frame {
  border: 1px solid var(--border) !important;
  background: var(--surface-2) !important;
}
.scanner-frame h2 { color: var(--ink) !important; }
.scanner-frame p { color: var(--muted) !important; }
.scanner-line {
  background: linear-gradient(to bottom, transparent, rgba(240, 182, 80, 0.5), transparent) !important;
  box-shadow: 0 0 28px rgba(240, 182, 80, 0.5) !important;
  animation-duration: 2.6s !important;
}
.scanner-corners::before, .scanner-corners::after { border-color: var(--accent) !important; }

/* =====================================================
   REFINAMIENTO UI — contenedores fluidos, jerarquía de
   botones, toggle más fino y tipografía más medida
   (bloque al final: prevalece sobre el resto)
   ===================================================== */

/* 1) Contenedores fluidos y consistentes: crecen con la pantalla
      pero se mantienen centrados y no se "rompen" en monitores anchos */
/* El hero comparte EXACTAMENTE los anchos de .container en cada
   breakpoint, para que el cuerpo cuadre siempre con el header
   (incluido al hacer zoom). */
.hero_section-container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
@media (min-width: 1200px) {
  .container { max-width: 1180px; }
}
@media (max-width: 1199.98px) { .hero_section-container { max-width: 960px; } }
@media (max-width: 991.98px)  { .hero_section-container { max-width: 720px; } }
@media (max-width: 767.98px)  { .hero_section-container { max-width: 540px; } }
@media (max-width: 575.98px)  { .hero_section-container { max-width: 100%; } }
@media (min-width: 1700px) {
  /* en pantallas muy anchas damos un respiro extra sin desbordar */
  .hero_section-container,
  .container { max-width: 1280px; }
}

/* 2) Tipografía más fina y presentable (sin tamaños exagerados) */
.hero_static h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; }
.hero_static p  { font-size: 16px; }
.section_head h3,
.business_heading h3,
.payment_heading h3 { font-size: clamp(26px, 2.9vw, 36px); line-height: 1.18; }
.welcome_container h3 { font-size: clamp(24px, 2.5vw, 32px); }

/* 3) Jerarquía de botones: el CTA y el botón del menú ya NO son iguales.
      CTA principal (Solicita una demo / Ver más): ámbar sólido. */
.call_to-btn, .sub_call_to-btn {
  background-image: linear-gradient(135deg, var(--accent-2), var(--accent)) !important;
  color: var(--ink-solid) !important;
  box-shadow: 0 10px 24px rgba(207, 125, 60, 0.28);
}
/*    Botón "Únete" del menú: contorno fino y limpio, se rellena al pasar el cursor */
.nav_demo-btn {
  background-image: none !important;
  background-color: transparent !important;
  color: var(--accent-dark) !important;
  border: 1.5px solid var(--accent) !important;
  box-shadow: none !important;
}
.nav_demo-btn:hover {
  background-image: linear-gradient(135deg, var(--accent-2), var(--accent)) !important;
  color: var(--ink-solid) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 22px rgba(207, 125, 60, 0.30) !important;
}

/* 4) Toggle día/noche: más fino, sin borde marcado ni sombra pesada */
.theme_toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(74, 52, 30, 0.10);
}
.theme_toggle svg { width: 18px; height: 18px; }

/* =====================================================
   5) CARGADOR INICIAL — compacto, minimal y profesional
   (anula el estilo "escáner" anterior con markup nuevo)
   ===================================================== */
.cm-loader {
  background: linear-gradient(180deg, var(--sky-top), var(--bg)) !important;
}
.cm-loader__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cmLoaderIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* marco de escáner compacto: esquinas + haz que barre el logo */
.cm-loader__scan {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
/* esquinas del visor (estilo escáner) */
.cm-loader__scan::before,
.cm-loader__scan::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
  z-index: 3;
}
.cm-loader__scan::before { top: 7px; left: 7px; border-width: 2px 0 0 2px; border-top-left-radius: 5px; }
.cm-loader__scan::after { bottom: 7px; right: 7px; border-width: 0 2px 2px 0; border-bottom-right-radius: 5px; }
/* haz de luz que recorre el visor de arriba a abajo */
.cm-loader__beam {
  position: absolute;
  left: 0;
  width: 100%;
  height: 18px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 75%, transparent), transparent);
  box-shadow: 0 0 16px 2px color-mix(in srgb, var(--accent) 55%, transparent);
  animation: cmScan 1.5s ease-in-out infinite;
}
.cm-loader__logo {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  object-fit: contain;
  animation: cmPulse 1.6s ease-in-out infinite;
}
.cm-loader__brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cm-loader__bar {
  position: relative;
  width: 116px;
  height: 3px;
  border-radius: 50px;
  overflow: hidden;
  background: var(--border);
}
.cm-loader__bar span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  animation: cmBar 1.15s ease-in-out infinite;
}
@keyframes cmSpin { to { transform: rotate(360deg); } }
@keyframes cmScan {
  0%   { top: -20%; }
  50%  { top: 100%; }
  100% { top: -20%; }
}
@keyframes cmPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes cmBar {
  0%   { left: -45%; width: 45%; }
  50%  { width: 55%; }
  100% { left: 100%; width: 45%; }
}
@keyframes cmLoaderIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cm-loader__logo, .cm-loader__bar span, .cm-loader__beam { animation: none; }
}

/* =====================================================
   6) CURSOR PERSONALIZADO — punto + anillo (estilo pro)
   solo en dispositivos con mouse real
   ===================================================== */
.cm-cursor-dot,
.cm-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 2147483647;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cm-cursor-dot {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--accent);
  transition: opacity 0.2s ease, transform 0.12s ease;
}
.cm-cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent);
  transition: width 0.22s ease, height 0.22s ease, margin 0.22s ease,
              background-color 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}
/* al pasar sobre algo interactivo: el anillo crece y se tiñe, el punto se oculta */
body.cm-cursor-hover .cm-cursor-ring {
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent);
}
body.cm-cursor-hover .cm-cursor-dot { opacity: 0; }
body.cm-cursor-down .cm-cursor-ring { transform: translate(var(--cx, 0), var(--cy, 0)) scale(0.85); }

/* oculta el cursor nativo solo cuando hay mouse fino (no en táctil) */
@media (hover: hover) and (pointer: fine) {
  html.cm-has-cursor,
  html.cm-has-cursor a,
  html.cm-has-cursor button,
  html.cm-has-cursor .nav_demo-btn,
  html.cm-has-cursor .theme_toggle { cursor: none; }
  /* en campos de texto se conserva el cursor de escritura */
  html.cm-has-cursor input,
  html.cm-has-cursor textarea { cursor: text; }
}
