/* ==========================================================================
   PEGACLIP · ARTISANAL HUMAN CRAFT & APPLE DESIGN SYSTEM
   - Dual-layer Specular Glass & Specular Bevels
   - Authentic macOS Window Chrome & Traffic Lights
   - 3D Tactile Keycaps with Physical Depression
   - Micro-Textured Grain Overlay
   - Custom Spring Deceleration Curves (cubic-bezier(0.16, 1, 0.3, 1))
   - Zero AI-Slop Design Discipline
   ========================================================================== */

:root {
  /* Paleta de Color Nativa Pegaclip (Obsidiana & Warm Amber Glass) */
  --bg-core: #0A0A0D;
  --bg-surface: rgba(20, 20, 24, 0.76);
  --bg-surface-elevated: rgba(26, 26, 32, 0.90);
  --bg-input: rgba(14, 14, 18, 0.82);

  /* Bordes de Cristal y Especularidad Real de macOS */
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-specular-top: rgba(255, 255, 255, 0.20);
  --border-specular-bottom: rgba(0, 0, 0, 0.50);

  /* Acento de Identidad Nativo Pegaclip (macOS Warm Amber / Orange) */
  --accent-brand: #FF9500;
  --accent-brand-light: #FFA012;
  --accent-brand-deep: #D97706;
  --accent-brand-glow: rgba(230, 126, 34, 0.35);
  --accent-brand-subtle: rgba(230, 126, 34, 0.12);

  /* Acentos de Apoyo del Sistema */
  --accent-apple-blue: #0A84FF;
  --accent-electric-blue: #2997FF;
  --accent-cyan: #00F5FF;
  --accent-green: #30D158;
  --accent-yellow: #FFBD2E;
  --accent-red: #FF453A;
  --accent-purple: #AF52DE;

  /* Tipografía y Jerarquía */
  --text-primary: #F5F5F7;
  --text-secondary: #9E9EA7;
  --text-muted: #7A7A85;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Físicas y Radios Continuos de Apple */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-capsule: 9999px;

  /* Sombras y Oclusión Ambiental con Tinte Cálido */
  --shadow-window: 
    0 0 0 1px rgba(255, 255, 255, 0.11),
    0 10px 24px -6px rgba(0, 0, 0, 0.65),
    0 32px 72px -12px rgba(0, 0, 0, 0.90),
    0 0 80px rgba(230, 126, 34, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22);

  --shadow-card:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 24px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16);

  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reseteo Quirúrgico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-brand-light);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  background: var(--bg-core);
}

/* ==========================================================================
   CAPA DE TEXTURA Y GRANO ANTI-PLÁSTICO (SVG NOISE)
   ========================================================================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Iluminación Arquitectónica Sutil */
.architectural-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 20%, black 35%, transparent 75%);
}

.spotlight-radial {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 640px;
  background: radial-gradient(circle at center, rgba(230, 126, 34, 0.16) 0%, rgba(217, 119, 6, 0.04) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
  transition: transform 0.2s ease-out;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN FLOTANTE (GLASS CAPSULE)
   ========================================================================== */
.nav-wrapper {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px;
}

.glass-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 12px 7px 16px;
  background: rgba(16, 16, 20, 0.78);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-capsule);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(230, 126, 34, 0.35);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}


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

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 140ms ease;
}

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



/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 2;
  padding: 130px 20px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge-wrap {
  margin-bottom: 22px;
}

.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-capsule);
  background: rgba(255, 149, 0, 0.05);
  border: 1px solid rgba(255, 149, 0, 0.22);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.traffic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
}

.dot-yellow {
  background: var(--accent-yellow);
  box-shadow: 0 0 8px rgba(255, 189, 46, 0.8);
}

.badge-code {
  font-family: var(--font-mono);
  color: #FFFFFF;
}

.badge-divider {
  opacity: 0.3;
}

.badge-highlight {
  color: var(--accent-brand);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 920px;
  margin-bottom: 22px;
  color: #FFFFFF;
}

.headline-contrast {
  color: var(--text-secondary);
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 34px;
}

.hero-subtitle strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* Botones de Botonera Primaria y Secundaria */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.btn-primary-craft {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background: linear-gradient(180deg, #FFA012 0%, #D97706 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 28px -4px rgba(230, 126, 34, 0.45),
    0 0 0 1px rgba(217, 119, 6, 0.8);
  transition: transform 120ms var(--ease-apple), box-shadow 120ms ease;
  overflow: hidden;
}

.btn-primary-craft:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 14px 36px -4px rgba(230, 126, 34, 0.65);
}

.btn-primary-craft:active {
  transform: scale(0.97);
}

.btn-primary-craft:disabled {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: none;
}

.btn-primary-craft:disabled:hover,
.btn-primary-craft:disabled:active {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: none;
}

.btn-label {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.btn-sub {
  font-size: 0.74rem;
  opacity: 0.88;
  font-weight: 500;
}


.kbd-subtle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Barra de Métricas de Ingeniería */
.engineering-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px 28px;
  background: rgba(18, 18, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-capsule);
  backdrop-filter: blur(18px);
  margin-bottom: 50px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.metric-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.metric-val small {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.metric-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SIMULADOR INTERACTIVO: CLON PIXEL-PERFECT DEL HUD NATIVO DE PEGACLIP
   ========================================================================== */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.hero-mockup-wrapper > .bento-universal-card {
  margin-top: 44px;
}

/* Resplandor Ambiental Cálido de Fondo (Warm Amber Light Glow) */
.hud-ambient-glow {
  position: absolute;
  width: 520px;
  height: 420px;
  left: -80px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.32) 0%, rgba(217, 119, 6, 0.14) 45%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  animation: hudGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes hudGlowPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.85; }
  100% { transform: scale(1.08) translate(15px, -10px); opacity: 1; }
}

/* Carcasa del Panel Flotante HUD (macOS NSPanel Ultra-Thin Material) */
.pegaclip-hud-panel {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  background: rgba(22, 22, 24, 0.86);
  backdrop-filter: blur(50px) saturate(210%);
  -webkit-backdrop-filter: blur(50px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.75), 
    0 1px 3px rgba(0, 0, 0, 0.6), 
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 12px;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease;
}

/* Buscador Nativo */
.hud-search-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hud-search-bar:focus-within {
  border-color: rgba(230, 126, 34, 0.7);
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.22);
}

.hud-search-icon {
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.hud-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.hud-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 0.86rem;
  font-family: inherit;
  font-weight: 400;
  padding: 0;
}

.hud-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.hud-cursor-caret {
  width: 1.5px;
  height: 14px;
  background: #FF9500;
  display: inline-block;
  margin-left: 2px;
  animation: hudCaretBlink 1.1s infinite;
}

@keyframes hudCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Fila de Filtros y Botón de Ajustes */
.hud-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}

.hud-filter-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
  user-select: none;
}

.hud-chip:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
}

.hud-chip:active {
  transform: scale(0.96);
}

.hud-chip.active {
  background: rgba(230, 126, 34, 0.24);
  border-color: rgba(230, 126, 34, 0.55);
  color: #FF9500;
  font-weight: 600;
}

.hud-filter-menu-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 50%;
  transition: color 120ms ease, background 120ms ease;
}

.hud-filter-menu-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* Lista de Filas del Historial */
.hud-rows-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background-color 100ms ease, border-color 100ms ease, transform 100ms ease;
}

.hud-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.hud-row:active {
  transform: scale(0.995);
}

.hud-row.selected {
  background: rgba(230, 126, 34, 0.22);
  border-color: rgba(230, 126, 34, 0.55);
  box-shadow: inset 0 0 16px rgba(230, 126, 34, 0.08);
}

.hud-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.hud-row-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.25;
}

.hud-masked-secret {
  letter-spacing: 2px;
  font-size: 0.72rem;
  color: #FFFFFF;
  font-weight: 600;
  transition: all 200ms ease;
}

.hud-url-text {
  color: #FF9500;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.hud-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3.5px;
  border: 0.8px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.hud-color-code {
  font-size: 0.84rem;
  font-weight: 600;
  color: #FFFFFF;
}

.hud-thumb-container {
  width: 116px;
  height: 52px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hud-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hud-folder-icon {
  flex-shrink: 0;
}

.hud-folder-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #FFFFFF;
}

.hud-row-secondary {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.69rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.hud-app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hud-sep {
  opacity: 0.4;
}

.text-orange {
  color: #FF9500;
  font-weight: 600;
}

.hud-ql-hint {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* Acciones en el Extremo Derecho de Cada Fila */
.hud-row-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin-left: 10px;
}

.hud-touchid-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 9999px;
  background: rgba(255, 149, 0, 0.16);
  border: 0.8px solid rgba(255, 149, 0, 0.45);
  color: #FF9500;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.hud-touchid-pill:hover {
  background: rgba(255, 149, 0, 0.25);
  border-color: rgba(255, 149, 0, 0.65);
}

.hud-touchid-pill.unlocked {
  background: rgba(48, 209, 88, 0.18);
  border-color: rgba(48, 209, 88, 0.5);
  color: #30D158;
}

.hud-shortcut-kbd {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
  min-width: 18px;
  text-align: center;
}

.hud-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 100ms ease, background 100ms ease;
}

.hud-action-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.hud-action-btn.active {
  color: #FF9500;
}

/* Pie de Página Dual Nativo (Atajos y Acciones) */
.hud-statusbar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hud-shortcuts-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.4);
}

.hud-shortcuts-row kbd {
  font-family: inherit;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.65);
}

.hud-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.hud-actions-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hud-bottom-icon-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 4px;
  transition: color 100ms ease, background 100ms ease;
}

.hud-bottom-icon-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.hud-bottom-icon-btn.paused {
  color: #FF9500;
}

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

.hud-footer-text-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 100ms ease, background 100ms ease;
}

.hud-footer-text-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* Vista previa de imagen en Quick Look */
.ql-image-preview-wrap {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 6px;
}

.ql-full-image {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   SECCIÓN DE RENDIMIENTO: MONITOR DE ACTIVIDAD MACOS
   ========================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: 90px 20px;
  max-width: 1080px;
  margin: 0 auto;
  scroll-margin-top: 112px;
}

#demo {
  scroll-margin-top: 112px;
}

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

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 16px 0 14px;
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   BENTO GRID EDITORIAL
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-badge-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.bento-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.bento-card-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bento-visual-box {
  margin-top: auto;
  border-radius: var(--radius-md);
  background: rgba(12, 12, 15, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Visual Terminal OCR */
.ocr-sample-terminal {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.term-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.term-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.td-r { background: #FF5F56; }
.td-y { background: #FFBD2E; }
.td-g { background: #27C93F; }

.term-line {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.ocr-bounding-box {
  border: 1px dashed var(--accent-brand);
  background: rgba(230, 126, 34, 0.09);
  padding: 8px 12px;
  border-radius: 4px;
  color: #FFFFFF;
  position: relative;
}

.ocr-tag-detect {
  position: absolute;
  top: -10px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--accent-brand);
  color: #000;
  padding: 1px 6px;
  border-radius: 3px;
}

/* Visual Queue Mode */
.queue-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.step-card span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
}

.step-done {
  opacity: 0.5;
  text-decoration: line-through;
}

.step-active {
  background: rgba(230, 126, 34, 0.18);
  color: #fff;
  border: 1px solid rgba(230, 126, 34, 0.45);
}

.step-active span {
  background: var(--accent-brand);
  color: #000;
}

/* Visual Color Grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.swatch-card {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.swatch-preview {
  width: 100%;
  height: 38px;
  border-radius: 5px;
  background-color: var(--swatch-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.swatch-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Security Chips */
.security-shield-box {
  padding: 12px;
}

.shield-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sec-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

.chip-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

/* ==========================================================================
   SECCIÓN ZERO-CLOUD
   ========================================================================== */
.zero-cloud-box {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 48px;
  align-items: center;
}

.zc-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 16px 0;
  line-height: 1.15;
}

.zc-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.zc-bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zc-bullet {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}


.zc-bullet strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 3px;
}

.zc-bullet p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.vault-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-inner-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.18) 0%, transparent 70%);
  border: 1px solid rgba(230, 126, 34, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 50px rgba(230, 126, 34, 0.22);
}

.vault-big-lock {
  font-size: 2.4rem;
}

.vault-hash {
  font-size: 0.65rem;
  color: var(--accent-brand);
}

.vault-status-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: rgba(48, 209, 88, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(48, 209, 88, 0.3);
  border-radius: var(--radius-capsule);
}

/* ==========================================================================
   SECCIÓN DE PRICING EDITORIAL
   ========================================================================== */
.pricing-card-editorial {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
  position: relative;
}

.pricing-card-editorial::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}

.pricing-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pricing-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(255, 149, 0, 0.15);
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: var(--radius-capsule);
  color: #FF9500;
}

.pricing-launch-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
}

.pricing-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.pricing-amount-row {
  margin-bottom: 30px;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-currency {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-brand);
}

.price-integer {
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #FFFFFF;
}

.price-suffix {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-strikethrough-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-strikethrough-tag span:first-child {
  text-decoration: line-through;
}

.discount-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255, 69, 58, 0.15);
  color: var(--accent-red);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 69, 58, 0.3);
}

.btn-full-width {
  width: 100%;
}


.payment-methods-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pay-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

/* ======================================================================
   APOYO VOLUNTARIO JUNTO A LA DESCARGA
   ====================================================================== */
.support-callout {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(255, 149, 0, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, rgba(255, 149, 0, 0.09), rgba(255, 255, 255, 0.025));
  scroll-margin-top: 112px;
}

.support-icon {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 149, 0, 0.28);
  border-radius: 16px;
  color: var(--accent-brand-light);
  background: linear-gradient(145deg, rgba(255, 149, 0, 0.2), rgba(255, 255, 255, 0.04));
}

.support-icon svg {
  width: 34px;
  height: 34px;
}

.support-eyebrow {
  margin-bottom: 4px;
  color: var(--accent-brand-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-title {
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.support-message {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 149, 0, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(255, 149, 0, 0.08);
  color: var(--accent-brand-light);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms var(--ease-apple);
}

.support-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent-brand-light);
  background: rgba(255, 149, 0, 0.16);
}

.download-support-prompt {
  margin: -24px auto 28px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.download-support-prompt a {
  color: var(--accent-brand-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-support-prompt a:hover {
  color: #fff;
}

.pricing-support-prompt {
  margin: 18px 0 26px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  transition: border-color 150ms ease;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 140ms ease;
}

.faq-question:hover {
  color: var(--accent-brand);
}

.faq-chevron {
  font-size: 1rem;
  transition: transform 250ms var(--ease-apple);
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-brand);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-apple), padding 300ms ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
}

/* ==========================================================================
   MODAL QUICK LOOK HUD (MACOS NATIVE ACRYLIC)
   ========================================================================== */
.quicklook-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 200ms var(--ease-apple), visibility 0s linear 200ms;
}

.quicklook-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.quicklook-window {
  width: 100%;
  max-width: 580px;
  background: rgba(20, 20, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 200ms var(--ease-apple);
}

.quicklook-backdrop.active .quicklook-window {
  transform: scale(1);
}

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

.ql-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
}

.ql-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

.ql-close-btn:hover {
  color: #fff;
}

.ql-body {
  padding: 24px;
}

.ql-pdf-page {
  background: #11141D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.ql-pdf-header-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.ql-pdf-content h3 {
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.ql-pdf-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.ql-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 20px 40px;
  background: var(--bg-core);
  position: relative;
  z-index: 2;
}

.footer-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.45), transparent);
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.25);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-claim {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 120ms ease;
}

.footer-links a:hover {
  color: var(--accent-brand-light);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Páginas informativas y legales */
.legal-page {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: clamp(32px, 7vw, 72px) 0 88px;
  position: relative;
  z-index: 1;
}

.legal-back {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent-brand-light);
  text-decoration: none;
  text-underline-offset: 4px;
}

.legal-back:hover,
.legal-content a:hover {
  text-decoration: underline;
}

.legal-content {
  max-width: 72ch;
}

.legal-content h1 {
  color: var(--text-primary);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.legal-content h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 34px 0 10px;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 16px;
}

.legal-content .legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--accent-brand-light);
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .legal-page {
    width: min(100% - 32px, 820px);
  }

  .legal-content p {
    font-size: 0.98rem;
  }
}

/* ==========================================================================
   MENÚ MÓVIL DESPLEGABLE (SHEET DRAWER)
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 220ms var(--ease-apple), visibility 0s linear 220ms;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: rgba(16, 16, 20, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 260ms var(--ease-apple);
}

.mobile-nav-backdrop.active .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
}

.mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 120ms ease;
}

.mobile-link:hover {
  color: var(--accent-brand-light);
}

.mobile-nav-footer {
  margin-top: 24px;
}

.mobile-support-link {
  display: block;
  margin-top: 14px;
  border: 0;
  color: var(--accent-brand-light);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   MODAL DE CHECKOUT / COMPRA RÁPIDA (STRIPE & APPLE PAY SIMULATOR)
   ========================================================================== */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 220ms var(--ease-apple), visibility 0s linear 220ms;
}

.checkout-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.checkout-modal-window {
  width: 100%;
  max-width: 480px;
  background: rgba(16, 16, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 220ms var(--ease-apple);
}

.checkout-modal-backdrop.active .checkout-modal-window {
  transform: scale(1);
}

.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cm-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.4);
}

.cm-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.cm-sub {
  font-size: 0.76rem;
  color: var(--accent-green);
  font-weight: 600;
}

.cm-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.cm-close-btn:hover {
  color: #fff;
}

.checkout-modal-body {
  padding: 24px;
}

.apple-pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 100ms var(--ease-apple), background-color 120ms ease;
}

.apple-pay-btn:hover {
  background: #111111;
}

.apple-pay-btn:active {
  transform: scale(0.97);
}

.apple-logo-icon {
  margin-top: -2px;
}

.cm-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.cm-divider::before, .cm-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-divider span {
  padding: 0 10px;
}

.cm-field {
  margin-bottom: 14px;
}

.cm-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cm-field input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 140ms ease;
}

.cm-field input:focus {
  border-color: var(--accent-brand);
  box-shadow: 0 0 0 2px var(--accent-brand-glow);
}

.cm-card-input-box {
  position: relative;
}

.cm-card-brand {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.cm-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Éxito de Compra / Licencia */
.success-icon-wrap {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 10px;
}

.success-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 6px;
}

.success-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.license-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(48, 209, 88, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.lb-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.lb-code {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  user-select: all;
}

.lb-copy-btn {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xs);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.lb-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.checkout-modal-footer {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-2 {
    grid-column: span 1;
  }
  .zero-cloud-box {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  .pricing-card-editorial {
    padding: 30px 20px;
  }
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 3rem);
  }
  .hero-mockup-wrapper > .bento-universal-card {
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .support-callout {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .support-icon {
    width: 48px;
    border-radius: 14px;
  }

  .support-icon svg {
    width: 30px;
    height: 30px;
  }

  .support-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ==========================================================================
   PESTAÑAS DE CHECKOUT Y VALIDADOR
   ========================================================================== */
.cm-tabs-row {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cm-tab:hover {
  color: #fff;
}

.cm-tab.active {
  background: rgba(255, 149, 0, 0.15);
  border-color: rgba(255, 149, 0, 0.35);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.2);
}

.cm-verify-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ==========================================================================
   MINI PREVIEWS PARA BENTO GRID (QUICK LOOK Y LUHN)
   ========================================================================== */
.ql-bento-preview,
.finance-bento-preview {
  margin-top: 16px;
}

.ql-mini-window {
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.ql-mini-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ql-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30D158;
  display: inline-block;
  margin-right: 6px;
}

.ql-mini-content {
  padding: 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-style: italic;
}

.finance-card-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.25);
}

.cc-chip-icon {
  font-size: 1.3rem;
}

.cc-masked-number {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.cc-badge-valid {
  font-size: 0.72rem;
  font-weight: 700;
  color: #30D158;
  background: rgba(48, 209, 88, 0.16);
  padding: 3px 8px;
  border-radius: 6px;
}



/* ============================================================
   Universal Clipboard Bento Card — Tarjeta iPhone/iPad/Mac
   ============================================================ */

.bento-universal-card {
  background: linear-gradient(135deg,
    rgba(255, 149, 0, 0.06) 0%,
    rgba(18, 18, 20, 0.85) 50%,
    rgba(255, 149, 0, 0.04) 100%);
}

.bento-badge-apple {
  background: rgba(255, 149, 0, 0.14);
  color: var(--accent-brand);
  border: 1px solid rgba(255, 149, 0, 0.3);
}

/* Entrada sutil de títulos: solo transform y opacity; no altera el layout. */
.has-scroll-reveals [data-scroll-reveal="pending"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms var(--ease-apple);
}

.has-scroll-reveals [data-scroll-reveal="visible"] {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html,
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-scroll-reveals [data-scroll-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Transfer preview container */
.universal-transfer-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 20px;
  min-height: 130px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 149, 0, 0.15);
  border-radius: 10px;
}

/* iPhone device mockup */
.ut-device-frame {
  width: 70px;
  height: 90px;
  border: 2px solid rgba(255, 149, 0, 0.5);
  border-radius: 12px;
  background: rgba(20, 20, 24, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ut-device-frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  background: rgba(255, 149, 0, 0.4);
  border-radius: 2px;
}

.ut-device-screen, .ut-mac-screen {
  padding: 6px 4px 4px;
  text-align: center;
  width: 100%;
}

.ut-device-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-brand);
  margin-bottom: 4px;
  opacity: 0.8;
}

.ut-copy-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ut-copy-icon {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-brand);
  background: rgba(255, 149, 0, 0.15);
  border-radius: 4px;
  padding: 1px 4px;
}

.ut-copy-text {
  font-size: 6px;
  color: rgba(255,255,255,0.6);
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Transfer wave animation */
.ut-transfer-wave {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ut-wave-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-brand);
  animation: wave-pulse 1.4s ease-in-out infinite;
}

.ut-wave-dot-1 { animation-delay: 0s; }
.ut-wave-dot-2 { animation-delay: 0.2s; }
.ut-wave-dot-3 { animation-delay: 0.4s; }

@keyframes wave-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.75); }
  50%       { opacity: 1;   transform: scale(1.15); box-shadow: 0 0 8px var(--accent-brand); }
}

/* Mac mockup */
.ut-mac-frame {
  width: 150px;
  min-height: 90px;
  border: 2px solid rgba(255, 149, 0, 0.4);
  border-radius: 8px;
  background: rgba(14, 14, 16, 0.95);
  padding: 6px;
}

.ut-mac-screen {
  padding: 0;
}

.ut-clip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  border-radius: 5px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
  margin-top: 4px;
}

.ut-clip-row-dim {
  opacity: 0.45;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.ut-device-badge {
  font-size: 7px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

.ut-badge-iphone {
  background: rgba(255, 149, 0, 0.18);
  color: var(--accent-brand);
  border: 1px solid rgba(255, 149, 0, 0.3);
}

.ut-badge-ipad {
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-apple-blue);
  border: 1px solid rgba(10, 132, 255, 0.25);
}

.ut-clip-preview {
  font-size: 7px;
  color: rgba(255,255,255,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 95px;
}

/* Shortcuts hint row */
.ut-shortcuts-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ut-shortcut-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.25);
  color: rgba(255,255,255,0.75);
}

.ut-shortcut-pill code {
  background: transparent;
  color: var(--accent-brand);
  font-size: 10px;
}
