/* =========================================================
   ONERA SOFTWARE – Base CSS (v1)
   Escalable, modular, accesible y SEO-friendly
   ========================================================= */
:root {
  --color-bg-dark:#0F1113;      /* Ink 900 */
  --color-bg-dark-alt:#14171A;  /* Ink 800 */
  --color-bg-light:#F2EFEA;     /* Bone */
  --color-bg-light-alt:#E6E1D9; /* Sand */
  --color-accent:#0EC7A6;       /* Jade */
  --color-accent-hover:#0AAA92; /* Deep Jade */
  --color-accent-premium:#C6A15B; /* Brass */
  --color-text-light:#F7F7F5;   /* Ivory White */
  --color-text-dark:#242629;    /* Graphite Ink */

  /* Paleta principal */
  --ink-900: #0F1113;
  --ink-800: #14171A;
  --bone:    #F2EFEA;
  --sand:    #E6E1D9;
  --jade:    #0EC7A6;
  --jade-700:#0AAA92;
  --brass:   #C6A15B;

  /* Texto */
  --text-on-dark: #F7F7F5; /* marfil muy claro */
  --text-on-light:#242629; /* gris grafito */

  /* Semánticos */
  --ok: #0EC7A6;
  --warn: #C6A15B;

  /* Tipografía */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-size-hero: clamp(2.2rem, 4vw, 3.5rem);
  --font-size-h2: clamp(1.6rem, 2.5vw, 2.2rem);
  --font-size-h3: clamp(1.1rem, 1.8vw, 1.25rem);
  --font-size-body: 1rem;
  --line: 1.6;

  /* Espaciado (8px baseline) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Layout */
  --container: 1200px;
  --radius-s: .5rem;
  --radius-m: 1rem;
  --radius-l: 1.5rem;

  /* Borde / sombras */
  --hairline: 1px solid rgba(255,255,255,.08);
  --hairline-dark: 1px solid rgba(0,0,0,.08);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.18);

  /* Transiciones */
  --dur-1: 160ms;
  --dur-2: 280ms;
  --ease-out: cubic-bezier(.2,.7,.2,1);

  --font-heading: "Work Sans", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* Preferencias de usuario */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Reset mínimo y accesible */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-light);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
  border-radius: .2rem;
}

/* Contenedor */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Utilidades */
.visually-hidden {
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.stack > * + * { margin-top: var(--space-4); }
.cluster { display:flex; flex-wrap:wrap; gap: var(--space-3); align-items:center; }

/* Scroll snapping para secciones 100vh */
main {
  scroll-snap-type: y proximity;
}
main > section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  scroll-snap-align: start;
}
p {
  color: #e6e6e6;
}

/* -----------------------
   2) BOTONES & LINKS
------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.1rem;
  border-radius: .9rem;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--jade), var(--jade-700));
  color: #07231D;
  box-shadow: 0 8px 24px rgba(14,199,166,.3);
}
.btn--primary:hover { box-shadow: 0 10px 30px rgba(14,199,166,.38); }

.btn--ghost {
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text-on-dark);
  background: rgba(255,255,255,.05);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--text-on-dark); }

.link-cta {
  color: var(--jade);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.link-cta:hover { border-bottom-color: var(--jade); }

/* -----------------------
   3) TIPOGRAFÍA & HEADINGS
------------------------*/
h1, h2, h3 {
  margin: 0 0 var(--space-3) 0;
  line-height: 1.2;
  font-family: var(--font-heading);
  font-weight: 700;
}
h1 { font-size: var(--font-size-hero); letter-spacing: -0.02em; }
h2 { font-size: var(--font-size-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--font-size-h3); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); opacity: .96; }
.sublead { opacity: .85; }

/* ============================
   HERO (oscuro + visual + copy) – VERSIÓN LIMPIA
   ============================ */
#hero {
  position: relative;
  color: var(--text-on-dark);
  background-color: #0B0D0F; /* color sólido, sin degradado raro */
  background-image: url("../img/background/background-hero.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: var(--space-8) 0;
  overflow: hidden;
  z-index: 0;
}

#hero .hero-vertical {
  display: grid;
  gap: var(--space-6);
  justify-items: center;
  text-align: center;
}

/* Titular premium */
#hero h1 {
  margin: 0;
  background: linear-gradient(90deg, #ffffff, #EAFDF9 35%, #ffffff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Énfasis en palabras clave */
.hi {
  background: linear-gradient(90deg, var(--jade), #8ff2e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.hi-ice {
  font-style: italic;
  background: linear-gradient(90deg, #9CF2E7, var(--jade));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* Copy */
#hero .lead,
#hero .sublead {
  max-width: 68ch;
  margin-inline: auto;
}
#hero .lead { margin-top: var(--space-4); }
#hero .sublead { margin-top: var(--space-3); }

/* CTAs */
#hero .cta-group {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 640px) {
  #hero .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================
   VISUAL (antes/después)
   ============================ */
.hero-visual {
  width: min(92vw, 840px);
  margin: var(--space-5) auto 0;
}

.hero-visual__frame {
  --hero-pad: 1rem;
  --hero-vpad: 5px;
  position: relative;
  padding: calc(var(--hero-pad) + var(--hero-vpad)) var(--hero-pad);
  aspect-ratio: 16/9;
  border-radius: var(--radius-l);
  border: 2px solid rgba(255,255,255,.08);
  background: #0c0e10;
  box-shadow: 0 0 30px rgba(0,0,0,.35);
  overflow: hidden;
}

/* Ambas imágenes comparten encuadre */
.hero-visual__frame > img.hero-visual__img--old,
.hero-visual__frame > img.hero-visual__img--modern {
  position: absolute;
  top:    calc(var(--hero-pad) + var(--hero-vpad));
  right:  var(--hero-pad);
  bottom: calc(var(--hero-pad) + var(--hero-vpad));
  left:   var(--hero-pad);

  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: calc(var(--radius-l) - var(--hero-pad));
}

/* OLD base */
.hero-visual__img--old {
  z-index: 0;
  filter: grayscale(.08) contrast(.95) brightness(.96);
}

/* MODERN encima */
.hero-visual__img--modern {
  z-index: 1;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  will-change: opacity, clip-path;
}

/* Banda de luz del wipe */
.hero-visual__sweep {
  position: absolute;
  z-index: 2;
  top:    calc(var(--hero-pad) + var(--hero-vpad));
  right:  var(--hero-pad);
  bottom: calc(var(--hero-pad) + var(--hero-vpad));
  left:   var(--hero-pad);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(90deg,
    rgba(14,199,166,0) 0%,
    rgba(14,199,166,.25) 35%,
    rgba(198,161,91,.35) 50%,
    rgba(14,199,166,.25) 65%,
    rgba(14,199,166,0) 100%);
  transform: translateX(-110%);
  filter: blur(1px);
}

/* Animaciones (mantienen tu efecto before/after) */
.hero-visual.is-active .hero-visual__img--modern {
  animation: wipeReveal 4s cubic-bezier(.3,0,.2,1) forwards,
             modernFadeIn 4s cubic-bezier(.3,0,.2,1) forwards;
}
.hero-visual.is-active .hero-visual__sweep {
  animation: sweepGlow 4s cubic-bezier(.3,0,.2,1) forwards;
}
.hero-visual.is-exiting .hero-visual__img--modern {
  animation: exitFade 3s ease forwards !important;
  clip-path: inset(0 0 0 0);
}

@keyframes wipeReveal { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes modernFadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes sweepGlow {
  0%   { transform:translateX(-110%); opacity:0; }
  20%  { opacity:1; }
  100% { transform:translateX(110%); opacity:0; }
}
@keyframes exitFade { from { opacity:1 } to { opacity:0 } }

/* ============================
   FEATURES (chips ejecutivos)
   ============================ */
.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(92vw, 820px);
  margin: var(--space-6) auto var(--space-4);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}
.feature:first-child { border-top: 0; }

/* marcador jade minimal */
.feature::before {
  content: "";
  width: .5rem;
  height: .5rem;
  margin-top: .45rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--jade) 0%, rgba(14,199,166,.35) 65%, transparent 70%);
  box-shadow: 0 0 10px rgba(14,199,166,.45);
  flex: 0 0 .5rem;
}

.feature p {
  margin: 0;
  color: var(--text-on-dark);
  opacity: .95;
  line-height: 1.55;
  font-size: 1rem;
}
.feature p strong { font-weight: 700; }

#main strong {
  color: #6eeaff;
}



/* PROBLEMA (claro) */
#problema {
  background: var(--bone);
  color: var(--text-on-light);
  padding: var(--space-8) 0;
}
.section-intro { max-width: 70ch; opacity: .9; }

/* Pantallas comparativas */
.problem-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.screen {
  min-height: 260px;
  border-radius: var(--radius-m);
  border: var(--hairline-dark);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.screen--old {
  background:
    linear-gradient(180deg, #E9E7E2, #E2DED7),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04), rgba(0,0,0,.04) 1px, transparent 1px, transparent 12px);
  position: relative;
}
.screen--old::after {
  content: "UI heredada";
  position: absolute; top: .75rem; right: .75rem;
  font-size: .8rem; font-weight: 600; color: #6b6f76;
}

.screen--modern {
  background:
    linear-gradient(180deg, #ffffff, #F8F7F4),
    radial-gradient(700px 300px at 90% 0%, rgba(14,199,166,.18), transparent 60%);
  position: relative;
}
.screen--modern::after {
  content: "UI moderna";
  position: absolute; top: .75rem; right: .75rem;
  font-size: .8rem; font-weight: 700; color: #0b3d35;
}

.bullets { margin-top: var(--space-5); }
.bullets--compact { display:grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bullets--compact li { list-style: "•  "; padding-left: .4rem; }

/* ====================================== 
   SOLUCIÓN — versión ejecutiva 2025 (LIMPIA + PALETA OFICIAL)
   ====================================== */

#solucion {
  background-color: #0B0D0F;
  background-image: url("../img/background/background-solution.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: var(--text-on-dark);
  padding-block: var(--space-8);
  position: relative;
  overflow: hidden;
}

/* ---------- CONTENEDOR GLASS ---------- */
.container.solution-grid {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 1.2rem;
  padding: var(--space-6);
  max-width: 1200px;
  margin-inline: auto;
}

/* ---------- HEADER ---------- */
.solution-header {
  border-radius: 1rem !important;
  border: 1px solid rgba(255,255,255,0.06);
}

.solution-intro {
  background: transparent;
  padding-inline: var(--space-4);
  margin-bottom: var(--space-6);
}

.solution-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-3);
  text-align: center;
}

.solution-intro .section-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 65ch;
  margin-inline: auto;
  text-align: center;
}

/* ---------- COLUMNS ---------- */
.solution-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: var(--space-5);
}

.solution-block {
  background: #101214;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-5);
  transition: transform .25s ease, box-shadow .25s ease;
}

.solution-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.solution-block h3 {
  color: var(--jade);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.solution-block p {
  font-size: 1rem;
  margin-bottom: var(--space-4);
  opacity: .92;
}

.solution-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}

.solution-block li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 1rem;
  opacity: .92;
}

.solution-block li::before {
  content: "";
  width: .5rem;
  height: .5rem;
  background: var(--jade);
  position: absolute;
  left: 0;
  top: .55rem;
  border-radius: 50%;
}

/* ---------- GUARANTEES ---------- */

.solution-guarantees {
  background: #101214;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.06);

  /* ---- FIX DE MÁRGENES (SE VEÍA APLASTADO) ---- */
  padding: var(--space-6) var(--space-5);
  margin-top: var(--space-8);
}

.solution-guarantees h4 {
  color: var(--jade);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: var(--space-4);
}

.guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1rem 1.5rem;
  text-align: center;
}

.guarantee-list li {
  font-size: .97rem;
  opacity: .9;
  line-height: 1.5;
}

/* ---------- CTA ---------- */
.solution-cta {
  text-align: center;
  margin-top: var(--space-6);
}

/* ---------- HIGHLIGHTS ---------- */
.hl {
  color: #ffffff; /* YA NO azul celeste, mantenemos blanco */
  font-weight: 600;
}

.hl--jade {
  color: var(--jade);
}

.hl--brass {
  color: #d5d5d5;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {

  #solucion {
    padding-block: var(--space-6);
  }

  .solution-columns {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .guarantee-list {
    grid-template-columns: 1fr;
  }
}

#solucion {
  padding-top: 6rem !important;
  padding-bottom: 7rem !important;
}


.solution-intro {
  margin-bottom: 4.5rem !important;
}

/* Más espacio entre las tarjetas */
.solution-columns {
  gap: 3.5rem !important;
}

/* BLOQUE: Execution Guarantees */
.solution-guarantees {
  margin-top: 5rem !important;     /* antes estaba muy pegado */
  margin-bottom: 4rem !important;  /* antes casi sin aire */
  padding: 3.5rem 2.8rem !important;
}

/* Separación entre el block y el CTA */
.solution-cta {
  margin-top: 4rem !important;
}

/* Separación final hacia “Trusted by institutions” */
#marcas {
  padding-top: 6rem !important;
}



/* PORTAFOLIO (oscuro, placeholder) */
#portafolio {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  color: var(--text-on-dark);
  padding: var(--space-8) 0;
}
.portfolio-placeholder {
  margin-top: var(--space-6);
  min-height: 380px;
  border-radius: var(--radius-l);
  border: 1px dashed rgba(255,255,255,.22);
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(14,199,166,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
.portfolio-placeholder::before {
  content: "Área reservada para Carrusel Antes/Después";
  opacity: .8;
}

/* MARCAS (claro, placeholder) */
#marcas {
  background: var(--bone);
  color: var(--text-on-light);
  padding: var(--space-8) 0;
}
.brands-placeholder {
  margin-top: var(--space-6);
  min-height: 220px;
  border-radius: var(--radius-m);
  border: 1px dashed rgba(0,0,0,.25);
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,0));
}
.brands-placeholder::before { content: "Grid de logos (6–9) – monocromático"; color: #6b6f76; }
.note-nda { margin-top: var(--space-3); font-size: .9rem; color: #6b6f76; }

/* ======================================
   CTA FINAL — Fondo ejecutivo con parallax
   ====================================== */
#cta-final {
  position: relative;
  background: #0B0D0F url("../img/background/background-cta.png") center / cover no-repeat fixed;
  color: #f5f7f8;
  text-align: center;
  padding-block: 7rem;
  overflow: hidden;
  z-index: 0;
}

/* Efecto parallax (movimiento muy sutil del fondo) */
@media (min-width: 1024px) {
  #cta-final {
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    animation: bgDrift 25s ease-in-out infinite alternate;
  }

  @keyframes bgDrift {
    0% { background-position: 50% 50%; }
    50% { background-position: 53% 47%; }
    100% { background-position: 50% 50%; }
  }
}

/* Contenedor */
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* Título */
#cta-final h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.4rem;
}

#cta-final .hl--jade {
  color: #00C2D1;
}

/* Descripción */
#cta-final .section-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(245,247,248,0.88);
  margin-bottom: 2.8rem;
}

/* Botón principal (WhatsApp CTA) */
#cta-final .btn--primary {
  display: inline-block;
  background: linear-gradient(180deg, #00A7D0, #0b8eb1);
  color: #fff;
  font-weight: 700;
  padding: 1.1rem 2rem;
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,167,208,0.32);
  transition: all 0.25s ease;
  text-decoration: none;
}
#cta-final .btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,167,208,0.42);
}

/* Nota final */
.cta-note {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2rem;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
  #cta-final {
    padding-block: 5rem;
    background-attachment: scroll;
  }
  #cta-final h2 {
    font-size: 1.8rem;
  }
  #cta-final .section-intro {
    font-size: 1rem;
  }
}

/* -----------------------
   5) FORMULARIO – Evaluación Ejecutiva
------------------------*/
.exec-eval-form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.form-row { display: grid; gap: .5rem; }
label { font-weight: 600; }
input, textarea {
  appearance: none;
  width: 100%;
  padding: .85rem 1rem;
  border-radius: .8rem;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text-on-dark);
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.55); }
input:focus, textarea:focus {
  border-color: rgba(14,199,166,.6);
  background: rgba(14,199,166,.06);
  box-shadow: 0 0 0 4px rgba(14,199,166,.15);
}

.form-actions {
  display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap;
}
.form-disclaimer { opacity: .8; }

/* -----------------------
   6) FOOTER
------------------------*/
footer {
  color: var(--text-on-dark);
  background: linear-gradient(180deg, var(--ink-900), #0b0d0f);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: var(--space-6);
  padding: var(--space-7) 0;
}
.footer__brand p { margin-top: .5rem; opacity: .85; }
footer nav ul { list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
footer nav a { color: var(--text-on-dark); opacity:.9; }
footer nav a:hover { color: var(--jade); opacity:1; }

.footer__contact a { color: var(--jade); }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--space-4) 0;
  text-align: center;
  opacity: .8;
  font-size: .9rem;
}

/* -----------------------
   7) RESPONSIVE
------------------------*/
@media (max-width: 1200px) {
  .solution-columns { grid-template-columns: 1fr 1fr; }
  .solution-diagram { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  main > section { min-height: auto; padding-block: var(--space-7); }
  #hero { padding-top: calc(var(--space-8) + 3rem); } /* espacio por header sticky */
  .problem-visual { grid-template-columns: 1fr; }
  .solution-columns { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cta-group { flex-direction: column; align-items: stretch; }
  .solution-diagram { grid-template-columns: 1fr; }
}

/* -----------------------
   8) THEME (opcional, si activas light global)
------------------------*/
@media (prefers-color-scheme: dark) {
  /* El sitio ya es oscuro en varias secciones; ajustes menores */
}

/* -----------------------
   9) INTERACCIONES JS (hooks visuales)
------------------------*/
/* estados del nav cuando el menú está cerrado/abierto en mobile (controlado por aria-expanded) */
.nav__toggle[aria-expanded="false"] + .nav__wrapper .nav__menu { display: none; }
.nav__toggle[aria-expanded="true"] + .nav__wrapper .nav__menu { display: grid; }

/* Hover cards sutil en capabilities */
.capability { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.capability:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }

/* Línea inferior animada en links del nav (en desktop) */
@media (min-width: 961px) {
  .nav__menu a {
    position: relative;
  }
  .nav__menu a::after {
    content:"";
    position:absolute; left:0; bottom:-8px; height:2px; width:0%;
    background: linear-gradient(90deg, var(--jade), var(--brass));
    transition: width var(--dur-1) var(--ease-out);
  }
  .nav__menu a:hover::after { width:100%; }
}

/* -----------------------
   10) MICRO DETALLES (look & feel)
------------------------*/
#hero h1 {
  background: linear-gradient(90deg, #FFFFFF, #EAFDF9 30%, #FFFFFF 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(14,199,166,.12));
}

/* Pequeño “glow” en cards destacadas */
.diagram__stage--onera, .btn--primary {
  position: relative;
}
.diagram__stage--onera::before, .btn--primary::before {
  content:"";
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: radial-gradient(300px 120px at 20% 0%, rgba(14,199,166,.15), transparent 60%);
  z-index: -1;
}

/* Sutil brillo brass en CTA final */
#cta-final header h2 {
  text-shadow: 0 1px 0 rgba(0,0,0,.4), 0 6px 30px rgba(198,161,91,.22);
}

/* -----------------------
   11) PLACEHOLDERS explícitos
------------------------*/
.portfolio-placeholder, .brands-placeholder {
  text-align: center;
  font-weight: 600;
  letter-spacing: .2px;
}

/* -----------------------
   12) PRINT (por si comparten a PDF)
------------------------*/
@media print {
  header, footer, .hero-visual { display: none !important; }
  main > section { min-height: auto; padding-block: 1.5rem; }
  body { background: #fff; color: #000; }
}

section header, #hero .container {
  text-align: center;
}

#hero h1, #hero .lead, #hero .sublead {
  margin-inline: auto;
}

.section-intro {
  margin-inline: auto;
  text-align: center;
}


/* ===== HERO VISUAL — ciclo 14s con cierre elegante ===== */

/* Wrapper del figure (solo espaciado vertical del hero) */
.hero-visual { margin-top: var(--space-6); }

/* Marco que abraza la imagen */
.hero-visual__frame{
  --hero-pad: 1rem;                   /* padding del marco */
  position: relative;
  padding: var(--hero-pad);
  border-radius: var(--radius-l);
  border: 2px solid rgba(255,255,255,.08);
  background: #0c0e10;
  box-shadow: 0 0 30px rgba(0,0,0,.35);
  overflow: hidden;
}

/* La imagen OLD define el alto del marco (no se corta) */
.hero-visual__img--old{
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  filter: grayscale(.08) contrast(.95) brightness(.96);
}

/* La imagen MODERN se alinea 1:1 al área útil (respeta el padding) y queda por encima */
.hero-visual__img--modern{
  position: absolute;
  z-index: 1;

  /* se extiende 1px más allá del marco en cada lado para evitar el borde visible */
  top: calc(var(--hero-pad) - 1px);
  right: calc(var(--hero-pad) - 1px);
  bottom: calc(var(--hero-pad) - 1px);
  left: calc(var(--hero-pad) - 1px);

  width: auto;
  height: auto;
  max-width: calc(100% - 2*var(--hero-pad) + 2px);
  max-height: calc(100% - 2*var(--hero-pad) + 2px);

  object-fit: contain;
  object-position: center top;

  opacity: 0;
  clip-path: inset(0 100% 0 0);
  will-change: opacity, clip-path;
}


/* Banda jade/brass del wipe (solo durante el reveal) */
.hero-visual__sweep{
  position: absolute;
  z-index: 2;
  top: var(--hero-pad);
  right: var(--hero-pad);
  bottom: var(--hero-pad);
  left: var(--hero-pad);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(90deg,
    rgba(14,199,166,0) 0%,
    rgba(14,199,166,.25) 35%,
    rgba(198,161,91,.35) 50%,
    rgba(14,199,166,.25) 65%,
    rgba(14,199,166,0) 100%);
  transform: translateX(-110%);
  filter: blur(1px);
}

/* ========= Fase 1: Reveal (0–4s) =========
   La moderna se revela con wipe + fade-in y queda 100% visible encima. */
.hero-visual.is-active .hero-visual__img--modern{
  animation: wipeReveal 4s cubic-bezier(.3,0,.2,1) forwards,
             modernFadeIn 4s cubic-bezier(.3,0,.2,1) forwards;
}
.hero-visual.is-active .hero-visual__sweep{
  animation: sweepGlow 4s cubic-bezier(.3,0,.2,1) forwards;
}

/* ========= Fase 2: Display (4–10s) =========
   Sin animaciones: la moderna queda estable, totalmente visible. */

/* ========= Fase 3 (FINAL): Fade-out elegante (10–13s) =========
   La moderna se desvanece en 3s para dejar ver la antigua debajo. */
.hero-visual.is-exiting .hero-visual__img--modern{
  /* Elimina cualquier animación residual del reveal y hace SOLO fade */
  animation: none !important;
  clip-path: inset(0 0 0 0);        /* asegúrate de que está completa antes de desvanecer */
  animation: exitFade 3s ease forwards !important;
}

/* ====== Keyframes ====== */
@keyframes wipeReveal {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes modernFadeIn {
  0%   { opacity: 0; filter: brightness(.9) contrast(1.02); }
  100% { opacity: 1; filter: brightness(1)  contrast(1.05); }
}
@keyframes sweepGlow {
  0%   { transform: translateX(-110%); opacity: 0; }
  10%  { opacity: .85; }
  50%  { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
@keyframes exitFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Accesibilidad: si hay reducción de movimiento, muestra directo la moderna sin animar */
@media (prefers-reduced-motion: reduce){
  .hero-visual__img--modern,
  .hero-visual__sweep { animation: none !important; opacity: 1 !important; clip-path: inset(0 0 0 0)!important; }
}








/* ======================================
   MARCAS — Fondo claro institucional (4 columnas fijas, logos más grandes)
   ====================================== */
#marcas {
  background: #f7f7f7;
  color: #1a1a1a;
  padding-block: var(--space-8);
  text-align: center;
}

.brands-container {
  max-width: 1400px; /* más ancho que antes */
  margin-inline: auto;
  padding-inline: var(--space-4); /* margen lateral reducido */
}

.brands-header {
  margin-bottom: var(--space-6);
}

.brands-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: #0b0d0f;
  margin-bottom: var(--space-3);
}

.brands-header .section-intro {
  font-size: 1.05rem;
  color: #333;
  max-width: 70ch;
  margin-inline: auto;
  opacity: 0.9;
}

/* GRID DE LOGOS — 4 columnas fijas */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.8rem 3.5rem; /* más separación entre filas y columnas */
  align-items: center;
  justify-items: center;
  margin-top: var(--space-6);
  margin-bottom: var(--space-5);
  padding: var(--space-6) var(--space-7);
  background: #ffffff;
  border-radius: 1.4rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* LOGOS — más grandes y visibles */
.brands-grid img {
  width: 150px; /* antes 120px */
  height: 80px; /* antes 60px */
  object-fit: contain;
  filter: brightness(0.96);
  opacity: 0.95;
  transition: all 0.3s ease;
}

.brands-grid img:hover {
  filter: brightness(1.05);
  opacity: 1;
  transform: scale(1.08);
}

/* NOTA */
.note-nda {
  font-size: 0.9rem;
  color: #666;
  margin-top: var(--space-4);
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
    padding: var(--space-5);
  }

  .brands-grid img {
    width: 130px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  #marcas {
    padding-block: var(--space-6);
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem 2rem;
    padding: var(--space-4);
  }

  .brands-grid img {
    width: 110px;
    height: 60px;
  }

  .brands-header .section-intro {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid img {
    width: 130px;
    height: auto;
  }
}
/* ===================================================
   SOLUCIÓN — Fondo con ondas dinámicas de información
   =================================================== */
.solution-flow {
  position: relative;
  background: #050708;
  overflow: hidden;
  z-index: 0;
}

/* Capa base — gradientes radiales con más intensidad */
.solution-flow::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 209, 178, 0.12), transparent 55%),
    radial-gradient(circle at 85% 5%, rgba(110, 234, 255, 0.12), transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(0, 209, 178, 0.08), transparent 60%);
  opacity: 1;
  pointer-events: none;
  z-index: -2;
  animation: solutionGlow 20s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity, filter;
}



/* ======================================
   HERO — Fondo técnico principal
   ====================================== */
#hero {
  position: relative;
  background-color: #0B0D0F;
  background-image: url("../img/background/background-hero.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto; /* ocupa 100% del ancho y mantiene proporción */
  background-attachment: fixed; /* puedes cambiar a fixed si quieres parallax */
  color: var(--text-on-dark);
  overflow: hidden;
  z-index: 0;
}

/* Gradiente de refuerzo para evitar bordes duros en pantallas grandes */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 13, 15, 0.4) 0%,
    rgba(11, 13, 15, 0.75) 90%
  );
  pointer-events: none;
  z-index: -1;
}

/* =========================================
   PROBLEMA — Refinado visual (Onera Software)
   ========================================= */

/* Sección con fondo e iluminación lateral suave (continuidad con hero) */
#problema {
  position: relative;
  background: #F5F7F8 url("../img/background/background-problem.png") center top / cover no-repeat;
  color: #111;
  padding-block: 6rem;
  overflow: hidden;
  z-index: 0;
}

/* Vignette técnico lado izquierdo (sin corte brusco) */
#problema::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15,17,19,.55) 0%,
    rgba(15,17,19,.35) 20%,
    rgba(15,17,19,.12) 40%,
    rgba(15,17,19,0) 60%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

/* ================== GRID ================== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;     /* 50 / 50 para simetría */
  align-items: stretch;               /* fuerzas ambas columnas a la misma altura */
  gap: 3rem;
}

/* Altura base que comparten AMBOS paneles (izq/der) en desktop */
:root { --problem-pane-min: clamp(560px, 68vh, 760px); }

/* ============ IZQUIERDA (mock legacy) ============ */
.problem-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;              /* ocupa la altura del grid (igual a la derecha) */
  margin: 0;
}

.problem-frame {
  position: relative;
  height: 100%;
  min-height: var(--problem-pane-min); /* misma altura base que la derecha */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Marco limpio y profundo */
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1.2rem;
  box-shadow:
    0 20px 40px rgba(0,0,0,.18),
    0 6px 12px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.65);

  /* 5px exactos de respiro para la imagen */
  padding: 5px;
  overflow: hidden;
}

/* Imagen: ocupa todo el alto del frame con proporción correcta */
.problem-frame img {
  height: 100%;
  width: auto;
  max-width: calc(100% - 0px);  /* sin margen extra horizontal */
  object-fit: contain;          /* no deforma ni recorta */
  border-radius: .8rem;
  filter: contrast(1.04) brightness(0.99);
}

/* Chips de síntomas (reposicionados y sobrios) */
.chip {
  position: absolute;
  padding: .45rem .9rem;
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 500;
  color: #111;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
}
.chip:nth-of-type(1){ top: 10%; left: 6%; }
.chip:nth-of-type(2){ top: 28%; right: 8%; }
.chip:nth-of-type(3){ bottom: 22%; left: 8%; }
.chip:nth-of-type(4){ bottom: 6%;  right: 8%; }

/* ============ DERECHA (copy ejecutivo) ============ */
.problem-copy {
  height: 100%;
  min-height: var(--problem-pane-min); /* misma altura base que la izquierda */
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1.2rem;
  padding: 2.4rem 2.8rem;
  box-shadow:
    0 12px 32px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.70);
}

/* Titular + highlights (ajuste de color para blanco) */
#problem-title {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2vw, 1.9rem); /* ✅ tamaño ajustado */
  color: #0B0D0F;
  text-align: center;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.015em;
}


/* tono gris técnico para “core funcional” */
#problem-title .hl--brass {
  color: #4d5257;
  font-weight: 700;
}

/* segunda línea más expresiva, sin fondo, con transición suave de color */
#problem-title .hl-focus {
  display: inline-block;
  color: #00A7D0;
  font-weight: 800;
  font-size: 0.96em; /* un poco más pequeño para jerarquía */
  background: linear-gradient(90deg, #00A7D0 0%, #00b8e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* centrado en pantallas pequeñas */
@media (max-width: 1160px) {
  #problem-title {
    text-align: center;
  }
}

#problema .hl,
#problema .hl--jade { color: #00A7D0; font-weight: 700; } /* azul-teal corporativo legible en claro */
#problema .hl--brass { color: #464B50; }
#problema .section-intro { color: #1A1F24; opacity: .95; }



/* Tarjetas de bullets: equilibrio con el mock */
.problem-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.problem-block {
  background: #ffffffcc; /* blanco con un touch de transparencia */
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1rem;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.problem-block h3 {
  margin: 0 0 .9rem 0;
  color: #0B0D0F;
  font-size: 1.02rem;
  font-weight: 700;
}

/* Un solo marcador por ítem (evita doble icono) */
.problem-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.problem-block li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.55;
  color: #111;
  font-size: .98rem;
}
.problem-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00A7D0;
}
.problem-block li::marker { content: none; }

/* CTA (si mantienes el <a> plano) */
.cta-inline { margin-top: 1.6rem; text-align: center; }
.cta-inline .link-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.1rem;
  border-radius: .9rem;
  font-weight: 700;
  background: linear-gradient(180deg, #00A7D0, #0b8eb1);
  color: #052029;
  border: none;
  box-shadow: 0 10px 26px rgba(0,167,208,.28);
  transition: transform .16s ease-out, box-shadow .16s ease-out;
}
.cta-inline .link-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,167,208,.34); }
.cta-inline .link-cta:active { transform: none; }



#main {
  margin-top: 82px;
}
@media (max-width: 1160px) {
  #main {
    margin-top: 65px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .problem-frame,
  .problem-copy {
    min-height: auto;
    height: auto;
  }
  .problem-frame { padding: 5px; }            /* mantenemos el respiro exacto */
  .problem-copy  { padding: 1.8rem; }
  .problem-columns { grid-template-columns: 1fr; }
  #problem-title, #problema .section-intro { text-align: center; }
}

@media (max-width: 768px) {

  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* Quitar cualquier margen raro del main */
  #main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #hero {
    margin-top: -70px;
  }
}
/* FIX — Remove white line under navbar */
header.header_area {
  background: var(--jade-700);
  border-bottom: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar.navbar-expand-lg {
  background: var(--jade-700);
  border-bottom: none !important;
}

@media (max-width: 768px) {

  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* Remove all offsets forced on main */
  #main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Fix hero alignment on mobile */
  #hero {
    padding-top: 120px !important;  /* espacio correcto debajo del navbar */
    margin-top: 0 !important;
  }

}


html, body {
    background: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

section, div, img, figure {
    margin: 0 !important;
    padding: 0;
}

* {
    box-sizing: border-box;
}

#main, main {
    background: #000 !important;
}

/* CTA Extra link (under the two main buttons) */
.cta-extra {
  margin-top: 1.5rem;
  text-align: center;
}

.cta-extra a {
  color: var(--ice, #8ff2e6);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  opacity: 0.85;
  transition: 0.25s ease;
}

.cta-extra a span {
  color: #fff;
  font-weight: 600;
}

.cta-extra a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Improve spacing for button group */
.cta-group {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 600px) {
  .cta-group {
    flex-direction: column;
    gap: 0.75rem;
  }
}
/* === HERO FIX: center content perfectly on ALL screens === */
#hero .container,
#hero .hero-vertical {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-items: center !important;
  text-align: center !important;
}

/* === UNIVERSAL CONTAINER FIX (desktop only) === */
@media (min-width: 769px) {
  #main > section > .container {
    width: min(100% - 4rem, 1200px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* === REMOVE mobile override that broke alignment === */
@media (max-width: 768px) {
  #main > section > .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}
/* === HERO MOBILE FIX (CENTER PERFECTLY) === */
@media (max-width: 768px) {
  #hero .container.hero-vertical {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  /* Center text block inside */
  #hero h1,
  #hero .hero-title,
  #hero * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
