/* ==========================================================================
   NIDOWE SOFT (nidowesoft.com) - Premium Design System & Theme Engine
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-glow: rgba(0, 102, 255, 0.35);
  
  --secondary: #00e5ff;
  --secondary-glow: rgba(0, 229, 255, 0.3);
  
  --accent-purple: #7928ca;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

/* ==========================================
   DARK THEME (Default High-Tech Sleek Look)
   ========================================== */
[data-theme="dark"] {
  --bg-base: #060913;
  --bg-surface: #0b1120;
  --bg-surface-elevated: #111a30;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(24, 35, 63, 0.85);
  --bg-input: #0c1322;
  --bg-glass: rgba(11, 17, 32, 0.7);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 229, 255, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(0, 102, 255, 0.25);

  --grid-pattern-color: rgba(255, 255, 255, 0.03);
  --ticket-bg: #1e293b;
  --ticket-paper: #ffffff;
  --ticket-text: #0f172a;
}

/* ==========================================
   LIGHT THEME (Modern Crisp Enterprise Look)
   ========================================== */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-input: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.8);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-glow: rgba(0, 102, 255, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.18);

  --grid-pattern-color: rgba(15, 23, 42, 0.04);
  --ticket-bg: #f1f5f9;
  --ticket-paper: #ffffff;
  --ticket-text: #0f172a;
}

/* ==========================================
   RESET & GLOBAL BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 102, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 45%),
    linear-gradient(to right, var(--grid-pattern-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-pattern-color) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/* ==========================================
   TYPOGRAPHY UTILITIES
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 10%, #93c5fd 60%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0f172a 15%, #0066ff 65%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: #38bdf8;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .badge {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.2);
  color: #0066ff;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-header .badge {
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
}

/* ==========================================
   BUTTONS & CONTROLS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 102, 255, 0.5);
  background: linear-gradient(135deg, #1a75ff 0%, #005ce6 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

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

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: all var(--transition-normal);
  border-radius: 12px;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

/* ==========================================================================
   Cápsula de Cristal Translúcida (Frosted Glass Capsule)
   - Forma de cápsula aerodinámica (border-radius: 9999px)
   - Cristal esmerilado translúcido con brillo biselado y resplandor #00F5FF
   - Conserva la visibilidad y pureza de los tonos corporativos
   ========================================================================== */
[data-theme="dark"] .brand-logo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 6px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(0, 245, 255, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .brand-logo:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.20) 100%);
  border-color: rgba(0, 245, 255, 0.8);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(0, 245, 255, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

[data-theme="dark"] .brand-logo-img {
  /* Realce cristalino sutil: mantiene los tonos originales #21437A, #00F5FF y #A0A8B8
     y agrega un destello de luz detrás para perfecto contraste sobre el cristal translúcido */
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 8px rgba(0, 245, 255, 0.3));
}

[data-theme="light"] .brand-logo {
  background: rgba(15, 23, 42, 0.03);
  padding: 5px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .brand-logo:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-1px);
}

[data-theme="light"] .brand-logo-img {
  filter: none; /* Tonos corporativos originales */
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-name span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-medium);
    box-shadow: var(--shadow-lg);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path var(--transition-normal);
  }

  .nav-links.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .mobile-toggle {
    display: block;
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  padding-top: 140px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 56px;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.12;
  margin-top: 20px;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Media Showcase */
.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-surface-elevated);
}

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

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

/* Floating Glass Overlay Badges */
.glass-tag {
  position: absolute;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: float-tag 6s ease-in-out infinite;
}

.glass-tag.tag-top {
  top: -20px;
  right: -20px;
}

.glass-tag.tag-bottom {
  bottom: -24px;
  left: -20px;
  animation-delay: -3s;
}

@keyframes float-tag {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.tag-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.tag-icon.blue { background: rgba(0, 102, 255, 0.2); color: #38bdf8; }
.tag-icon.green { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.tag-info .tag-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tag-info .tag-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .glass-tag {
    display: none;
  }
}

/* ==========================================
   SOLUTIONS & PRODUCTS SHOWCASE
   ========================================== */
.solutions-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.solution-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.solution-tab:hover, .solution-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 18px var(--primary-glow);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 22px;
}

.solution-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================
   LIVE POS SIMULATOR (Interactive In-Browser)
   ========================================== */
.pos-simulator-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pos-topbar {
  background: var(--bg-surface-elevated);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.pos-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pos-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.pos-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 600;
}

.pos-main-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 520px;
}

@media (max-width: 900px) {
  .pos-main-layout {
    grid-template-columns: 1fr;
  }
}

/* Catalog side */
.pos-catalog-side {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pos-category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pos-cat-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.pos-cat-btn.active, .pos-cat-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pos-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.pos-item-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pos-item-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.2);
}

.pos-item-btn:active {
  transform: scale(0.96);
}

.pos-item-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.pos-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.pos-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}

[data-theme="light"] .pos-item-price {
  color: var(--primary);
}

/* Ticket & Checkout Side */
.pos-ticket-side {
  padding: 24px;
  background: var(--bg-surface-elevated);
  display: flex;
  flex-direction: column;
}

.pos-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.pos-order-items {
  flex-grow: 1;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  margin-bottom: 16px;
}

.pos-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.order-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--primary);
  color: #fff;
}

.empty-ticket-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 0;
}

/* Gratuity / Propina Buttons */
.pos-gratuity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.pos-gratuity-row span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tip-buttons {
  display: flex;
  gap: 6px;
}

.tip-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tip-btn.active, .tip-btn:hover {
  background: var(--accent-emerald);
  color: #fff;
  border-color: var(--accent-emerald);
}

/* POS Summary totals */
.pos-totals {
  border-top: 1px dashed var(--border-medium);
  padding-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.total-row.grand-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.pos-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================
   INTERACTIVE MODULE ESTIMATOR / COTIZADOR
   ========================================== */
.estimator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .estimator-box {
    padding: 24px;
  }
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .estimator-grid {
    grid-template-columns: 1fr;
  }
}

.form-group-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.giro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.giro-radio {
  display: none;
}

.giro-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  font-weight: 600;
}

.giro-label .icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.giro-radio:checked + .giro-label {
  background: rgba(0, 102, 255, 0.15);
  border-color: var(--primary);
  color: #38bdf8;
  box-shadow: 0 0 14px var(--primary-glow);
}

.range-wrap {
  margin-bottom: 24px;
}

.range-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.range-header span:last-child {
  font-weight: 700;
  color: var(--secondary);
}

[data-theme="light"] .range-header span:last-child {
  color: var(--primary);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--border-medium);
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  cursor: pointer;
}

.addon-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 576px) {
  .addon-checkboxes {
    grid-template-columns: 1fr;
  }
}

.addon-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.addon-label:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.addon-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Estimator Quote Summary Box */
.quote-summary-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: sticky;
  top: 96px;
}

.quote-plan-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 8px;
}

.quote-price-wrap {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.quote-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.quote-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quote-breakdown {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.quote-breakdown li {
  display: flex;
  justify-content: space-between;
}

/* ==========================================
   SUPPORT & CLIENT PORTAL SECTION
   ========================================== */
.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.support-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.support-icon.blue { background: rgba(0, 102, 255, 0.15); color: #38bdf8; }
.support-icon.purple { background: rgba(121, 40, 202, 0.15); color: #c084fc; }
.support-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.support-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.support-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ==========================================
   HARDWARE COMPATIBILITY BAR
   ========================================== */
.hw-bar {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0;
}

.hw-logos-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 28px;
  opacity: 0.7;
}

.hw-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================
   CONTACT & DEMO REQUEST FORM
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

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

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item-info h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-item-info p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================
   MODALS & THERMAL RECEIPT PREVIEW
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-normal);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Realistic Thermal Receipt Styling */
.thermal-receipt {
  background: var(--ticket-paper);
  color: var(--ticket-text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 24px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
  position: relative;
  margin: 16px 0;
}

.thermal-receipt::before, .thermal-receipt::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  background-size: 12px 6px;
  background-repeat: repeat-x;
}

.thermal-receipt::before {
  top: -6px;
  background-image: radial-gradient(circle at 6px 6px, transparent 6px, #ffffff 6px);
}

.thermal-receipt::after {
  bottom: -6px;
  background-image: radial-gradient(circle at 6px 0, transparent 6px, #ffffff 6px);
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #64748b;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.receipt-header h4 {
  color: #0f172a;
  font-size: 1.1rem;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.receipt-table th {
  text-align: left;
  border-bottom: 1px dashed #94a3b8;
  padding-bottom: 4px;
}

.receipt-table td {
  padding: 4px 0;
}

.receipt-total-block {
  border-top: 1px dashed #64748b;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Floating WhatsApp Quick Action Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* Floating Toast Notification */
.live-toast {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 998;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  max-width: 340px;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.live-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 576px) {
  .live-toast {
    display: none;
  }
}
