/* ==========================================================================
   RAVEN by TRUSTTECH — executive marketing site
   Spanish-first · dark + light theme · responsive
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --bg-primary:   #050a14;
  --bg-secondary: #0a1322;
  --bg-surface:   #0f1b30;
  --bg-elevated:  #142544;
  --bg-overlay:   rgba(5, 10, 20, 0.85);

  --border-color:  rgba(94, 231, 255, 0.18);
  --border-strong: rgba(94, 231, 255, 0.42);

  --accent-primary:   #5ee7ff;
  --accent-secondary: #7fb6e6;
  --accent-tertiary:  #8b5cf6;
  --accent-success:   #22c55e;
  --accent-warning:   #f59e0b;
  --accent-danger:    #ef4444;

  --text-primary:   #e8ecf4;
  --text-secondary: #b1bac8;
  --text-muted:     #6e7a90;
  --text-on-accent: #001827;

  --grad-primary: linear-gradient(135deg, #5ee7ff 0%, #7fb6e6 100%);
  --grad-accent:  linear-gradient(135deg, #5ee7ff 0%, #8b5cf6 100%);
  --grad-bg-hero: radial-gradient(ellipse at 20% 10%, rgba(94, 231, 255, 0.10), transparent 55%),
                  radial-gradient(ellipse at 85% 80%, rgba(139, 92, 246, 0.08), transparent 55%);

  --font-display: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* OPERATOR REQUEST: section spacing reduced to half. */
  --section-spacing:    60px;
  --section-spacing-sm: 40px;
  --container-max:      1240px;

  --shadow-sm:  0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md:  0 12px 32px rgba(0, 0, 0, 0.40);
  --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.50);
  --shadow-glow: 0 0 22px rgba(94, 231, 255, 0.30);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
}

:root.light-theme {
  --bg-primary:   #f4f7fc;
  --bg-secondary: #ffffff;
  --bg-surface:   #ffffff;
  --bg-elevated:  #eef3fa;
  --bg-overlay:   rgba(244, 247, 252, 0.92);

  --border-color:  rgba(10, 85, 194, 0.14);
  --border-strong: rgba(10, 85, 194, 0.36);

  --accent-primary:   #0a55c2;
  --accent-secondary: #0e7ad6;
  --accent-tertiary:  #7c3aed;

  --text-primary:   #0c1426;
  --text-secondary: #43526b;
  --text-muted:     #7a849a;
  --text-on-accent: #ffffff;

  --grad-bg-hero: radial-gradient(ellipse at 20% 10%, rgba(10, 85, 194, 0.08), transparent 55%),
                  radial-gradient(ellipse at 85% 80%, rgba(124, 58, 237, 0.06), transparent 55%);

  --shadow-sm:  0 4px 14px rgba(15, 32, 70, 0.08);
  --shadow-md:  0 12px 32px rgba(15, 32, 70, 0.14);
  --shadow-lg:  0 20px 60px rgba(15, 32, 70, 0.18);
  --shadow-glow: 0 0 22px rgba(10, 85, 194, 0.18);
}

/* ==========================================================================
   2. GLOBAL RESETS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* OPERATOR REQUEST: scroll-padding-top reduced to half. */
html { scroll-behavior: smooth; scroll-padding-top: 46px; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 231, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 231, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--grad-bg-hero);
  pointer-events: none;
  z-index: 0;
}
:root.light-theme body::before {
  background-image:
    linear-gradient(rgba(10, 85, 194, 0.020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 85, 194, 0.020) 1px, transparent 1px);
}

main, nav, footer { position: relative; z-index: 1; }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover { color: var(--accent-secondary); }
:root.light-theme a:hover { color: var(--accent-tertiary); }

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(94, 231, 255, 0.10);
  border-radius: 4px;
  color: var(--accent-primary);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  padding: 10px 18px;
  z-index: 10000;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; outline: 2px solid #000; outline-offset: -4px; }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 0.8rem 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.15; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1rem 0; color: var(--text-secondary); }

.highlight {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* ==========================================================================
   4. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(94, 231, 255, 0.35));
}
:root.light-theme .brand img { filter: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-text .by {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 8px 11px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
  background: rgba(94, 231, 255, 0.08);
}
:root.light-theme .nav-links a:hover,
:root.light-theme .nav-links a.active {
  background: rgba(10, 85, 194, 0.08);
}

.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 38px;
}
.icon-btn:hover {
  color: var(--accent-primary);
  border-color: var(--border-strong);
  background: rgba(94, 231, 255, 0.06);
}

@media (max-width: 1140px) {
  .nav-links a { font-size: 0.80rem; padding: 7px 9px; }
}

/* -------- Hamburger button (visible solo en mobile) -------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: 6px;
  transition: border-color 0.25s, background 0.25s;
}
.nav-toggle:hover {
  border-color: var(--accent-primary);
  background: rgba(94, 231, 255, 0.08);
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------- Mobile drawer + backdrop · hermanos del <nav> ----------
   Ambos viven FUERA del navbar para evitar el bug de containing block
   por backdrop-filter en CSS spec.
   ----------------------------------------------------------------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  display: none;
}

/* -------- Mobile (≤980px) -------- */
@media (max-width: 980px) {
  /* Ocultar la lista desktop, mostrar hamburguesa */
  .nav-links-desktop { display: none !important; }
  .nav-toggle        { display: inline-flex; }

  /* Drawer lateral desde la derecha */
  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    height: 100vh;
    background: #0a1322;
    border-left: 1px solid var(--border-color);
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: block;
  }
  .nav-drawer.is-open {
    transform: translateX(0);
  }
  .nav-drawer-list {
    list-style: none;
    margin: 0;
    padding: 78px 22px 28px;
  }
  .nav-drawer-list li {
    width: 100%;
  }
  .nav-drawer-list a {
    display: block;
    width: 100%;
    padding: 14px 10px;
    font-size: 0.98rem;
    border-radius: 6px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
  }
  .nav-drawer-list a:hover,
  .nav-drawer-list a.active {
    background: rgba(94, 231, 255, 0.10);
    color: var(--accent-primary);
  }

  /* Bloquear scroll del body cuando el drawer está abierto */
  body.nav-open {
    overflow: hidden;
  }

  /* Light theme: drawer blanco */
  :root.light-theme .nav-drawer {
    background: #ffffff;
  }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-on-accent);
  box-shadow: 0 6px 22px rgba(94, 231, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(94, 231, 255, 0.45);
  color: var(--text-on-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(94, 231, 255, 0.06);
}

/* ==========================================================================
   6. HERO — sin tag · 3 stats
   ========================================================================== */
.hero {
  padding: 120px 0 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
}

.hero h1 { margin-bottom: 1rem; }

.hero-acronym {
  margin: 0 0 22px 0;
  padding: 14px 18px;
  background: rgba(94, 231, 255, 0.05);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 600px;
}
.acronym-letters {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.acronym-letter {
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 1.15em;
}
.acronym-translation {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-style: italic;
}

.lead-text {
  font-size: 1.14rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* 3-column hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.hero-stats-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 640px) {
  .hero-stats, .hero-stats-3 { grid-template-columns: 1fr; }
}
.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent-primary);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-stat .label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.35;
}

.hero-right { display: flex; flex-direction: column; gap: 22px; }

.hero-shot {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}
.hero-shot img { width: 100%; height: auto; display: block; }
.shot-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 20, 0.92) 100%);
  padding: 30px 16px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   7. TRUST BAR
   ========================================================================== */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.trust-bar-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  opacity: 0.85;
}
.trust-logo img {
  height: 42px;
  width: auto;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.3s;
}
.trust-logo img:hover { filter: grayscale(0) opacity(1); }

/* ==========================================================================
   8. SECTIONS — generic
   ========================================================================== */
.section {
  padding: var(--section-spacing) 0;
  position: relative;
}
.section.alt { background: var(--bg-secondary); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent-primary);
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 18px;
}
.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 0 40px 0;
  line-height: 1.65;
}
.section-subtitle-wide {
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ==========================================================================
   9. EXECUTIVE PILLARS
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.pillar-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: rgba(94, 231, 255, 0.08);
  border-radius: 100px;
  margin-bottom: 18px;
}
.pillar-card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.pillar-card p {
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ==========================================================================
   10. CAPABILITY CARDS — sin chips de fase
   ========================================================================== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.cap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.cap-card:hover::before { transform: scaleX(1); }

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(94, 231, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px 0;
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
}
.cap-icon i,
.cap-icon svg.bi {
  font-size: 1.5rem;
  line-height: 1;
  width: 1.5rem;
  height: 1.5rem;
}
.cap-card h3 {
  font-size: 1.15rem;
  margin: 0 0 12px 0;
}
.cap-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Tools card with sublist */
.cap-card-tools {
  border-color: var(--accent-tertiary);
  background: linear-gradient(135deg,
    var(--bg-surface) 0%,
    rgba(139, 92, 246, 0.04) 100%);
}
.cap-card-tools .cap-icon {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-tertiary);
  border-color: rgba(139, 92, 246, 0.30);
}
.cap-sublist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
}
.cap-sublist li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.5;
  text-align: left;
}
.cap-sublist li::before {
  content: '›';
  position: absolute;
  left: 6px;
  top: 6px;
  color: var(--accent-tertiary);
  font-weight: 700;
}

/* ==========================================================================
   11. SCREENS — galería con lightbox
   ========================================================================== */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .screens-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .screens-grid { grid-template-columns: 1fr; } }

.screen-thumb {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.screen-thumb:hover,
.screen-thumb:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(94, 231, 255, 0.30);
  outline: none;
}
.screen-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.screen-thumb:hover img { transform: scale(1.04); }
.screen-thumb-caption {
  display: block;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
}

/* Zoom icon overlay */
.screen-thumb::after {
  content: '\F4F5'; /* bi-zoom-in code point */
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(5, 10, 20, 0.75);
  color: var(--accent-primary);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.screen-thumb:hover::after,
.screen-thumb:focus-visible::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 40px;
}
.lightbox.is-open {
  display: flex;
  animation: lightbox-fade 0.25s ease;
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-frame {
  position: relative;
  width: min(96vw, 1400px);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.lightbox-frame img {
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(15, 27, 48, 0.85);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  width: 48px;
  height: 48px;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 10001;
  transition: transform 0.2s, background 0.25s, border-color 0.25s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  transform: scale(1.08);
  background: rgba(94, 231, 255, 0.18);
  border-color: var(--accent-primary);
}
.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev  { top: 50%; left: 28px;  transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 28px; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox-prev  { left: 8px; }
  .lightbox-next  { right: 8px; }
}

/* ==========================================================================
   12. COMPARISON TABLE — fix dots con table-cell layout puro
   ========================================================================== */
.cmp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  table-layout: fixed;
}
.cmp-table-2col {
  min-width: 760px;
}
.cmp-table th, .cmp-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  word-wrap: break-word;
}
.cmp-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-strong);
  padding: 22px;
}
.cmp-table thead th.cmp-col-feat   { width: 30%; }
.cmp-table thead th.cmp-col-raven  { width: 35%; color: var(--accent-primary); }
.cmp-table thead th.cmp-col-others { width: 35%; }

.cmp-table tbody tr:hover { background: rgba(94, 231, 255, 0.04); }
.cmp-table tbody tr:last-child td { border-bottom: none; }

.cmp-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.cmp-pill.cmp-pill-raven {
  background: rgba(94, 231, 255, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* FIX dots overlap: keep table-cell layout, dot floats left via padding hack
   with a properly aligned ::before — vertical-align: top works because the
   pseudo-element is set with line-height inherited from td so it lines up
   with the first text line. */
.cell-yes, .cell-part, .cell-no {
  position: relative;
  padding-left: 48px !important;
}
.cell-yes::before, .cell-part::before, .cell-no::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 23px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.cell-yes::before  { background: var(--accent-success); box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.cell-part::before { background: var(--accent-warning); box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.cell-no::before   { background: var(--accent-danger);  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

.cell-yes  { color: var(--text-primary); font-weight: 500; }
.cell-part { color: var(--text-secondary); }
.cell-no   { color: var(--text-muted); }

.cmp-table tbody td:nth-child(2).cell-yes { color: var(--accent-primary); font-weight: 600; }

.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.cmp-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-yes  { background: var(--accent-success); }
.dot-part { background: var(--accent-warning); }
.dot-no   { background: var(--accent-danger); }

/* ==========================================================================
   13. DELIVERABLES — 6 formatos
   ========================================================================== */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.deliverable-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.deliverable-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.deliverable-preview {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.deliverable-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.deliverable-card:hover .deliverable-preview img { transform: scale(1.04); }

.deliverable-body { padding: 20px; }
.deliverable-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  background: rgba(94, 231, 255, 0.10);
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.deliverable-body h3 { font-size: 1.04rem; margin: 0; }

.deliverable-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}
.extra-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 100px;
}
.extra-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
}

/* ==========================================================================
   14. ARCHITECTURE
   ========================================================================== */
.arch-flow {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
  overflow-x: auto;
}
.arch-flow img { width: 100%; height: auto; }

.arch-guarantees {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto 50px;
}
@media (max-width: 900px) {
  .arch-guarantees { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .arch-guarantees { grid-template-columns: 1fr; }
}
.guarantee {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.guarantee:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--accent-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(139, 92, 246, 0.30);
}
.guarantee-icon i,
.guarantee-icon svg.bi { font-size: 1.3rem; line-height: 1; width: 1.3rem; height: 1.3rem; }
.guarantee h4 { font-size: 1.05rem; margin: 0 0 10px; }
.guarantee p {
  font-size: 0.91rem;
  margin: 0;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.guarantee-actium {
  grid-column: 1 / -1;
  background: linear-gradient(135deg,
    rgba(94, 231, 255, 0.06),
    rgba(139, 92, 246, 0.08));
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(94, 231, 255, 0.10);
}
.guarantee-actium .guarantee-icon {
  background: rgba(94, 231, 255, 0.16);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.guarantee-actium .guarantee-icon i,
.guarantee-actium .guarantee-icon svg.bi { font-size: 1.5rem; width: 1.5rem; height: 1.5rem; }
.guarantee-actium h4 {
  font-size: 1.15rem;
  color: var(--accent-primary);
}
.guarantee-actium p { font-size: 0.96rem; }

.arch-platforms {
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}
.arch-platforms-title {
  font-size: 1.4rem;
  margin: 0 0 10px;
}
.arch-platforms-sub {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin: 0 0 26px;
  max-width: 700px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.platform-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(94, 231, 255, 0.20));
}
:root.light-theme .platform-card img { filter: none; }
.platform-card h4 {
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   15. LICENSING — sin ribbon, anual
   ========================================================================== */
.tier-solo {
  display: flex;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.tier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tier-card.featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 14px 60px rgba(94, 231, 255, 0.20);
}
.tier-card-solo:hover { transform: translateY(-3px); }

.tier-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}
.tier-tagline {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent-primary);
  margin: 0 0 28px 0;
  letter-spacing: 0.02em;
}
.tier-caps {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.tier-caps li {
  padding: 9px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
}
.tier-caps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  background: rgba(34, 197, 94, 0.14);
  color: var(--accent-success);
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tier-cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   16. CTA / CONTACT
   ========================================================================== */
.cta-section { position: relative; }
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(94, 231, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.cta-section > .container { position: relative; z-index: 1; }

.cta-wrap {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.cta-wrap .section-label {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}
.cta-title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-bottom: 32px;
}

/* Contact form */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.16);
  background: var(--bg-secondary);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.55);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-primary) 50%),
                    linear-gradient(135deg, var(--accent-primary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
  cursor: pointer;
}

/* Custom checkbox */
.form-consent { margin-top: 4px; }
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  user-select: none;
}
.form-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form-checkbox-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  position: relative;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-checkbox-label:hover .form-checkbox-box,
.form-checkbox-label input:focus + .form-checkbox-box {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.16);
}
.form-checkbox-label input:checked + .form-checkbox-box {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.form-checkbox-label input:checked + .form-checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--text-on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.form-feedback {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
  min-height: 1.2em;
}
.form-feedback.is-success { color: var(--accent-success); }
.form-feedback.is-error   { color: var(--accent-danger); }

/* Honeypots anti-spam — label-baited (visible al bot) y CSS-hidden (totalmente fuera) */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hp-extra {
  display: none !important;
}

/* Form field invalid feedback */
.contact-form .is-invalid {
  border-color: var(--accent-danger) !important;
  box-shadow: 0 0 0 2px rgba(255, 80, 109, 0.15) !important;
}
.contact-form .invalid-feedback {
  color: var(--accent-danger);
  font-size: 0.82rem;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.contact-direct {
  text-align: center;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.contact-direct a {
  font-family: var(--font-display);
  font-weight: 600;
  margin-left: 6px;
}

@media (max-width: 720px) {
  .contact-form { padding: 28px 22px; }
}

/* ==========================================================================
   17. FOOTER — Producto en 2 columnas
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid-4 {
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
}
@media (max-width: 920px) {
  .footer-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid-4 { grid-template-columns: 1fr; }
}

.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 0 0 10px 0;
}
.footer-acronym {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.02em;
}
.footer-acronym strong {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.05em;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  min-height: 1.2em;
}
.footer .footer-product-cont {
  visibility: hidden;
}
@media (max-width: 920px) {
  .footer .footer-product-cont { display: none; }
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a,
.footer ul li span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer ul li a:hover { color: var(--accent-primary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   18. REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > *:nth-child(1)  { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2)  { transition-delay: 0.10s; }
.reveal-stagger > *:nth-child(3)  { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(4)  { transition-delay: 0.20s; }
.reveal-stagger > *:nth-child(5)  { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(6)  { transition-delay: 0.30s; }
.reveal-stagger > *:nth-child(7)  { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(8)  { transition-delay: 0.40s; }
.reveal-stagger > *:nth-child(9)  { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(10) { transition-delay: 0.50s; }
.reveal-stagger > *:nth-child(11) { transition-delay: 0.55s; }
.reveal-stagger > *:nth-child(12) { transition-delay: 0.60s; }

/* ==========================================================================
   19. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
