/* ==========================================================================
   PLUSVENTA POS — HOJA DE ESTILOS PROFESIONAL & RESPONSIVE
   Diseño de Alta Conversión optimizado para Móviles, Tablets y Escritorio.
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);

  --secondary: #0ea5e9;
  --accent: #10b981;
  --accent-light: #ecfdf5;
  --accent-glow: rgba(16, 185, 129, 0.25);

  --dark-950: #070a12;
  --dark-900: #090d16;
  --dark-850: #0d1220;
  --dark-800: #0f172a;
  --dark-700: #1e293b;
  --dark-600: #334155;

  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;

  --white: #ffffff;
  --whatsapp: #25D366;
  --whatsapp-hover: #2fe472;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 36px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px -5px var(--primary-glow);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE (Prevención total de desbordamiento horizontal)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font);
  background-color: var(--dark-900);
  color: var(--gray-200);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

/* IMPORTANTE: Inputs a 16px evitan el auto-zoom molesto en iOS Safari */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Brillo superior contenido */
.bg-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 480px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(14, 165, 233, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   HELPERS & TIPOGRAFÍA FLUIDA
   ========================================================================== */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--gray-400);
  line-height: 1.6;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
  min-height: 48px;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #032511;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #021a0c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 40px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
  min-height: 52px;
}

/* ==========================================================================
   NAVBAR & MENÚ MÓVIL ELEGANTE
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-300);
}

.nav-link:hover {
  color: var(--white);
}

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

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 135px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 20px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  color: var(--gray-300);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gray-300);
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   HERO MOCKUP
   ========================================================================== */
.hero-visual {
  position: relative;
  width: 100%;
}

.pos-mockup-card {
  background: #111728;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px var(--primary-glow);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.mockup-header {
  background: #172036;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mockup-dot.red {
  background: #ef4444;
}

.mockup-dot.yellow {
  background: #f59e0b;
}

.mockup-dot.green {
  background: #10b981;
}

.mockup-user-pill {
  font-size: 0.72rem;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mockup-body {
  padding: 16px;
}

.mockup-search-bar {
  background: #090d18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.mockup-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.mockup-table th {
  text-align: left;
  color: var(--gray-400);
  padding: 6px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  white-space: nowrap;
}

.mockup-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--gray-200);
}

.mockup-totals {
  background: #090d18;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.mockup-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.mockup-total-row span:last-child {
  color: #38bdf8;
}

.floating-pill {
  position: absolute;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  font-size: 0.8rem;
}

.floating-pill.pill-1 {
  bottom: -15px;
  left: -15px;
}

.floating-pill.pill-2 {
  top: 30px;
  right: -15px;
}

.pill-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pill-1 .pill-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.pill-2 .pill-icon {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

/* ==========================================================================
   MÉTRICAS BAR
   ========================================================================== */
.metrics-section {
  padding: 20px 0 60px;
  position: relative;
  z-index: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

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

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-number {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.84rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ==========================================================================
   CARACTERÍSTICAS
   ========================================================================== */
.features-section {
  padding: 80px 0;
  position: relative;
  background: linear-gradient(180deg, var(--dark-900) 0%, #0c1220 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.5);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #60a5fa;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.feature-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-300);
}

.feature-point svg {
  color: #38bdf8;
  flex-shrink: 0;
}

/* ==========================================================================
   DEMOSTRACIÓN INTERACTIVA (TABS)
   ========================================================================== */
.demo-section {
  padding: 80px 0;
  position: relative;
}

.demo-tabs-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  scrollbar-width: none;
}

.demo-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 4px;
  width: max-content;
  margin: 0 auto;
}

.demo-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.demo-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.demo-display {
  background: #0e1424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tab-pane {
  display: none;
  padding: 36px;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.tab-pane-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}

.tab-pane-content p {
  color: var(--gray-300);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.tab-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-200);
}

.tab-highlight-icon {
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 6px;
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.tab-visual-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* ==========================================================================
   PLANES Y PRECIOS
   ========================================================================== */
.pricing-section {
  padding: 80px 0;
  position: relative;
  background: linear-gradient(180deg, #0c1220 0%, var(--dark-900) 100%);
}

.pricing-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 40px;
}

.pricing-banner .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.pricing-banner p {
  font-size: 0.92rem;
  color: #d1fae5;
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: #3b82f6;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 10px 35px -10px var(--primary-glow);
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pricing-card-header {
  padding: 30px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-badge-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.plan-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.plan-subtitle {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.pricing-card-price {
  padding: 24px 28px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.price-currency {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
}

.price-number {
  font-size: clamp(2.4rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: var(--gray-400);
}

.price-detail {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.pricing-card-features {
  padding: 26px 28px;
  flex: 1;
}

.features-list-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-200);
  margin-bottom: 12px;
}

.plan-feature-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-card-footer {
  padding: 0 28px 28px;
}

.pricing-card-footer .btn {
  width: 100%;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  position: relative;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  gap: 14px;
}

.faq-icon {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 0.8rem;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 22px;
  color: var(--gray-300);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================================
   CONTACTO (MÁXIMA OPTIMIZACIÓN MÓVIL)
   ========================================================================== */
.contact-section {
  padding: 80px 0 100px;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #151e36 0%, var(--dark-900) 70%);
}

.contact-card-wrapper {
  max-width: 1020px;
  margin: 0 auto;
  background: #0f1629;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-info-panel {
  background: linear-gradient(135deg, #18223d 0%, #0f172a 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-panel h3 {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
}

.contact-info-panel p {
  color: var(--gray-300);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gray-200);
  font-size: 0.92rem;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.channel-icon.green {
  background: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

.channel-detail strong {
  display: block;
  color: var(--white);
  font-size: 0.96rem;
}

.channel-detail span {
  color: var(--gray-400);
  font-size: 0.82rem;
}

.contact-form-panel {
  padding: 40px;
  background: #0d1324;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-300);
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 16px;
  /* 16px exacto evita zoom en móviles iOS */
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-control::placeholder {
  color: var(--gray-500);
  font-size: 0.9rem;
}

select.form-control option {
  background: #0f172a;
  color: white;
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.form-actions .btn {
  width: 100%;
}

.form-privacy-note {
  font-size: 0.76rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.4;
}

/* Toast Notificación */
.contact-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: #042f2e;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 40px);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--dark-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 0 25px;
  font-size: 0.88rem;
  color: var(--gray-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (MÓVIL & ESCRITORIO)
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE — TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-pane.active {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-card-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 34px 28px;
  }

  .contact-form-panel {
    padding: 34px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE — MÓVIL (<= 768px) ¡OPTIMIZACIÓN COMPLETA!
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* 1. Navbar compacto y limpio */
  .navbar {
    height: 64px;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .nav-links {
    display: none;
    /* Se maneja con toggle de clase .open */
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(9, 13, 22, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 6px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* En móviles, ocultamos el texto largo del botón en el navbar */
  .nav-actions .btn-whatsapp span {
    display: none;
  }

  .nav-actions .btn-whatsapp {
    padding: 8px 12px;
    min-height: 38px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* 2. Hero adaptado */
  .hero {
    padding: 88px 0 45px;
  }

  .hero-badge {
    font-size: 0.74rem;
    padding: 4px 12px;
  }

  .hero-desc {
    margin-bottom: 24px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-trust-badges {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  /* Ocultar píldoras flotantes para evitar desbordamiento */
  .floating-pill {
    display: none;
  }

  .mockup-body {
    padding: 12px;
  }

  /* 3. Métricas en 2 columnas limpias */
  .metrics-section {
    padding: 10px 0 40px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .metric-item {
    background: rgba(255, 255, 255, 0.025);
    padding: 14px 10px;
    border-radius: var(--radius-md);
  }

  .metric-item:not(:last-child)::after {
    display: none;
  }

  .metric-number {
    font-size: 1.6rem;
  }

  .metric-label {
    font-size: 0.76rem;
  }

  /* 4. Características en 1 columna */
  .features-section {
    padding: 55px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 22px 18px;
  }

  /* 5. Demo en Tabs */
  .demo-section {
    padding: 55px 0;
  }

  .demo-tabs-wrap {
    margin-bottom: 20px;
  }

  .tab-pane {
    padding: 20px 16px;
  }

  /* 6. Planes y Precios */
  .pricing-section {
    padding: 55px 0;
  }

  .pricing-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 14px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pricing-card-header {
    padding: 22px 18px 16px;
  }

  .pricing-card-price {
    padding: 18px 18px;
  }

  .pricing-card-features {
    padding: 20px 18px;
  }

  .pricing-card-footer {
    padding: 0 18px 22px;
  }

  /* 7. Contacto (Espaciado amplio para escritura) */
  .contact-section {
    padding: 55px 0 80px;
  }

  .contact-info-panel {
    padding: 26px 18px;
  }

  .contact-form-panel {
    padding: 26px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-channels {
    gap: 14px;
  }

  /* 8. Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* 9. Botón flotante WhatsApp */
  .whatsapp-float-btn {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float-btn svg {
    width: 24px;
    height: 24px;
  }
}