:root {
  /* Tu paleta original */
  --color-primary-50: oklch(0.98 0.1337 264.323);
  --color-primary-100: oklch(0.95 0.1337 264.323);
  --color-primary-200: oklch(0.9 0.1337 264.323);
  --color-primary-300: oklch(0.8 0.1337 264.323);
  --color-primary-400: oklch(0.7 0.1337 264.323);
  --color-primary-500: oklch(0.5347 0.1337 264.323);
  --color-primary-600: oklch(0.4278 0.1337 264.323);
  --color-primary-700: oklch(0.3475 0.1337 264.323);
  --color-primary-800: oklch(0.2673 0.1337 264.323);
  --color-primary-900: oklch(0.1871 0.1337 264.323);
  --color-primary-950: oklch(0.1069 0.1337 264.323);

  --color-secondary-50: oklch(0.98 0.1538 298.533);
  --color-secondary-100: oklch(0.95 0.1538 298.533);
  --color-secondary-200: oklch(0.9 0.1538 298.533);
  --color-secondary-300: oklch(0.8 0.1538 298.533);
  --color-secondary-400: oklch(0.7 0.1538 298.533);
  --color-secondary-500: oklch(0.5446 0.1538 298.533);
  --color-secondary-600: oklch(0.4357 0.1538 298.533);
  --color-secondary-700: oklch(0.354 0.1538 298.533);
  --color-secondary-800: oklch(0.2723 0.1538 298.533);
  --color-secondary-900: oklch(0.1906 0.1538 298.533);
  --color-secondary-950: oklch(0.1089 0.1538 298.533);

  /* Colores funcionales (los que usa la página) */
  --color-primary: oklch(0.5347 0.1337 264.323); /* Azul medio - principal */
  --color-primary-dark: oklch(0.3475 0.1337 264.323); /* Azul oscuro */
  --color-primary-light: oklch(0.7 0.1337 264.323); /* Azul más claro */

  --color-secondary: oklch(
    0.354 0.1538 298.533
  ); /* Morado oscuro - textos fuertes */
  --color-secondary-light: oklch(0.5446 0.1538 298.533); /* Morado medio */

  /* Accent nuevo propuesto (teal) */
  --color-accent: #cda716; /* tu color principal */
  --color-accent-dark: #b38f12; /* más oscuro para hover/active/shadows */
  --color-accent-light: #f0d94a;

  /* Mantén o ajusta estos si los usas */
  --color-text: #1a1a2e;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9ff;
  --color-text: #1a1a2e;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-alt: #fafbfc;
  --color-bg-dark: #f1f5f9;
  --font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: white;
}

/* Navbar minimal para producto */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.logo-accent {
  color: var(--color-primary);
}

/* Hero */
.hero {
  padding: 180px 0 140px;
  background: linear-gradient(135deg, #fff8f9 0%, #ffffff 50%, #f8f9ff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-accent-light);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  font-size: 15px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.hero p {
  font-size: 20px;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header span {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 79, 94, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.section-header p {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0 auto;
}

/* Features */
.features {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 100px;
}

.feature-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid #eef2f6;
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.feature-icon {
  font-size: 48px;
  color: var(--color-accent);
  margin-bottom: 24px;
  display: block;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

/* Screenshots */
.screenshots {
  padding: 80px 0;
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.badge {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* --- Lógica de Capturas Móviles --- */
.mobile-showcase {
  position: relative;
  margin-bottom: 80px;
}

.screenshots-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Ocultar en Firefox */
}

.screenshots-grid::-webkit-scrollbar {
  display: none; /* Ocultar en Chrome/Safari */
}

.screenshot-item {
  flex: 0 0 280px; /* Ancho de un cel */
  scroll-snap-align: center;
  text-align: center;
}

.phone-frame {
  border: 12px solid var(--phone-border);
  border-radius: 36px;
  background: var(--phone-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  aspect-ratio: 9 / 19;
  overflow: hidden;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.screenshot-item:hover .phone-frame {
  transform: translateY(-10px);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

.scroll-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: -10px;
}

/* --- Lógica de Capturas Desktop (Admin) --- */
.section-divider {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin: 80px 0;
}

.admin-screenshots-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.browser-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.browser-header {
  background: #f3f4f6;
  padding: 10px 15px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e5e7eb;
}

.dot {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
}

.browser-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.admin-item {
  text-align: center;
}

.admin-item .caption {
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Video */
.video-section {
  padding: 120px 0;
  background: white;
  text-align: center;
}

.video-wrapper {
  max-width: 960px;
  margin: 60px auto 0;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ */
.faq {
  padding: 120px 0;
  background: var(--color-bg-alt);
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 24px 32px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(255, 79, 94, 0.05);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 32px; /* sin padding vertical cuando está cerrado */
  color: var(--color-text-light);
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-list {
  padding-left: 16px;
  margin-top: 8px;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 16px 32px 24px; /* el padding aparece solo cuando abre */
}

/* CTA final */
.final-cta {
  padding: 140px 0 100px;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: white;
}

.final-cta h2 {
  font-size: clamp(40px, 6vw, 56px);
  margin-bottom: 32px;
}

.final-cta p {
  font-size: 20px;
  max-width: 680px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

footer {
  background: white;
  color: var(--color-text);
  padding: 30px 0 30px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 140px 0 100px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
