/* ==========================================================================
   RestoClick - Design System & Modern SaaS Stylesheet
   Domain: restoclick.net.pe
   ========================================================================== */

:root {
  /* Primary & Brand Colors */
  --primary: #FF5722;
  --primary-hover: #F4511E;
  --primary-light: #FF7043;
  --primary-glow: rgba(255, 87, 34, 0.28);
  
  /* Secondary & Accent Colors */
  --accent-cyan: #06B6D4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #F59E0B;

  /* Dark Theme Surfaces */
  --bg-dark: #0B0F19;
  --bg-darker: #070A10;
  --bg-surface: #111827;
  --bg-card: rgba(23, 32, 54, 0.7);
  --bg-card-hover: rgba(30, 42, 69, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);

  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 87, 34, 0.5);
  --border-glow: 0 0 20px rgba(255, 87, 34, 0.2);

  /* Typography Colors */
  --text-main: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #CBD5E1;
  --text-dark: #0F172A;

  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(255, 87, 34, 0.35);

  /* Font Families */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout Constants */
  --container-max: 1240px;
  --nav-height: 88px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients & Effects */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 87, 34, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD0B8 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 87, 34, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
}
.btn-whatsapp:hover {
  background: #1DA851;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(7, 10, 16, 0.96);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--text-main);
}
.brand-logo img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px var(--primary-glow);
  border: 1px solid rgba(255, 87, 34, 0.3);
  object-fit: cover;
  transition: var(--transition);
}
.brand-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 87, 34, 0.5);
}
.brand-logo span.highlight {
  color: var(--primary);
}
.domain-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--accent-cyan);
  font-family: monospace;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
  margin: 1.2rem 0;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.trust-item svg {
  color: var(--accent-emerald);
}

/* Hero POS Demo Preview Card */
.hero-mockup-wrapper {
  position: relative;
}

.glow-backdrop {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.pos-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--border-glow);
  backdrop-filter: blur(20px);
}

.pos-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}
.section-header h2 {
  font-size: 2.4rem;
  margin: 0.8rem 0;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Feature Modules Section */
.features-section {
  padding: 6rem 0;
  background: var(--bg-darker);
  position: relative;
}

.modules-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: rgba(255, 87, 34, 0.15);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.module-display {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.module-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.module-features-list {
  list-style: none;
  margin: 1.5rem 0;
}
.module-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--text-secondary);
  font-size: 1rem;
}
.module-features-list svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.module-image-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.module-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Interactive POS Simulator Section */
.simulator-section {
  padding: 6rem 0;
}

.simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.pos-products-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid var(--border);
}

.categories-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.cat-chip {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.cat-chip.active {
  background: var(--primary);
  color: #FFF;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.9rem;
}

.product-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
  transition: var(--transition);
  user-select: none;
}
.product-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}
.product-item .p-emoji { font-size: 1.8rem; margin-bottom: 0.3rem; }
.product-item .p-name { font-size: 0.85rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.2rem; }
.product-item .p-price { font-size: 0.9rem; color: var(--accent-cyan); font-weight: 800; }

.pos-cart-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.cart-items-list {
  flex: 1;
  max-height: 240px;
  overflow-y: auto;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.cart-totals {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.total-amount { color: var(--accent-emerald); }

.payment-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* Receipt Modal / Alert */
.sunat-badge-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  margin-top: 0.8rem;
  justify-content: center;
}

/* SUNAT Invoicing Banner */
.sunat-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sunat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.sunat-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.sunat-feat-card {
  background: var(--bg-card);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.sunat-feat-card h4 {
  color: var(--accent-emerald);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.sunat-feat-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ROI Calculator Section */
.roi-section {
  padding: 6rem 0;
  background: var(--bg-darker);
}
.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.range-slider-group {
  margin-bottom: 1.8rem;
}
.range-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  accent-color: var(--primary);
}

.roi-result-box {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--primary-glow);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}
.roi-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-emerald);
  font-family: var(--font-heading);
  margin: 0.5rem 0;
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 0;
}

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.4rem;
  border-radius: var(--radius-full);
  display: flex;
  gap: 0.3rem;
}
.toggle-opt {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.toggle-opt.active {
  background: var(--primary);
  color: #FFF;
}
.discount-badge {
  background: var(--accent-emerald);
  color: #070A10;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}
.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.25);
  background: linear-gradient(180deg, rgba(255, 87, 34, 0.08) 0%, var(--bg-card) 40%);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
}

.price-header h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.price-header p { font-size: 0.875rem; color: var(--text-muted); min-height: 40px; }

.price-val {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.currency { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.amount { font-size: 3rem; font-weight: 800; font-family: var(--font-heading); color: var(--text-main); }
.period { font-size: 0.9rem; color: var(--text-muted); }

.price-features {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}
.price-features svg { color: var(--accent-emerald); flex-shrink: 0; }

/* Testimonials / Peruvian Restaurants */
.testimonials-section {
  padding: 6rem 0;
  background: var(--bg-darker);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars { color: var(--accent-amber); font-size: 1.1rem; margin-bottom: 1rem; }
.t-text { font-size: 0.95rem; color: var(--text-secondary); font-style: italic; margin-bottom: 1.5rem; }

.t-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.author-info h4 { font-size: 0.95rem; }
.author-info p { font-size: 0.8rem; color: var(--text-muted); }

/* FAQ Accordion */
.faq-section {
  padding: 6rem 0;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-question {
  padding: 1.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.faq-answer {
  padding: 0 1.4rem 1.4rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}
.faq-item.active .faq-answer { display: block; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }

/* CTA Banner */
.cta-section {
  padding: 5rem 0;
  position: relative;
}
.cta-card {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%), var(--bg-surface);
  border: 1px solid var(--primary-glow);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.cta-card h2 { font-size: 2.6rem; margin-bottom: 1rem; }
.cta-card p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem auto; }

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; }
.footer-title { color: var(--text-main); font-weight: 700; margin-bottom: 1.2rem; font-size: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 10, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.5rem;
  color: var(--text-muted);
}
.modal-close:hover { color: var(--text-main); }

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .module-display, .sunat-grid, .roi-card {
    grid-template-columns: 1fr;
  }
  .pricing-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .simulator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .hero-content h1 { font-size: 2.1rem; line-height: 1.25; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .section-header h2 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-tooltip { display: none; }
  
  .simulator-card { padding: 1rem 0.8rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .payment-buttons { flex-direction: column; gap: 0.5rem; }
  .payment-buttons .btn { width: 100%; }
  
  .receipt-modal-content {
    width: 95%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1rem;
  }
  
  .whatsapp-float-container {
    bottom: 1rem;
    right: 1rem;
  }
  .whatsapp-float-btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float-btn svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .product-item { padding: 0.6rem 0.4rem; }
  .product-item .p-emoji { font-size: 1.5rem; }
  .product-item .p-name { font-size: 0.8rem; }
  .product-item .p-price { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 0.8rem 0.9rem; font-size: 0.85rem; }
}

/* ==========================================================================
   Thermal Receipt SUNAT Simulation Styles
   ========================================================================== */
.receipt-modal-content {
  max-width: 420px;
  padding: 1.5rem;
  background: var(--bg-surface);
}

.thermal-receipt {
  background: #FFF;
  color: #111;
  font-family: 'Courier New', Courier, monospace;
  padding: 1.2rem;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-size: 0.85rem;
  line-height: 1.3;
}

.receipt-header {
  text-align: center;
}
.receipt-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 0.3rem;
}
.receipt-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #000;
  margin: 0.2rem 0;
}
.receipt-header p {
  font-size: 0.75rem;
  color: #444;
  margin: 0;
}

.receipt-divider {
  border-bottom: 1px dashed #666;
  margin: 0.8rem 0;
}

.receipt-title {
  text-align: center;
}
.receipt-title h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
}
.receipt-title p {
  font-weight: bold;
  font-size: 0.85rem;
  margin: 0.1rem 0 0 0;
}

.receipt-meta div {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.receipt-items-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.receipt-items .r-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.receipt-totals {
  font-size: 0.8rem;
}
.receipt-totals .r-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}
.receipt-totals .total-row {
  font-size: 0.95rem;
  font-weight: 900;
  color: #000;
  border-top: 1px solid #000;
  padding-top: 0.3rem;
  margin-top: 0.3rem;
}

.receipt-footer {
  text-align: center;
  margin-top: 0.8rem;
}
.qr-placeholder {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.qr-placeholder svg {
  color: #111;
}
.sunat-status {
  color: #059669;
  font-weight: bold;
  font-size: 0.78rem;
  margin: 0.2rem 0;
}
.restoclick-tag {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.3rem;
}

.receipt-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

/* ==========================================================================
   Comparison Table Styles
   ========================================================================== */
.comparison-section {
  padding: 5rem 0;
}

.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th, 
.comparison-table td {
  padding: 1.2rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-surface);
  font-size: 1rem;
  font-weight: 700;
}

.col-traditional {
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.02);
}

.col-restoclick {
  color: #10B981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.05);
}

.comparison-table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

/* ==========================================================================
   Floating WhatsApp Widget Styles
   ========================================================================== */
.whatsapp-float-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-decoration: none;
}
.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #EF4444;
  color: #FFF;
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.wa-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  max-width: 260px;
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  animation: float-soft 3s ease-in-out infinite;
}

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

.wa-tooltip-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.wa-online-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
}

.wa-tooltip-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
  opacity: 1;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SEO Nichos & Local Coverage Styles
   ========================================================================== */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition);
}
.niche-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.niche-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.niche-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.niche-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.niche-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}
.niche-list li {
  margin-bottom: 0.4rem;
}

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.city-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.city-pill.highlight-pill {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-main);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.hw-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.hw-card strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.3rem;
}

