/* =================================================================
   Scormatic — Landing pública
   ARELANCE S.L.
   Colores corporativos + Poppins + a11y + performance
   ================================================================= */

/* ── FONT FACES (Poppins auto-hospedado, GDPR-safe) ── */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Poppins-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Poppins-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Poppins-ExtraBold.woff2') format('woff2');
}

/* ── DESIGN TOKENS ── */
:root {
  /* Colores corporativos ARELANCE */
  --primary: #143554;
  --primary-dark: #0e2740;
  --secondary: #1a4a6e;
  --accent: #F05726;
  --accent-dark: #d94818;

  /* Neutrales */
  --text: #1a1a1a;
  --text-muted: #595959;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-dark: #0e2740;
  --border: #e2e6ee;
  --success: #22c55e;
  --danger: #ef4444;

  /* Tipografía */
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --lh-tight: 1.15;
  --lh-normal: 1.5;
  --lh-loose: 1.75;

  /* Espaciado */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 6rem;

  /* Radios y sombras */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-round: 50rem;
  --shadow-sm: 0 1px 2px rgba(20, 53, 84, .05), 0 1px 3px rgba(20, 53, 84, .08);
  --shadow: 0 4px 6px rgba(20, 53, 84, .05), 0 10px 15px rgba(20, 53, 84, .08);
  --shadow-lg: 0 10px 15px rgba(20, 53, 84, .1), 0 20px 25px rgba(20, 53, 84, .1);

  /* Contenedores */
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Transiciones */
  --tr-fast: .15s ease;
  --tr: .25s ease;
}

/* ── RESET MÍNIMO ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--primary);
  letter-spacing: -.01em;
}

/* ── ACCESIBILIDAD ── */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: .75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 1000;
  transition: top var(--tr);
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

*:focus { outline: none; }
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container-narrow {
  max-width: var(--container-narrow);
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand-logo { flex-shrink: 0; display: block; height: 34px; width: auto; }
.brand-sub {
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--primary);
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before { position: absolute; top: -7px; left: 0; }
.nav-toggle-icon::after { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  color: var(--primary);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: color var(--tr);
}
.nav-menu a:hover { color: var(--accent); text-decoration: none; }
.nav-menu .btn-nav { margin-left: .5rem; padding: .6rem 1.25rem; }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-round);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--tr), background var(--tr), border var(--tr), color var(--tr), box-shadow var(--tr);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 87, 38, .3);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 6px 20px rgba(240, 87, 38, .4); color: #fff; }

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

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ── HERO ── */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 87, 38, .08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .6rem;
}
.eyebrow-center { justify-content: flex-start; }
/* Acento decorativo de marca: doble chevron de ARELANCE antes de cada eyebrow.
   Es flex item, el gap del contenedor le da la separación. */
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 1.15em;
  height: .85em;
  background: url('../img/chevron.svg') no-repeat center / contain;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}
.hero h1 .hl { color: var(--accent); }
.hero h1 .hl-alt { display: block; color: var(--secondary); font-weight: 700; margin-top: .3em; font-size: .8em; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: var(--lh-loose);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-marks {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-marks li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
}
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.hero-trust svg { flex: 0 0 auto; opacity: .8; }

/* Nota: el mock CSS-only del hero (.mock*), la trust bar (.trust*) y las
   stat-cards (.stat*) se retiraron en el rediseño 2026-07-17. El hero usa
   ahora .hero-window/.hw-* y la trust bar la sustituye .statement/.lms
   (ver el bloque "REDISEÑO LOMUSA" al final del fichero). */

/* ── SECTIONS ── */
.section { padding: var(--space-16) 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  text-align: left;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.section-lead {
  text-align: left;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: var(--lh-loose);
  max-width: 720px;
  margin: 0 0 3rem;
}

/* ── MODOS ── */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.mode {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--tr), box-shadow var(--tr);
}
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mode-badge {
  display: inline-block;
  padding: .3rem 1rem;
  border-radius: var(--radius-round);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.mode-badge-standard { background: var(--primary); color: #fff; }
.mode-badge-faithful { background: var(--accent); color: #fff; }
.mode h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.mode p { color: var(--text-muted); line-height: var(--lh-loose); margin-bottom: 1rem; }
.mode-when {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .95rem;
}
.mode-when strong { color: var(--primary); }

/* ── FEATURES ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.feature {
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: .75rem;
}
.feature p { color: var(--text-muted); line-height: var(--lh-loose); font-size: .95rem; }

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}
.step {
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.step-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -.03em;
  opacity: .3;
}
.step h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: .75rem;
}
.step p { color: var(--text-muted); line-height: var(--lh-loose); }
.step code { background: var(--bg-alt); padding: .1rem .4rem; border-radius: var(--radius-sm); font-size: .9em; color: var(--primary); }

/* ── CALCULADORA ── */
.calc {
  max-width: 900px;
  margin: 3rem 0 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calc-row {
  display: grid;
  /* La columna de volumen necesita menos ancho que las cabeceras largas de
     las columnas 2-3; con 1.2fr empujaba "Coste sin herramienta" a la derecha */
  grid-template-columns: 0.9fr 1.15fr 1.15fr 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.calc-row:last-child { border-bottom: 0; }
.calc-row-head {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.calc-row:not(.calc-row-head) span { font-weight: 500; }
.calc-row:not(.calc-row-head) span:first-child { color: var(--primary); font-weight: 600; }
.calc-save { color: var(--success); font-weight: 700 !important; font-size: 1.05rem; }
.calc-note {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: left;
  font-style: italic;
}

/* ── FAQ ── */
.faq {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 3rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform var(--tr);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { background: var(--bg-alt); }
.faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: var(--lh-loose);
}
.faq-body p { margin-bottom: .75rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body code { background: var(--bg-alt); padding: .1rem .4rem; border-radius: var(--radius-sm); font-size: .9em; color: var(--primary); }

/* ── SECTION CTA + FORM ── */
.section-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: var(--space-16) 0;
}
.cta-title {
  color: #fff;
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.cta-lead {
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: 1.1rem;
  line-height: var(--lh-loose);
  margin: 0 auto 3rem;
  max-width: 600px;
}

.form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  margin-bottom: .4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(240, 87, 38, .15);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.form-check input {
  width: auto;
  margin-top: .3rem;
  accent-color: var(--accent);
}
.form-check label {
  margin: 0;
  font-weight: 400;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.5;
}
.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 1rem;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .75);
  padding: var(--space-10) 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  padding-bottom: var(--space-10);
}
.footer-logo { display: block; height: 42px; width: auto; margin-bottom: .35rem; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .5); }
.footer-tag {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .65);
  max-width: 320px;
  font-size: .95rem;
  line-height: var(--lh-loose);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.footer-nav h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a {
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
  transition: color var(--tr);
}
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255, 255, 255, .5); font-size: .85rem; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .modes { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .section { padding: var(--space-12) 0; }
  .hero { padding: var(--space-10) 0; }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 1rem 1.5rem; }
  .nav-menu .btn-nav { margin: .5rem 1.5rem; text-align: center; }

  .features { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; gap: .3rem; padding: 1rem 1.25rem; }
  .calc-row-head { display: none; }
  .calc-row:not(.calc-row-head) span::before {
    content: attr(data-label);
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .1rem;
    font-weight: 600;
  }
  .form { padding: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-marks { flex-direction: column; gap: .5rem; }
}

/* ── LOGO ARELANCE EN EL PIE ── */
/* Versión blanca del logo sobre el pie azul oscuro, sin recuadro. */
.footer-arelance {
  display: block;
  width: fit-content;
  margin: 0 0 .7rem;
  line-height: 0;
}
.footer-arelance img {
  height: 34px;
  width: auto;
  display: block;
}

/* ── CTA con flecha deslizante (círculo + chevron de marca) ── */
.btn-cta {
  position: relative;
  padding-right: 3.6rem;
}
.btn-cta::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #fff;
  background-image: url('../img/chevron.svg');
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: .85rem;
  transition: transform var(--tr), box-shadow var(--tr);
}
.btn-cta:hover::after {
  transform: translateY(-50%) translateX(5px);
  box-shadow: 0 3px 10px rgba(20, 53, 84, .25);
}
@media (prefers-reduced-motion: reduce) {
  .btn-cta:hover::after { transform: translateY(-50%); }
}

/* ── FLUJO "A MANO → CON NOSOTROS" (sección problema) ── */
.flow {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 920px;
  margin: 3rem 0 0;
}
.flow-side {
  flex: 1 1 0;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow-manual { background: var(--bg-alt); border: 1px solid var(--border); }
.flow-us {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Chevron de marca en marca de agua sobre el lado "nosotros" */
.flow-us::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 150px;
  height: 150px;
  background: url('../img/chevron.svg') no-repeat center / contain;
  opacity: .12;
}
.flow-tag {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.flow-manual .flow-tag { color: var(--text-muted); }
.flow-us .flow-tag { color: var(--accent); }
.flow-figs { display: flex; gap: 2rem; flex-wrap: wrap; }
.flow-figs strong,
.flow-payoff strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--primary);
}
.flow-figs span,
.flow-payoff span {
  display: block;
  margin-top: .4rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.flow-us .flow-payoff strong { color: #fff; font-size: 3rem; }
.flow-us .flow-payoff span { color: rgba(255, 255, 255, .82); position: relative; z-index: 1; }
.flow-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: var(--accent);
}
.flow-arrow svg { width: 42px; height: 34px; }
@media (max-width: 720px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { justify-content: center; transform: rotate(90deg); margin: .25rem 0; }
}

/* ── COMPARATIVA AGENCIA vs NOSOTROS ── */
.vs {
  max-width: 820px;
  margin: 3rem 0 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.vs-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.vs-row:last-child { border-bottom: 0; }
.vs-row > div {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
}
.vs-concept { color: var(--primary); font-weight: 600; font-size: .95rem; }
.vs-them { color: var(--text-muted); border-left: 1px solid var(--border); }
.vs-us { color: var(--primary); font-weight: 600; border-left: 1px solid var(--border); background: rgba(240, 87, 38, .05); }
.vs-head > div { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.vs-head { background: var(--primary); }
.vs-head .vs-concept,
.vs-head .vs-them,
.vs-head .vs-us { color: #fff; border-color: rgba(255,255,255,.2); background: transparent; }
.vs-head .vs-us { color: var(--accent); }
@media (max-width: 640px) {
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div { border-left: 0; border-top: 1px solid var(--border); }
  .vs-row > div:first-child { border-top: 0; }
  .vs-head { display: none; }
  .vs-them::before { content: "Agencia tradicional: "; font-weight: 600; color: var(--primary); }
  .vs-us::before { content: "Con nuestro servicio: "; font-weight: 700; color: var(--accent); }
}

/* ── PÁGINAS LEGALES ── */
.legal {
  padding: 3rem 0 4rem;
}
.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-header h1 {
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: .5rem;
}
.legal-updated {
  color: var(--text-muted);
  font-size: .9rem;
}
.legal-body {
  color: #333;
  line-height: 1.75;
}
.legal-body h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin: 2.5rem 0 .75rem;
}
.legal-body h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin: 1.5rem 0 .5rem;
}
.legal-body p { margin-bottom: 1rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1rem 1.25rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-data {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-data dl { margin: 0; }
.legal-data dt {
  font-weight: 600;
  color: var(--primary);
  margin-top: .75rem;
}
.legal-data dt:first-child { margin-top: 0; }
.legal-data dd { margin: 0 0 .25rem; }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.legal-body th, .legal-body td {
  border: 1px solid var(--border);
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
}
.legal-body th { background: var(--bg-alt); color: var(--primary); }

/* ── BANNER DE COOKIES ── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(20, 53, 84, .18);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  transform: translateY(150%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex: 0 0 auto;
}
.cookie-banner__btn { padding: .55rem 1.4rem; font-size: .9rem; }
@media (max-width: 560px) {
  .cookie-banner { padding: 1rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* ── PÁGINAS AUXILIARES (gracias, 404) ──
   Sin estilos inline: la CSP (style-src 'self') los bloquea. */
.standalone {
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
}
.standalone .eyebrow { justify-content: center; }
.standalone h1 { margin-bottom: 1rem; }
.standalone-title-md { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.standalone-title-lg { font-size: clamp(2.5rem, 6vw, 4rem); }
.standalone-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 550px;
  line-height: 1.7;
}
.standalone-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #dcfce7;
  display: grid;
  place-items: center;
  margin: 0 auto 2rem;
}

/* ── PRINT ── */
@media print {
  .site-header, .site-nav, .hero-cta, .section-cta, .site-footer, .cookie-banner, .topbar { display: none; }
  body { color: #000; background: #fff; }
  a { color: inherit; text-decoration: underline; }
}

/* =================================================================
   REDISEÑO "LOMUSA" — cabecera oscura, hero a sangre, bandas marino,
   statement + LMS, mock realista y scroll-reveal.
   Bloque append-only: sobrescribe por orden de cascada los estilos
   anteriores. Todo hospedado aquí (CSP style-src 'self').
   ================================================================= */

/* ── Barra superior fina ── */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .75);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}
.topbar a {
  color: rgba(255, 255, 255, .75);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-social { display: flex; gap: 1.4rem; }
@media (max-width: 640px) { .topbar { display: none; } }

/* ── Cabecera azul marino ── */
.site-header {
  background: var(--primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .28); }
.site-header .brand-sub { color: rgba(255, 255, 255, .6); }
.nav-menu a {
  color: rgba(255, 255, 255, .85);
  position: relative;
}
.nav-menu a:hover { color: #fff; }
/* subrayado animado (excepto el botón "Solicitar demo") */
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { color: #fff; }
@media (max-width: 720px) {
  .nav-menu {
    top: 72px;
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
  .nav-menu a:not(.btn)::after { display: none; }
}

/* ── HERO a sangre (banda azul marino inmersiva) ── */
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--space-12) 0 var(--space-16);
}
/* glow naranja pulsante desactivado (prueba sin el círculo naranja) */
.hero::before {
  display: none;
}
/* chevron de marca en marca de agua */
.hero::after {
  content: "";
  position: absolute;
  right: -90px; bottom: -140px;
  width: 520px; height: 520px;
  background: url('../img/chevron.svg') no-repeat center / contain;
  opacity: .05;
  transform: rotate(-8deg);
  z-index: 0;
  pointer-events: none;
}
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { color: rgba(255, 255, 255, .8); }
.hero-marks li { color: rgba(255, 255, 255, .75); }
.hero-trust { color: rgba(255, 255, 255, .6); }
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: transparent;
}
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

/* ── Mock realista: ventana con curso SCORM (paso "Revisar estructura") ── */
.hero-visual { display: block; grid-template-columns: none; gap: 0; }
.hero-window {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  overflow: hidden;
  /* Ventana plana: el transform 3D (perspective/rotateY) rasteriza el texto
     fino sobre un plano inclinado y lo deja borroso/con halo ("fantasma").
     La sombra grande ya da profundidad sin necesidad de rotar el texto. */
}
.hw-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .9rem;
  background: #eef1f6;
  border-bottom: 1px solid #e2e6ee;
}
.hw-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdd5e0; }
.hw-bar span:nth-child(1) { background: #ff5f57; }
.hw-bar span:nth-child(2) { background: #febc2e; }
.hw-bar span:nth-child(3) { background: #28c840; }
.hw-url {
  margin-left: .6rem;
  font-size: .72rem;
  color: #8792a6;
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 6px;
  padding: .2rem .6rem;
  /* una sola línea, recortada: si el texto desborda el flex, no debe
     envolverse y derramarse sobre el cuerpo de la tarjeta */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}
.hw-body { padding: 1.3rem 1.4rem; background: #f8fafc; }
.hw-h { font-size: .78rem; font-weight: 700; color: var(--primary); margin: 0 0 .15rem; }
.hw-sub { font-size: .7rem; color: #8792a6; margin: 0 0 .9rem; }
.hw-card {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: .9rem 1rem;
  box-shadow: 0 8px 20px rgba(20, 53, 84, .06);
}
.hw-card-t { font-size: .74rem; font-weight: 700; color: var(--primary); margin: 0 0 .7rem; }
.hw-item { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.hw-item:last-child { margin-bottom: 0; }
.hw-check { color: var(--success); flex: 0 0 auto; }
.hw-bloom {
  font-size: .58rem;
  font-weight: 700;
  color: #fff;
  padding: .12rem .45rem;
  border-radius: 4px;
  flex: 0 0 auto;
}
.hw-bloom.b-comp { background: #2563eb; }
.hw-bloom.b-apl { background: #16a34a; }
.hw-bloom.b-ana { background: var(--accent); }
.hw-bloom.b-eva { background: #dc2626; }
.hw-line { height: 6px; border-radius: 4px; background: #e2e6ee; flex: 1; }
.hw-line.s { max-width: 55%; }
.hw-btn {
  margin-top: 1rem;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ── Statement + tira de LMS (sustituye a la trust bar) ── */
.statement { padding: 4.5rem 0 3.5rem; text-align: center; }
.statement p {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--primary);
  font-weight: 600;
}
.statement p .hl { color: var(--accent); }
.lms { margin-top: 2.5rem; text-align: center; }
.lms-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #8792a6;
  margin-bottom: 1rem;
}
.lms-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.lms-logos li { color: #9aa6ba; font-weight: 700; font-size: 1.15rem; transition: color var(--tr); }
.lms-logos li:hover { color: var(--primary); }

/* ── Bandas de sección oscuras (inmersivas) ── */
.section-dark {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1000px 520px at 80% -20%, rgba(240, 87, 38, .14), transparent 60%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.section-dark::after {
  content: "";
  position: absolute;
  right: -90px; bottom: -140px;
  width: 480px; height: 480px;
  background: url('../img/chevron.svg') no-repeat center / contain;
  opacity: .045;
  transform: rotate(-8deg);
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: rgba(255, 255, 255, .8); }

/* flujo "a mano → nosotros" sobre banda oscura */
.section-dark .flow-manual { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); }
.section-dark .flow-manual .flow-tag { color: rgba(255, 255, 255, .7); }
.section-dark .flow-figs strong { color: #fff; }
.section-dark .flow-figs span { color: rgba(255, 255, 255, .65); }
.section-dark .flow-us {
  background: linear-gradient(160deg, rgba(240, 87, 38, .2), rgba(240, 87, 38, .06));
  border: 1px solid rgba(240, 87, 38, .4);
}
.section-dark .flow-us .flow-tag { color: #fff; }
.section-dark .flow-us::after { opacity: .18; }

/* pasos sobre banda oscura (números naranja gigantes, sin tarjeta) */
.section-dark .step { background: transparent; border: 0; padding: 1rem 0 0; overflow: visible; }
.section-dark .step::before { display: none; }
.section-dark .step-num { color: var(--accent); opacity: .4; font-size: 3.6rem; }
.section-dark .step h3 { color: #fff; }
.section-dark .step p { color: rgba(255, 255, 255, .75); }
.section-dark .step code { background: rgba(255, 255, 255, .1); color: #fff; }

/* ── EFECTOS Y ANIMACIONES ── */
@keyframes hero-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* scroll-reveal: las clases las añade main.js (sin JS, nada se oculta) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .05s; }
.stagger.in > *:nth-child(2) { transition-delay: .13s; }
.stagger.in > *:nth-child(3) { transition-delay: .21s; }
.stagger.in > *:nth-child(4) { transition-delay: .29s; }
.stagger.in > *:nth-child(5) { transition-delay: .37s; }
.stagger.in > *:nth-child(6) { transition-delay: .45s; }
/* hover extra sobre iconos de características */
.feature:hover .feature-icon { transform: scale(1.08) rotate(-3deg); transition: transform var(--tr); }

@media (max-width: 960px) { .hero-window { transform: none; animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .hero-window { animation: none; }
}

/* =================================================================
   VÍDEO DEMO — panel oscuro inset con facade de reproducción.
   La sección entera se oculta desde main.js si data-video-src está
   vacío (vídeo aún no producido).
   ================================================================= */
.video-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 3rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(700px 380px at 85% -10%, rgba(240, 87, 38, .16), transparent 60%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}
/* chevron de marca en marca de agua, como en .section-dark */
.video-panel::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -110px;
  width: 380px; height: 380px;
  background: url('../img/chevron.svg') no-repeat center / contain;
  opacity: .05;
  transform: rotate(-8deg);
  pointer-events: none;
}
.video-text, .video-visual { position: relative; z-index: 1; }
.video-panel .section-title {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.video-lead {
  color: rgba(255, 255, 255, .8);
  line-height: var(--lh-loose);
  margin: 0 0 1.5rem;
  max-width: 46ch;
}
.video-marks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.video-marks li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
  font-weight: 500;
}
.video-marks svg { flex: 0 0 auto; }
.video-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .9rem 0 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .65);
}
.video-window {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  gap: .8rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  border: 0;
  /* Fotograma real del vídeo como portada (mockup del PDF de marketing) */
  background: #f8fafc url('../img/video-poster.jpg?v=20261020') center / cover no-repeat;
  font-family: inherit;
  cursor: pointer;
}
.video-play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(14, 39, 64, .35); /* despega el play del fotograma */
  transition: background var(--tr), transform var(--tr);
}
.video-frame:hover .video-play,
.video-frame:focus-visible .video-play { background: var(--accent); transform: scale(1.08); }
.video-frame-label {
  /* Con fotograma real de portada, el rótulo sobra (como en el mockup) */
  display: none;
}
.video-duration {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  padding: .15rem .55rem;
  border-radius: 5px;
  background: rgba(14, 39, 64, .85);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
}
/* el <video> que sustituye a la facade al hacer clic */
.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
@media (max-width: 960px) {
  .video-panel { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; gap: 2rem; }
}

/* "Sin permanencia" bajo el botón del formulario */
.form-note-perm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.1rem;
}
.form-note-perm + .form-note { margin-top: .35rem; }
