/* ============================================================
   Avi-Smart Pro — Main Stylesheet
   Mobile-first, CSS Custom Properties, Animations
   ============================================================ */

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

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

:root {
  --primary:       #c8a550;
  --primary-dark:  #b08d3a;
  --primary-soft:  rgba(200, 165, 80, 0.12);
  --primary-glow:  rgba(200, 165, 80, 0.25);
  --dark:          #1e293b;
  --darker:        #0f172a;
  --text:          #334155;
  --text-muted:    #64748b;
  --bg:            #f8fafc;
  --bg-white:      #ffffff;
  --border:        #e2e8f0;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    all 0.25s ease-in-out;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:        0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:     0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
  --shadow-gold:   0 8px 32px rgba(200, 165, 80, 0.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5rem 0; }

/* ── @keyframes ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 var(--primary-glow); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes heroEntrance {
  0%   { opacity: 0; transform: translateY(40px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

/* ── Scroll Animations ────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--darker); }

h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(200,165,80,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

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

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--darker);
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--darker);
}

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

.btn-dark {
  background: var(--darker);
  color: #fff;
  border-color: var(--darker);
}
.btn-dark:hover {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--darker);
}
.nav-logo:hover { color: var(--primary); }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--darker); background: var(--bg); }

.nav-cta { display: none; align-items: center; gap: 0.75rem; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--darker);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  animation: slideDown 0.25s ease;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  font-weight: 500;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-mobile a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta   { display: flex; }
  .nav-toggle { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, #fffdf5 40%, var(--bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,165,80,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: heroEntrance 0.9s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(200,165,80,0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: pulse-ring 2.5s infinite;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

.hero h1 { max-width: 820px; margin-bottom: 1.25rem; }
.hero p.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Stats bar */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-bottom: 3rem;
  padding: 1.25rem 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stat .stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--darker);
  line-height: 1;
}
.hero-stat .stat-num .accent { color: var(--primary); }
.hero-stat .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  align-self: center;
  display: none;
}

/* Browser frame mockup */
.browser-frame {
  width: 100%;
  max-width: 900px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 0 0 1px var(--border);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #fc5f5a; }
.browser-dots span:nth-child(2) { background: #fdbc2c; }
.browser-dots span:nth-child(3) { background: #34c74b; }
.browser-url {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
.browser-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-stat-sep { display: block; }
}

/* ── El Ciclo ─────────────────────────────────────────────── */
.ciclo { background: var(--bg-white); }

.ciclo-grid {
  display: grid;
  gap: 1.5rem;
}

.ciclo-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
}
.ciclo-step:hover {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.ciclo-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--primary);
  color: var(--darker);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: var(--radius);
}

.ciclo-body h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.ciclo-body p  { font-size: 0.875rem; color: var(--text-muted); }

@media (min-width: 768px) {
  .ciclo-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Módulos ──────────────────────────────────────────────── */
.modulos { background: var(--bg); }

.module-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.module-filter-tabs button {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.module-filter-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.module-filter-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--darker);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.module-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.module-card:hover::before { opacity: 1; }
.module-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.module-card.hidden { display: none; }

.module-icon {
  width: 48px; height: 48px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  position: relative; z-index: 1;
  transition: background 0.25s;
}
.module-card:hover .module-icon { background: var(--primary); }

.module-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.module-card h3 { margin-bottom: 0.3rem; font-size: 1rem; position: relative; z-index: 1; }
.module-card p  { font-size: 0.83rem; color: var(--text-muted); position: relative; z-index: 1; }

/* ── Product Tour ─────────────────────────────────────────── */
.tour { background: var(--darker); color: #fff; }
.tour .section-label { color: var(--primary); }
.tour .section-header h2 { color: #fff; }
.tour .section-header p  { color: #94a3b8; }

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.tour-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition);
}
.tour-tab:hover { border-color: var(--primary); color: var(--primary); }
.tour-tab.active { background: var(--primary); border-color: var(--primary); color: var(--darker); }

.tour-window {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.tour-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #1a2535;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tour-dots { display: flex; gap: 5px; }
.tour-dots span { width: 11px; height: 11px; border-radius: 50%; }
.tour-dots span:nth-child(1) { background: #fc5f5a; }
.tour-dots span:nth-child(2) { background: #fdbc2c; }
.tour-dots span:nth-child(3) { background: #34c74b; }
.tour-url { flex: 1; text-align: center; font-size: 0.75rem; color: #64748b; }

.tour-img-container {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 300px;
}
.tour-img-container img {
  width: 100%;
  display: block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tour-img-container img.fade-out {
  opacity: 0;
  transform: translateX(18px);
}

/* ── Roles ────────────────────────────────────────────────── */
.roles { background: var(--bg-white); }

.roles-grid {
  display: grid;
  gap: 1.5rem;
}

.role-card {
  padding: 1.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
}
.role-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  background: var(--bg-white);
}

.role-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--primary-soft);
}

.role-card h3 { margin-bottom: 0.25rem; }
.role-card .role-subtitle {
  font-size: 0.83rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.role-perms { display: flex; flex-direction: column; gap: 0.4rem; }
.role-perm {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.role-perm::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (min-width: 768px) { .roles-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Stats Section ────────────────────────────────────────── */
.stats-section { background: var(--darker); padding: 4rem 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-block { text-align: center; padding: 1.5rem; }
.stat-block .big-num {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-block .big-num .accent { color: var(--primary); }
.stat-block p { font-size: 0.9rem; color: #94a3b8; }

.brands-strip { margin-top: 3rem; text-align: center; }
.brands-strip p { font-size: 0.78rem; color: #64748b; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.brands-logos { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.brand-badge {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: #cbd5e1;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Testimonios ──────────────────────────────────────────── */
.testimonios { background: var(--bg); }

.test-grid { display: grid; gap: 1.5rem; }

.test-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.test-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.test-stars { color: var(--primary); font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 2px; }

.test-card blockquote {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  flex: 1;
}
.test-author { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.test-author strong { display: block; font-size: 0.9rem; color: var(--darker); }
.test-author span   { font-size: 0.78rem; color: var(--text-muted); }

@media (min-width: 768px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { background: var(--bg-white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: var(--primary); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  background: var(--bg-white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--darker);
  gap: 1rem;
  user-select: none;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg); }

.faq-chevron {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s, border-color 0.2s;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 900;
}
.faq-item.open .faq-chevron {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(180deg);
  color: var(--darker);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Pricing ──────────────────────────────────────────────── */
.planes { background: var(--bg); }

.billing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.billing-tabs button {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.billing-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.billing-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--darker);
}

.plans-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.plan-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.plan-card:hover {
  border-color: rgba(200,165,80,0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.plan-card.highlighted {
  border-color: var(--primary);
  box-shadow: var(--shadow-gold);
}
.plan-card.highlighted::before {
  content: 'Más Popular';
  position: absolute;
  top: 0; right: 1.25rem;
  background: var(--primary);
  color: var(--darker);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.plan-name { font-size: 1.05rem; font-weight: 700; color: var(--darker); margin-bottom: 0.4rem; }
.plan-tagline { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.plan-price-wrap { margin-bottom: 1.5rem; }
.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--darker);
  line-height: 1;
  transition: opacity 0.2s ease;
}
.plan-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; line-height: 0; }
.plan-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 0.25rem;
  transition: opacity 0.2s ease;
}

.plan-limits {
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 0.9rem 0;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.plan-limit { font-size: 0.79rem; color: var(--text-muted); }
.plan-limit strong { display: block; font-size: 0.95rem; color: var(--darker); font-weight: 700; }

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.plan-feature .chk {
  width: 18px; height: 18px;
  background: var(--primary-soft);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--primary-dark);
  font-weight: 900;
  margin-top: 1px;
}

.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; justify-content: center; }

/* Addons */
.addons-box {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.addons-box h3 { margin-bottom: 1.25rem; font-size: 1.05rem; }
.addons-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.addon-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: var(--transition);
}
.addon-item:hover { border-color: var(--primary); background: var(--bg-white); }
.addon-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.addon-name  { font-size: 0.85rem; font-weight: 600; color: var(--darker); }
.addon-desc  { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

.plans-cta { text-align: center; margin-top: 2.5rem; }
.plans-cta p { color: var(--text-muted); font-size: 0.95rem; }
.plans-cta a { color: var(--primary); font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--darker);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 240px; margin-top: 0.75rem; }
.footer-email {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--primary);
}
.footer-email:hover { color: var(--primary-dark); }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.88rem; color: #64748b; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #475569;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: var(--primary); }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── Floating Buttons ─────────────────────────────────────── */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

#backToTop {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  color: #fff;
  font-size: 1rem;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--primary); transform: translateY(-3px); color: var(--darker); }

.demo-float {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: var(--primary);
  color: var(--darker);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  white-space: nowrap;
}
.demo-float:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--primary-glow);
  color: var(--darker);
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-hero {
  padding: 4rem 0;
  background: linear-gradient(160deg, #fff 0%, #fffdf5 100%);
  text-align: center;
}
.contact-hero p { color: var(--text-muted); max-width: 520px; margin: 0.75rem auto 0; }

.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--darker);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--bg-white);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ef4444; }
.form-group .field-error { font-size: 0.8rem; color: #ef4444; margin-top: 0.3rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.section-divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }

/* ── Telegram Section ─────────────────────────────────────── */
.telegram-section {
  background: linear-gradient(135deg, var(--darker) 0%, #0f2137 50%, var(--darker) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.telegram-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,136,204,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.telegram-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .telegram-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

.telegram-content .section-label { color: #38bdf8; }
.telegram-content h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; line-height: 1.25; }
.telegram-lead { color: #94a3b8; font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }

.telegram-features { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.tg-feature { display: flex; gap: 1rem; align-items: flex-start; }
.tg-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,136,204,0.15);
  border: 1.5px solid rgba(0,136,204,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #38bdf8;
}
.tg-feature h4 { color: #e2e8f0; font-size: 1rem; margin-bottom: 0.3rem; }
.tg-feature p { color: #94a3b8; font-size: 0.88rem; line-height: 1.6; }
.telegram-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Phone Mockup ──────────────────────────────────────────── */
.telegram-mockup { display: flex; flex-direction: column; gap: 1.5rem; }
.tg-phone {
  background: #17212b;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}
.tg-phone-header {
  background: #242f3d;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tg-avatar {
  width: 40px; height: 40px;
  background: #2b5278;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.tg-name { color: #fff; font-weight: 600; font-size: 0.95rem; }
.tg-status { color: #6ab3f3; font-size: 0.78rem; }
.tg-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 300px;
  max-height: 360px;
  overflow-y: auto;
}
.tg-msg {
  max-width: 85%;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  position: relative;
}
.tg-msg time {
  display: block;
  font-size: 0.68rem;
  opacity: 0.55;
  text-align: right;
  margin-top: 0.25rem;
}
.tg-recv {
  background: #182533;
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.tg-sent {
  background: #2b5278;
  color: #e2e8f0;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.tg-input-bar {
  background: #242f3d;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.tg-input-fake {
  background: #17212b;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: #4a5568;
  font-size: 0.82rem;
}

/* screenshot below phone */
.tg-screenshot-caption {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tg-screenshot-caption img { width: 100%; height: auto; display: block; }
.tg-screenshot-caption figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: #64748b;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ── All modules screenshots strip ───────────────────────── */
.modules-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .modules-screenshots { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .modules-screenshots { grid-template-columns: repeat(4, 1fr); } }

.module-screenshot-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.module-screenshot-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}
.module-screenshot-card img { width: 100%; height: 130px; object-fit: cover; object-position: top; display: block; }
.module-screenshot-label {
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .navbar, .float-cta, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
