/* ============================================================
   RESERVITY — Landing Page
   Design System: Dark Vanguard · Indigo + Emerald accents
   Matches Casa Laguna CRM aesthetic
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary:        #818cf8;
  --primary-hover:  #6366f1;
  --primary-dark:   #4f46e5;
  --primary-glow:   rgba(99, 102, 241, 0.18);
  --primary-light:  rgba(129, 140, 248, 0.10);

  --accent:         #f59e0b;
  --accent-light:   rgba(245, 158, 11, 0.12);
  --green:          #34d399;
  --green-light:    rgba(52, 211, 153, 0.12);
  --blue:           #60a5fa;
  --orange:         #fb923c;
  --purple:         #a78bfa;

  --bg:             #07070e;
  --bg-surface:     #0d0d16;
  --bg-elevated:    #12121e;
  --bg-muted:       #16162a;
  --bg-subtle:      #1a1a32;

  --text:           #e2e8f0;
  --text-muted:     #94a3b8;
  --text-dim:       #64748b;

  --border:         rgba(255, 255, 255, 0.06);
  --border-hover:   rgba(255, 255, 255, 0.10);
  --border-active:  rgba(129, 140, 248, 0.35);

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 20px 50px rgba(0,0,0,0.6);
  --shadow-xl:  0 40px 80px rgba(0,0,0,0.7);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --radius-full:9999px;

  --nav-h: 72px;
  --max-w: 1200px;
  --gap:   1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }
* { scrollbar-width: thin; scrollbar-color: rgba(99,102,241,0.3) transparent; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { line-height: 1.15; letter-spacing: -0.03em; }
p { line-height: 1.7; color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 40%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  padding: 0.6rem 1.4rem;
  white-space: nowrap;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.3), 0 4px 16px rgba(99,102,241,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.5), 0 6px 24px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(129,140,248,0.35);
}
.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99,102,241,0.2);
}

.btn-lg  { padding: 0.8rem 1.8rem; font-size: 0.95rem; }
.btn-xl  { padding: 0.95rem 2.2rem; font-size: 1rem; min-height: 48px; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-lg); }

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-10px) rotate(0.3deg); }
  66%      { transform: translateY(-5px) rotate(-0.3deg); }
}
@keyframes glowFloat {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.7; }
  50%      { transform: translate(30px,20px) scale(1.1); opacity: 1; }
}
@keyframes glowFloat2 {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.5; }
  50%      { transform: translate(-20px,30px) scale(1.08); opacity: 0.8; }
}
@keyframes typingDot {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30%          { transform: translateY(-5px); opacity: 1; }
}
@keyframes pulseAi {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}
@keyframes badgePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.8); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes slideDown {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fcFloat1 {
  0%,100% { transform: translateY(0px) translateX(0px); }
  50%      { transform: translateY(-8px) translateX(4px); }
}
@keyframes fcFloat2 {
  0%,100% { transform: translateY(0px) translateX(0px); }
  50%      { transform: translateY(6px) translateX(-4px); }
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7,7,14,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  flex-shrink: 0;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.nav-logo span { background: linear-gradient(135deg,#e2e8f0,#94a3b8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 1rem;
}
.nav-actions .btn-ghost { font-size: 0.88rem; }
.nav-actions .btn-primary { font-size: 0.88rem; padding: 0.55rem 1.2rem; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mobile-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(7,7,14,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.25s ease;
}
.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }
.mobile-actions { display:flex; gap:0.75rem; margin-top:1rem; }
.mobile-actions .btn { flex:1; justify-content:center; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.g1 {
  width: 650px; height: 450px;
  background: rgba(99,102,241,0.13);
  top: -120px; left: -150px;
  animation: glowFloat 9s ease-in-out infinite;
}
.g2 {
  width: 450px; height: 550px;
  background: rgba(52,211,153,0.07);
  bottom: -80px; right: -100px;
  animation: glowFloat2 12s ease-in-out infinite;
}
.g3 {
  width: 320px; height: 320px;
  background: rgba(245,158,11,0.05);
  top: 45%; left: 45%;
  transform: translate(-50%,-50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero .container { z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0 5rem;
}

/* --- Hero Left --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}
.badge-pulse {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: badgePulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}
.hero-desc strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-trust strong { color: var(--text); }

.trust-avatars {
  display: flex;
}
.av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-left: -8px;
}
.av:first-child { margin-left: 0; }

/* --- Hero Right (mockup) --- */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.mockup-wrapper {
  position: relative;
  animation: float 7s ease-in-out infinite;
}
.mockup-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(99,102,241,0.15) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* Float stat cards */
.float-card {
  position: absolute;
  z-index: 10;
  background: rgba(18,18,30,0.92);
  border: 1px solid rgba(129,140,248,0.18);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-md), 0 0 20px rgba(99,102,241,0.08);
}
.fc-icon { font-size: 1.4rem; }
.fc-text strong { display:block; font-size:0.82rem; font-weight:700; color:var(--text); }
.fc-text span { font-size:0.72rem; color:var(--text-muted); }

.fc-top {
  top: -16px; right: -40px;
  animation: fcFloat1 5s ease-in-out infinite;
}
.fc-bottom {
  bottom: 30px; left: -50px;
  animation: fcFloat2 6s ease-in-out infinite;
}

/* Mockup card (browser window) */
.mockup-card {
  position: relative;
  z-index: 1;
  width: 520px;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.15),
    var(--shadow-xl),
    0 0 60px rgba(99,102,241,0.07);
}

/* Chrome top bar */
.mockup-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.chrome-dots { display:flex; gap:5px; }
.dot { width:10px; height:10px; border-radius:50%; }
.dr { background:#f87171; }
.dy { background:#fbbf24; }
.dg { background:#34d399; }
.chrome-url {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* CRM body inside mockup */
.mockup-body {
  display: flex;
  height: 330px;
}

/* mini sidebar */
.m-sidebar {
  width: 54px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
  gap: 0.5rem;
  flex-shrink: 0;
}
.m-logo {
  padding: 0.3rem;
  margin-bottom: 0.5rem;
}
.m-nav { display:flex; flex-direction:column; gap:4px; width:100%; padding:0 6px; }
.m-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.4rem 0.3rem;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.m-nav-item em {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--primary);
  color: white;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 700;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.m-nav-item:hover:not(.active) { background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* chat area */
.m-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.m-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.m-user { display:flex; align-items:center; gap:0.5rem; }
.m-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.m-channel {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  color: var(--text-dim);
}
.ai-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}
.ai-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseAi 2s ease infinite;
}

/* messages */
.m-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.msg { display:flex; }
.user-msg {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  font-size: 0.72rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border-bottom-right-radius: 3px;
  max-width: 75%;
  line-height: 1.5;
}
.bot-msg {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  max-width: 82%;
}
.bot-label {
  font-size: 0.55rem;
  font-weight: 800;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(129,140,248,0.2);
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
  letter-spacing: 0.05em;
}
.bot-bubble {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  line-height: 1.55;
}
.confirm-btn {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  cursor: pointer;
}

/* typing indicator */
.m-typing {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0.75rem 0.65rem;
}
.td {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: typingDot 1.4s infinite;
}
.td:nth-child(2) { animation-delay: 0.18s; }
.td:nth-child(3) { animation-delay: 0.36s; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(129,140,248,0.6), transparent);
  margin: 0 auto;
  animation: float 2.5s ease-in-out infinite;
}

/* ============================================================
   STATS
============================================================ */
.stats {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: 1.5rem 3.5rem;
  flex: 1;
  min-width: 160px;
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #818cf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-suf {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #818cf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat p { font-size: 0.82rem; margin-top: 0.3rem; color: var(--text-dim); }
.stat-sep {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.2);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}
.section-header p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ============================================================
   FEATURES
============================================================ */
.features {
  padding: 7rem 0;
  background: var(--bg);
}

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

.feat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129,140,248,0.25), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover {
  border-color: rgba(129,140,248,0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(99,102,241,0.07);
}
.feat-card:hover::before { opacity: 1; }

.feat-primary {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(129,140,248,0.04) 100%);
  border-color: rgba(129,140,248,0.2);
  box-shadow: 0 0 30px rgba(99,102,241,0.06);
}
.feat-primary::before { opacity: 1; }

.feat-tag {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(52,211,153,0.1);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.feat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.fi-indigo { background: rgba(99,102,241,0.12); color: var(--primary); }
.fi-amber  { background: rgba(245,158,11,0.12); color: var(--accent); }
.fi-green  { background: rgba(52,211,153,0.12); color: var(--green); }
.fi-purple { background: rgba(167,139,250,0.12); color: var(--purple); }
.fi-blue   { background: rgba(96,165,250,0.12); color: var(--blue); }
.fi-orange { background: rgba(251,146,60,0.12); color: var(--orange); }

.feat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.feat-card p { font-size: 0.9rem; line-height: 1.7; }

/* staggered delays */
.features-grid .feat-card:nth-child(1) { transition-delay: 0.0s; }
.features-grid .feat-card:nth-child(2) { transition-delay: 0.08s; }
.features-grid .feat-card:nth-child(3) { transition-delay: 0.16s; }
.features-grid .feat-card:nth-child(4) { transition-delay: 0.24s; }
.features-grid .feat-card:nth-child(5) { transition-delay: 0.32s; }
.features-grid .feat-card:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   INTEGRATIONS / CHANNELS
============================================================ */
.integrations {
  padding: 7rem 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.integrations::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129,140,248,0.2), transparent);
}
.integrations::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129,140,248,0.2), transparent);
}

.channels-grid {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ch-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  width: 175px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ch-card:hover { transform: translateY(-4px); }

.ch-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: box-shadow 0.25s;
}
.ch-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.3rem; }
.ch-card p  { font-size: 0.78rem; color: var(--text-dim); }

.ch-wa { border-color: rgba(37,211,102,0.15); }
.ch-wa:hover { border-color: rgba(37,211,102,0.4); box-shadow: 0 8px 30px rgba(37,211,102,0.08); }
.ch-wa .ch-icon { background: rgba(37,211,102,0.1); color: #25d366; }
.ch-wa:hover .ch-icon { box-shadow: 0 0 20px rgba(37,211,102,0.2); }

.ch-ig { border-color: rgba(225,48,108,0.15); }
.ch-ig:hover { border-color: rgba(225,48,108,0.4); box-shadow: 0 8px 30px rgba(225,48,108,0.08); }
.ch-ig .ch-icon { background: rgba(225,48,108,0.1); color: #e1306c; }
.ch-ig:hover .ch-icon { box-shadow: 0 0 20px rgba(225,48,108,0.2); }

.ch-fb { border-color: rgba(0,132,255,0.15); }
.ch-fb:hover { border-color: rgba(0,132,255,0.4); box-shadow: 0 8px 30px rgba(0,132,255,0.08); }
.ch-fb .ch-icon { background: rgba(0,132,255,0.1); color: #0084ff; }
.ch-fb:hover .ch-icon { box-shadow: 0 0 20px rgba(0,132,255,0.2); }

.ch-web { border-color: rgba(129,140,248,0.15); }
.ch-web:hover { border-color: rgba(129,140,248,0.4); box-shadow: 0 8px 30px rgba(99,102,241,0.08); }
.ch-web .ch-icon { background: rgba(129,140,248,0.1); color: var(--primary); }
.ch-web:hover .ch-icon { box-shadow: 0 0 20px rgba(99,102,241,0.2); }

.ch-api { border-color: rgba(100,116,139,0.15); }
.ch-api:hover { border-color: rgba(100,116,139,0.4); box-shadow: 0 8px 30px rgba(100,116,139,0.06); }
.ch-api .ch-icon { background: rgba(100,116,139,0.1); color: var(--text-dim); }

/* ============================================================
   HOW IT WORKS
============================================================ */
.how {
  padding: 7rem 0;
  background: var(--bg);
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  text-align: center;
  flex: 1;
  max-width: 300px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 1rem;
}
.step-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.si-indigo { background: rgba(99,102,241,0.1); color: var(--primary); }
.si-amber  { background: rgba(245,158,11,0.1); color: var(--accent); }
.si-green  { background: rgba(52,211,153,0.1); color: var(--green); }

.step h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.65rem; }
.step p  { font-size: 0.87rem; line-height: 1.7; }

.step-arrow {
  padding: 0 1.25rem;
  flex-shrink: 0;
  opacity: 0.7;
}
.step-arrow svg { width: 80px; }

/* ============================================================
   PRICING
============================================================ */
.pricing {
  padding: 7rem 0;
  background: var(--bg-surface);
  position: relative;
}

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

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.price-featured {
  background: linear-gradient(160deg, rgba(79,70,229,0.12) 0%, rgba(99,102,241,0.06) 100%);
  border-color: rgba(129,140,248,0.35);
  box-shadow: 0 0 40px rgba(99,102,241,0.1), inset 0 1px 0 rgba(129,140,248,0.1);
  transform: none;
}
.price-featured:hover { transform: translateY(-3px); }

.pc-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}

.pc-header { margin-bottom: 2rem; }
.pc-plan { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.pc-price {
  display: flex;
  align-items: flex-end;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.pc-price sup { font-size: 1.4rem; font-weight: 700; color: var(--text); align-self: flex-start; margin-top: 4px; }
.pc-price span { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.05em; color: var(--text); }
.pc-custom { font-size: 2.2rem !important; font-weight: 900; letter-spacing: -0.04em; color: var(--text); margin-bottom: 0.5rem; }
.pc-period { font-size: 0.8rem; color: var(--text-dim); }

.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1 1 auto;
}

.price-card .btn-full {
  margin-top: auto;
}
.pc-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.pc-features li svg { width: 16px; height: 16px; flex-shrink: 0; }
.pc-features li.ok { color: var(--text); }
.pc-features li.ok svg { color: var(--green); }
.pc-features li.no { color: var(--text-dim); }
.pc-features li.no svg { color: var(--text-dim); opacity: 0.4; }

/* ============================================================
   FINAL CTA
============================================================ */
.cta-banner {
  padding: 7rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-glow {
  position: absolute;
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(60px);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.cta-inner p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

.footer-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; }

.footer-social { display:flex; gap:0.6rem; }
.soc-btn {
  width: 36px; height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s;
}
.soc-btn:hover { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.04); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.87rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-love { color: var(--text-dim); }

/* Tablets (1024px y menos) */
@media (max-width: 1024px) {
  :root { --gap: 1.25rem; }

  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mockup-card { width: 100%; max-width: 420px; height: auto; }
  .mockup-body { height: 280px; }
  .fc-top { right: -15px; }
  .fc-bottom { left: -15px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card { padding: 1.75rem; }

  .steps-row { gap: 0.75rem; }
  .step { padding: 1.75rem; max-width: 280px; }
  .step-arrow svg { width: 60px; }

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

  .footer-top { grid-template-columns: 1fr; gap: 3rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* iPad / Tablets pequeños (900px) */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(2rem, 4vw, 3.2rem); }
  
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-3px); }
  
  .steps-row { flex-direction: column; gap: 1.25rem; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0.75rem 0; opacity: 0.5; }
  .step { max-width: 100%; width: 100%; }

  .channels-grid { gap: 0.75rem; }
  .ch-card { width: calc(50% - 0.375rem); }

  .hero-badge { font-size: 0.75rem; padding: 0.35rem 0.9rem; }
  
  .container { padding: 0 1.5rem; }
}

/* Tablets grandes a pequeñas (768px) */
@media (max-width: 768px) {
  :root { 
    --nav-h: 60px;
    --gap: 1rem;
  }

  /* Navbar */
  .nav-container { padding: 0 1.25rem; gap: 1rem; }
  .nav-logo span { display: inline; font-size: 1rem; }
  .nav-links, .nav-actions { display: none !important; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu.open { display: flex; }

  /* Hero */
  .hero {
    min-height: 90vh;
    padding-top: var(--nav-h);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem;
    text-align: center;
  }

  .hero-content { order: 1; }
  .hero-visual { order: 2; }

  .hero-title { 
    font-size: clamp(2.4rem, 7vw, 3.2rem);
    text-align: center;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 0.32rem 0.75rem;
    margin-bottom: 1.1rem;
  }

  .hero-desc { 
    font-size: 0.95rem;
    margin: 0 auto 2rem;
  }

  .hero-actions { 
    justify-content: center;
    gap: 0.6rem;
  }

  .hero-trust { 
    justify-content: center;
    margin-top: 1.5rem;
  }

  .scroll-hint {
    display: none;
  }

  .mockup-card {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-lg);
  }

  .mockup-body { height: 255px; }
  .mockup-chrome { padding: 0.6rem 0.85rem; }
  .chrome-url { font-size: 0.65rem; }

  .m-messages { padding: 0.5rem; gap: 0.4rem; }
  .user-msg, .bot-bubble { font-size: 0.65rem; max-width: 80%; }
  
  .fc-top { 
    right: -8px;
    top: -10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .fc-bottom { 
    left: -8px;
    bottom: 15px;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Stats */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    align-items: stretch;
  }

  .stat {
    padding: 0.9rem 0.7rem;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
  }

  .stat-num { font-size: 1.7rem; }
  .stat-suf { font-size: 0.95rem; }
  .stat p { font-size: 0.72rem; line-height: 1.35; }

  .stat-sep { display: none; }

  /* Sections */
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
  .section-header p { font-size: 0.95rem; }

  /* Features */
  .features { padding: 4rem 0; }
  .features-grid { 
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feat-card { 
    padding: 1.5rem;
    text-align: left;
  }

  .feat-card h3 { font-size: 1rem; }
  .feat-card p { font-size: 0.85rem; }

  /* Integrations */
  .integrations { padding: 4rem 0; }
  .channels-grid { 
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ch-card { 
    width: calc(50% - 0.375rem);
    padding: 1.25rem 1rem;
    flex: 0 0 auto;
  }

  .ch-icon { 
    width: 44px;
    height: 44px;
  }

  .ch-card h4 { font-size: 0.88rem; }
  .ch-card p { font-size: 0.72rem; }

  /* How it works */
  .how { padding: 4rem 0; }
  .step { 
    max-width: 100%;
    padding: 1.5rem;
  }

  .step h3 { font-size: 0.95rem; }
  .step p { font-size: 0.82rem; }

  .step-num { font-size: 0.65rem; }

  /* Pricing */
  .pricing { padding: 4rem 0; }
  .pricing-grid { 
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;
  }

  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-3px); }

  .price-card { padding: 1.75rem; }
  .pc-price span { font-size: 2.8rem; }
  .pc-features { gap: 0.6rem; }
  .pc-features li { font-size: 0.82rem; }

  /* CTA */
  .cta-banner { padding: 4rem 0; }
  .cta-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
  .cta-inner p { font-size: 0.95rem; }

  .cta-actions { 
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-xl { 
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  /* Footer */
  .footer { padding: 3.5rem 0 2rem; }
  .footer-top { gap: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-col h5 { font-size: 0.7rem; margin-bottom: 0.75rem; }
  .footer-col a { font-size: 0.8rem; margin-bottom: 0.5rem; }
  .footer-bottom { gap: 0.3rem; }
}

/* Móviles grandes (640px) */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }

  .hero {
    min-height: 85vh;
  }

  .hero-title { font-size: clamp(2.2rem, 7.5vw, 2.7rem); }
  
  .btn-lg { 
    padding: 0.7rem 1.4rem;
    font-size: 0.87rem;
  }

  .nav-logo {
    font-size: 1rem;
    gap: 0.4rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .mobile-menu-btn span {
    width: 20px;
    height: 2px;
  }

  .mobile-menu {
    padding: 0.75rem 1rem 1rem;
  }

  .mobile-menu a {
    font-size: 0.9rem;
    padding: 0.6rem 0.3rem;
  }

  .ch-card { 
    width: calc(50% - 0.375rem);
    padding: 1rem 0.75rem;
  }

  .stat { padding: 1rem 1rem; }
  .stat-num { font-size: 1.9rem; }

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

  /* Hide stats on mobile per request */
  .stats { display: none !important; }

  /* Keep layout clean on phone: smaller visual size without cramping internals */
  .mockup-card { transform: scale(0.92); transform-origin: center; }
  .mockup-body { height: 235px; }
  .float-card {
    display: flex;
    padding: 0.5rem 0.7rem;
    gap: 0.45rem;
  }

  .fc-icon { font-size: 1rem; }
  .fc-text strong { font-size: 0.72rem; }
  .fc-text span { font-size: 0.62rem; }
}

/* Móviles pequeños (480px) */
@media (max-width: 480px) {
  :root { 
    --nav-h: 56px;
  }

  .container { padding: 0 0.875rem; }

  .hero {
    min-height: 80vh;
    padding-top: var(--nav-h);
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 2.5rem);
  }

  .hero-badge {
    font-size: 0.62rem;
    padding: 0.28rem 0.62rem;
    margin-bottom: 0.95rem;
  }

  .hero-desc { 
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 auto 1.75rem;
  }

  .btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    gap: 0.35rem;
  }

  .btn-lg { 
    padding: 0.65rem 1.2rem;
    font-size: 0.83rem;
  }

  .btn-xl { 
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Navbar optimizado */
  .nav-container { 
    padding: 0 1rem;
    height: 56px;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .nav-logo span { 
    font-size: 1rem;
    display: inline;
  }

  /* Hero actions */
  .hero-actions { 
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero trust */
  .hero-trust { 
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.78rem;
  }

  .av { 
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
    margin-left: -6px;
  }

  .av:first-child { margin-left: 0; }

  /* Mockup */
  .mockup-card { 
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .mockup-chrome {
    padding: 0.5rem 0.7rem;
    flex-direction: row;
    gap: 0.25rem;
  }

  .chrome-dots { gap: 3px; }
  .dot { width: 8px; height: 8px; }

  .chrome-url {
    font-size: 0.58rem;
    padding: 0.2rem 0.5rem;
    width: auto;
    max-width: 64%;
    justify-content: center;
  }

  .mockup-body {
    height: 220px;
    flex-direction: row;
    overflow: hidden;
  }

  .m-sidebar { 
    width: 48px;
    padding: 0.5rem 0;
    gap: 0.3rem;
  }

  .m-logo { 
    padding: 0.25rem;
    margin-bottom: 0.3rem;
  }

  .m-nav-item { 
    font-size: 0.52rem;
    padding: 0.3rem 0.2rem;
  }

  .m-chat-header { 
    padding: 0.5rem 0.6rem;
  }

  .m-avatar { 
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .m-name { font-size: 0.72rem; }
  .m-channel { font-size: 0.55rem; }

  .ai-badge { 
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }

  .ai-dot {
    width: 5px;
    height: 5px;
  }

  .fc-top {
    top: -10px;
    right: 6px;
    animation: fcFloat1 5s ease-in-out infinite;
  }

  .fc-bottom {
    bottom: 10px;
    left: 4px;
    animation: fcFloat2 6s ease-in-out infinite;
  }

  .float-card {
    padding: 0.42rem 0.55rem;
    gap: 0.35rem;
  }

  .fc-icon { font-size: 0.9rem; }
  .fc-text strong { font-size: 0.66rem; }
  .fc-text span { font-size: 0.56rem; }

  /* Stats */
  .stats { padding: 1.1rem 0; }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .stat {
    padding: 0.75rem 0.5rem;
  }

  /* Smaller mockup while keeping content readable */
  .mockup-card { transform: scale(0.86); transform-origin: center; }

  .stat-num { font-size: 1.45rem; }
  .stat-suf { font-size: 0.82rem; }
  .stat p { font-size: 0.66rem; line-height: 1.3; }

  /* Sections */
  .features, .integrations, .how, .pricing, .cta-banner {
    padding: 2.5rem 0;
  }

  .section-header { margin-bottom: 1.75rem; }
  .section-header h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
  .section-header p { font-size: 0.88rem; }

  .section-badge { 
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  /* Features */
  .features-grid { gap: 0.75rem; }
  .feat-card { 
    padding: 1.25rem;
    text-align: center;
  }

  .feat-icon-wrap {
    margin: 0 auto 1rem;
  }

  .feat-card h3 { 
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .feat-card p { 
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .feat-tag { 
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.5rem;
  }

  /* Channels */
  .channels-grid { 
    gap: 0.5rem;
  }

  .ch-card { 
    width: calc(50% - 0.25rem);
    padding: 0.9rem 0.65rem;
  }

  .ch-icon { 
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }

  .ch-card h4 { font-size: 0.82rem; }
  .ch-card p { font-size: 0.68rem; }

  /* Steps */
  .step { 
    padding: 1.25rem;
    max-width: 100%;
  }

  .step-num { font-size: 0.6rem; }
  .step-icon-wrap { 
    width: 50px;
    height: 50px;
  }

  .step h3 { 
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .step p { 
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .step-arrow { display: none; }

  /* Pricing */
  .pc-plan { font-size: 0.8rem; }
  .pc-price { margin-bottom: 0.3rem; }
  .pc-price sup { font-size: 1.2rem; }
  .pc-price span { font-size: 2.5rem; }
  .pc-period { font-size: 0.75rem; }
  .pc-features { gap: 0.55rem; margin-bottom: 1.5rem; }
  .pc-features li { font-size: 0.78rem; }

  .btn-full { 
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
  }

  /* CTA */
  .cta-inner h2 { 
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 0.9rem;
  }

  .cta-inner p { 
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .cta-actions { 
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  /* Footer */
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-top { gap: 1.5rem; }

  .footer-brand p { 
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .footer-social { gap: 0.5rem; }
  .soc-btn { 
    width: 32px;
    height: 32px;
  }

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

  .footer-col h5 { 
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
  }

  .footer-col a { 
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }

  .footer-bottom { 
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-love { 
    font-size: 0.75rem;
  }
}

/* Ultra pequeños (320px) */
@media (max-width: 380px) {
  .container { padding: 0 0.75rem; }

  .hero-title { font-size: clamp(1.8rem, 8.5vw, 2.2rem); }

  .hero-desc { 
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .mockup-card {
    display: block;
    max-width: 290px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 2rem;
    gap: 1.2rem;
  }

  .mockup-body {
    height: 205px;
  }

  .mockup-card {
    transform: scale(0.8);
    transform-origin: center;
  }

  .m-sidebar {
    width: 42px;
  }

  .ch-card { 
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .stat { 
    padding: 0.85rem 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
  }

  .stat-num { font-size: 1.35rem; }
  .stat-suf { font-size: 0.75rem; }
  .stat p { font-size: 0.62rem; line-height: 1.25; }

  .feat-card { padding: 1rem; }
  .feat-card h3 { font-size: 0.9rem; }
  .feat-card p { font-size: 0.8rem; }

  .step { padding: 1rem; }
  .step h3 { font-size: 0.85rem; }

  .footer-cols {
    gap: 0.75rem;
  }
}

/* Modo Horizontal en móviles (landscape) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: var(--nav-h);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content { order: 1; }
  .hero-visual { order: 2; }

  .mockup-card {
    max-width: 360px;
  }

  .stats { padding: 1rem 0; }
  .stat { padding: 1rem 1.5rem; }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  .features, .integrations, .how, .pricing, .cta-banner {
    padding: 2rem 0;
  }
}

/* ============================================================
   REGISTRATION MODAL
============================================================ */
.reg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 1.5rem;
}
.reg-overlay.open {
  opacity: 1;
  visibility: visible;
}

.reg-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}
.reg-overlay.open .reg-modal {
  transform: translateY(0) scale(1);
}

.reg-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.reg-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.reg-header {
  margin-bottom: 2rem;
  text-align: center;
}
.reg-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.reg-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reg-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.reg-section-title:first-of-type {
  margin-top: 0;
}

.reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.reg-field {
  margin-bottom: 1rem;
}
.reg-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.reg-field input,
.reg-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.reg-field input::placeholder {
  color: var(--text-dim);
}
.reg-field input:focus,
.reg-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.reg-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
}

/* Chips for business type */
.reg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.reg-chip {
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.reg-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-subtle);
}
.reg-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.reg-giro-other {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reg-giro-other::placeholder {
  color: var(--text-dim);
}
.reg-giro-other:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.reg-submit {
  margin-top: 1.5rem;
}

/* Scrollbar inside modal */
.reg-modal::-webkit-scrollbar { width: 4px; }
.reg-modal::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.25); border-radius: 10px; }

/* Mobile */
@media (max-width: 600px) {
  .reg-modal { padding: 1.75rem 1.25rem; }
  .reg-row { grid-template-columns: 1fr; gap: 0; }
  .reg-header h2 { font-size: 1.25rem; }
}

/* Login modal (smaller) */
.login-modal {
  max-width: 420px;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  margin-top: 0.25rem;
}
.login-error svg {
  flex-shrink: 0;
  color: #f87171;
}

.login-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.login-footer a {
  color: var(--primary);
  font-weight: 600;
  margin-left: 0.25rem;
  transition: color 0.2s;
}
.login-footer a:hover {
  color: var(--primary-hover);
}
