/*!
 * ObrasAI · Landing Styles v3 — Premium Design
 * Paleta basada en el logo oficial:
 *   Navy   #1e3a5f (el azul oscuro del edificio)
 *   Teal   #2a9d8f (el acento del network/AI)
 *   Orange #f97316 (CTA, consistente con branding)
 * Copyright © 2025-2026 ObrasAI
 */

:root {
  /* Paleta oficial (extraída del logo) */
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --navy-darker: #0d1b2e;
  --navy-light: #2d4f7c;
  --teal: #2a9d8f;
  --teal-dark: #21867a;
  --teal-light: #5eead4;
  --teal-soft: #e6f6f4;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fff7ed;

  /* Neutros */
  --white: #ffffff;
  --bg: #fafbfc;
  --bg-alt: #f4f7fa;
  --border: #e4ebf2;
  --border-strong: #d0dae5;

  --text: #152a45;
  --text-soft: #5a6c82;
  --text-mute: #8a9bb0;

  /* Sombras refinadas (con tono navy) */
  --shadow-xs: 0 1px 2px rgba(30, 58, 95, 0.04);
  --shadow-sm: 0 2px 4px rgba(30, 58, 95, 0.06), 0 1px 2px rgba(30, 58, 95, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08), 0 2px 4px rgba(30, 58, 95, 0.04);
  --shadow-lg: 0 12px 32px rgba(30, 58, 95, 0.12), 0 4px 8px rgba(30, 58, 95, 0.04);
  --shadow-xl: 0 24px 64px rgba(30, 58, 95, 0.16), 0 8px 16px rgba(30, 58, 95, 0.06);
  --shadow-glow: 0 0 0 4px rgba(42, 157, 143, 0.15);

  /* Radios */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Transiciones */
  --tr: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-select, body.no-select * { user-select: none; -webkit-user-select: none; }
body.no-select input, body.no-select textarea, body.no-select .allow-select, body.no-select .allow-select * { user-select: text; -webkit-user-select: text; }

a { color: var(--teal); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--teal-dark); }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

p { color: var(--text-soft); line-height: 1.7; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow-orange { color: var(--orange); }

.lead {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.section-dark { background: var(--navy-darker); color: #e4ebf2; }
.section-dark h2, .section-dark h3 { color: white; }

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-head .lead { margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-sans);
}
.btn:active { transform: translateY(1px); }

.btn-lg { padding: 16px 28px; font-size: 15px; border-radius: var(--r-lg); }
.btn-block { width: 100%; display: flex; }

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45);
  color: white;
}

.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover { background: var(--navy-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-teal {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 14px rgba(42, 157, 143, 0.3);
}
.btn-teal:hover { background: var(--teal-dark); color: white; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: white; }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: white;
  color: var(--navy);
  border-color: white;
}

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--navy); }

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text { color: var(--navy); }
.brand-accent { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
  transition: color var(--tr);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--tr);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

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

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--tr); }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 80px 0 120px;
  background:
    radial-gradient(ellipse 1200px 600px at 85% 15%, rgba(42, 157, 143, 0.12), transparent 60%),
    radial-gradient(ellipse 1000px 500px at 15% 85%, rgba(249, 115, 22, 0.08), transparent 55%),
    linear-gradient(180deg, white 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 800px 500px at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 800px 500px at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-copy { max-width: 620px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42, 157, 143, 0.1);
  color: var(--teal-dark);
  border: 1px solid rgba(42, 157, 143, 0.2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--navy);
}

.hero h1 .highlight {
  position: relative;
  color: var(--teal);
  white-space: nowrap;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.06em;
  left: 0;
  right: 0;
  height: 0.25em;
  background: rgba(42, 157, 143, 0.18);
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-soft);
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  font-size: 13px;
  color: var(--text-mute);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li strong { color: var(--navy); font-weight: 800; }
.hero-trust li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 900;
  font-size: 16px;
}

/* Hero visual — dashboard mockup */
.hero-visual { position: relative; }

.mockup-card {
  position: relative;
  background: white;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform var(--tr-slow);
}

.mockup-card:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg); }

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c941; }

.mockup-title {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 600;
  margin-left: 8px;
}

.mockup-body { padding: 20px; }

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.kpi-box {
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
}
.kpi-box.kpi-teal { background: var(--teal-soft); border-color: rgba(42, 157, 143, 0.2); }
.kpi-box.kpi-orange { background: var(--orange-soft); border-color: rgba(249, 115, 22, 0.2); }
.kpi-box.kpi-navy { background: rgba(30, 58, 95, 0.05); border-color: rgba(30, 58, 95, 0.15); }

.kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.kpi-teal .kpi-value { color: var(--teal-dark); }
.kpi-orange .kpi-value { color: var(--orange-dark); }

.mockup-chart {
  height: 140px;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 16px;
  position: relative;
}

.mockup-chart svg { width: 100%; height: 100%; }

.chart-legend {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: var(--text-mute);
  font-weight: 600;
}
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i {
  width: 12px;
  height: 2px;
  display: inline-block;
}

.mockup-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  height: 56px;
  align-items: end;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.bar-col i {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--teal), var(--navy));
  border-radius: 3px 3px 0 0;
  transition: all var(--tr);
}
.bar-col span {
  font-size: 9px;
  color: var(--text-mute);
  font-weight: 600;
}

.floating-chip {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-chip-1 {
  top: -12px;
  left: -40px;
  animation: float 4s ease-in-out infinite;
}

.floating-chip-2 {
  bottom: 40px;
  right: -30px;
  animation: float 4s ease-in-out infinite 2s;
}

.floating-chip small {
  display: block;
  font-size: 10px;
  color: var(--text-mute);
  font-weight: 500;
  margin-top: 2px;
}

.chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.chip-icon.green { background: #dcfce7; color: #166534; }
.chip-icon.orange { background: var(--orange-soft); color: var(--orange-dark); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1024px) {
  .mockup-card { transform: none; }
  .floating-chip-1, .floating-chip-2 { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════════ */

.stats-bar {
  background: var(--navy-darker);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 50%, rgba(42, 157, 143, 0.12), transparent),
    radial-gradient(ellipse 600px 400px at 90% 50%, rgba(249, 115, 22, 0.08), transparent);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

.stat {
  text-align: center;
  padding: 0 16px;
}

.stat-value {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, white 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS (genéricos, problemas, pillars, security)
   ═══════════════════════════════════════════════════════════════════ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .cards-grid, .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-grid, .cards-grid-2, .cards-grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  transition: all var(--tr);
}
.card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all var(--tr);
}
.card:hover .card-icon {
  background: var(--teal);
  color: white;
  transform: scale(1.05);
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--navy);
}
.card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

/* Pillar variant (con numeración) */
.pillar-card { position: relative; }
.pillar-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.pillar-list {
  list-style: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.pillar-list li {
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 0 6px 22px;
  position: relative;
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.card-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: transparent;
  color: white;
}
.card-highlight h3, .card-highlight .card-icon, .card-highlight .pillar-num { color: white; }
.card-highlight .card-icon { background: rgba(255,255,255,0.15); color: white; }
.card-highlight p, .card-highlight .pillar-list li { color: rgba(255,255,255,0.85); }
.card-highlight .pillar-list { border-color: rgba(255,255,255,0.15); }
.card-highlight:hover { border-color: var(--teal); }

/* Security cards (compactos) */
.security-card { text-align: left; padding: 24px 20px; }
.security-card .card-icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 14px; }
.security-card h3 { font-size: 15px; margin-bottom: 6px; }
.security-card p { font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════
   PILLS (módulos)
   ═══════════════════════════════════════════════════════════════════ */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: all var(--tr);
}
.pill:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pill-icon { font-size: 18px; }

.pill-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: white;
  border-color: transparent;
}
.pill-primary:hover { box-shadow: 0 8px 24px rgba(42, 157, 143, 0.3); }

/* ═══════════════════════════════════════════════════════════════════
   FEATURES DEEP-DIVE
   ═══════════════════════════════════════════════════════════════════ */

.features-stack { display: flex; flex-direction: column; gap: 80px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.feature.reverse { grid-template-columns: 1.1fr 1fr; }
.feature.reverse > .feature-content { order: 2; }
.feature.reverse > .feature-preview { order: 1; }

@media (max-width: 900px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse > .feature-content { order: 0; }
  .feature.reverse > .feature-preview { order: 0; }
}

.feature-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.feature-tag.tag-orange { background: var(--orange-soft); color: var(--orange-dark); }
.feature-tag.tag-red { background: #fee2e2; color: #b91c1c; }
.feature-tag.tag-violet { background: #ede9fe; color: #6d28d9; }

.feature h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 14px;
  color: var(--navy);
}

.feature p {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0 8px 30px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 18px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* Feature preview (mockups) */
.feature-preview {
  background: white;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.preview-head {
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 600;
}

.preview-head .mockup-dots { margin-right: 8px; }

.preview-body { padding: 24px; }

/* KPI grid en features */
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

/* Mini-chart en feature */
.preview-chart {
  height: 160px;
  padding: 14px;
  background: linear-gradient(180deg, var(--bg) 0%, white 100%);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

/* Tabla de retenciones */
.preview-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.preview-table td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.preview-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.preview-table .label-muted { color: var(--text-mute); font-size: 13px; }
.preview-table .amount-plus { color: #059669; }
.preview-table .amount-minus { color: var(--orange-dark); }
.preview-table .row-total td {
  border-top: 2px solid var(--navy);
  border-bottom: none;
  padding-top: 14px;
  font-weight: 800;
}
.preview-table .row-total td:last-child { color: var(--teal-dark); font-size: 16px; }

/* SST ring */
.sst-card { padding: 10px; }
.sst-ring-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}
.sst-ring {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.sst-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sst-ring-text strong {
  font-size: 28px;
  font-weight: 900;
  color: var(--teal-dark);
}
.sst-ring-text small {
  font-size: 11px;
  color: var(--text-mute);
}
.sst-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sst-stats li { display: flex; align-items: center; gap: 10px; }
.sst-stats .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sst-stats .dot-ok { background: #10b981; }
.sst-stats .dot-warn { background: #f59e0b; }

/* Chat AI */
.chat-body {
  background: var(--bg);
  padding: 16px;
  max-height: 340px;
  overflow: hidden;
}
.chat-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 10px;
  max-width: 85%;
  line-height: 1.55;
}
.chat-msg-user {
  background: var(--navy);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chat-msg-ai {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-xs);
}

/* ═══════════════════════════════════════════════════════════════════
   COMPARATIVE TABLE
   ═══════════════════════════════════════════════════════════════════ */

.comp-wrap {
  overflow-x: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  background: white;
  border: 1px solid var(--border);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 860px;
}

.comp-table th,
.comp-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: var(--bg-alt);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comp-table th.comp-ours,
.comp-table td.comp-ours {
  background: linear-gradient(180deg, rgba(42, 157, 143, 0.08) 0%, rgba(42, 157, 143, 0.04) 100%);
  color: var(--teal-dark);
  font-weight: 800;
  border-left: 1px solid rgba(42, 157, 143, 0.25);
  border-right: 1px solid rgba(42, 157, 143, 0.25);
}

.comp-table th.comp-ours {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.comp-table td:first-child,
.comp-table th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.comp-table tbody tr:hover { background: var(--bg); }
.comp-table tbody tr:hover .comp-ours { background: rgba(42, 157, 143, 0.12); }

.check-yes { color: var(--teal); font-weight: 900; font-size: 18px; }
.check-no { color: var(--text-mute); font-size: 16px; }
.check-partial { color: var(--orange); font-size: 12px; font-weight: 700; font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════
   DEMO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.demo-box {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--navy-darker);
  border: 1px solid var(--navy);
}

.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 12px;
  background: var(--navy);
  overflow-x: auto;
}

.demo-tab {
  flex: 1;
  min-width: 130px;
  padding: 12px 18px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: none;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--tr);
  white-space: nowrap;
}

.demo-tab:hover { color: white; background: rgba(255,255,255,0.08); }

.demo-tab.active {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 14px rgba(42, 157, 143, 0.4);
}

.demo-canvas {
  position: relative;
  background: white;
  height: 820px;
}

.demo-canvas iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.demo-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 95, 0.95);
  color: rgba(255,255,255,0.9);
  z-index: 2;
}

.demo-loader-ring {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(42, 157, 143, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.demo-loader p { color: rgba(255,255,255,0.75); font-size: 14px; }

.demo-footer {
  padding: 16px 24px;
  background: var(--navy-darker);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan {
  position: relative;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--tr);
}

.plan:hover {
  border-color: var(--teal);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.plan-featured {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-color: var(--teal);
  color: white;
  transform: scale(1.04);
  box-shadow: 0 24px 60px -12px rgba(30, 58, 95, 0.4), 0 0 0 1px rgba(42, 157, 143, 0.3);
}

.plan-featured:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 30px 70px -12px rgba(30, 58, 95, 0.45), 0 0 0 1px rgba(42, 157, 143, 0.5);
}

@media (max-width: 900px) {
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-6px); }
}

.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  white-space: nowrap;
}

.plan h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--navy);
}
.plan-featured h3 { color: white; }

.plan-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}
.plan-featured .plan-desc { color: rgba(255,255,255,0.7); }

.plan-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 20px;
}
.plan-featured .plan-divider { border-color: rgba(255,255,255,0.15); }

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.plan-featured .plan-features li { color: rgba(255,255,255,0.9); }

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-featured .plan-features li::before {
  background: rgba(42, 157, 143, 0.25);
  color: var(--teal-light);
}

.plan-note {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-mute);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px 24px;
  transition: all var(--tr);
}

.faq details:hover { border-color: var(--border-strong); }
.faq details[open] {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  gap: 16px;
}

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

.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--bg-alt);
  border-radius: 50%;
  position: relative;
  transition: all var(--tr);
}
.faq summary::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  position: absolute;
  right: 32px;
  transform: rotate(90deg);
  transition: transform var(--tr);
}
.faq details[open] summary::before { transform: rotate(0); }
.faq summary::after {
  content: '';
  width: 10px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  background-image: none;
}

.faq details p {
  padding: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════ */

.cta {
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(42, 157, 143, 0.2), transparent),
    linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 600px 400px at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 600px 400px at 50% 50%, black 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color var(--tr);
}
.footer-col a:hover { color: white; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 14px;
}
.footer-brand img { height: 36px; filter: brightness(0) invert(1) contrast(1.1); }

.footer-blurb {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom p { margin-bottom: 6px; color: inherit; }
.footer-legal { font-size: 11px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════
   PROTECT BADGE
   ═══════════════════════════════════════════════════════════════════ */

.protect-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 50;
  background: rgba(30, 58, 95, 0.95);
  color: white;
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  border: 1px solid rgba(42, 157, 143, 0.3);
}

.protect-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
}
.protect-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  animation: pulse-ring 2s infinite;
  opacity: 0;
}

@keyframes pulse-ring {
  0% { opacity: 1; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.6); }
}

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

/* ═══════════════════════════════════════════════════════════════════
   MOBILE MENU OVERLAY (v4 UX)
   ═══════════════════════════════════════════════════════════════════ */

.nav-burger {
  position: relative;
  z-index: 120;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  justify-content: center;
  align-items: center;
}

body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  body.nav-open { overflow: hidden; }

  body.nav-open .nav-links {
    display: flex !important;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    gap: 0;
    background: white;
    padding: 24px;
    border-bottom: none;
    box-shadow: none;
    overflow-y: auto;
    z-index: 110;
    animation: slide-in-menu 0.3s ease-out;
  }

  body.nav-open .nav-links a {
    font-size: 18px;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-weight: 700;
    width: 100%;
  }
  body.nav-open .nav-links a::after { display: none; }

  body.nav-open .nav-cta {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px 24px;
    background: white;
    border-top: 1px solid var(--border);
    z-index: 110;
    box-shadow: 0 -8px 24px rgba(30, 58, 95, 0.08);
  }
  body.nav-open .nav-cta a { flex: 1; }
}

@keyframes slide-in-menu {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mejora tap-target en móvil */
@media (max-width: 600px) {
  .btn { min-height: 44px; }
  .pill { min-height: 44px; }
  .demo-tab { min-height: 44px; padding: 12px 14px; font-size: 12px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   ABOUT SECTION (Quiénes Somos)
   ═══════════════════════════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-copy h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 20px;
}

.about-copy p {
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.75;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.about-value {
  padding: 16px 18px;
  background: var(--teal-soft);
  border-radius: var(--r-md);
  border-left: 3px solid var(--teal);
}
.about-value strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}
.about-value span {
  font-size: 13px;
  color: var(--text-soft);
}

.about-visual {
  position: relative;
  padding: 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--r-2xl);
  color: white;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(42, 157, 143, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.15), transparent 50%);
}

.about-milestones {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-milestone {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  backdrop-filter: blur(6px);
}

.about-milestone-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.about-milestone-text strong {
  display: block;
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}
.about-milestone-text span {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════ */

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

@media (max-width: 960px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--teal-soft);
  font-weight: 900;
  z-index: 0;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-quote {
  position: relative;
  z-index: 1;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-info strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}
.testimonial-info span {
  color: var(--text-mute);
  font-size: 12px;
}

.logo-strip {
  margin-top: 56px;
  padding: 32px 24px;
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  text-align: center;
}

.logo-strip-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.logo-strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  opacity: 0.6;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-soft);
}
.logo-strip-list span { padding: 4px 10px; letter-spacing: 0.02em; }

@media (max-width: 600px) {
  .logo-strip-list { gap: 20px; font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--navy);
}
.contact-info > p {
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-methods {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact-method {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--tr);
}
.contact-method:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-method a,
.contact-method strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.contact-method a:hover { color: var(--teal-dark); }
.contact-method small {
  display: block;
  color: var(--text-mute);
  font-size: 12px;
  margin-top: 2px;
}

.contact-hours {
  padding: 16px 18px;
  background: var(--orange-soft);
  border-radius: var(--r-md);
  border-left: 3px solid var(--orange);
  font-size: 13px;
}
.contact-hours strong { color: var(--orange-dark); display: block; margin-bottom: 4px; }

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field label .req { color: var(--orange-dark); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: all var(--tr);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
}

.form-field textarea { min-height: 110px; resize: vertical; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}
.form-consent input { margin-top: 3px; flex-shrink: 0; }
.form-consent a { color: var(--teal-dark); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   BACK-TO-TOP BUTTON
   ═══════════════════════════════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--tr);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 600px) {
  .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  width: 0%;
  z-index: 200;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════════
   NAV ACTIVE STATE
   ═══════════════════════════════════════════════════════════════════ */

.nav-links a.active {
  color: var(--navy);
  font-weight: 700;
}
.nav-links a.active::after {
  width: 100%;
  background: var(--teal);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE FINE-TUNING (más breakpoints)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}

@media (max-width: 768px) {
  .section-head { margin-bottom: 48px; }
  .hero { padding: 56px 0 80px; }
  .stats-bar { padding: 40px 0; }
  .stat { padding: 0 8px; }

  .mockup-card { transform: none; margin: 0 auto; }
  .floating-chip-1, .floating-chip-2 { display: none; }

  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }

  .cards-grid, .cards-grid-2, .cards-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comp-table { font-size: 12px; min-width: 640px; }
  .comp-table th, .comp-table td { padding: 12px 10px; }

  .pills { gap: 8px; }
  .pill { padding: 10px 14px; font-size: 13px; }

  .demo-canvas { height: 620px; }
  .demo-tabs { gap: 2px; padding: 8px; }
  .demo-tab { min-width: 100px; font-size: 11px; padding: 10px 8px; }

  .plan { padding: 28px 22px; }
  .plan-featured { transform: none; }

  .cta { padding: 72px 0; }
  .footer { padding: 56px 0 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .container { padding: 0 16px; }
  .section-head h2 { font-size: 26px; }
  .demo-canvas { height: 520px; }

  .mockup-body { padding: 14px; }
  .mockup-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .preview-kpis { grid-template-columns: repeat(2, 1fr); }

  .hero-trust { gap: 14px; font-size: 12px; }
  .stat-value { font-size: 26px; }

  .floating-chip, .floating-chip-1, .floating-chip-2 { display: none; }
}

/* Reduced motion — accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-badge-dot, .protect-pulse::after, .floating-chip-1, .floating-chip-2 { animation: none; }
}

/* Focus visible global — accesibilidad */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 10px 18px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: white; }

/* ═══════════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════════ */

@media print {
  body * { display: none !important; }
  body::before {
    content: 'ObrasAI — contenido protegido por derechos de autor. Impresión deshabilitada.';
    display: block !important;
    padding: 40px;
    font-family: sans-serif;
    color: #000;
  }
}
