/* ==========================================================================
   Presentazo (presentazo.com) — Hoja de estilos principal
   Diseñado por Miguel Mogrovejo · Optimizado para Core Web Vitals y SEO
   ========================================================================== */

:root {
  color-scheme: dark light;
  --bg: #08080a;
  --bg-elevated: #111115;
  --bg-card: #15151a;
  --bg-card-hover: #1b1b22;
  --bg-glass: rgba(18, 18, 23, 0.78);
  --text: #f5f5f7;
  --text-secondary: #a7a7b0;
  --text-muted: #787882;
  --accent: #ff3b30;
  --accent-bright: #ff564c;
  --accent-soft: rgba(255, 59, 48, 0.14);
  --accent-border: rgba(255, 59, 48, 0.42);
  --green: #30d158;
  --green-soft: rgba(48, 209, 88, 0.14);
  --yellow: #ffd60a;
  --blue: #0a84ff;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow-lg: 0 32px 70px -20px rgba(0, 0, 0, 0.75), 0 12px 28px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px -10px rgba(255, 59, 48, 0.32);
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --max-w: 76rem;
  --in-oklab: ;
  --in-oklch: ;
  accent-color: var(--accent);
  scrollbar-color: #3a3a44 var(--bg);
  scrollbar-width: thin;
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

/* Tema claro opcional mediante botón o preferencia si el usuario cambia */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text: #0b0b0e;
  --text-secondary: #4a4a55;
  --text-muted: #6c6c78;
  --accent: #e0281e;
  --accent-bright: #ff3b30;
  --accent-soft: rgba(224, 40, 30, 0.1);
  --accent-border: rgba(224, 40, 30, 0.35);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.14), 0 10px 24px -8px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 50px -12px rgba(224, 40, 30, 0.22);
  scrollbar-color: #b5b5c2 var(--bg);
}

/* Soporte para modo de contraste forzado (Windows High Contrast) */
@media (forced-colors: active) {
  :root {
    --bg: Canvas;
    --bg-elevated: Canvas;
    --bg-card: Canvas;
    --text: CanvasText;
    --text-secondary: CanvasText;
    --accent: Highlight;
    --border: CanvasText;
    --border-strong: Highlight;
  }
  .btn-primary,
  .card,
  .badge,
  .chip {
    border: 1px solid ButtonText;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 78% 6%, rgba(255, 59, 48, 0.14), transparent 65%),
    radial-gradient(700px 420px at 15% 18%, rgba(255, 59, 48, 0.06), transparent 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: start;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

/* Tipografía y legibilidad (modern-web-guidance: typography & improve-text-layout-and-legibility) */
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p,
li,
blockquote {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

p {
  margin: 0;
  max-width: 72ch;
}

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

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

/* Accesibilidad: salto al contenido */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Secciones bajo el pliegue */
.deferred-section {
  position: relative;
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

/* ==========================================================================
   Barra de navegación con Scrollspy nativo + fallback
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
  filter: drop-shadow(0 4px 10px rgba(255, 59, 48, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  scroll-target-group: auto;
}

.nav-links a {
  position: relative;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* Scrollspy: combina :target-current nativo con clase fallback .\:target-current */
.nav-links a:is(:target-current, .\:target-current) {
  color: var(--text);
  font-weight: 650;
  background: var(--accent-soft);
}

.nav-links a:is(:target-current, .\:target-current)::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-btn {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

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

.theme-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ff3b30, #d92319);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px -8px rgba(255, 59, 48, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(255, 59, 48, 0.72);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Hero Principal
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy,
.hero-stage {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  font-size: 0.84rem;
  font-weight: 650;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.25);
}

.hero h1 {
  font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4.1rem);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero h1 .accent-text {
  background: linear-gradient(95deg, #ff3b30 0%, #ff8266 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 650;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-pills li i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Escenario visual del Hero: Navegador + Celular */
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 27rem;
}

.browser-mockup {
  width: 92%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #141418;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.35rem;
  padding: 0 0.9rem;
  background: #1d1d24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green { background: #28c840; }

.browser-url {
  flex: 1;
  margin: 0 0.6rem;
  padding: 0.22rem 0.75rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  color: #a1a1aa;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-ext-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(255, 59, 48, 0.18);
  border: 1px solid rgba(255, 59, 48, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  color: #ff6961;
}

.browser-ext-badge img {
  width: 1rem;
  height: 1rem;
}

.browser-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  overflow: hidden;
}

.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-floating {
  position: absolute;
  right: -0.75rem;
  bottom: -2rem;
  width: clamp(9.5rem, 15vw, 12.25rem);
  padding: 0.4rem;
  border-radius: 1.9rem;
  background: linear-gradient(160deg, #3a3a40, #121215 45%, #070709);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.phone-floating img {
  width: 100%;
  height: auto;
  border-radius: 1.55rem;
}

.status-floating-pill {
  position: absolute;
  top: -1rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #141418;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  font-weight: 600;
  color: #f5f5f7;
  z-index: 3;
}

.status-floating-pill i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ==========================================================================
   Encabezados de Sección Comunes
   ========================================================================== */
.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header.centered p {
  margin-inline: auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 3rem);
  font-weight: 800;
}

.section-subtitle {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--text-secondary);
}

/* ==========================================================================
   Sección 1: El Reto (4 Tarjetas) + La Solución
   ========================================================================== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  margin-bottom: 1.15rem;
}

.card-icon.green {
  background: var(--green-soft);
  border-color: rgba(48, 209, 88, 0.35);
  color: var(--green);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 720;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.solution-banner {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 59, 48, 0.16), rgba(255, 59, 48, 0.04));
  border: 1px solid var(--accent-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.solution-banner p {
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem);
  font-weight: 650;
  color: var(--text);
}

/* ==========================================================================
   Sección 2: Cómo se usa (3 Pasos con capturas reales)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr));
  gap: 1.5rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.step-media {
  margin-top: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0d0d10;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 17.5rem;
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

kbd {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-size: 0.82em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border-radius: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

/* ==========================================================================
   Sección 3: Laboratorio Interactivo de Funciones (Diapositivas, Puntero, Mouse, Teclado)
   ========================================================================== */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

.tab-btn[aria-selected="true"] {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px -6px rgba(255, 59, 48, 0.55);
}

.showcase-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
}

.showcase-Visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.interactive-slide-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  cursor: crosshair;
}

.interactive-slide-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-blackout {
  position: absolute;
  inset: 0;
  padding: 1rem;
  text-align: center;
  background: #000000;
  color: #f5f5f7;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.interactive-slide-wrap.is-blackout .slide-blackout {
  opacity: 1;
}

.interactive-hint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #141418;
  color: #d1d1d6;
  font-size: 0.8rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.showcase-phone {
  width: clamp(9rem, 15vw, 12.5rem);
  padding: 0.4rem;
  border-radius: 1.8rem;
  background: linear-gradient(160deg, #3a3a40, #121215 45%, #070709);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

.showcase-phone img {
  width: 100%;
  height: auto;
  border-radius: 1.45rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.feature-list li svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent-bright);
  flex-shrink: 0;
  margin-top: 0.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.feature-list li strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.feature-list li span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ==========================================================================
   Sección 4: La Historia de Presentazo (Storytelling del fundador)
   ========================================================================== */
.story-card {
  position: relative;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 320px at 90% 10%, rgba(255, 59, 48, 0.15), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.story-quote {
  margin: 1.25rem 0;
  padding-left: clamp(0.9rem, 2vw, 1.35rem);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--text);
}

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

.story-quote strong {
  color: var(--text);
}

.story-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.story-author-badge {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent-bright);
  font-size: 1.1rem;
}

.story-visual-box {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.story-visual-box img {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
}

.name-evolution {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.name-old {
  text-decoration: line-through;
  color: var(--text-muted);
}

.name-new {
  font-weight: 800;
  color: var(--accent-bright);
}

/* ==========================================================================
   Sección 5: Compatibilidad y Plataformas
   ========================================================================== */
.compat-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 2.5rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-weight: 650;
  font-size: 0.92rem;
}

.platform-pill.verified {
  border-color: rgba(48, 209, 88, 0.45);
  background: rgba(48, 209, 88, 0.08);
}

.platform-pill svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--green);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* ==========================================================================
   Tabla Comparativa SEO
   ========================================================================== */
.table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-elevated);
  font-weight: 750;
  color: var(--text);
}

.compare-table td {
  color: var(--text-secondary);
}

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

.compare-table .highlight-col {
  background: rgba(255, 59, 48, 0.07);
  color: var(--text);
  font-weight: 650;
}

/* ==========================================================================
   Sección 6: Arquitectura WebRTC + Cloudflare y Calidad
   ========================================================================== */
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  margin-bottom: 2rem;
}

.arch-node {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.arch-node h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.arch-node p {
  margin-inline: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.arch-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 0 0.75rem;
}

.arch-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.stat-value {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--accent-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Sección 7: Preguntas Frecuentes (SEO Accordion con <details>)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 54rem;
  margin-inline: auto;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-border);
}

.faq-item summary {
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1.1rem, 2.5vw, 1.5rem);
  font-size: clamp(0.98rem, 0.92rem + 0.25vw, 1.06rem);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.faq-body {
  padding: 0 clamp(1.1rem, 2.5vw, 1.5rem) 1.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-body p + p {
  margin-top: 0.75rem;
}

/* ==========================================================================
   CTA Final y Pie de Página con Redes Sociales
   ========================================================================== */
.cta-final {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 350px at 50% 0%, rgba(255, 59, 48, 0.24), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--accent-border);
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cta-final h2 {
  font-size: clamp(1.75rem, 1.3rem + 2.4vw, 3.2rem);
  margin-bottom: 0.85rem;
}

.cta-final p {
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem);
  margin-bottom: 2rem;
}

.site-footer {
  padding: 3.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-col h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  transition: color 0.15s ease;
}

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

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.social-pill:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.social-pill svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Modal de Instalación */
dialog.install-modal {
  width: min(92vw, 38rem);
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

dialog.install-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal-inner {
  padding: clamp(1.25rem, 3.5vw, 2rem);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.modal-steps {
  padding-left: 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.modal-primary-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.modal-optional-box {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.modal-optional-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.modal-os-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-os-links a {
  color: var(--accent-bright);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Nota opcional en Hero + Sección 6B: App de Escritorio Opcional (Windows y Mac)
   ========================================================================== */
.hero-optional-note {
  margin-top: 1.15rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  max-width: 60ch;
}

.hero-optional-note a {
  color: var(--accent-bright);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-os-quicklinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding-top: 0.25rem;
}

.optional-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.platform-pill.optional-pill {
  border-style: dashed;
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
}

.choice-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.choice-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
}

.choice-card.primary-choice {
  border-color: var(--accent-border);
  background:
    radial-gradient(480px 220px at 100% 0%, rgba(255, 59, 48, 0.14), transparent 70%),
    var(--bg-card);
}

.choice-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.choice-tag.primary {
  background: var(--accent);
  color: #ffffff;
}

.choice-tag.optional {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.choice-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.choice-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 1.25rem;
}

.choice-actions {
  margin-top: auto;
}

.desktop-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  margin-bottom: 2rem;
}

.desktop-highlight-box {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, rgba(255, 59, 48, 0.16), rgba(255, 59, 48, 0.04));
  border: 1px solid var(--accent-border);
}

.desktop-highlight-box h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  margin-bottom: 0.45rem;
}

.desktop-highlight-box p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.desktop-screens {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.desktop-screen-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.desktop-screen-frame {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0d0d11;
  box-shadow: var(--shadow-lg);
}

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

.desktop-screen-card figcaption {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-secondary);
  text-align: center;
}

.os-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr));
  gap: 1.35rem;
  margin-bottom: 1.5rem;
}

.os-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.os-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.os-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.os-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.os-badge {
  display: block;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  margin-bottom: 0.15rem;
}

.os-card h3 {
  font-size: 1.15rem;
}

.os-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.os-btn-group {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.os-btn-group .btn {
  flex: 1 1 auto;
}

.releases-box {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  margin-bottom: 1.5rem;
}

.releases-box-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.os-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.release-file-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.release-file-link code {
  color: var(--accent-bright);
  font-weight: 700;
  text-decoration: underline;
  font-size: 0.86rem;
}

.release-file-link span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.releases-box-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.releases-box-footer a {
  color: var(--accent-bright);
  font-weight: 650;
  text-decoration: underline;
}

.desktop-help-details {
  max-width: 100%;
}

/* ==========================================================================
   Sistema de Validación, Conteo y Registro de Descargas (PHP + SQLite/MySQL)
   ========================================================================== */
.dl-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dl-status-downloaded {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(48, 209, 88, 0.45);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.btn.is-downloaded {
  border-color: rgba(48, 209, 88, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(48, 209, 88, 0.2);
}

.release-file-link.is-downloaded code {
  color: var(--green);
}

.dl-tracker-panel {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(48, 209, 88, 0.1), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  margin-bottom: 1.5rem;
}

.dl-tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.dl-mini-stat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.dl-mini-stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 820;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.dl-mini-stat span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dl-log-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dl-log-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.dl-log-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.dl-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  max-width: min(92vw, 24rem);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  background: #141418;
  border: 1px solid rgba(48, 209, 88, 0.55);
  box-shadow: var(--shadow-lg);
  color: #f5f5f7;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dl-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   Responsividad y Diseño Adaptativo (Desktop medio, Tablet y Celular)
   ========================================================================== */

/* Pantallas medianas y Tablets horizontales (<= 1040px) */
@media (max-width: 1040px) {
  .hero-grid,
  .showcase-panel,
  .desktop-showcase,
  .story-card,
  .arch-diagram {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-panel > *,
  .desktop-showcase > *,
  .story-card > *,
  .arch-diagram > *,
  .footer-grid > * {
    min-width: 0;
  }

  .mobile-menu-btn {
    display: inline-grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:is(:target-current, .\:target-current)::after {
    display: none;
  }

  .hero-stage {
    justify-content: flex-start;
    min-height: auto;
    margin-top: 1rem;
    padding-bottom: 2rem;
  }

  .browser-mockup {
    width: 90%;
  }

  .phone-floating {
    width: clamp(8.25rem, 22vw, 11rem);
    right: 0;
    bottom: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Tablets verticales y Celulares grandes (<= 720px) */
@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, var(--max-w));
  }

  .nav-bar {
    gap: 0.65rem;
  }

  .showcase-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .showcase-Visual {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .showcase-phone {
    width: min(48vw, 11rem);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .solution-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .solution-banner .btn {
    width: 100%;
  }
}

/* Celulares estándar y pequeños (<= 540px, hasta 320px) */
@media (max-width: 540px) {
  .container {
    width: calc(100% - 1.75rem);
  }

  .nav-github-btn {
    display: none;
  }

  .nav-install-btn {
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
  }

  .eyebrow {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
    white-space: normal;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn,
  .choice-actions .btn,
  .os-btn-group .btn {
    width: 100%;
  }

  .desktop-screens {
    grid-template-columns: minmax(0, 1fr);
    max-width: 16rem;
    margin-inline: auto;
  }

  .browser-mockup {
    width: 100%;
  }

  .browser-ext-badge span {
    display: none;
  }

  .status-floating-pill {
    position: static;
    margin-bottom: 0.75rem;
    align-self: flex-start;
  }

  .hero-stage {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 2.25rem;
  }

  .phone-floating {
    width: clamp(6.5rem, 32vw, 8.25rem);
    right: 0.25rem;
    bottom: 0;
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.85rem;
  }

  .stat-card {
    padding: 1.1rem;
  }
}

/* ==========================================================================
   Animación Vectorial 2D de Carga — Presentazo / Suite Azo
   (modern-web-guidance: motion & animate-element-entry-exit)
   ========================================================================== */
.pzo-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background-color: #ffffff;
  background-image: radial-gradient(circle at 50% 44%, #ffffff 0%, #f6f8fc 100%);
  color: #09090d;
  overflow: hidden;
  user-select: none;
  opacity: 1;
  scale: 1;
  transition:
    display 0.55s,
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

@starting-style {
  .pzo-loader {
    opacity: 1;
    scale: 1;
  }
}

.pzo-loader:where([hidden], [data-closing]) {
  opacity: 0;
  scale: 1.035;
  pointer-events: none;
}

.pzo-loader[hidden] {
  display: none;
}

/* Cuadrícula técnica tenue sobre fondo blanco */
.pzo-loader__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  background-position: center center;
  mask-image: radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.25) 85%, transparent 100%);
  pointer-events: none;
}

/* Contenedor central vectorial */
.pzo-loader__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(92vw, 37.5rem);
  padding: 1.5rem;
}

.pzo-loader__svg {
  width: 100%;
  max-width: 35rem;
  height: auto;
  overflow: visible;
}

/* 1. Miras tenues */
.pzo-loader__reticles {
  opacity: 0;
  animation: pzoReticlesFade 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 0.6;
  }
}

/* 2. Haz de luz rojo brillante que entra por la izquierda, bordea el contorno y sale por la derecha */
.pzo-loader__beam-Around {
  stroke-dasharray: 160 1000;
  stroke-dashoffset: 160;
  animation: pzoBeamAround 0.78s linear 0.04s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 0;
  }
}

.pzo-loader__beam-Core {
  stroke-dasharray: 64 1000;
  stroke-dashoffset: 64;
  animation: pzoBeamCoreAround 0.78s linear 0.04s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 0;
  }
}

/* 3. Contorno brillante que queda trazado al paso del haz y luego se contrae al icono cuadrado */
.pzo-loader__trace-halves {
  animation: pzoTraceHalvesHide 0.01s linear 0.53s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 0;
  }
}

.pzo-loader__trace-half {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: pzoTraceHalf 0.325s linear 0.2025s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 0;
  }
}

.pzo-loader__contract-rect {
  opacity: 0;
  animation: pzoRectContract 0.62s cubic-bezier(0.65, 0, 0.15, 1) 0.53s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 0;
  }
}

/* Cuerpo cuadrado negro con esquinas redondeadas del icono */
.pzo-loader__icon-body,
.pzo-loader__icon-rim {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  scale: 1.18 1.08;
  animation: pzoIconBodyIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.76s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 1;
    scale: 1;
  }
}

/* 4. Tarjeta blanca interior + punto rojo brillante */
.pzo-loader__card-group {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  scale: 0.72;
  animation: pzoCardIn 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) 0.98s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 1;
    scale: 1;
  }
}

.pzo-loader__dot-core,
.pzo-loader__dot-halo {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  scale: 0.2;
  animation: pzoDotPop 0.46s cubic-bezier(0.34, 1.65, 0.64, 1) 1.14s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 1;
    scale: 1;
  }
}

.pzo-loader__dot-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  scale: 0.8;
  animation: pzoDotRing 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 0;
  }
}

/* 5. Texto moderno y grueso "Presentazo" + subtítulo "Suite Azo" debajo del icono */
.pzo-loader__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -1.15rem;
}

.pzo-loader__title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #09090d;
  opacity: 0;
  translate: 0 14px;
  animation: pzoBrandTextIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1.22s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 1;
    translate: none;
  }
}

.pzo-loader__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #525260;
  opacity: 0;
  translate: 0 10px;
  animation: pzoBrandTextIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1.38s forwards;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    opacity: 1;
    translate: none;
  }
}

.pzo-loader__sub-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .pzo-loader {
    transition-duration: 0.15s;
  }
  .pzo-loader:where([hidden], [data-closing]) {
    scale: 1;
  }
}

/* Keyframes de la coreografía vectorial 2D */
@keyframes pzoReticlesFade {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.45;
  }
}

@keyframes pzoBeamAround {
  0% {
    stroke-dashoffset: 160;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -800;
    opacity: 0;
  }
}

@keyframes pzoBeamCoreAround {
  0% {
    stroke-dashoffset: 64;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -896;
    opacity: 0;
  }
}

@keyframes pzoTraceHalf {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes pzoTraceHalvesHide {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes pzoRectContract {
  0% {
    x: 164px;
    y: 62px;
    width: 272px;
    height: 152px;
    rx: 28px;
    stroke-width: 3.2px;
    opacity: 1;
  }
  72% {
    x: 244px;
    y: 82px;
    width: 112px;
    height: 112px;
    rx: 28px;
    stroke-width: 3.6px;
    opacity: 1;
  }
  100% {
    x: 244px;
    y: 82px;
    width: 112px;
    height: 112px;
    rx: 28px;
    stroke-width: 1.5px;
    opacity: 0;
  }
}

@keyframes pzoIconBodyIn {
  0% {
    opacity: 0;
    scale: 1.35 1.12;
  }
  65% {
    opacity: 1;
    scale: 0.96 0.96;
  }
  100% {
    opacity: 1;
    scale: 1 1;
  }
}

@keyframes pzoCardIn {
  0% {
    opacity: 0;
    scale: 0.65;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes pzoDotPop {
  0% {
    opacity: 0;
    scale: 0.2;
  }
  70% {
    opacity: 1;
    scale: 1.18;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes pzoDotRing {
  0% {
    opacity: 0.95;
    scale: 0.85;
  }
  100% {
    opacity: 0;
    scale: 2.35;
  }
}

@keyframes pzoBrandTextIn {
  0% {
    opacity: 0;
    translate: 0 14px;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

/* ==========================================================================
   Ventana de Bloqueo de Lanzamiento Oficial — Viernes 8 de Octubre, 8:00 p. m. (Lima)
   ========================================================================== */
body.is-launch-locked {
  overflow: hidden;
  height: 100dvh;
}

.launch-gate {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.25rem);
  overflow-y: auto;
  background-color: rgba(8, 8, 12, 0.9);
  background-image:
    radial-gradient(680px 420px at 50% 18%, rgba(255, 59, 48, 0.2), transparent 70%),
    radial-gradient(540px 380px at 50% 88%, rgba(255, 59, 48, 0.08), transparent 70%);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  color: #f5f5f7;
  opacity: 1;
  scale: 1;
  transition:
    display 0.5s,
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

@starting-style {
  .launch-gate {
    opacity: 0;
    scale: 0.98;
  }
}

.launch-gate:where([hidden], [data-closing]) {
  opacity: 0;
  scale: 1.02;
  pointer-events: none;
}

.launch-gate[hidden] {
  display: none;
}

.launch-gate__grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.85) 15%, transparent 85%);
  pointer-events: none;
}

.launch-gate__card {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(22, 22, 29, 0.95) 0%, rgba(12, 12, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 36px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 65px -12px rgba(255, 59, 48, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.launch-gate__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.95rem 0.45rem 0.55rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.launch-gate__brand img {
  width: 3rem;
  height: 3rem;
  filter: drop-shadow(0 6px 14px rgba(255, 59, 48, 0.32));
}

.launch-gate__brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.launch-gate__brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.launch-gate__brand-suite {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ff564c;
  margin-top: 0.15rem;
}

.launch-gate__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.14);
  border: 1px solid rgba(255, 59, 48, 0.38);
  color: #ff8078;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.launch-gate__title {
  font-size: clamp(1.65rem, 1.25rem + 2vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #ffffff;
  margin: 0;
}

.launch-gate__desc {
  font-size: clamp(0.94rem, 0.88rem + 0.25vw, 1.05rem);
  color: #b4b4c0;
  max-width: 52ch;
  margin: 0;
}

.launch-gate__countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.5vw, 0.75rem);
  width: 100%;
  margin-block: 0.35rem;
}

.launch-gate__unit {
  flex: 1 1 0;
  min-width: 4.1rem;
  max-width: 7.5rem;
  padding: clamp(0.75rem, 2vw, 1.15rem) 0.5rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.launch-gate__num {
  font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.launch-gate__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9e9eaa;
}

.launch-gate__sep {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 800;
  color: #ff3b30;
  opacity: 0.85;
  margin-top: -0.8rem;
}

.launch-gate__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.launch-gate__tz-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.83rem;
  font-weight: 600;
  color: #e4e4ec;
}

.launch-gate__tz-pill svg {
  color: #ff564c;
  flex-shrink: 0;
}

.launch-gate__submeta {
  font-size: 0.78rem;
  color: #8c8c98;
}

.launch-gate__footer {
  width: 100%;
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.launch-gate__social-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a7a7b2;
}

.launch-gate__socials {
  justify-content: center;
  margin-top: 0 !important;
}

.launch-gate__author {
  font-size: 0.8rem;
  color: #8c8c98;
}

.launch-gate__author a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

@media (max-width: 480px) {
  .launch-gate__sep {
    display: none;
  }
  .launch-gate__countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .launch-gate__unit {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-gate {
    transition-duration: 0.15s;
  }
  .launch-gate:where([hidden], [data-closing]) {
    scale: 1;
  }
}
