/* ==========================================================================
   yNotes — Estilos Oficiales
   Identidad: Privacidad, Calma, Seguridad y Confort
   Paleta: Verde Bosque / Salvia, Crema Cálido, Pizarra Azulada y Ámbar
   100% Autónomo: Sin dependencias externas ni rastreadores
   ========================================================================== */

/* Variables y Tokens de Diseño */
:root {
  /* Modo Claro (Por defecto si el sistema o usuario lo prefiere) */
  --bg-primary: #fbf8f2;
  --bg-secondary: #f4efe6;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f7f4ed;
  --bg-glass: rgba(251, 248, 242, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.75);

  --text-primary: #19251f;
  --text-secondary: #4a5c53;
  --text-muted: #73877d;
  --text-inverse: #fbf8f2;

  --border-light: rgba(46, 93, 72, 0.12);
  --border-medium: rgba(46, 93, 72, 0.22);
  --border-focus: #2d5a45;

  /* Colores de Marca y Acentos */
  --forest-900: #132a21;
  --forest-800: #1b3a2e;
  --forest-700: #234c3c;
  --forest-600: #2d5a45;
  --forest-500: #386f56;
  --forest-400: #4a8d6e;
  --forest-100: #e8f3ee;

  --sage-accent: #2d5a45;
  --sage-glow: rgba(45, 90, 69, 0.2);

  --amber-accent: #d97706;
  --amber-light: #fef3c7;
  --amber-glow: rgba(217, 119, 6, 0.25);

  --vault-red: #c53030;
  --vault-red-light: #fee2e2;
  --vault-red-glow: rgba(197, 48, 48, 0.2);

  --purple-accent: #6d28d9;
  --purple-light: #ede9fe;

  /* Sombras y Elevaciones */
  --shadow-sm: 0 2px 8px rgba(25, 37, 31, 0.05);
  --shadow-md: 0 8px 24px rgba(25, 37, 31, 0.08);
  --shadow-lg: 0 16px 40px rgba(25, 37, 31, 0.12);
  --shadow-mockup: 0 30px 70px -15px rgba(27, 58, 46, 0.25), 0 0 0 1px rgba(46, 93, 72, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 160ms ease;
  --transition-normal: 260ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1180px;
}

/* Modo Oscuro (Pizarra Azulada y Verde Salvia Ligeramente Fosforescente) */
[data-theme="dark"] {
  --bg-primary: #0d1319;
  --bg-secondary: #131c24;
  --bg-surface: #18232e;
  --bg-surface-raised: #1f2d3a;
  --bg-glass: rgba(13, 19, 25, 0.88);
  --bg-glass-card: rgba(24, 35, 46, 0.8);

  --text-primary: #f2f6f5;
  --text-secondary: #a3b8b0;
  --text-muted: #748c82;
  --text-inverse: #0d1319;

  --border-light: rgba(163, 184, 176, 0.12);
  --border-medium: rgba(163, 184, 176, 0.24);
  --border-focus: #52b788;

  --forest-700: #2d5a45;
  --forest-600: #386f56;
  --forest-500: #4a8d6e;
  --forest-400: #52b788;
  --forest-100: rgba(82, 183, 136, 0.14);

  --sage-accent: #52b788;
  --sage-glow: rgba(82, 183, 136, 0.25);

  --amber-accent: #fbbf24;
  --amber-light: rgba(251, 191, 36, 0.15);
  --amber-glow: rgba(251, 191, 36, 0.3);

  --vault-red: #f87171;
  --vault-red-light: rgba(248, 113, 113, 0.15);
  --vault-red-glow: rgba(248, 113, 113, 0.3);

  --purple-accent: #a78bfa;
  --purple-light: rgba(167, 139, 250, 0.15);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-mockup: 0 30px 80px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(82, 183, 136, 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  position: relative;
}

/* Halo de Fondo Ambiental */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  transition: opacity var(--transition-slow);
}

.glow-1 {
  top: -15%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--sage-glow), transparent 70%);
}

.glow-2 {
  top: 35%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--amber-glow), transparent 70%);
}

.glow-3 {
  bottom: 5%;
  left: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--vault-red-glow), transparent 70%);
}

/* Tipografía y Enlaces */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

code, kbd, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

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

.container {
  width: min(var(--container-max), calc(100% - 40px));
  margin-inline: auto;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 14px 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-accent);
  display: inline-block;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--forest-100);
  color: var(--forest-600);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .brand-badge {
  color: var(--sage-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 6px 4px;
}

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

.mobile-menu-github {
  display: none;
}

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--border-medium);
}

.icon-sun, .icon-moon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.btn-github-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-github-nav:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-raised);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   BOTONES Y ELEMENTOS DE ACCIÓN
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--forest-700), var(--forest-600));
  color: #ffffff;
  box-shadow: 0 6px 20px var(--sage-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #1f4534, #2a5a44);
  color: #ffffff;
  border: 1px solid rgba(82, 183, 136, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 26px var(--sage-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-raised);
  border-color: var(--sage-accent);
}

.btn-amber {
  background: var(--amber-light);
  color: var(--amber-accent);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.btn-amber:hover {
  background: var(--amber-accent);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero-section {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--forest-100);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest-600);
}

[data-theme="dark"] .pill-badge {
  color: var(--sage-accent);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sage-accent);
  box-shadow: 0 0 0 0 var(--sage-glow);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--sage-glow); }
  70% { box-shadow: 0 0 0 8px rgba(82, 183, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(82, 183, 136, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--forest-700), var(--amber-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title .gradient-text {
  background: linear-gradient(135deg, var(--sage-accent), var(--amber-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-icon {
  width: 18px;
  height: 18px;
  color: var(--sage-accent);
  flex-shrink: 0;
}

/* Mockup de Móvil Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 295px;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.25));
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  border-radius: 36px;
  background: #090e13;
  padding: 8px;
  border: 3px solid #23313d;
  box-shadow: var(--shadow-mockup);
  transition: transform var(--transition-normal);
  transform: rotate(-1.5deg);
}

.phone-frame:hover {
  transform: rotate(0deg) translateY(-6px);
}

.phone-camera {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 14px;
  background: #090e13;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  line-height: 0;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Floating Badges en el Mockup */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  z-index: 5;
  animation: float-gentle 4s ease-in-out infinite alternate;
}

.badge-vault {
  top: 12%;
  left: -15%;
}

.badge-offline {
  bottom: 14%;
  right: -12%;
  animation-delay: 2s;
}

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

.badge-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon-box.red {
  background: var(--vault-red-light);
  color: var(--vault-red);
}

.badge-icon-box.green {
  background: var(--forest-100);
  color: var(--sage-accent);
}

.badge-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.badge-text span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN DE PRIVACIDAD & SEGURIDAD DESTACADA
   ========================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

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

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.privacy-banner-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-surface-raised));
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  padding: 36px 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.privacy-banner-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.privacy-banner-content h3 svg {
  color: var(--vault-red);
}

.privacy-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pillar-card {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.pillar-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-forest {
  background: var(--forest-100);
  color: var(--forest-600);
}

[data-theme="dark"] .icon-forest {
  color: var(--sage-accent);
}

.icon-amber {
  background: var(--amber-light);
  color: var(--amber-accent);
}

.icon-red {
  background: var(--vault-red-light);
  color: var(--vault-red);
}

.icon-purple {
  background: var(--purple-light);
  color: var(--purple-accent);
}

.pillar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Tabla Comparativa de Privacidad */
.comparison-container {
  margin-top: 45px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th, .comparison-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: var(--bg-surface-raised);
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.td-ynotes {
  font-weight: 600;
  color: var(--sage-accent);
}

.check-ok {
  color: var(--sage-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.check-no {
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   FUNCIONES PRINCIPALES (FEATURES)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-raised);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   GALERÍA DE CAPTURAS INTERACTIVA
   ========================================================================== */
.gallery-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.gallery-tab-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.gallery-tab-btn.active {
  background: var(--sage-accent);
  color: #ffffff;
  border-color: var(--sage-accent);
  box-shadow: 0 4px 14px var(--sage-glow);
}

.gallery-showcase {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.gallery-mockup {
  max-width: 280px;
  margin: 0 auto;
}

.gallery-mockup .phone-frame {
  transform: none;
}

.gallery-info h3 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.gallery-info p {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.gallery-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.gallery-bullets li svg {
  color: var(--sage-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Grid de miniaturas para vista completa */
.gallery-grid-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 32px auto 0;
}

.thumb-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 8px;
  text-align: center;
}

.thumb-card:hover, .thumb-card.active {
  border-color: var(--sage-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.thumb-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
  background: #000;
  aspect-ratio: 9 / 18;
  max-height: 140px;
}

.thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  image-rendering: auto;
}

.thumb-card span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SECCIÓN DE DESCARGA & INSTALACIÓN
   ========================================================================== */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.download-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card.featured {
  border: 2px solid var(--sage-accent);
  position: relative;
  box-shadow: var(--shadow-md);
}

.card-top-tag {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--sage-accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.download-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.download-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card h3 {
  font-size: 1.4rem;
}

.download-card p {
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Pasos de Instalación */
.install-guide-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.install-guide-box h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  list-style: none;
  counter-reset: install-counter;
}

.install-step-item {
  counter-increment: install-counter;
  position: relative;
  padding-left: 48px;
}

.install-step-item::before {
  content: counter(install-counter);
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest-100);
  color: var(--forest-600);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .install-step-item::before {
  color: var(--sage-accent);
}

.install-step-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.install-step-item p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ ACCORDION)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--sage-accent);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 26px;
}

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

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 35px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
}

.footer-bottom a:hover {
  color: var(--sage-accent);
}

/* ==========================================================================
   ANIMACIONES DE SCROLL REVEAL (SUAVES & RESILIENTES)
   ========================================================================== */
html.js-loaded .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-loaded .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js-loaded .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST ADAPTATIONS)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-copy {
    align-items: center;
  }

  .pill-badge {
    align-self: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .badge-vault {
    left: -5%;
  }

  .badge-offline {
    right: -5%;
  }

  .gallery-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .gallery-bullets li {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .btn-github-nav {
    display: none;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-github {
    display: block;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    margin-top: 8px;
  }

  .mobile-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .privacy-banner-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

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

  .comparison-container {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 540px;
  }
}

@media (max-width: 480px) {
  .brand-badge {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5.2vw, 2.4rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .floating-badge {
    display: none; /* Simplificar en pantallas muy estrechas */
  }

  .phone-mockup-wrapper {
    max-width: 260px;
  }

  .gallery-mockup {
    max-width: 240px;
  }

  .gallery-grid-strip {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 24px;
  }

  .thumb-card {
    padding: 4px;
  }

  .thumb-card span {
    font-size: 0.65rem;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

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


/* ==========================================================================
   HERO 3D ROTATOR & INTERACTIVE MOCKUP (GIRAR PARA VER MÁS)
   ========================================================================== */
.hero-rotator-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.hero-phone-3d-wrap {
  position: relative;
  width: 100%;
  perspective: 1200px;
  cursor: grab;
  user-select: none;
}

.hero-phone-3d-wrap:active {
  cursor: grabbing;
}

.hero-phone-3d {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
  will-change: transform;
}

.hero-phone-3d.flipping-next {
  transform: rotateY(-32deg) scale(0.94) rotateZ(-1deg);
  opacity: 0.6;
}

.hero-phone-3d.flipping-prev {
  transform: rotateY(32deg) scale(0.94) rotateZ(1deg);
  opacity: 0.6;
}

/* Botones flotantes de rotación (Izquierda y Derecha) */
.hero-rotate-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 22, 30, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-rotate-btn:hover {
  background: var(--color-primary, #3b82f6);
  border-color: #93c5fd;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.hero-rotate-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-rotate-prev {
  left: -22px;
}

.hero-rotate-next {
  right: -22px;
}

@media (max-width: 640px) {
  .hero-rotate-prev { left: -10px; }
  .hero-rotate-next { right: -10px; }
  .hero-rotate-btn { width: 38px; height: 38px; }
}

/* Indicador de Toca para Zoom HD */
.phone-zoom-hint {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.phone-zoom-hint:hover {
  background: rgba(59, 130, 246, 0.9);
  border-color: #bfdbfe;
  transform: scale(1.06);
}

/* Controles de Rotación inferiores */
.hero-rotate-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
}

.hero-rotate-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  width: 28px;
  border-radius: 8px;
  background: var(--color-primary, #3b82f6);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.hero-swipe-hint {
  font-size: 0.74rem;
  color: var(--text-secondary, #94a3b8);
  opacity: 0.85;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   HD LIGHTBOX MODAL (PANTALLA COMPLETA)
   ========================================================================== */
.hd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
  gap: 16px;
  color: #fff;
}

.lightbox-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.lightbox-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.lightbox-action-btn:hover {
  background: var(--color-primary, #3b82f6);
  border-color: #60a5fa;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #f87171;
  transform: rotate(90deg);
}

.lightbox-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  background: #000;
  max-height: 80vh;
}

.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}