/* ============================================================================
   NEXO SEGURIDAD — Sistema visual compartido de landings de conversión
   /assets/landing.css  ·  Servido estático por Caddy (ljsec_caddy), sin build.
   Mobile-first. Tokens coherentes con el index.html canónico.
   Marca: navy #1E3A5F / azul #2E6DA4 · Inter (UI) + Source Serif 4 (display)
          + JetBrains Mono (datos/etiquetas técnicas, coherencia con el index).
   ============================================================================ */

/* ----------------------------------------------------------------- TOKENS -- */
:root {
  /* Marca */
  --primary: #1E3A5F;          /* navy corporativo */
  --primary-deep: #122440;     /* navy profundo (hover, footer) */
  --secondary: #2E6DA4;        /* azul Nexo (enlaces, acentos) */
  --secondary-deep: #245A8A;
  --accent: #0E7C5A;           /* verde confianza (estados OK, checks) */
  --accent-soft: #E6F4EE;
  --warning: #B8721C;
  --danger: #B42318;

  /* Superficies */
  --bg: #FFFFFF;
  --surface: #FAFAFB;
  --surface-2: #F4F5F7;
  --navy-surface: #14273F;     /* secciones oscuras / footer */
  --border: #E5E8EC;
  --border-soft: #EEF0F3;

  /* Texto */
  --text: #0A0E1A;
  --text-secondary: #3D4759;
  --text-muted: #6B7480;
  --text-on-dark: #E8EDF4;
  --text-on-dark-muted: #9DA9BC;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(10,14,26,0.04);
  --shadow-md: 0 1px 3px rgba(10,14,26,0.06), 0 1px 2px rgba(10,14,26,0.04);
  --shadow-lg: 0 10px 20px -8px rgba(10,14,26,0.10), 0 4px 8px rgba(10,14,26,0.04);
  --shadow-xl: 0 20px 40px -12px rgba(10,14,26,0.12);

  /* Radios */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Tipografía */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Source Serif 4', 'Inter', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 72px;
}

/* ------------------------------------------------------------------ RESET -- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: #fff; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--secondary-deep); }
[x-cloak] { display: none !important; }

/* --------------------------------------------------------------- LAYOUT ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: 64px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-light { background: var(--surface); }
.section-dark { background: var(--navy-surface); color: var(--text-on-dark); border-bottom-color: rgba(255,255,255,.08); }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: var(--text-on-dark-muted); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--secondary); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 14px; display: inline-block;
}
.section-dark .section-eyebrow { color: #6FA8D6; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 16px;
}
.section-sub { font-size: clamp(15px, 2.5vw, 18px); color: var(--text-secondary); line-height: 1.6; }

/* ----------------------------------------------------------------- NAV ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 24px; } }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 30px; width: auto; }
.nav-links { display: none; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ---------------------------------------------------------------- BOTONES -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; font-size: 15px; font-weight: 600; line-height: 1;
  border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); color: #fff; box-shadow: 0 6px 18px rgba(30,58,95,.28); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0B6649; color: #fff; box-shadow: 0 6px 18px rgba(14,124,90,.28); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #C2CAD2; background: var(--surface); color: var(--text); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ----------------------------------------------------------------- HERO ---- */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .hero { padding: 88px 0 96px; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 6.5vw, 54px); line-height: 1.08; letter-spacing: -0.015em;
  color: var(--text); margin-bottom: 20px;
}
.hero-sub { font-size: clamp(16px, 2.6vw, 19px); color: var(--text-secondary); line-height: 1.55; margin-bottom: 32px; max-width: 560px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
@media (min-width: 480px) { .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: center; } }
.hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.hero-trust-item svg { width: 30px; height: 30px; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 7px; flex-shrink: 0; }

/* Tarjeta visual del hero (panel "demo" / informe) */
.hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); padding: 26px; position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

/* --------------------------------------------------------------- LOGOS ----- */
.logos { padding: 36px 0; background: var(--surface); border-bottom: 1px solid var(--border); text-align: center; }
.logos-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px; }
.logos-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 36px; align-items: center; }
.logos-item { font-weight: 600; font-size: 14px; color: var(--text-muted); opacity: .85; }
.logos-item img { height: 26px; width: auto; opacity: .6; filter: grayscale(100%); transition: opacity .2s, filter .2s; }
.logos-item img:hover { opacity: 1; filter: grayscale(0%); }

/* ---------------------------------------------------------------- GRID ----- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------- CARDS ----- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px; transition: border-color .2s, box-shadow .2s, transform .2s;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { border-color: #C2CAD2; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.navy { background: #E9EFF6; color: var(--primary); }
.card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--text); }
.card-text { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }
.card ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.card ul li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.card ul li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: var(--accent-soft); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E7C5A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ----------------------------------------------------------- PRUEBA/TRUST -- */
.trust-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item { text-align: center; padding: 8px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 100px; background: #fff;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--primary);
  letter-spacing: .04em;
}
.cred-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary);
}
.testimonial blockquote { font-family: var(--font-display); font-size: 17px; color: var(--text); margin-bottom: 16px; }
.testimonial cite { display: block; font-style: normal; font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* -------------------------------------------------------------- PRECIOS ---- */
.pricing-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 22px; position: relative; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.price-card:hover { border-color: #C2CAD2; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-card.featured { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 14px; border-radius: 100px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.price-name { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 12px; }
.price-amount { font-family: var(--font-display); font-size: 25px; font-weight: 600; color: var(--text); letter-spacing: -0.015em; line-height: 1.1; }
.price-amount .price-unit { font-family: var(--font-ui); font-size: 14px; color: var(--text-muted); font-weight: 500; }
.price-desc { font-size: 13.5px; color: var(--text-secondary); margin: 12px 0 18px; line-height: 1.5; flex: 1; }
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------- OFERTA ---- */
.offer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff; border-radius: var(--r-xl); padding: 40px 28px; text-align: center;
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .offer { padding: 56px 48px; } }
.offer h2 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); font-weight: 600; margin-bottom: 14px; }
.offer p { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto 28px; }
.offer .btn-accent { box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ------------------------------------------------------------- FORMULARIO -- */
.form-section { background: var(--surface); }
.form-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 28px 22px; max-width: 720px; margin: 0 auto;
}
@media (min-width: 768px) { .form-wrap { padding: 40px 36px; } }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(46,109,164,.14);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.field-consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { grid-column: 1 / -1; margin-top: 4px; }

/* Toast de feedback del formulario */
.lead-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; z-index: 90;
  background: var(--text); color: #fff; padding: 13px 18px; border-radius: var(--r-md);
  box-shadow: var(--shadow-xl); font-size: 14px; max-width: calc(100vw - 32px);
}
.lead-toast.err { background: var(--danger); }
.lead-toast.ok { background: var(--accent); }
.lead-toast button { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .8; }

/* ----------------------------------------------------------------- FAQ ----- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text);
}
.faq-q:hover { color: var(--secondary); }
.faq-icon { flex-shrink: 0; width: 20px; height: 20px; transition: transform .25s ease; color: var(--text-muted); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 22px; font-size: 15px; color: var(--text-secondary); line-height: 1.65; }

/* ---------------------------------------------------------------- FOOTER --- */
footer { background: var(--navy-surface); color: var(--text-on-dark-muted); padding: 56px 0 28px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .footer-inner { padding: 0 24px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand-block .nav-logo { height: 28px; margin-bottom: 14px; }
.footer-brand-block p { font-size: 13.5px; line-height: 1.6; max-width: 340px; color: var(--text-on-dark-muted); }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-on-dark-muted); font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-disclaimer { font-size: 12px; line-height: 1.6; color: #7E8BA1; max-width: 760px; }
.footer-meta { font-size: 12px; color: #7E8BA1; }

/* --------------------------------------------------------- COOKIE BANNER --- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 760px) {
  .cookie-banner { left: 24px; right: 24px; max-width: 520px; padding: 24px; }
}
.cookie-banner h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.cookie-banner-text { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.cookie-banner-text a { color: var(--secondary); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn {
  flex: 1 1 auto; min-width: 120px; padding: 11px 16px; font-size: 14px; font-weight: 600;
  border-radius: var(--r-md); border: 1px solid var(--border); cursor: pointer; font-family: inherit;
  text-align: center; transition: background .15s, border-color .15s, color .15s;
}
.cookie-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.cookie-btn.primary:hover { background: var(--primary-deep); }
.cookie-btn.secondary { background: #fff; color: var(--text); }
.cookie-btn.secondary:hover { background: var(--surface); border-color: #C2CAD2; }
.cookie-btn.subtle { background: none; border: 0; color: var(--text-muted); text-decoration: underline; flex: 0 0 auto; min-width: 0; }
/* Panel de configuración granular */
.cookie-config { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.cookie-toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; background: var(--surface); border-radius: var(--r-md); }
.cookie-toggle-text strong { display: block; font-size: 13.5px; color: var(--text); }
.cookie-toggle-text span { font-size: 12px; color: var(--text-muted); }
.cookie-toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.cookie-toggle input[disabled] { opacity: .6; }

/* ---------------------------------------------------------- DISCLAIMERS ---- */
.note-disclaimer {
  background: var(--surface-2); border-left: 3px solid var(--secondary);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 14px 16px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-top: 16px;
}
.note-disclaimer strong { color: var(--text); }

/* ------------------------------------------------ ANIMACIONES ON-SCROLL ---- */
/* Aplica class="reveal" a cualquier bloque; el snippet JS de la plantilla
   añade .is-visible cuando entra en viewport. Sutil: fade + ligero slide. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ------------------------------------------------------------- UTILIDADES -- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.eyebrow-inline { font-family: var(--font-mono); font-size: 12px; color: var(--secondary); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ════════════ PREMIUM-COMPONENTS-V1 (compartido · idempotente) ════════════
   Menú "Servicios" desplegable + showcase del portal + badges de certificación
   + garantías + tira de marcos. Portado del sistema visual de la home.
   Usa SOLO variables :root existentes (sin colores nuevos). ════════════════ */

/* ---- Menú "Servicios" desplegable (CSS-only: hover desktop + focus accesible) */
.nav-drop { position: relative; }
.nav-drop > .nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  background: none; border: 0; padding: 0; font-family: inherit;
}
.nav-drop > .nav-drop-toggle:hover { color: var(--text); }
.nav-drop > .nav-drop-toggle svg { width: 13px; height: 13px; transition: transform .18s ease; }
.nav-drop:hover > .nav-drop-toggle svg,
.nav-drop:focus-within > .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 272px; background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 44px -14px rgba(15,37,66,.28), 0 4px 12px rgba(10,14,26,.06);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .16s ease;
  z-index: 60;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-drop-menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-drop-menu a {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 11px; border-radius: 9px; text-decoration: none;
  color: var(--text); transition: background .14s ease;
}
.nav-drop-menu a:hover { background: var(--surface-2); }
.nav-drop-menu a .ndm-ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.nav-drop-menu a .ndm-ic svg { width: 16px; height: 16px; }
.nav-drop-menu a .ndm-tx { display: flex; flex-direction: column; gap: 1px; }
.nav-drop-menu a .ndm-tx strong { font-size: 13.5px; font-weight: 600; color: var(--primary); letter-spacing: -0.01em; }
.nav-drop-menu a .ndm-tx span { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.nav-drop-menu .ndm-sep { height: 1px; background: var(--border-soft); margin: 6px 8px; }

/* ---- Showcase portal del cliente (foto real del dashboard + features) ------- */
.portal-frame {
  max-width: 980px; margin: 0 auto; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,37,66,.16);
}
.portal-frame img { display: block; width: 100%; height: auto; }
.portal-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 44px; }
.portal-feats .pf { display: flex; gap: 14px; }
.portal-feats .pf-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.portal-feats .pf-ic svg { width: 19px; height: 19px; }
.portal-feats .pf-tx h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin: 2px 0 5px; letter-spacing: -0.01em; }
.portal-feats .pf-tx p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; margin: 0; }
@media (max-width: 880px) { .portal-feats { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 560px) { .portal-feats { grid-template-columns: 1fr; gap: 22px; } }

/* ---- Badges de certificación con sello real (OSCP / CISSP / ISO 27001) ------ */
.certs-strip { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .certs-strip { grid-template-columns: repeat(3, 1fr); } }
.cert-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.cert-badge { width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cert-badge img { width: 100%; height: 100%; object-fit: contain; }
.cert-info { min-width: 0; }
.cert-name { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.cert-full { font-size: 12.5px; color: var(--text-secondary); margin: 2px 0 5px; line-height: 1.4; }
.cert-issuer { font-size: 11.5px; color: var(--text-muted); }

/* ---- Garantías contractuales (3 columnas con checklist) --------------------- */
.trust-cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 880px) { .trust-cols { grid-template-columns: repeat(3, 1fr); } }
.trust-col { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px; }
.trust-col-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.trust-col-icon { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -8px rgba(30,58,95,0.5); }
.trust-col-icon svg { width: 20px; height: 20px; }
.trust-col h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.trust-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 16px; }
.trust-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.trust-list li svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.trust-note { font-size: 12px; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--border); line-height: 1.5; }

/* ---- Tira de marcos / estándares de referencia (logos honestos) ------------- */
.logos-inner { text-align: center; }
/* (.logos-label / .logos-items / .logos-item ya existen arriba) */

/* Apertura por click/tap (táctil) — sincronizada con el handler JS de cada landing. */
.nav-drop.is-open > .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }

/* ===== MOBILE-NAV-V1 ===== Hamburguesa accesible <900px (flota Nexo) =====
   Despliega .nav-links como panel slide-down. El submenú «Servicios»
   (.nav-drop / .nav-drop-menu) se abre EN LÍNEA en táctil vía .is-open,
   sin depender de :hover. No colisiona con la flota (clases .nav-burger
   / .nav-open propias). Mobile-first: solo activo por debajo de 900px. */
.nav-burger {
  display: none;                 /* oculto en desktop, se muestra <900px */
  appearance: none;
  width: 42px; height: 42px;
  padding: 0; margin: 0;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--text, #0F2542);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  flex: 0 0 auto;
  transition: background .15s ease, border-color .15s ease;
}
.nav-burger:hover { background: var(--surface-2, #F3F6FA); }
.nav-burger:focus-visible { outline: 2px solid var(--accent, #2E6DA4); outline-offset: 2px; }
.nav-burger .nav-burger-bar {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}
/* Animación a "X" cuando el nav está abierto */
.nav-open .nav-burger .nav-burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger .nav-burger-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-burger .nav-burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899.98px) {
  /* La hamburguesa SOLO se ve en móvil/tablet */
  .nav-burger { display: inline-flex; }

  /* El panel de navegación: oculto por defecto, slide-down al abrir */
  .nav .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 18px;
    margin: 0;
    background: var(--surface, #fff);
    border-top: 1px solid var(--border-soft, #EEF1F6);
    box-shadow: 0 18px 44px -16px rgba(15,37,66,.22);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 70;
  }
  .nav.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .nav .nav-links > li { width: 100%; }
  .nav .nav-links > li > a {
    display: block;
    padding: 12px 12px;
    border-radius: 9px;
    font-size: 15px;
    color: var(--text, #0F2542);
  }
  .nav .nav-links > li > a:hover { background: var(--surface-2, #F3F6FA); }

  /* --- Submenú «Servicios» EN LÍNEA (táctil, sin hover) --- */
  .nav .nav-drop { position: static; width: 100%; }
  .nav .nav-drop > .nav-drop-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 9px;
    font-size: 15px;
    color: var(--text, #0F2542);
  }
  .nav .nav-drop > .nav-drop-toggle:hover { background: var(--surface-2, #F3F6FA); }
  /* En móvil el submenú se controla SÓLO por `display` vía .is-open (click/tap),
     no por hover/focus. Como el estado colapsado usa display:none, los valores
     de opacity/visibility que ponga el hover/focus de escritorio son inocuos.
     El estado abierto (.is-open) re-afirma opacity/visibility/transform para
     ganar a cualquier regla :focus-within del CSS base. */
  .nav .nav-drop .nav-drop-menu {
    position: static;
    transform: none !important;
    left: auto; right: auto;
    min-width: 0; width: 100%;
    margin: 2px 0 6px;
    padding: 4px;
    border: 1px solid var(--border-soft, #EEF1F6);
    border-radius: 12px;
    box-shadow: none;
    background: var(--surface-2, #F8FAFC);
    display: none;            /* colapsado por defecto en móvil */
  }
  .nav .nav-drop.is-open .nav-drop-menu {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .nav .nav-drop.is-open > .nav-drop-toggle svg { transform: rotate(180deg); }
  .nav .nav-drop-menu::before { content: none; }
  .nav .nav-drop-menu a { padding: 9px 10px; }

  /* Variante ENS (.nav-dd / .nav-dd-menu): mismo comportamiento inline */
  .nav .nav-dd { position: static; width: 100%; }
  .nav .nav-dd > a { width: 100%; justify-content: space-between; padding: 12px; border-radius: 9px; }
  .nav .nav-dd .nav-dd-menu { display: none; }
  .nav .nav-dd.is-open .nav-dd-menu {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .nav .nav-dd.is-open .nav-dd-caret { transform: rotate(180deg); }

  /* Botón de acción dentro del panel a ancho completo */
  .nav.nav-open .nav-actions { display: none; }
  .nav .nav-links .nav-actions-mobile { margin-top: 8px; }
  .nav .nav-links .nav-actions-mobile .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nav .nav-links, .nav-burger .nav-burger-bar { transition: none !important; }
}
/* ===== /MOBILE-NAV-V1 ===== */


/* ===== CLIENTS-MARQUEE-V1 ===== */
.clients-section { padding: 64px 0; background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.clients-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 32px; text-align: center; }
.clients-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 25s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
.clients-track img { height: 30px; max-width: 120px; width: auto; object-fit: contain; opacity: 0.85; filter: grayscale(100%) brightness(0); transition: opacity 0.3s, filter 0.3s; flex-shrink: 0; }
.clients-track img:hover { opacity: 1; filter: grayscale(0%) brightness(1); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) {
  .clients-section { padding: 48px 0; }
  .clients-track { gap: 48px; }
  .clients-track img { height: 22px; }
}
/* ===== /CLIENTS-MARQUEE-V1 ===== */
