/* ============================================
   SEOwer Website - Estilos principales
   Diseño moderno, profesional y responsive
   ============================================ */

:root {
  --primary: #1476b0;
  --primary-dark: #0c486c;
  --primary-light: #60a5fa;
  --accent: #10b981;
  --accent-warm: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #5c7080;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --bg: #f4f6f9;
  --gradient-primary: linear-gradient(135deg, #1476b0 0%, #0c486c 100%);
  --gradient-hero: linear-gradient(135deg, #0c486c 0%, #1476b0 50%, #1e88c7 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(20, 118, 176, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
}

.nav-brand .badge {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

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

.nav-menu a {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--gradient-primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(20, 118, 176, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 118, 176, 0.4);
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  margin: 5px 0;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: white;
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  flex-shrink: 0;
  flex-grow: 0;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-badge h1 {
  margin: 0;
  padding: 0;
  font-size: 11px !important;
  font-weight: inherit;
  line-height: 1.3;
  letter-spacing: inherit;
}

.hero h2.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero h2.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 36px;
  opacity: 0.95;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 28px;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.hero-stat span {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

/* Hero mockup */
.hero-mockup {
  position: relative;
  perspective: 1000px;
}

.mockup-window {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
}

.mockup-window:hover {
  transform: rotateY(0) rotateX(0);
}

.mockup-header {
  background: var(--gray-100);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-url {
  flex: 1;
  background: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--gray-500);
  margin-left: 8px;
}

.mockup-content {
  padding: 20px;
  min-height: 340px;
  background: var(--gray-50);
  position: relative;
}

.mockup-bar {
  background: var(--gradient-primary);
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  margin-bottom: 16px;
  color: white;
  font-size: 11px;
  font-weight: bold;
}

.mockup-bar-logo {
  background: white;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 900;
}

.mockup-radar {
  width: 220px;
  height: 220px;
  margin: 20px auto;
  position: relative;
}

.mockup-score-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.mockup-score-card {
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.mockup-score-card strong {
  color: var(--primary);
  font-size: 14px;
}

/* ============================================
   SECTIONS GENERALES
   ============================================ */
section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  background: rgba(20, 118, 176, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
  background: var(--gray-50);
}

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

.feature-card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(20, 118, 176, 0.25);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================
   BAR SHOWCASE
   ============================================ */
.bar-showcase {
  background: white;
}

.bar-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bar-showcase-content h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.bar-showcase-content > p {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.bar-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-features-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bar-features-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  margin-top: 2px;
}

.bar-features-list strong {
  color: var(--dark);
  display: block;
  margin-bottom: 2px;
}

.bar-features-list span {
  color: var(--gray-600);
  font-size: 14px;
}

.bar-demo {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.bar-demo-page {
  background: var(--gray-50);
  height: 380px;
  position: relative;
  padding-top: 50px;
  overflow: hidden;
}

.bar-demo-content {
  padding: 20px;
  height: 100%;
  background:
    linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)),
    repeating-linear-gradient(0deg, transparent 0, transparent 19px, var(--gray-200) 20px),
    repeating-linear-gradient(90deg, transparent 0, transparent 19px, var(--gray-200) 20px);
  background-blend-mode: normal;
}

.bar-demo-content h4 {
  color: var(--gray-700);
  margin-bottom: 8px;
}

.bar-demo-content p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.5;
}

.bar-mockup {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
  white-space: nowrap;
  overflow: hidden;
}

.bar-mockup-logo {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.bar-mockup-logo span {
  background: white;
  color: var(--primary);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 2px;
  font-size: 8px;
}

.bar-mockup-metric {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  border-right: 1px solid rgba(255,255,255,0.2);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-mockup-metric:last-of-type {
  border-right: none;
}

.bar-mockup-score {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 900;
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================
   DASHBOARD SHOWCASE
   ============================================ */
.dashboard-showcase {
  background: var(--gray-50);
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 6px 4px 14px 4px;
  scrollbar-width: thin;
}

.dashboard-tab {
  background: white;
  border: 2px solid var(--gray-200);
  padding: 7px 10px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  font-size: 11.5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.dashboard-tab svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.dashboard-tab:hover,
.dashboard-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: linear-gradient(135deg, #eaf2f8 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(20, 118, 176, 0.15);
}

.dashboard-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   ARCHITECTURE MAP (Mapa de Arquitectura Semántica)
   ============================================ */
.archmap-section {
  background: radial-gradient(ellipse at center, #0f172a 0%, #020617 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  perspective: 1200px;
}

.archmap-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(20,118,176,0.25) 0%, transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(139,92,246,0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(245,158,11,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.archmap-section .section-header { color: white; position: relative; z-index: 2; }
.archmap-section .section-header h2 { color: white; }
.archmap-section .section-header p { color: #cbd5e1; }
.archmap-section .section-tag { background: rgba(20, 118, 176, 0.25); color: white; border: 1px solid var(--primary-light); }

/* 3 Cards de métricas (ARQUITECTURA / EG / CRAG) */
.archmap-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.archmap-metric-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.archmap-metric-label {
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.archmap-metric-value {
  color: #f1f5f9;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.archmap-metric-sub {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .archmap-metrics { grid-template-columns: 1fr; }
}

.archmap-canvas {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(30,41,59,0.4) 0%, rgba(2,6,23,0.95) 100%);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 16px;
  padding: 30px 20px 20px;
  margin-top: 20px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 80px rgba(59, 130, 246, 0.05);
  transform: perspective(1200px) rotateX(1deg);
}

.archmap-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: 0 0;
  pointer-events: none;
}

.archmap-svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(2deg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.archmap-node { cursor: pointer; transition: transform 0.3s ease, filter 0.3s ease; }
.archmap-node:hover { transform: translateY(-3px) scale(1.05); filter: brightness(1.2); }

/* H1 con efecto 3D pulsante y sombra profunda */
.archmap-h1 circle:nth-child(2) {
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.7)) drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.archmap-hint {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 10.5px;
  color: #94a3b8;
  font-style: italic;
  letter-spacing: 0.2px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.archmap-h1 .node-pulse {
  transform-origin: 800px 220px;
  animation: archmap-pulse 2.4s ease-out infinite;
}

/* H2 con sombra azul */
.archmap-h2 circle {
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5)) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* H3 con sombra violeta */
.archmap-h3 circle {
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5)) drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

/* H4+ con sombra gris */
.archmap-h4 circle {
  filter: drop-shadow(0 0 6px rgba(148, 163, 184, 0.4)) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Párrafos e Int./Ext. con brillo */
.archmap-paragraph rect,
.am-ext rect {
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.3)) drop-shadow(0 2px 3px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.archmap-paragraph:hover rect,
.am-ext:hover rect {
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6)) drop-shadow(0 3px 5px rgba(0,0,0,0.3)) brightness(1.3);
}

@keyframes archmap-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(2.4); opacity: 0; }
}

.link-flow {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: archmap-flow 4s linear infinite;
}

@keyframes archmap-flow {
  to { stroke-dashoffset: 0; }
}

.archmap-badges rect {
  opacity: 0;
  animation: archmap-fade-in 0.5s ease-out forwards;
}
.archmap-badges rect:nth-child(1) { animation-delay: 1.2s; }
.archmap-badges rect:nth-child(2) { animation-delay: 1.35s; }
.archmap-badges rect:nth-child(3) { animation-delay: 1.5s; }
.archmap-badges rect:nth-child(4) { animation-delay: 1.65s; }
.archmap-badges rect:nth-child(5) { animation-delay: 1.8s; }
.archmap-badges rect:nth-child(6) { animation-delay: 1.95s; }

@keyframes archmap-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.archmap-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.archmap-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

.archmap-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 12px rgba(20,118,176,0.5);
}

@media (max-width: 768px) {
  .archmap-svg { max-height: 320px; }
}

/* === DEMOS para SEO On-Page y Legibilidad (placeholders visuales) === */
.demo-panel {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 420px;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gray-500);
  background: #fff8e1;
  border: 1px dashed #fbbf24;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.demo-banner svg { flex-shrink: 0; color: #d97706; }

.demo-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.demo-kpi {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-kpi-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.demo-kpi-unit { font-size: 14px; color: var(--gray-500); margin-left: 1px; }

.demo-kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-grid-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.demo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.demo-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-card b {
  font-size: 10.5px;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.demo-card span {
  font-size: 12px;
  font-weight: 700;
}

.demo-card .ok { color: #008B8B; }
.demo-card .warn { color: #CD5700; }
.demo-card .bad { color: #7F1734; }

.demo-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.demo-pill.ok { background: #d5eded; color: #008B8B; }

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-tag {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-700);
}

.demo-tag em { color: var(--primary); font-style: normal; font-weight: 800; }

.demo-progress {
  height: 10px;
  background: var(--gray-100);
  border-radius: 5px;
  overflow: hidden;
}

.demo-progress-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* === Legibilidad: Donut, stats, bubbles y rhythm === */
.demo-legibility-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.demo-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.demo-donut-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--gray-100) 0);
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  animation: donut-fill 1.5s ease-out;
}

.demo-donut-inner {
  width: 110px;
  height: 110px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
}

@keyframes donut-fill {
  from { background: conic-gradient(var(--c) 0%, var(--gray-100) 0); }
}

.demo-card-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-legibility-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.demo-stat {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-stat b {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.demo-stat span {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.demo-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 0;
  min-height: 80px;
}

.demo-bubble {
  border-radius: 50%;
  opacity: 0.85;
  transition: transform 0.3s;
}

.demo-bubble:hover { transform: scale(1.2); }

.demo-bubble.big { width: 36px; height: 36px; }
.demo-bubble.med { width: 24px; height: 24px; }
.demo-bubble.small { width: 16px; height: 16px; }
.demo-bubble.tiny { width: 10px; height: 10px; }

.demo-bubble.teal { background: #5eead4; box-shadow: 0 2px 6px rgba(94,234,212,0.4); }
.demo-bubble.blue { background: #60a5fa; box-shadow: 0 2px 6px rgba(96,165,250,0.4); }
.demo-bubble.gray { background: #94a3b8; opacity: 0.6; }

.demo-rhythm {
  display: flex;
  align-items: flex-end;
  height: 70px;
  gap: 3px;
  padding: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.demo-bar {
  flex: 1;
  background: linear-gradient(180deg, #1476b0 0%, #0c486c 100%);
  border-radius: 3px 3px 0 0;
  min-height: 12%;
  animation: bar-rise 0.8s ease-out backwards;
  transform-origin: bottom;
}

.demo-bar:nth-child(odd) { animation-delay: 0.05s; }
.demo-bar:nth-child(even) { animation-delay: 0.1s; }
.demo-bar:nth-child(3n) { animation-delay: 0.15s; }
.demo-bar:nth-child(4n) { animation-delay: 0.2s; }
.demo-bar:nth-child(5n) { animation-delay: 0.25s; }

@keyframes bar-rise {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 768px) {
  .demo-grid-10 { grid-template-columns: repeat(2, 1fr); }
  .demo-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .demo-kpi-row { grid-template-columns: 1fr; }
  .demo-legibility-row { grid-template-columns: 1fr; }
  .demo-legibility-stats { grid-template-columns: 1fr; }
}
  height: 14px;
  flex-shrink: 0;
}

.dashboard-tab:hover,
.dashboard-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(20, 118, 176, 0.05);
}

.dashboard-screens {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-screen {
  display: none;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gray-200);
  max-height: 80vh;
}

.dashboard-screen.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-screen-header {
  background: var(--gradient-primary);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-screen-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.dashboard-screen-body {
  padding: 32px;
  color: var(--gray-500);
  font-size: 15px;
  text-align: center;
  background:
    linear-gradient(white, white),
    repeating-linear-gradient(45deg, var(--gray-100) 0 10px, transparent 10px 20px);
  background-blend-mode: normal;
  line-height: 0;
}

.dashboard-screen-body img {
  max-width: 100%;
  width: 100%;
  height: auto !important;
  max-height: 70vh !important;
  object-fit: contain !important;
  border-radius: var(--radius-sm);
  display: block;
  background: white;
}

.placeholder-img {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 60px 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
  width: 100%;
}

.placeholder-img::before {
  content: '🖼️';
  display: block;
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ============================================
   COMPETITOR COMPARISON
   ============================================ */
.competitor-section {
  background: white;
}

.competitor-table {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  max-width: 900px;
  margin: 0 auto;
}

.competitor-table table {
  width: 100%;
  border-collapse: collapse;
}

.competitor-table th,
.competitor-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}

.competitor-table th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

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

.competitor-table .badge-yes {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
}

.competitor-table .badge-no {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
}

/* ============================================
   GOOGLE DOCS CTA
   ============================================ */
.docs-cta {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.docs-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.docs-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.docs-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.docs-cta p {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 32px;
  line-height: 1.6;
}

.docs-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.docs-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.docs-features li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 13px;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  color: var(--primary-dark);
}

.docs-mockup {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  padding: 24px;
  color: var(--dark);
  transform: rotate(2deg);
  transition: var(--transition);
}

.docs-mockup:hover {
  transform: rotate(0);
}

.docs-mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

.docs-mockup-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.docs-mockup-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-700);
}

.docs-mockup-score {
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: white;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 16px;
}

.docs-mockup-score strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
}

.docs-mockup-score span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.95;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  background: var(--gray-50);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  background: white;
  padding: 36px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: white;
}

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

.testimonial {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 80px;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.testimonial-info strong {
  display: block;
  color: var(--dark);
  font-size: 14px;
}

.testimonial-info span {
  color: var(--gray-500);
  font-size: 13px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: var(--gradient-hero);
  color: white;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: -1px;
}

.final-cta p {
  font-size: 19px;
  opacity: 0.95;
  margin-bottom: 36px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn {
  position: relative;
  font-size: 17px;
  padding: 18px 36px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: white;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand .badge {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
}

.footer-desc {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--gray-800);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-col a {
  color: var(--gray-400);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--gray-50);
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.legal-content .legal-date {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-top: 32px;
  margin-bottom: 14px;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

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

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.footer-legal-links {
  display: inline;
  gap: 0;
}

.footer-legal-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--primary);
}

.legal-content section {
  margin-bottom: 24px;
  padding: 0;
}

.legal-content section h2 {
  margin-top: 0;
}

/* ============================================
   INSTRUCCIONES PAGE
   ============================================ */
.instructions-page {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--gray-50);
}

.instructions-hero {
  background: var(--gradient-hero);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.instructions-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.instructions-hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.instr-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 40px;
}

.instr-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.instr-sidebar h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 16px;
  font-weight: 700;
}

.instr-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.instr-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.instr-toc a:hover,
.instr-toc a.active {
  background: rgba(20, 118, 176, 0.08);
  color: var(--primary);
}

.instr-content {
  background: white;
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.instr-content section {
  padding: 0;
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.instr-content section:last-child {
  margin-bottom: 0;
}

.instr-content h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.instr-content h2 .num {
  background: var(--gradient-primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.instr-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  margin-top: 28px;
  margin-bottom: 12px;
}

.instr-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.instr-content p {
  color: var(--gray-700);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.instr-content ul,
.instr-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.instr-content li {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.instr-content strong {
  color: var(--dark);
}

.instr-tip {
  background: rgba(20, 118, 176, 0.05);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.instr-tip strong {
  color: var(--primary-dark);
}

.instr-tip p {
  margin-bottom: 0;
  color: var(--gray-700);
  font-size: 14.5px;
}

.instr-img {
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

/* ============================================
   COOKIE BANNER
   ============================================ */

/* Inline check for lists */
.check-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  font-weight: bold;
  vertical-align: -2px;
  margin-right: 4px;
}

.check-inline::before {
  content: '✓';
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: relative;
  margin-left: 8px;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--gray-200);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.lang-switcher-btn:hover {
  background: var(--gray-50);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-switcher-btn svg {
  width: 14px;
  height: 14px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: 6px;
  z-index: 1000;
  display: none;
}

.lang-dropdown.show {
  display: block;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.lang-dropdown-item.active {
  background: rgba(20, 118, 176, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.lang-dropdown-item .flag {
  font-size: 10px;
  font-weight: bold;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--dark);
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  flex-wrap: wrap;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  flex: 1;
  font-size: 14px;
  margin: 0;
  min-width: 200px;
}

.cookie-banner a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-banner button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.cookie-banner button:hover {
  background: var(--primary-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .hero-content,
  .bar-showcase-grid,
  .docs-cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .instr-layout {
    grid-template-columns: 1fr;
  }

  .instr-sidebar {
    position: static;
  }

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

  .hero h1 {
    font-size: 36px;
  }

  section {
    padding: 60px 0;
  }

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

@media (max-width: 640px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .legal-content,
  .instr-content {
    padding: 28px 20px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .dashboard-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}

/* ===========================================
   UI SHOWCASE SEOwer (Replica del panel de Diagnóstico)
   =========================================== */
.seower-ui-section {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--gray-200) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.seower-ui-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(20, 118, 176, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.seower-ui-section .section-header { text-align: center; margin-bottom: 32px; }
.seower-ui-section .section-header h2 { color: var(--primary-dark); font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; overflow-wrap: break-word; }
.seower-ui-section .section-header p { color: var(--gray-700); font-size: 16px; font-weight: 500; }
.seower-ui-section .section-tag { background: var(--primary-light); color: white; border: 1px solid var(--primary); }

.seower-ui-showcase {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(20, 118, 176, 0.18);
  border: 1px solid var(--gray-200);
}

.seower-ui-showcase .glow,
.seower-ui-showcase .glow-1,
.seower-ui-showcase .glow-2 { display: none; }

/* Panel Diagnóstico (replica exacta de la extensión) */
.diag-panel {
  background: #f8fafc;
  font-family: inherit;
}

.diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.diag-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.diag-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.diag-brand {
  color: var(--primary);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.diag-pro {
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.diag-header-center {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  flex: 1;
  min-width: 0;
}

.diag-header-center svg { color: var(--primary); flex-shrink: 0; }
.diag-header-center strong { font-family: ui-monospace, "SF Mono", monospace; font-weight: 500; color: var(--gray-900); }

.diag-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.diag-date {
  font-size: 11.5px;
  color: #64748b;
}

.diag-date strong { color: var(--gray-900); font-weight: 700; }

.diag-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

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

.diag-summary {
  padding: 20px 22px 14px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.diag-summary-title {
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.diag-summary-desc {
  color: #475569;
  font-size: 12.5px;
  margin: 0;
  line-height: 1.5;
}

.diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  padding: 18px 22px 22px;
}

.diag-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.diag-card-title {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 14px 0;
}

.diag-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.diag-refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.diag-refresh:hover { background: var(--gray-100); }

/* Radar */
.diag-radar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  position: relative;
}

.diag-radar-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  animation: diag-radar-onda 4s infinite ease-out;
}

@keyframes diag-radar-onda {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(13); opacity: 0; }
}

.diag-radar-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Center column: Panel Global + subscores */
.diag-col-center {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.diag-donut-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 0;
  max-width: 180px;
}

.diag-donut-svg {
  width: 100%;
  height: auto;
}

.diag-donut-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
}

.diag-donut-big {
  display: block;
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
}

.diag-donut-small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 4px;
}

.diag-subscores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.diag-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  color: #3b82f6;
  flex-shrink: 0;
}

.diag-sub svg { flex-shrink: 0; }

.diag-sub > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.diag-sub b {
  font-size: 9.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diag-sub span {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

/* Right column: Keyword + Métricas */
.diag-col-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diag-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  background: white;
  margin-bottom: 12px;
  font-family: inherit;
  font-weight: 600;
}

.diag-kw-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.diag-kw-label {
  font-size: 10px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diag-kw-range {
  font-size: 9px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
}

.diag-kw-val {
  font-size: 22px;
  font-weight: 900;
  color: #10b981;
  line-height: 1;
}

.diag-kw-val span {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

/* Métricas clave grid */
.diag-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.diag-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.diag-metric b {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.diag-metric span {
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.diag-metric.ok b { color: #10b981; }
.diag-metric.ok { background: #ecfdf5; border-color: #a7f3d0; }
.diag-metric.err-warn b { color: #f59e0b; }
.diag-metric.err-warn { background: #fffbeb; border-color: #fde68a; }
.diag-metric.err-bad b { color: #ef4444; }
.diag-metric.err-bad { background: #fef2f2; border-color: #fecaca; }

.seower-ui-caption {
  text-align: center;
  color: #64748b;
  font-size: 12px;
  margin-top: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

@media (max-width: 968px) {
  .diag-grid {
    grid-template-columns: 1fr;
  }
  .diag-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .diag-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .seower-ui-showcase { border-radius: 8px; }
  .diag-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diag-subscores {
    grid-template-columns: 1fr;
  }
  .diag-donut-svg { max-width: 140px; }

  /* Hero h1 badge más pequeño y sin pegar al borde */
  .hero-badge {
    padding: 4px 10px;
    font-size: 10px;
    max-width: calc(100vw - 32px);
    margin-bottom: 16px !important;
  }
  .hero-badge h1 {
    font-size: 10px !important;
    line-height: 1.25;
    letter-spacing: -0.1px;
  }
  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -1px;
  }
  .hero h2.hero-title {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -1px;
  }
  .hero p {
    font-size: 15px;
  }

  /* Bar mockup: reducir métricas y permitir wrap */
  .bar-mockup {
    height: auto;
    min-height: 40px;
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 10px;
  }
  .bar-mockup-logo { font-size: 11px; }
  .bar-mockup-metric {
    padding: 0 4px;
    font-size: 9.5px;
    border-right: none;
  }
  .bar-mockup-score {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  /* Dashboard tabs: scroll horizontal más usable */
  .dashboard-tabs { padding: 6px 0 12px 0; }
  .dashboard-tab { font-size: 10.5px; padding: 6px 8px; }

  /* Archmap SVG más pequeño en móvil */
  .archmap-svg { max-height: 380px; }

  /* Bar demo más pequeño */
  .bar-demo-page { height: 280px; padding-top: 40px; }
  .bar-demo-content h4 { font-size: 12px; }
  .bar-demo-content p { font-size: 11px; }

  /* Dashboard screen header más pequeño */
  .dashboard-screen-header h4 { font-size: 13px; padding: 10px 12px; }
  .dashboard-tab { font-size: 10px; padding: 5px 7px; }
}
