/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --bg: #05060f;
  --bg2: #080b18;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border2: rgba(0,212,170,0.25);
  --text: #eef0ff;
  --muted: rgba(238,240,255,0.5);
  --hint: rgba(238,240,255,0.22);
  --teal: #00d4aa;
  --teal2: #00b896;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --grad-teal: linear-gradient(135deg, #00d4aa, #0ea5e9);
  --grad-purple: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}
[data-theme="light"] {
  --bg: #eef4f2;
  --bg2: #e2eeea;
  --surface: rgba(255,255,255,0.80);
  --surface2: rgba(255,255,255,0.92);
  --border: rgba(0,0,0,0.09);
  --border2: rgba(0,160,120,0.3);
  --text: #0a0e1a;
  --muted: rgba(10,14,26,0.58);
  --hint: rgba(10,14,26,0.35);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
* { -webkit-overflow-scrolling: auto; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.4s, color 0.3s;
}
[data-theme="light"] body {
  background: linear-gradient(160deg, #e8f5f1 0%, #edf4f8 50%, #ede8f8 100%) !important;
  background-attachment: fixed !important;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ===========================
   BG EFFECTS
=========================== */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: drift 22s ease-in-out infinite alternate;
  transition: background 2.45s cubic-bezier(0.42, 0, 0.58, 1), opacity 2s ease, filter 2s ease;
}
[data-theme="light"] .orb { opacity: 0.22; filter: blur(90px); }
.orb-1 { width: 700px; height: 700px; background: #00d4aa; top: -200px; left: -200px; }
.orb-2 { width: 600px; height: 600px; background: #3b82f6; top: 40%; right: -200px; animation-delay: -8s; }
.orb-3 { width: 500px; height: 500px; background: #8b5cf6; bottom: 0; left: 20%; animation-delay: -16s; }
.orb-4 { width: 400px; height: 400px; background: #00d4aa; bottom: -100px; right: 5%; animation-delay: -4s; opacity: 0.07; }
[data-theme="light"] .orb-1 { background: #00c49a; width: 800px; height: 800px; }
[data-theme="light"] .orb-2 { background: #2563eb; width: 700px; height: 700px; }
[data-theme="light"] .orb-3 { background: #7c3aed; width: 600px; height: 600px; }
[data-theme="light"] .orb-4 { background: #f97316; width: 500px; height: 500px; opacity: 0.12; }
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(50px, 70px) scale(1.12); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,170,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
main { position: relative; z-index: 1; }
section[id] { scroll-margin-top: 96px; }

/* Sección activa nítida; el resto difuminado (al cambiar de bloque al hacer scroll) */
main > section[id] {
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
main > section[id]:not(.section-in-focus) {
  opacity: 0.5;
  filter: blur(3px) saturate(0.92) brightness(0.97);
  transform: scale(0.998);
}
main > section[id].section-in-focus {
  opacity: 1;
  filter: none;
  transform: scale(1);
}
@media (max-width: 768px) {
  main > section[id],
  main > section[id]:not(.section-in-focus),
  main > section[id].section-in-focus {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  main > section[id],
  main > section[id]:not(.section-in-focus),
  main > section[id].section-in-focus {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Ambiente por sección: muy sutil (transiciones largas, poca intensidad) */
.section-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.26;
  transition: background 2.6s cubic-bezier(0.42, 0, 0.58, 1), opacity 2.2s ease;
  background:
    radial-gradient(ellipse 95% 58% at 50% -5%, rgba(0, 212, 170, 0.14), transparent 60%),
    radial-gradient(ellipse 62% 48% at 88% 58%, rgba(59, 130, 246, 0.08), transparent 58%);
}
[data-theme="light"] .section-scrim {
  mix-blend-mode: multiply;
  opacity: 0.11;
}
@media (prefers-reduced-motion: reduce) {
  .section-scrim, .orb { transition-duration: 0.15s !important; }
}

html[data-section="hero"] .section-scrim {
  background:
    radial-gradient(ellipse 100% 62% at 50% 2%, rgba(0, 212, 170, 0.16), transparent 58%),
    radial-gradient(ellipse 58% 42% at 14% 78%, rgba(139, 92, 246, 0.06), transparent 52%);
}
html[data-section="pos"] .section-scrim {
  background:
    radial-gradient(ellipse 78% 52% at 22% 38%, rgba(14, 165, 233, 0.14), transparent 56%),
    radial-gradient(ellipse 68% 48% at 88% 68%, rgba(0, 212, 170, 0.09), transparent 54%);
}
html[data-section="funciones"] .section-scrim {
  background:
    radial-gradient(ellipse 72% 58% at 54% 28%, rgba(139, 92, 246, 0.13), transparent 54%),
    radial-gradient(ellipse 52% 42% at 12% 82%, rgba(59, 130, 246, 0.08), transparent 50%);
}
html[data-section="planes"] .section-scrim {
  background:
    radial-gradient(ellipse 85% 52% at 50% 96%, rgba(245, 158, 11, 0.11), transparent 56%),
    radial-gradient(ellipse 58% 46% at 82% 18%, rgba(0, 212, 170, 0.1), transparent 52%);
}
html[data-section="faq"] .section-scrim {
  background:
    radial-gradient(ellipse 68% 52% at 42% 42%, rgba(99, 102, 241, 0.11), transparent 56%),
    radial-gradient(ellipse 52% 42% at 94% 86%, rgba(148, 163, 184, 0.07), transparent 52%);
}
html[data-section="contacto"] .section-scrim {
  background:
    radial-gradient(ellipse 78% 58% at 50% 100%, rgba(0, 212, 170, 0.14), transparent 56%),
    radial-gradient(ellipse 48% 38% at 4% 32%, rgba(236, 72, 153, 0.06), transparent 52%);
}

html[data-section="pos"] .navbar-custom { border-bottom-color: rgba(14, 165, 233, 0.14); }
html[data-section="funciones"] .navbar-custom { border-bottom-color: rgba(139, 92, 246, 0.15); }
html[data-section="planes"] .navbar-custom { border-bottom-color: rgba(245, 158, 11, 0.14); }
html[data-section="faq"] .navbar-custom { border-bottom-color: rgba(99, 102, 241, 0.14); }
html[data-section="contacto"] .navbar-custom { border-bottom-color: rgba(0, 212, 170, 0.16); }
html[data-section="hero"] .navbar-custom { border-bottom-color: var(--border); }

html[data-section="pos"] .section-dot.active {
  background: #22a3c9; border-color: #22a3c9;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.28);
}
html[data-section="funciones"] .section-dot.active {
  background: #7c6bbd; border-color: #7c6bbd;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.26);
}
html[data-section="planes"] .section-dot.active {
  background: #d4a054; border-color: #d4a054;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.26);
}
html[data-section="faq"] .section-dot.active {
  background: #5b5eb8; border-color: #5b5eb8;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.26);
}
html[data-section="contacto"] .section-dot.active {
  background: #12a894; border-color: #12a894;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.26);
}

/* Marca de agua global en secciones sin ::before propio */
#planes, #faq, #contacto section, #pos {
  position: relative;
}
#planes::before, #faq::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background-image: url('sisstar3.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] #planes::before,
[data-theme="light"] #faq::before {
  opacity: 0.13;
  filter: sepia(0.3) saturate(1.4) hue-rotate(-5deg);
}

/* ===========================
   NAVBAR
=========================== */
.navbar-custom {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 90px;
  display: flex; align-items: center;
  padding: 0 2rem;
  background: rgba(5,6,15,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 2.3s cubic-bezier(0.42, 0, 0.58, 1);
}
[data-theme="light"] .navbar-custom {
  background: rgba(238,248,244,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,160,120,0.15);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  letter-spacing: -1px;
  color: var(--text); text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 60px; height: 60px; border-radius: 10px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; overflow: hidden; flex-shrink: 0;
}
.nav-links-center {
  display: flex; align-items: center; gap: 2rem;
  margin-left: auto; margin-right: 1.5rem;
}
.nav-links-center a {
  font-size: 14px; color: var(--muted); font-weight: 600;
  font-family: var(--font-display);
  transition: color 0.2s; position: relative;
}
.nav-links-center a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--teal); transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links-center a:hover { color: var(--text); }
.nav-links-center a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-theme {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.btn-theme:hover { color: var(--teal); border-color: var(--border2); }
.btn-nav-cta {
  background: var(--grad-teal); color: #000 !important;
  padding: 8px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* ===========================
   SECTION SEPARATORS
=========================== */
section { position: relative; }
.section-divider {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.3;
}
.section-top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  opacity: 0.5;
}

/* ===========================
   REUSABLE COMPONENTS
=========================== */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--teal);
  text-transform: uppercase; letter-spacing: 2.5px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.section-label::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--teal);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.section-sub {
  font-size: 17px; color: var(--muted);
  line-height: 1.75; font-weight: 300;
  position: relative;
  z-index: 1;
}

/* Entrada al seccionar: fade + slide + línea bajo el título (IntersectionObserver → .is-visible) */
.section-intro-reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
}
.section-intro-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.section-intro-reveal .section-title,
.section-intro-reveal > h2 {
  position: relative;
}
.section-intro-reveal .section-title::after,
.section-intro-reveal > h2::after {
  content: none;
}
.section-intro-reveal.is-visible .section-title::after,
.section-intro-reveal.is-visible > h2::after {
  content: none;
}
#pos .section-intro-reveal .section-title,
#funciones .section-intro-reveal .section-title,
#planes .section-intro-reveal .section-title,
#faq .section-intro-reveal .section-title,
#contacto .section-intro-reveal h2.section-title {
  min-height: 2.75em;
}
@media (prefers-reduced-motion: reduce) {
  .section-intro-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .section-intro-reveal .section-title::after,
  .section-intro-reveal > h2::after {
    transform: translateX(-50%) scaleX(1);
    transition: none;
  }
}
.grad-teal {
  background: var(--grad-teal);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-purple {
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  border-color: rgba(0,212,170,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-teal); color: #000;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 0 30px rgba(0,212,170,0.3);
}
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,212,170,0.5); color: #000; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2); color: var(--text);
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer; transition: all 0.25s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: var(--text); }

/* ===========================
   HERO SECTION
=========================== */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 2rem 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,170,0.07) 0%, transparent 70%);
}
[data-theme="light"] #hero {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,180,140,0.10) 0%, transparent 70%);
}
#hero::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background-image: url('sisstar3.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] #hero::before {
  opacity: 0.18;
  filter: sepia(0.3) saturate(1.4) hue-rotate(-5deg);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,212,170,0.3);
  background: rgba(0,212,170,0.08);
  color: var(--teal);
  font-size: 13px; font-weight: 500;
  padding: 6px 18px; border-radius: 100px;
  margin-bottom: 2rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 950px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
/* Altura fija para el span del typewriter — evita que el h1 cambie de alto al escribir/borrar */
#hero h1 .typewriter-line {
  display: block;
  min-height: 1.1em;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted); max-width: 560px;
  margin: 0 auto 3rem; line-height: 1.75; font-weight: 300;
  position: relative;
  z-index: 1;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 4rem; position: relative; z-index: 1; }
.hero-stats {
  display: flex; gap: 2px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.hero-stat {
  background: var(--surface); padding: 20px 36px;
  text-align: center; flex: 1; min-width: 130px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.stat-val {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  background: var(--grad-teal);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1;
}
.stat-label { font-size: 11px; color: var(--hint); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.social-proof-bar {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}
.social-proof-bar::before,
.social-proof-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.social-proof-bar::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.social-proof-bar::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}
.social-label {
  font-size: 10px; color: var(--hint);
  text-transform: uppercase; letter-spacing: 2px;
  text-align: center; margin-bottom: 14px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.social-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--muted); letter-spacing: -0.3px;
  padding: 0 2.8rem;
  white-space: nowrap;
  transition: color 0.2s;
  border-right: 1px solid var(--border);
  cursor: default;
}
.social-logo:last-child { border-right: none; }
.social-logo:hover { color: var(--teal); }
.social-logo .logo-emoji {
  font-size: 22px;
  filter: grayscale(0.2);
  transition: transform 0.2s;
}
.social-logo:hover .logo-emoji { transform: scale(1.2); }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   POS SECTION
=========================== */
#pos {
  padding: 120px 2rem;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(59,130,246,0.05) 30%,
    rgba(59,130,246,0.08) 50%,
    rgba(59,130,246,0.05) 70%,
    transparent 100%);
  border-top: 1px solid rgba(59,130,246,0.08);
  border-bottom: 1px solid rgba(59,130,246,0.08);
}
#pos::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background-image: url('sisstar3.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] #pos::before {
  opacity: 0.13;
  filter: sepia(0.3) saturate(1.4) hue-rotate(-5deg);
}
[data-theme="light"] #pos {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(59,130,246,0.06) 30%,
    rgba(59,130,246,0.10) 50%,
    rgba(59,130,246,0.06) 70%,
    transparent 100%);
  border-top: 1px solid rgba(59,130,246,0.12);
  border-bottom: 1px solid rgba(59,130,246,0.12);
}
.pos-frame-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
/* Glow de fondo — el "brillo emanando del monitor" */
.pos-frame-wrapper::before {
  content: '';
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0,212,170,0.22) 0%,
    rgba(59,130,246,0.14) 40%,
    transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(18px);
}
/* Al aparecer en scroll: glow suave (base) */
.pos-frame-wrapper.pos-frame-visible::before {
  opacity: 0.35;
}
/* Al hover: glow fuerte, igual que contact-box */
.pos-frame-wrapper.pos-frame-visible:hover::before {
  opacity: 1;
}

/* Línea de luz en la base */
.pos-frame-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 10%; right: 10%;
  height: 60px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%,
    rgba(0,212,170,0.30) 0%,
    transparent 100%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pos-frame-wrapper.pos-frame-visible::after {
  opacity: 0.3;
}
.pos-frame-wrapper.pos-frame-visible:hover::after {
  opacity: 1;
}

[data-theme="light"] .pos-frame-wrapper::before {
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0,180,140,0.18) 0%,
    rgba(59,130,246,0.10) 40%,
    transparent 75%);
}
[data-theme="light"] .pos-frame-wrapper::after {
  background: radial-gradient(ellipse 80% 100% at 50% 0%,
    rgba(0,180,140,0.22) 0%,
    transparent 100%);
}

.pos-frame {
  background: rgba(8,11,24,0.92);
  border: 1px solid rgba(0,212,170,0.20);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 60px rgba(0,212,170,0.06);
  backdrop-filter: blur(12px);
  transform: scale(0.72);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
  position: relative;
  z-index: 1;
}
.pos-frame.pos-frame-visible {
  transform: scale(1);
  opacity: 1;
}
/* Hover en el frame mismo: borde y sombra se intensifican */
.pos-frame-wrapper:hover .pos-frame {
  border-color: rgba(0,212,170,0.50);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,212,170,0.15),
    0 0 100px rgba(0,212,170,0.22),
    0 0 200px rgba(59,130,246,0.10);
}
[data-theme="light"] .pos-frame { background: rgba(250,252,255,0.95); border-color: rgba(0,180,140,0.25); }
[data-theme="light"] .pos-frame-wrapper:hover .pos-frame {
  border-color: rgba(0,180,140,0.55);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.15),
    0 0 80px rgba(0,180,140,0.20),
    0 0 160px rgba(59,130,246,0.08);
}
.pos-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0,212,170,0.05);
  border-bottom: 1px solid var(--border);
}
.pos-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.pos-url {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 14px;
  font-size: 12px; color: var(--hint);
  flex: 1; max-width: 280px; margin: 0 auto; text-align: center;
}
.pos-body { display: grid; grid-template-columns: 220px 1fr 280px; min-height: 460px; }
.pos-sidebar {
  border-right: 1px solid var(--border);
  padding: 1rem;
  display: flex; flex-direction: column; gap: 3px;
}
.pos-sb-title {
  font-size: 9px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--hint); padding: 0 8px;
  margin: 10px 0 4px;
}
.pos-sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--muted);
  cursor: pointer; transition: all 0.18s;
  user-select: none;
}
.pos-sb-item:hover { background: var(--surface2); color: var(--text); }
.pos-sb-item.active { background: rgba(0,212,170,0.12); color: var(--teal); }
.pos-sb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.pos-main { padding: 1.25rem; overflow: visible; }
.pos-top-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.pos-page-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--text);
}
.pos-new-btn {
  background: var(--grad-teal); color: #000;
  font-size: 11px; font-weight: 700;
  padding: 6px 14px; border-radius: 6px; border: none;
  cursor: pointer; transition: all 0.18s;
}
.pos-new-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.pos-search {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  font-size: 12px; color: var(--text);
  font-family: var(--font-body); margin-bottom: 1rem;
  outline: none; transition: border-color 0.2s;
}
.pos-search:focus { border-color: rgba(0,212,170,0.4); }
.pos-search::placeholder { color: var(--hint); }
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.prod-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 8px; text-align: center;
  cursor: pointer; transition: all 0.18s; user-select: none;
}
.prod-card:hover, .prod-card.selected {
  border-color: var(--teal); background: rgba(0,212,170,0.08);
  transform: scale(1.03);
}
.prod-emoji { font-size: 24px; margin-bottom: 4px; }
.prod-name { font-size: 10px; color: var(--muted); line-height: 1.3; margin-bottom: 2px; }
.prod-price { font-size: 11px; font-weight: 600; color: var(--teal); }
.pos-cart { border-left: 1px solid var(--border); padding: 1.25rem; display: flex; flex-direction: column; }
.cart-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--hint); margin-bottom: 1rem; }
.cart-items { flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 200px; }
.cart-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
  font-size: 12px; color: var(--text);
  animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateX(10px); } to { opacity:1; transform:translateX(0); } }
.ci-name { flex: 1; font-size: 11px; color: var(--muted); }
.ci-qty {
  display: flex; align-items: center; gap: 4px;
}
.qty-btn {
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; line-height: 1;
}
.qty-btn:hover { background: rgba(0,212,170,0.15); border-color: var(--teal); color: var(--teal); }
.ci-price { font-size: 11px; font-weight: 600; color: var(--teal); min-width: 55px; text-align: right; }
.ci-del { color: var(--hint); font-size: 13px; cursor: pointer; padding: 2px; transition: color 0.15s; }
.ci-del:hover { color: #ff5f57; }
.cart-empty { color: var(--hint); font-size: 12px; text-align: center; padding: 2rem 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cart-divider { height: 1px; background: var(--border); margin: 10px 0; }
.cart-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--text); margin-top: 6px; }
.cart-total-val { color: var(--teal); }
.pay-btn {
  width: 100%; background: var(--grad-teal); color: #000;
  font-size: 13px; font-weight: 700; padding: 12px;
  border-radius: 8px; border: none; cursor: pointer;
  margin-top: 10px; transition: all 0.2s;
  font-family: var(--font-body);
}
.pay-btn:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 0 20px rgba(0,212,170,0.4); }
.pay-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.pos-notification {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,212,170,0.15); border: 1px solid var(--teal);
  border-radius: 8px; padding: 8px 14px;
  font-size: 12px; color: var(--teal); font-weight: 600;
  animation: notifIn 0.3s ease;
  pointer-events: none;
}
@keyframes notifIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ===========================
   FEATURES SECTION
=========================== */
#funciones {
  padding: 120px 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(139,92,246,0.05) 25%,
    rgba(139,92,246,0.08) 50%,
    rgba(139,92,246,0.05) 75%,
    transparent 100%);
  border-top: 1px solid rgba(139,92,246,0.08);
  border-bottom: 1px solid rgba(139,92,246,0.08);
}
[data-theme="light"] #funciones {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(139,92,246,0.06) 25%,
    rgba(139,92,246,0.10) 50%,
    rgba(139,92,246,0.06) 75%,
    transparent 100%);
  border-top: 1px solid rgba(139,92,246,0.12);
  border-bottom: 1px solid rgba(139,92,246,0.12);
}
#funciones::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background-image: url('sisstar3.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] #funciones::before {
  opacity: 0.16;
  filter: sepia(0.3) saturate(1.4) hue-rotate(-5deg);
}
.feat-grid { margin-top: 3.5rem; position: relative; z-index: 1; }
.feat-card-new {
  padding: 2rem; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  height: 100%;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feat-card-new::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.3s;
}
.feat-card-new:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.feat-card-new:hover::before { opacity: 0.04; }
.feat-card-new:nth-child(1)::before { background: var(--grad-teal); }
.feat-card-new:nth-child(2)::before { background: var(--grad-purple); }
.feat-card-new:nth-child(3)::before { background: linear-gradient(135deg,#ec4899,#f59e0b); }
.feat-card-new:nth-child(4)::before { background: linear-gradient(135deg,#3b82f6,#14b8a6); }
.feat-card-new:nth-child(5)::before { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.feat-card-new:nth-child(6)::before { background: linear-gradient(135deg,#22c55e,#3b82f6); }
.feat-card-new:hover { border-color: rgba(255,255,255,0.12); }
.feat-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 1.25rem; position: relative;
}
.feat-icon-wrap.c-teal { background: rgba(0,212,170,0.12); border: 1px solid rgba(0,212,170,0.2); }
.feat-icon-wrap.c-blue { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.2); }
.feat-icon-wrap.c-pink { background: rgba(236,72,153,0.12); border: 1px solid rgba(236,72,153,0.2); }
.feat-icon-wrap.c-purple { background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.2); }
.feat-icon-wrap.c-amber { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.2); }
.feat-icon-wrap.c-green { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.2); }
.feat-card-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  margin-bottom: 0.6rem; position: relative;
}
.feat-card-desc { font-size: 14px; color: var(--muted); line-height: 1.7; position: relative; }
.feat-tag {
  display: inline-block; margin-top: 1rem;
  font-size: 11px; font-weight: 500; padding: 3px 10px;
  border-radius: 100px;
}
.feat-tag.teal { background: rgba(0,212,170,0.1); color: var(--teal); border: 1px solid rgba(0,212,170,0.2); }
.feat-tag.blue { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.feat-tag.pink { background: rgba(236,72,153,0.1); color: #f9a8d4; border: 1px solid rgba(236,72,153,0.2); }
.feat-tag.purple { background: rgba(139,92,246,0.1); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.2); }
.feat-tag.amber { background: rgba(245,158,11,0.1); color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.feat-tag.green { background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }

/* ===========================
   PLANES SECTION
=========================== */
#planes {
  padding: 120px 2rem;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0,212,170,0.10) 20%,
    rgba(0,212,170,0.16) 50%,
    rgba(0,212,170,0.10) 80%,
    transparent 100%);
  border-top: 1px solid rgba(0,212,170,0.18);
  border-bottom: 1px solid rgba(0,212,170,0.18);
}
[data-theme="light"] #planes {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0,180,140,0.10) 20%,
    rgba(0,180,140,0.17) 50%,
    rgba(0,180,140,0.10) 80%,
    transparent 100%);
  border-top: 1px solid rgba(0,180,140,0.22);
  border-bottom: 1px solid rgba(0,180,140,0.22);
}
.plan-card-new {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; overflow: hidden;
  transition: all 0.3s; height: 100%;
}
.plan-card-new::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.plan-card-new:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
.plan-card-new.popular { border-color: rgba(0,212,170,0.55); background: rgba(0,212,170,0.08); box-shadow: 0 0 40px rgba(0,212,170,0.12), 0 20px 60px rgba(0,0,0,0.25); }
.plan-card-new.popular::before { background: var(--grad-teal); }
.plan-badge-new {
  position: absolute; top: 18px; right: 18px;
  background: rgba(0,212,170,0.15); color: var(--teal);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid rgba(0,212,170,0.3);
}
.plan-name-new {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: -0.5px;
}
.plan-desc-new { font-size: 14px; color: var(--muted); line-height: 1.6; }
[data-theme="light"] .plan-first-month {
  color: #000000;
}
.plan-first-month {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.4rem;
  display: block;
}
.plan-price-new {
  font-family: var(--font-display); font-size: 50px; font-weight: 800;
  letter-spacing: -2px; line-height: 1;
}
.plan-price-new .currency { font-size: 22px; font-weight: 500; vertical-align: top; margin-top: 10px; display: inline-block; color: var(--muted); }
.plan-price-new .period { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan-save { font-size: 12px; color: #34d399; margin-top: 4px; }
.plan-limits-new {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 1rem;
  background: rgba(255,255,255,0.03); border-radius: 10px;
  border: 1px solid var(--border);
}
.limit-item .val { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.limit-item .lbl { font-size: 11px; color: var(--hint); }
.plan-features-new { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pf-item-new { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.pf-item-new .check { color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.pf-item-new .cross { color: var(--hint); flex-shrink: 0; margin-top: 1px; }
.pf-item-new.off { opacity: 0.3; }
.plan-btn-new {
  display: block; text-align: center;
  padding: 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer;
  border: none; transition: all 0.25s; margin-top: auto;
  text-decoration: none;
}
.plan-btn-new.outline {
  background: rgba(0,212,170,0.06) !important;
  border: 2px solid #00d4aa !important;
  color: #00d4aa !important;
}
.plan-btn-new.outline:hover {
  background: rgba(0,212,170,0.15) !important;
  border: 2px solid #00d4aa !important;
  box-shadow: 0 0 20px rgba(0,212,170,0.35);
  color: #00d4aa !important;
}
.plan-btn-new.filled {
  background: var(--grad-teal); color: #000;
  box-shadow: 0 0 25px rgba(0,212,170,0.3);
}
.plan-btn-new.filled:hover { box-shadow: 0 0 45px rgba(0,212,170,0.5); transform: translateY(-1px); }

/* ===========================
   FAQ SECTION
=========================== */
#faq {
  padding: 120px 2rem;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(245,158,11,0.04) 25%,
    rgba(245,158,11,0.06) 50%,
    rgba(245,158,11,0.04) 75%,
    transparent 100%);
  border-top: 1px solid rgba(245,158,11,0.07);
  border-bottom: 1px solid rgba(245,158,11,0.07);
}
[data-theme="light"] #faq {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(245,158,11,0.06) 25%,
    rgba(245,158,11,0.09) 50%,
    rgba(245,158,11,0.06) 75%,
    transparent 100%);
  border-top: 1px solid rgba(245,158,11,0.12);
  border-bottom: 1px solid rgba(245,158,11,0.12);
}
.faq-list-new {
  margin-top: 3rem;
  display: flex; flex-direction: column; gap: 8px;
}
.faq-item-new {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.faq-item-new:hover { border-color: rgba(0,212,170,0.2); }
.faq-q-new {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 1.25rem 1.5rem; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background 0.2s;
}
.faq-q-new:hover { background: rgba(255,255,255,0.02); }
.faq-arrow {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(0,212,170,0.1); border: 1px solid rgba(0,212,170,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 16px; flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
}
.faq-q-new.open .faq-arrow { transform: rotate(45deg); background: rgba(0,212,170,0.2); }
.faq-a-new {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 14px; color: var(--muted); line-height: 1.75;
  padding: 0 1.5rem;
}
.faq-a-new.open { max-height: 600px; padding: 0 1.5rem 1.25rem; }

/* ===========================
   CONTACT SECTION
=========================== */
#contacto {
  padding: 120px 2rem;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(236,72,153,0.04) 20%,
    rgba(0,212,170,0.06) 60%,
    transparent 100%);
  border-top: 1px solid rgba(236,72,153,0.07);
}
[data-theme="light"] #contacto {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(236,72,153,0.05) 20%,
    rgba(0,180,140,0.08) 60%,
    transparent 100%);
  border-top: 1px solid rgba(236,72,153,0.10);
}
.contact-box {
  max-width: 800px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 24px; padding: 4rem 3rem;
  position: relative; overflow: hidden; text-align: center;
}
.contact-box::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background-image: url('sisstar3.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .contact-box::before {
  opacity: 0.18;
  filter: sepia(0.3) saturate(1.4) hue-rotate(-5deg);
}
.contact-box h2 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 1rem; position: relative;
  z-index: 1;
}
.contact-box p {
  color: var(--muted); font-size: 17px; margin-bottom: 2.5rem;
  font-weight: 300; position: relative;
  z-index: 1;
}
.contact-note { margin-top: 1.25rem; font-size: 13px; color: var(--hint); position: relative; z-index: 1; }
.contact-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 3rem; position: relative; z-index: 1; }
.contact-info-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem; text-align: center;
}
.contact-info-icon { font-size: 24px; margin-bottom: 8px; }
.contact-info-label { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.contact-info-val { font-size: 14px; color: var(--text); font-weight: 500; }

/* ===========================
   FOOTER
=========================== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 13px; color: var(--hint); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: var(--hint); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }

/* ===========================
   CURSOR PERSONALIZADO
=========================== */
*, *::before, *::after { cursor: none !important; }
#cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: #00d4aa; border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .2s;
  box-shadow: 0 0 12px #00d4aa, 0 0 24px rgba(0,212,170,.5);
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid rgba(0,212,170,.5); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .35s cubic-bezier(.25,.46,.45,.94), height .35s cubic-bezier(.25,.46,.45,.94), border-color .2s;
}
#cursor-glow {
  position: fixed; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,.1), transparent 70%);
  pointer-events: none; z-index: 99997;
  transform: translate(-50%,-50%);
}
body.cursor-hover #cursor-dot { width: 12px; height: 12px; background: #34eca8; }
body.cursor-hover #cursor-ring { width: 56px; height: 56px; border-color: rgba(0,212,170,.7); }

/* ===========================
   PARTÍCULAS FLOTANTES
=========================== */
.particle {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 2;
  animation: particleDrift linear infinite;
}
@keyframes particleDrift {
  0%   { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10%  { opacity: 0.9; }
  88%  { opacity: 0.7; }
  100% { transform: translateY(-10vh) translateX(var(--drift)) scale(1); opacity: 0; }
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .75s cubic-bezier(.25,.46,.45,.94), transform .75s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity .75s ease, transform .75s ease; }
.reveal-right { opacity: 0; transform: translateX(50px);  transition: opacity .75s ease, transform .75s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.88); transition: opacity .7s ease, transform .7s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal-delay-1 { transition-delay: .1s !important; }
.reveal-delay-2 { transition-delay: .2s !important; }
.reveal-delay-3 { transition-delay: .3s !important; }
.reveal-delay-4 { transition-delay: .4s !important; }
.reveal-delay-5 { transition-delay: .5s !important; }
.reveal-delay-6 { transition-delay: .6s !important; }

/* ===========================
   TYPEWRITER
=========================== */
#typewriter::after {
  content: '|';
  animation: blink .75s step-end infinite;
  color: #00d4aa; font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===========================
   SECTION NAV DOTS
=========================== */
.section-dots {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 12px;
}
.section-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid rgba(0,212,170,0.4);
  cursor: pointer;
  background: transparent;
  transition:
    background 2.1s cubic-bezier(0.42, 0, 0.58, 1),
    border-color 2.1s cubic-bezier(0.42, 0, 0.58, 1),
    box-shadow 2s ease,
    transform 0.2s ease;
}
.section-dot.active { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 8px var(--teal); }
.section-dot:hover { border-color: var(--teal); }

/* ===========================
   RESPONSIVE
=========================== */

/* ===========================
   POS MOBILE MSG
=========================== */
.pos-mobile-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 16px;
  margin-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}
.pos-mobile-msg:hover,
.pos-mobile-msg:active {
  border-color: rgba(0,212,170,0.65);
  box-shadow:
    0 0 0 2px rgba(0,212,170,0.12),
    0 0 30px rgba(0,212,170,0.22),
    0 0 60px rgba(0,212,170,0.10);
}
.pos-mobile-msg i.bi-phone {
  font-size: 2.5rem;
  color: var(--teal);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), filter 0.3s;
}
.pos-mobile-msg:hover i.bi-phone,
.pos-mobile-msg:active i.bi-phone {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(0,212,170,0.8));
}
.pos-mobile-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,212,170,0.4);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.25s;
  line-height: 1.3;
}
.pos-mobile-btn .arrow-down {
  display: block;
  width: 18px;
  height: 10px;
  position: relative;
  margin: 0 auto;
}
.pos-mobile-btn .arrow-down::before,
.pos-mobile-btn .arrow-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 1.5px;
  background: var(--teal);
  border-radius: 2px;
  transition: all 0.25s;
}
.pos-mobile-btn .arrow-down::before {
  left: 0;
  transform: rotate(40deg);
  transform-origin: right center;
}
.pos-mobile-btn .arrow-down::after {
  right: 0;
  transform: rotate(-40deg);
  transform-origin: left center;
}
.pos-mobile-btn:hover,
.pos-mobile-btn:active {
  background: rgba(0,212,170,0.08);
  border-color: rgba(0,212,170,0.7);
  color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0,212,170,0.2);
}

/* ===========================
   HAMBURGER & MOBILE MENU
=========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 90px; left: 0; right: 0;
  background: rgba(5,6,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,212,170,0.15);
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  z-index: 999;
  animation: menuSlideDown 0.25s ease;
}
[data-theme="light"] .mobile-menu {
  background: rgba(238,248,244,0.97);
}
@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--muted);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a:active { color: var(--teal); }
.mobile-menu-cta {
  margin-top: 0.5rem;
  background: var(--grad-teal) !important;
  color: #000 !important;
  text-align: center;
  padding: 0.9rem !important;
  border-radius: 10px;
  border-bottom: none !important;
  font-size: 15px !important;
}

/* ===========================
   TABLET (max 1024px)
=========================== */
@media (max-width: 1024px) {
  .nav-links-center { gap: 1.2rem; }
  .pos-body { grid-template-columns: 180px 1fr 240px; }
}

/* ===========================
   TABLET PEQUEÑA (max 768px)
=========================== */
@media (max-width: 768px) {
  /* ── ANTI SCROLL HORIZONTAL ── */
  html, body { overflow-x: hidden; max-width: 100vw; }
  main, section, footer, nav { max-width: 100vw; overflow-x: hidden; }

  /* ── NAVBAR ── */
  .nav-links-center { display: none; }
  .btn-nav-cta-desk { display: none; }
  .hamburger { display: flex; }
  .navbar-custom {
    height: 64px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-logo { font-size: 18px; gap: 7px; flex: 1; }
  .logo-icon { width: 36px; height: 36px; }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .btn-theme { width: 32px; height: 32px; font-size: 14px; }
  .hamburger { width: 34px; height: 34px; }
  section[id] { scroll-margin-top: 64px; }
  .mobile-menu { top: 64px; }

  /* ── OCULTAR ELEMENTOS PESADOS ── */
  #cursor-dot, #cursor-ring, #cursor-glow { display: none !important; }
  #rocket-traveler { display: none !important; }
  .section-dots { display: none; }
  .bg-grid { display: none; }

  /* ── HERO ── */
  #hero {
    padding: 95px 1rem 55px;
    min-height: auto;
  }
  #hero::before { width: 280px; height: 280px; opacity: 0.06; }
  #hero h1 {
    font-size: clamp(28px, 7vw, 42px);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
  }
  .hero-sub { font-size: 14px; margin-bottom: 1.8rem; max-width: 100%; }
  .hero-badge { font-size: 11px; padding: 5px 11px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .hero-actions .btn-teal,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 13px 16px;
    box-sizing: border-box;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
  }
  .hero-stat {
    flex: 1 1 calc(50% - 1px);
    min-width: unset;
    padding: 13px 8px;
  }
  .stat-val { font-size: 20px; }
  .stat-label { font-size: 10px; }

  /* ── SOCIAL PROOF ── */
  .social-logo { padding: 0 1.5rem; font-size: 12px; }
  .logo-emoji { font-size: 18px; }

  /* ── SECCIONES ── */
  #pos, #funciones, #planes, #faq, #contacto {
    padding: 60px 1rem;
  }
  .section-title { font-size: clamp(22px, 5.5vw, 32px); letter-spacing: -0.3px; }
  .section-sub { font-size: 14px; }
  .section-label { font-size: 11px; }

  /* ── POS: ocultar demo, mostrar mensaje ── */
  .pos-frame-wrapper { display: none !important; }
  .pos-mobile-msg {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding: 2rem 1.2rem;
    background: var(--surface);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: 16px;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  .pos-mobile-msg i { font-size: 2.5rem; color: var(--teal); }
  .pos-mobile-msg strong {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
    line-height: 1.4;
  }
  .pos-mobile-msg p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
  }
  .pos-mobile-msg .btn-teal {
    font-size: 13px;
    padding: 10px 20px;
    width: auto;
  }

  /* ── FUNCIONES ── */
  .feat-card-new { padding: 1.3rem; }
  .feat-card-title { font-size: 15px; }
  .feat-card-desc { font-size: 13px; line-height: 1.6; }
  .feat-icon-wrap { width: 40px; height: 40px; font-size: 18px; margin-bottom: 0.9rem; }
  /* Simplificar animaciones hover en móvil */
  .feat-card-new:hover { transform: translateY(-2px); }
  .feat-card-new:hover .feat-icon-wrap i { transform: scale(1.1); }
  .feat-card-new:nth-child(1):hover,
  .feat-card-new:nth-child(2):hover,
  .feat-card-new:nth-child(3):hover,
  .feat-card-new:nth-child(4):hover,
  .feat-card-new:nth-child(5):hover,
  .feat-card-new:nth-child(6):hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  /* ── PLANES ── */
  .plan-card-new { padding: 1.4rem; }
  .plan-name-new { font-size: 18px; }
  .plan-desc-new { font-size: 13px; }
  .plan-price-new { font-size: 36px; }
  .plan-price-new .currency { font-size: 17px; }
  .plan-save { font-size: 11px; }
  .plan-limits-new { gap: 6px; padding: 0.75rem; }
  .limit-item .val { font-size: 17px; }
  .limit-item .lbl { font-size: 10px; }
  .pf-item-new { font-size: 12px; }
  .plan-btn-new { font-size: 13px; padding: 11px; }
  /* Sin hover scale en móvil */
  .plan-card-new:hover { transform: translateY(-3px); }

  /* ── FAQ ── */
  .faq-q-new { font-size: 13px; padding: 0.9rem 1rem; }
  .faq-a-new { font-size: 13px; }
  .faq-a-new.open { padding: 0 1rem 0.9rem; }
  .faq-arrow { width: 24px; height: 24px; font-size: 13px; }
  /* FAQ abre inmediato en móvil */
  .faq-a-new { transition: max-height 0.2s ease, padding 0.2s; }
  /* Sin slide lateral en móvil */
  .faq-item-new:hover { transform: none; }

  /* ── CONTACTO ── */
  .contact-box { padding: 1.8rem 1rem; border-radius: 16px; }
  .contact-box::before { width: 240px; height: 240px; }
  .contact-box h2 { font-size: clamp(20px, 5vw, 30px); }
  .contact-box p { font-size: 14px; margin-bottom: 1.5rem; }
  .contact-info-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 1.5rem; }
  .contact-info-card { padding: 0.9rem; }
  .contact-note { font-size: 11px; }
  .btn-teal, .btn-ghost { font-size: 14px; padding: 11px 16px; }
  /* Sin rotación en móvil */
  .contact-info-card:hover .contact-info-icon { transform: scale(1.1); }

  /* ── FOOTER ── */
  footer { padding: 1.8rem 1rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 0.8rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem; }
  .footer-copy { font-size: 11px; }
  .footer-links a { font-size: 12px; }

  /* ── MODAL PLANES ── */
  #ss-modal {
    align-items: flex-end;
    padding: 0;
  }
  #ss-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0;
    padding: 1.6rem 1.2rem 2rem;
    max-height: 92vh;
    overflow-y: auto;
    animation: ssModalUp 0.3s cubic-bezier(.34,1.2,.64,1) both;
  }
  @keyframes ssModalUp {
    from { opacity:0; transform: translateY(40px); }
    to   { opacity:1; transform: translateY(0); }
  }
  .ss-form { gap: 0.5rem; }
  .ss-input { padding: 0.65rem 0.9rem; font-size: 0.85rem; }
  .ss-submit { font-size: 14px; padding: 12px; }
  .ss-titulo { font-size: 1.1rem; }
  .ss-desc { font-size: 0.8rem; margin-bottom: 1rem; }

  /* ── MODALES LEGALES ── */
  #legal-modal {
    align-items: flex-end;
    padding: 0;
  }
  #legal-box-wrap {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0;
    padding: 0;
  }
  #legal-box {
    border-radius: 20px 20px 0 0;
    padding: 1.6rem 1.2rem 2rem;
    max-height: 88vh;
  }
  .legal-titulo { font-size: 1rem; }
  .legal-seccion { font-size: 0.83rem; }
  .legal-fecha { font-size: 0.78rem; }

  /* ── ELIMINAR BACKDROP-FILTER EN MÓVIL (causa scroll independiente en iOS) ── */
  .glass-card,
  .feat-card-new,
  .plan-card-new,
  .faq-item-new,
  .contact-info-card,
  .hero-stats,
  .hero-stat,
  .social-proof-bar,
  .pos-mobile-msg {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

}

/* ===========================
   CELULAR PEQUEÑO (max 480px)
=========================== */
@media (max-width: 480px) {
  .navbar-custom { padding: 0 0.9rem; height: 60px; }
  .nav-logo { font-size: 17px; }
  .logo-icon { width: 34px; height: 34px; }
  section[id] { scroll-margin-top: 60px; }
  .mobile-menu { top: 60px; }

  #hero { padding: 82px 0.9rem 48px; }
  #hero h1 { font-size: clamp(24px, 6.5vw, 32px); }
  .hero-badge { font-size: 10px; padding: 4px 10px; }
  .hero-sub { font-size: 13px; }
  .hero-stat { padding: 11px 6px; }
  .stat-val { font-size: 18px; }

  #pos, #funciones, #planes, #faq, #contacto { padding: 48px 0.9rem; }
  .section-title { font-size: clamp(20px, 6vw, 28px); }

  .plan-price-new { font-size: 30px; }
  .plan-price-new .currency { font-size: 14px; }
  .plan-limits-new { grid-template-columns: 1fr 1fr; }
  .plan-save { font-size: 10px; }

  #ss-modal-box { padding: 1.4rem 1rem 1.8rem; }
  .ss-form { gap: 0.4rem; }
  .ss-input { padding: 0.6rem 0.8rem; font-size: 0.82rem; }
  .ss-submit { font-size: 13px; padding: 11px; }

  #legal-box { padding: 1.4rem 1rem 1.8rem; }

  .social-logo { padding: 0 1.2rem; font-size: 12px; }
  .logo-emoji { font-size: 16px; }

  .contact-box { padding: 1.6rem 0.9rem; }
  .faq-q-new { font-size: 12px; padding: 0.85rem 0.9rem; }
}

/* ===========================
   CELULAR MUY PEQUEÑO (max 360px)
=========================== */
@media (max-width: 360px) {
  #hero h1 { font-size: 22px; }
  .hero-actions .btn-teal,
  .hero-actions .btn-ghost { font-size: 12px; padding: 11px 12px; }
  .plan-card-new { padding: 1.1rem; }
  .contact-box { padding: 1.3rem 0.8rem; }
  #ss-modal-box { padding: 1.2rem 0.9rem 1.6rem; }
  #legal-box { padding: 1.2rem 0.9rem 1.6rem; }
  .stat-val { font-size: 16px; }
}


/* Colores de acento por sección */
#pos .section-label       { color: #60a5fa; }
#pos .section-label::before { background: #60a5fa; }
#pos .section-title .grad-teal {
  background: linear-gradient(135deg,#3b82f6,#06b6d4);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
#funciones .section-label       { color: #a78bfa; }
#funciones .section-label::before { background: #a78bfa; }
#faq .section-label       { color: #fbbf24; }
#faq .section-label::before { background: #fbbf24; }
#faq .section-title .grad-teal {
  background: linear-gradient(135deg,#f59e0b,#ef4444);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
#contacto .section-label  { color: #f472b6; }
#contacto .section-label::before { background: #f472b6; }

/* ═══════════════════════════════════════════
   HOVER EFFECTS — TODA LA PÁGINA
═══════════════════════════════════════════ */

/* ── 1. HERO STATS (100% en la nube, 3 planes…) ── */
.hero-stat {
  position: relative; overflow: hidden;
  cursor: default;
  transition: background 0.3s, transform 0.3s;
}
.hero-stat::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(0,212,170,0.18) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.35s;
}
.hero-stat:hover { transform: translateY(-4px); background: rgba(0,212,170,0.07); }
.hero-stat:hover::before { opacity: 1; }
.hero-stat:hover .stat-val {
  filter: drop-shadow(0 0 12px rgba(0,212,170,0.8));
  transform: scale(1.08);
  display: inline-block;
}
.stat-val { transition: transform 0.3s, filter 0.3s; display: inline-block; }

/* ── 2. POS SIDEBAR TABS ── */
.pos-sb-item {
  position: relative; overflow: hidden;
}
.pos-sb-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,0.10));
  opacity: 0; transition: opacity 0.25s;
}
.pos-sb-item:hover::after, .pos-sb-item.active::after { opacity: 1; }
.pos-sb-item:hover .pos-sb-dot,
.pos-sb-item.active .pos-sb-dot {
  box-shadow: 0 0 10px 3px currentColor;
  transform: scale(1.4);
}
.pos-sb-dot { transition: transform 0.25s, box-shadow 0.25s; }

/* ── 3. FEAT CARDS — iconos giran, card brilla ── */
.feat-card-new {
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
}
.feat-card-new:hover {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 40px rgba(0,212,170,0.12);
}
/* Glow por color de card */
.feat-card-new:nth-child(1):hover { box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 50px rgba(0,212,170,0.18); border-color: rgba(0,212,170,0.35); }
.feat-card-new:nth-child(2):hover { box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 50px rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.35); }
.feat-card-new:nth-child(3):hover { box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 50px rgba(236,72,153,0.18); border-color: rgba(236,72,153,0.35); }
.feat-card-new:nth-child(4):hover { box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 50px rgba(139,92,246,0.18); border-color: rgba(139,92,246,0.35); }
.feat-card-new:nth-child(5):hover { box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 50px rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.35); }
.feat-card-new:nth-child(6):hover { box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 50px rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.35); }

/* Icono gira al hover */
.feat-icon-wrap i {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), filter 0.35s;
}
.feat-card-new:hover .feat-icon-wrap i {
  transform: rotate(360deg) scale(1.2);
}
.feat-card-new:nth-child(1):hover .feat-icon-wrap i { filter: drop-shadow(0 0 8px rgba(0,212,170,0.9)); }
.feat-card-new:nth-child(2):hover .feat-icon-wrap i { filter: drop-shadow(0 0 8px rgba(59,130,246,0.9)); }
.feat-card-new:nth-child(3):hover .feat-icon-wrap i { filter: drop-shadow(0 0 8px rgba(236,72,153,0.9)); }
.feat-card-new:nth-child(4):hover .feat-icon-wrap i { filter: drop-shadow(0 0 8px rgba(139,92,246,0.9)); }
.feat-card-new:nth-child(5):hover .feat-icon-wrap i { filter: drop-shadow(0 0 8px rgba(245,158,11,0.9)); }
.feat-card-new:nth-child(6):hover .feat-icon-wrap i { filter: drop-shadow(0 0 8px rgba(34,197,94,0.9)); }

/* ── 4. PLAN CARDS ── */
.plan-card-new {
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
  position: relative;
}
.plan-card-new::after {
  content: '';
  position: absolute; inset: 0; border-radius: 20px;
  background: radial-gradient(circle at 50% 100%, rgba(0,212,170,0.10) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.plan-card-new:hover::after { opacity: 1; }
.plan-card-new:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 60px rgba(0,212,170,0.14);
}
.plan-card-new.popular:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 80px rgba(0,212,170,0.28);
}
/* Nombre del plan se ilumina */
.plan-name-new {
  transition: filter 0.3s;
}
.plan-card-new:hover .plan-name-new {
  filter: drop-shadow(0 0 8px rgba(0,212,170,0.6));
}
/* Precio escala */
.plan-price-new {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), filter 0.35s;
  display: inline-block;
}
.plan-card-new:hover .plan-price-new {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(0,212,170,0.5));
}

/* ── 5. FAQ ITEMS ── */
.faq-item-new {
  transition: all 0.3s;
  position: relative;
}
.faq-item-new::before {
  content: '';
  position: absolute; inset: 0; border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(245,158,11,0.07) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.faq-item-new:hover::before { opacity: 1; }
.faq-item-new:hover {
  border-color: rgba(245,158,11,0.30) !important;
  box-shadow: 0 8px 30px rgba(245,158,11,0.10), 0 0 0 1px rgba(245,158,11,0.12);
  transform: translateX(4px);
}
.faq-arrow {
  transition: transform 0.3s, background 0.2s, box-shadow 0.3s !important;
}
.faq-item-new:hover .faq-arrow {
  box-shadow: 0 0 14px rgba(245,158,11,0.6);
  background: rgba(245,158,11,0.2) !important;
  border-color: rgba(245,158,11,0.5) !important;
  color: #fbbf24 !important;
}

/* ── 6. CONTACT BOX glow ── */
.contact-box {
  transition: box-shadow 0.4s, border-color 0.4s;
}
.contact-box:hover {
  box-shadow: 0 0 80px rgba(0,212,170,0.20), 0 0 160px rgba(236,72,153,0.10), 0 30px 80px rgba(0,0,0,0.25);
  border-color: rgba(0,212,170,0.40) !important;
}
/* Botones de contacto */
.btn-teal {
  position: relative; overflow: hidden;
}
.btn-teal::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.btn-teal:hover::after { opacity: 1; }
.btn-ghost {
  transition: all 0.3s !important;
}
.btn-ghost:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.08);
}

/* ── 7. CONTACT INFO CARDS (WhatsApp, Email, Horario) ── */
.contact-info-card {
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
  cursor: default;
  position: relative; overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 12px;
  background: radial-gradient(circle at 50% 120%, rgba(0,212,170,0.15) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.contact-info-card:hover::before { opacity: 1; }
.contact-info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,170,0.30) !important;
  box-shadow: 0 12px 35px rgba(0,212,170,0.14), 0 0 0 1px rgba(0,212,170,0.15);
}
/* Emojis de las cards de contacto giran */
.contact-info-icon {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), filter 0.35s;
}
.contact-info-card:hover .contact-info-icon {
  transform: rotate(20deg) scale(1.35);
  filter: drop-shadow(0 0 10px rgba(0,212,170,0.8));
}
/* Card WhatsApp — verde */
.contact-info-card:nth-child(1):hover {
  border-color: rgba(37,211,102,0.35) !important;
  box-shadow: 0 12px 35px rgba(37,211,102,0.15), 0 0 0 1px rgba(37,211,102,0.18);
}
.contact-info-card:nth-child(1):hover .contact-info-icon {
  filter: drop-shadow(0 0 10px rgba(37,211,102,0.9));
}
/* Card Email — azul */
.contact-info-card:nth-child(2):hover {
  border-color: rgba(59,130,246,0.35) !important;
  box-shadow: 0 12px 35px rgba(59,130,246,0.15), 0 0 0 1px rgba(59,130,246,0.18);
}
.contact-info-card:nth-child(2):hover .contact-info-icon {
  filter: drop-shadow(0 0 10px rgba(59,130,246,0.9));
}
/* Card Horario — ámbar */
.contact-info-card:nth-child(3):hover {
  border-color: rgba(245,158,11,0.35) !important;
  box-shadow: 0 12px 35px rgba(245,158,11,0.15), 0 0 0 1px rgba(245,158,11,0.18);
}
.contact-info-card:nth-child(3):hover .contact-info-icon {
  filter: drop-shadow(0 0 10px rgba(245,158,11,0.9));
  transform: rotate(360deg) scale(1.35);
}
@keyframes rocketWobble {
  0%,100% { transform: rotate(-8deg) translateX(0px); }
  25%      { transform: rotate(-4deg) translateX(6px); }
  50%      { transform: rotate(-8deg) translateX(0px); }
  75%      { transform: rotate(-12deg) translateX(-6px); }
}
/* Cohete: clic para escapar; punta alineada a la velocidad real (ruta + escape) */
#rocket-traveler {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10050;
  pointer-events: auto;
  touch-action: none;
  opacity: 0.72;
  will-change: transform, filter;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
#rocket-traveler.rocket-lit {
  opacity: 0.88;
  filter:
    drop-shadow(0 0 18px rgba(0, 212, 170, 0.65))
    drop-shadow(0 0 32px rgba(59, 130, 246, 0.35))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
}
.rocket-sprite {
  transform-origin: 50% 50%;
  transition: transform 0.16s ease-out;
  display: block;
}
.rocket-img {
  width: 72px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(0,212,170,0.55)) drop-shadow(0 0 6px rgba(59,130,246,0.4));
  animation: rocketWobble 3s ease-in-out infinite;
}
#rocket-traveler.rocket-lit .rocket-img {
  filter:
    drop-shadow(0 0 16px rgba(0, 212, 170, 0.75))
    drop-shadow(0 0 10px rgba(59, 130, 246, 0.5))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.28));
}
@media (prefers-reduced-motion: reduce) {
  #rocket-traveler { opacity: 0.5; }
  .rocket-img { animation: none; }
}
@media (max-width: 768px) {
  .rocket-img { width: 48px; }
}

/* ===========================
   MODAL PLANES — ESTILOS
=========================== */
#ss-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
}
#ss-modal-box {
  background: #0d1120;
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  max-width: 430px; width: 92%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: ssModalIn 0.35s cubic-bezier(.34,1.56,.64,1) both;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
#ss-modal-box:hover,
#ss-modal-box:focus-within {
  border-color: rgba(0,212,170,0.7);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 2px rgba(0,212,170,0.18),
    0 0 40px rgba(0,212,170,0.28),
    0 0 80px rgba(0,212,170,0.14),
    0 0 120px rgba(14,165,233,0.10);
}
[data-theme="light"] #ss-modal-box {
  background: #ffffff;
  border-color: rgba(0,180,140,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
[data-theme="light"] #ss-modal-box:hover,
[data-theme="light"] #ss-modal-box:focus-within {
  border-color: rgba(0,180,140,0.75);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.15),
    0 0 0 2px rgba(0,180,140,0.15),
    0 0 36px rgba(0,180,140,0.22),
    0 0 70px rgba(0,180,140,0.12);
}
@keyframes ssModalIn {
  from { opacity:0; transform:scale(0.88) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

/* Botón cerrar — modal planes y modales legales */
.ss-close, .legal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(238,240,255,0.5);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
              transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s;
}
[data-theme="light"] .ss-close,
[data-theme="light"] .legal-close {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
  color: rgba(10,14,26,0.45);
}
.ss-close:hover, .legal-close:hover {
  background: rgba(0,212,170,0.18);
  border-color: rgba(0,212,170,0.5);
  color: #00d4aa;
  transform: rotate(90deg) scale(1.15);
  box-shadow: 0 0 14px rgba(0,212,170,0.4);
}

/* Textos del modal */
.ss-titulo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.35rem;
  line-height: 1.3;
}
.ss-desc {
  font-size: 0.875rem; color: var(--muted);
  margin-bottom: 1.4rem; line-height: 1.6;
}

/* Campos del formulario */
.ss-form { display: flex; flex-direction: column; gap: 0.65rem; }
.ss-input {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
[data-theme="light"] .ss-input {
  background: #f4f8f6;
  border-color: rgba(0,0,0,0.12);
}
.ss-input::placeholder { color: var(--hint); }
.ss-input:hover {
  border-color: rgba(0,212,170,0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.12),
              0 0 18px rgba(0,212,170,0.22),
              0 4px 14px rgba(0,212,170,0.14);
}
.ss-input:focus {
  border-color: #00d4aa;
  box-shadow: 0 0 0 3px rgba(0,212,170,0.22),
              0 0 28px rgba(0,212,170,0.35);
  transform: translateY(-1px);
}

/* Botón enviar */
.ss-submit {
  margin-top: 0.25rem; width: 100%;
  background: linear-gradient(135deg, #00d4aa, #0ea5e9);
  color: #000;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 20px; border-radius: 10px;
  border: none; cursor: pointer;
  box-shadow: 0 0 24px rgba(0,212,170,0.3);
  transition: all 0.25s;
}
.ss-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(0,212,170,0.55);
  opacity: 0.9;
}
.ss-submit:active { transform: translateY(0); }

/* Botón outline en modo claro */
[data-theme="light"] .plan-btn-new.outline {
  border: 1.5px solid rgba(0,180,140,0.45);
  color: #0a0e1a;
  background: rgba(0,180,140,0.07);
}
[data-theme="light"] .plan-btn-new.outline:hover {
  background: rgba(0,180,140,0.14);
  border-color: rgba(0,180,140,0.7);
  box-shadow: 0 0 18px rgba(0,180,140,0.2);
}

/* ===========================
   MODALES LEGALES — ESTILOS
=========================== */
#legal-modal {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
/* Wrapper externo — permite que box-shadow no sea cortado por overflow */
#legal-box-wrap {
  max-width: 620px; width: 94%;
  position: relative;
  border-radius: 20px;
  padding: 3px; /* espacio para el glow border */
  transition: box-shadow 0.35s ease;
}
#legal-box-wrap:hover {
  box-shadow:
    0 0 0 1.5px rgba(0,212,170,0.65),
    0 0 40px rgba(0,212,170,0.30),
    0 0 80px rgba(0,212,170,0.16),
    0 0 130px rgba(14,165,233,0.10),
    0 30px 80px rgba(0,0,0,0.55);
}
#legal-box {
  background: #0d1120;
  border: 1px solid rgba(0,212,170,0.22);
  border-radius: 18px;
  padding: 2.5rem;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transition: border-color 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,170,0.3) transparent;
}
#legal-box-wrap:hover #legal-box {
  border-color: rgba(0,212,170,0.55);
}
[data-theme="light"] #legal-box {
  background: #ffffff;
  border-color: rgba(0,180,140,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
[data-theme="light"] #legal-box-wrap:hover {
  box-shadow:
    0 0 0 1.5px rgba(0,180,140,0.6),
    0 0 36px rgba(0,180,140,0.22),
    0 0 70px rgba(0,180,140,0.12),
    0 20px 60px rgba(0,0,0,0.12);
}

/* Contenido legal */
.legal-titulo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: #00d4aa;
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.legal-titulo i { font-size: 1.3rem; }
.legal-fecha {
  font-size: 0.82rem;
  color: rgba(238,240,255,0.4);
  margin-bottom: 1.5rem;
}
[data-theme="light"] .legal-fecha { color: rgba(10,14,26,0.4); }
.legal-seccion {
  font-size: 0.9rem; color: #eef0ff;
  margin-bottom: 1.1rem; line-height: 1.75;
}
[data-theme="light"] .legal-seccion { color: #0a0e1a; }
.legal-seccion strong {
  display: block; margin-bottom: 0.25rem;
  color: rgba(238,240,255,0.85);
}
[data-theme="light"] .legal-seccion strong { color: rgba(10,14,26,0.85); }
.legal-link { color: #00d4aa; }
/* ===========================
   FIX SCROLL ÚNICO MÓVIL
=========================== */
@media (max-width: 768px) {
  /* BODY es el único scroll */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  main {
    overflow: visible !important;
    height: auto !important;
  }

  /* Eliminar scroll interno en secciones y contenedores */
  section,
  .container,
  .pos-mobile-msg,
  .faq-list-new,
  .feat-grid,
  .contact-box,
  .plan-card-new {
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  /* FAQ: expand hacia abajo, no scroll interno */
  .faq-a-new {
    max-height: 0 !important;
    overflow: hidden !important;
  }
  .faq-a-new.open {
    max-height: 600px !important;
    overflow-y: visible !important;
  }
  #faq {
    overflow-y: visible !important;
    height: auto !important;
    min-height: auto !important;
  }
  .faq-list-new {
    overflow: visible !important;
    max-height: none !important;
  }

  /* POS oculto no genera conflictos */
  .pos-body,
  .pos-main,
  .products-grid,
  .cart-items {
    overflow: visible !important;
  }

  /* Reset max-height en todos los contenedores excepto modales */
  *:not(#ss-modal-box):not(#legal-box):not(.faq-a-new) {
    max-height: none !important;
  }

  /* ── MARCAS DE AGUA MÁS PEQUEÑAS EN MÓVIL ── */
  #funciones::before {
    width: 260px !important;
    height: 260px !important;
    opacity: 0.07 !important;
  }
  #planes::before,
  #faq::before {
    width: 240px !important;
    height: 240px !important;
    opacity: 0.05 !important;
  }
  #pos::before {
    width: 240px !important;
    height: 240px !important;
    opacity: 0.05 !important;
  }

  /* ── LÍNEA SUPERIOR TARJETA POPULAR: no desbordar en móvil ── */
  .plan-card-new::before {
    left: 0 !important;
    right: 0 !important;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
  }
  .plan-card-new {
    overflow: hidden !important;
  }

}


/* SOLUCIÓN DEFINITIVA - EVITA FLASH BLANCO EN MÓVIL */
* {
  -webkit-tap-highlight-color: transparent !important;
}

@media (max-width: 768px) {
  .plan-card-new, .feat-card-new, .contact-info-card,
  .faq-item-new, .hero-stat, .btn-teal, .btn-ghost,
  .plan-btn-new, button, a {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .plan-card-new:active, .feat-card-new:active, .contact-info-card:active {
    transform: translateY(-2px) !important;
    transition: transform 0.05s !important;
  }

  .plan-card-new *, .feat-card-new * {
    -webkit-tap-highlight-color: transparent !important;
  }
}

/* ELIMINA PARPADEO EN TARJETAS DE PLANES - MÓVIL */
@media (max-width: 768px) {
  .plan-card-new:active,
  .plan-card-new:focus,
  .plan-card-new:hover {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
  }

  .plan-card-new .plan-price-new,
  .plan-card-new .plan-name-new {
    transition: none !important;
  }

  .plan-card-new:active .plan-price-new,
  .plan-card-new:active .plan-name-new {
    transform: none !important;
    filter: none !important;
  }
}