/* ============================================================
   EVMING Design System v1.0
   light-first · industrial-tech · premium · B2B conversion
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Color palette */
  --color-deep-ink:       #0b1320;
  --color-slate:          #334155;
  --color-modern-teal:    #073b42;
  --color-aqua-accent:    #22c7d6;
  --color-soft-mint:      #8ee3cf;
  --color-warm-light:     #f7f9f8;
  --color-cool-gray:      #dbe4e8;
  --color-signal-amber:   #ffb84d;

  /* Semantic */
  --color-success: #073b42;
  --color-warning: #ffb84d;
  --color-error:   #dc2626;
  --color-info:    #22c7d6;

  /* Surface aliases */
  --text-primary:   var(--color-deep-ink);
  --text-secondary: var(--color-slate);
  --text-inverse:   var(--color-warm-light);
  --text-muted:     rgb(51 65 85 / .72);

  --surface-page: var(--color-warm-light);
  --surface-card: #fff;
  --surface-soft: rgb(219 228 232 / .36);
  --surface-dark: var(--color-deep-ink);

  --border-soft:        rgb(219 228 232 / .78);
  --border-strong:      rgb(51 65 85 / .18);
  --border-glass-light: rgb(255 255 255 / .72);
  --border-glass-dark:  rgb(255 255 255 / .16);

  /* Typography */
  --font-base: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-display-xl: clamp(2rem, 3.5vw, 3.25rem);   /* H1 max 52px */
  --font-size-display-lg: clamp(1.75rem, 3vw, 2.75rem);  /* H2 max 44px */
  --font-size-heading-xl: clamp(1.5rem, 2.5vw, 2.25rem); /* H3 max 36px */
  --font-size-heading-lg: clamp(1.25rem, 2vw, 1.75rem);  /* H4 max 28px */
  --font-size-heading-md: 1.375rem;                       /* H5 22px */
  --font-size-body-lg:    1.125rem;
  --font-size-body-md:    1rem;
  --font-size-body-sm:    .875rem;
  --font-size-caption:    .75rem;

  /* Spacing (4px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:    0 8px 24px rgb(11 19 32 / .08);
  --shadow-md:    0 16px 48px rgb(11 19 32 / .12);
  --shadow-lg:    0 24px 80px rgb(11 19 32 / .16);
  --shadow-glass: 0 20px 60px rgb(11 19 32 / .18);

  /* Layout */
  --container-max:     1180px;
  --container-padding: clamp(20px, 5vw, 72px);

  /* Motion */
  --ease-standard:    cubic-bezier(.2, .8, .2, 1);
  --transition-fast:  160ms var(--ease-standard);
  --transition-base:  220ms var(--ease-standard);
  --transition-slow:  320ms var(--ease-standard);
}

/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: var(--font-size-body-md);
  line-height: 1.6;
  background: var(--surface-page);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------ */
.ev-container {
  width: min(100% - calc(var(--container-padding) * 2), var(--container-max));
  margin-inline: auto;
}

/* Section vertical rhythm */
.ev-section {
  padding-block: var(--space-24);
}

.ev-section--sm  { padding-block: var(--space-16); }
.ev-section--lg  { padding-block: calc(var(--space-24) + var(--space-12)); }
.ev-section--dark { background: var(--color-deep-ink); }
.ev-section--soft { background: rgb(219 228 232 / .22); }

/* ------------------------------------------------------------
   4. GLASS SYSTEM
   ------------------------------------------------------------ */
.glass-light {
  background: rgb(255 255 255 / .58);
  border: 1px solid rgb(255 255 255 / .72);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.glass-dark {
  background: rgb(11 19 32 / .58);
  border: 1px solid rgb(255 255 255 / .16);
  box-shadow: 0 24px 80px rgb(0 0 0 / .28);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.glass-teal {
  background: rgb(7 59 66 / .16);
  border: 1px solid rgb(142 227 207 / .34);
  box-shadow: 0 20px 60px rgb(7 59 66 / .16);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-light { background: rgb(255 255 255 / .92); }
  .glass-dark  { background: rgb(11 19 32 / .94); }
  .glass-teal  { background: rgb(7 59 66 / .92); }
}

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0 var(--space-8);
  color: #fff;
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  /* Gradient: deep teal → brand teal → aqua */
  background: linear-gradient(130deg, #031e23 0%, #073b42 52%, #0d616e 100%);
  background-size: 220% 100%;
  background-position: 0% 0%;
  /* Glass border */
  border: 1px solid rgb(255 255 255 / .20);
  border-radius: var(--radius-pill);
  /* Inner top highlight line */
  box-shadow:
    0 4px 20px rgb(7 59 66 / .30),
    inset 0 1px 0 rgb(255 255 255 / .18);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 260ms var(--ease-standard),
    box-shadow 260ms var(--ease-standard),
    background-position 420ms var(--ease-standard);
}

/* Shimmer sweep layer */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgb(255 255 255 / .14) 50%,
    transparent 75%
  );
  transform: translateX(-110%);
  transition: transform 560ms var(--ease-standard);
  pointer-events: none;
}

.btn-primary:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow:
    0 10px 36px rgb(7 59 66 / .50),
    0 2px 8px rgb(0 0 0 / .12),
    inset 0 1px 0 rgb(255 255 255 / .22);
}

.btn-primary:hover::before {
  transform: translateX(110%);
}

.btn-primary:active {
  transform: translateY(0px);
  box-shadow:
    0 4px 16px rgb(7 59 66 / .35),
    inset 0 1px 0 rgb(255 255 255 / .14);
  transition-duration: 80ms;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0 var(--space-8);
  color: var(--color-deep-ink);
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  background: rgb(255 255 255 / .72);
  border: 1px solid rgb(51 65 85 / .22);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .80);
  cursor: pointer;
  transition:
    color 240ms var(--ease-standard),
    background 240ms var(--ease-standard),
    border-color 240ms var(--ease-standard),
    box-shadow 240ms var(--ease-standard),
    transform 260ms var(--ease-standard);
}
.btn-secondary:hover {
  color: var(--color-modern-teal);
  background: #fff;
  border-color: rgb(7 59 66 / .40);
  box-shadow:
    0 6px 20px rgb(7 59 66 / .14),
    inset 0 1px 0 rgb(255 255 255 / .90);
  transform: translateY(-2px);
}
.btn-secondary:active {
  transform: translateY(0px);
  transition-duration: 80ms;
}

/* ------------------------------------------------------------
   6. BADGE
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: 8px 14px;
  color: var(--color-modern-teal);
  font-size: var(--font-size-caption);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgb(142 227 207 / .16);
  border: 1px solid rgb(7 59 66 / .18);
  border-radius: var(--radius-pill);
}

/* ------------------------------------------------------------
   7. SECTION HEADER PATTERN
   ------------------------------------------------------------ */
.ev-section-header { margin-bottom: var(--space-12); }
.ev-section-header--center { text-align: center; }
.ev-section-header--center .ev-lead { margin-inline: auto; }

.ev-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  color: var(--color-modern-teal);
  font-size: var(--font-size-caption);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ev-eyebrow--light { color: var(--color-soft-mint); }

.ev-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.ev-title {
  color: var(--color-deep-ink);
  font-size: var(--font-size-heading-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: var(--space-5);
}
.ev-title--light { color: #fff; }
.ev-title--display { font-size: var(--font-size-display-lg); }

.ev-lead {
  max-width: 600px;
  color: var(--color-slate);
  font-size: var(--font-size-body-lg);
  line-height: 1.65;
}
.ev-lead--light { color: rgb(219 228 232 / .9); }

/* ------------------------------------------------------------
   8. TOPBAR
   ------------------------------------------------------------ */
.ev-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 38px;
  /* Dark gradient with subtle teal pulse */
  background:
    linear-gradient(90deg,
      #06100f 0%,
      #091a18 40%,
      #0a1f1d 60%,
      #06100f 100%
    );
  border-bottom: 1px solid rgb(255 255 255 / .07);
  box-shadow: 0 1px 0 rgb(14 165 160 / .12);
  transform: translateY(0);
  transition: transform 300ms cubic-bezier(.4, 0, .2, 1);
}

.ev-topbar--hidden {
  transform: translateY(-100%);
}

.ev-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-5);
  height: 100%;
  /* Match header's padding exactly — no max-width wrapper */
  padding-inline: var(--container-padding);
}

.ev-topbar__contacts {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.ev-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .01em;
  color: rgb(255 255 255 / .65);
  text-decoration: none;
  transition: color 180ms ease;
}
.ev-topbar__item:hover { color: rgb(255 255 255 / .95); }

.ev-topbar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(142 227 207 / .75);
}

.ev-topbar__sep {
  width: 1px;
  height: 14px;
  background: rgb(255 255 255 / .12);
  flex-shrink: 0;
}

.ev-topbar__social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-left: var(--space-4);
  border-left: 1px solid rgb(255 255 255 / .10);
}

.ev-topbar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgb(255 255 255 / .55);
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 50%;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.ev-topbar__social-link:hover {
  color: #fff;
  background: rgb(255 255 255 / .08);
  border-color: rgb(255 255 255 / .30);
}

/* Offset body so fixed topbar doesn't overlap */
body.evming-homepage { padding-top: 38px; }

/* Topbar responsive — simplify progressively */
@media (max-width: 768px) {
  /* Hide "Llámenos" label and second phone on tablet */
  .ev-topbar__label { display: none; }
  .ev-topbar__contacts .ev-topbar__sep:first-of-type,
  .ev-topbar__contacts .ev-topbar__item:nth-child(3) { display: none; }
  .ev-topbar__inner { gap: var(--space-4); }
  .ev-topbar__contacts { gap: var(--space-3); }
}

@media (max-width: 480px) {
  /* On mobile: show only social icons */
  .ev-topbar__contacts { display: none; }
  .ev-topbar__social { border-left: none; padding-left: 0; }
  .ev-topbar__inner { justify-content: flex-end; }
}

/* Smooth transition for header's top offset */
.ev-header { transition: top 300ms cubic-bezier(.4, 0, .2, 1), background 300ms ease; }

.ev-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-8);
  min-height: 88px;
  padding-inline: var(--container-padding);
  background: linear-gradient(130deg, #031e23 0%, #073b42 52%, #0d616e 100%);
  border-bottom: 1px solid rgb(255 255 255 / .20);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / .08), 0 4px 24px rgb(11 19 32 / .18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  margin-bottom: 16px;
}

/* Admin bar offset */
.admin-bar .ev-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .ev-header { top: 46px; }
}

.ev-brand {
  display: flex;
  align-items: center;
}
.ev-brand img {
  height: 48px;
  width: auto;
}

.ev-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  list-style: none;
}
.ev-nav a {
  color: rgb(255 255 255 / .90);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color var(--transition-fast);
}
.ev-nav a:hover { color: #fff; }

.ev-header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding-inline: var(--space-5);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgb(255 255 255 / .50);
  border-radius: var(--radius-pill);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}
.ev-header__cta:hover {
  color: var(--color-deep-ink);
  background: #fff;
  border-color: #fff;
}

/* ------------------------------------------------------------
   9. HERO — full-frame video · editorial · premium
   ------------------------------------------------------------ */

/* Outer section — warm background visible around the frame */
.ev-hero {
  padding: 0 0 var(--space-5);
  background: var(--color-warm-light);
}

/* Let the frame escape the default 1180px container */
.ev-hero .ev-container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 3vw, 40px);
}

/* The main rounded video container — 80% of viewport, never past 1440px */
.ev-hero__frame {
  position: relative;
  height: 82vh;
  min-height: 520px;
  max-height: 820px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgb(11 19 32 / .28);
  isolation: isolate;
}

/* Video fills the entire frame */
.ev-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(.82) brightness(.96);
}

/* Gradient overlay — directional for editorial composition */
.ev-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Left-to-right: heavier dark left (text zone) → transparent right */
    linear-gradient(
      100deg,
      rgba(11, 19, 32, .90) 0%,
      rgba(11, 19, 32, .74) 30%,
      rgba(11, 19, 32, .40) 55%,
      rgba(11, 19, 32, .10) 80%,
      rgba(11, 19, 32, .04) 100%
    ),
    /* Bottom-to-top: dark bottom (KPI zone) → transparent above */
    linear-gradient(
      to top,
      rgba(0, 0, 0, .65) 0%,
      rgba(0, 0, 0, .10) 28%,
      rgba(0, 0, 0, 0) 48%
    );
}

/* Content layer — row layout, text left / KPI right, both bottom-aligned */
.ev-hero__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(36px, 5vw, 64px);
}

/* Text content — left side */
.ev-hero__content {
  flex: 1;
  min-width: 0;
  max-width: min(52%, 600px);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Eyebrow badge on dark background */
.ev-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: 7px 14px;
  font-size: var(--font-size-caption);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e3ffcc;
  background: rgb(20 47 50 / .55);
  border: 1px solid rgb(20 47 50 / .70);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: var(--space-5);
}

.ev-hero__badge__dot {
  width: 6px;
  height: 6px;
  background: var(--color-soft-mint);
  border-radius: 50%;
  flex-shrink: 0;
}

.ev-hero__title {
  font-size: var(--font-size-display-xl);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: var(--space-5);
}

.ev-hero__lead {
  max-width: 480px;
  color: rgb(255 255 255 / .78);
  font-size: var(--font-size-body-lg);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

.ev-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

/* Secondary button over dark video background */
.ev-hero__actions .btn-secondary {
  color: #fff;
  background: rgb(255 255 255 / .10);
  border-color: rgb(255 255 255 / .26);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14);
}
.ev-hero__actions .btn-secondary:hover {
  color: var(--color-deep-ink);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 6px 20px rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .90);
}

/* Benefits row */
.ev-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.ev-benefit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: rgb(255 255 255 / .7);
}

.ev-benefit__dot {
  width: 5px;
  height: 5px;
  background: var(--color-soft-mint);
  border-radius: 50%;
  flex-shrink: 0;
}

/* KPI row — 3 glass cards, right side, bottom-aligned with text */
.ev-hero__kpi {
  display: flex;
  gap: 10px;
  max-width: 44%;
  flex-shrink: 0;
  align-self: flex-end;
}

/* Individual glass card */
.ev-kpi-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 1.4vw, 20px) clamp(16px, 1.8vw, 26px);
  background: rgb(0 0 0 / .32);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgb(255 255 255 / .10);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgb(0 0 0 / .24);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ev-kpi-item { background: rgb(20 47 50 / .90); }
}

.ev-kpi-value {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
}

.ev-kpi-label {
  font-size: clamp(9px, .8vw, 11px);
  font-weight: 400;
  line-height: 1.4;
  color: rgb(255 255 255 / .68);
  max-width: 100px;
}

/* ------------------------------------------------------------
   10. STATEMENT — valor + propuesta en dos columnas
   ------------------------------------------------------------ */
.ev-statement {
  padding-block: clamp(56px, 8vw, 100px);
  background: var(--color-warm-light);
  border-top: 1px solid var(--border-soft);
}

.ev-statement__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.ev-statement__title {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
  background: linear-gradient(
    135deg,
    var(--color-modern-teal) 0%,
    #1e293b 65%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ev-statement__body {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  color: var(--color-slate);
  line-height: 1.7;
  max-width: 480px;
}

@media (max-width: 768px) {
  .ev-statement__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .ev-statement__body { max-width: 100%; }
}

/* Marquee container — sits inside ev-statement */
.ev-statement__logos {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--border-soft);
}

/* Overflow clip + gradient masks */
.ev-marquee {
  position: relative;
  overflow: hidden;
}

.ev-marquee::before,
.ev-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 8%, 120px);
  z-index: 2;
  pointer-events: none;
}
.ev-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-warm-light) 20%, transparent 100%);
}
.ev-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-warm-light) 20%, transparent 100%);
}

/* Scrolling track — duplicated content inside */
.ev-marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: max-content;
  padding-block: var(--space-2);
  animation: ev-marquee 36s linear infinite;
  will-change: transform;
}

.ev-marquee__track:hover { animation-play-state: paused; }

@keyframes ev-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual logo chip */
.ev-marquee__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 18px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgb(51 65 85 / .52);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  user-select: none;
  transition: color 200ms ease, border-color 200ms ease;
}
.ev-marquee__logo:hover {
  color: var(--color-modern-teal);
  border-color: rgb(7 59 66 / .30);
}

/* ------------------------------------------------------------
   10. LOGO STRIP (Social Proof)
   ------------------------------------------------------------ */
.ev-logos-strip {
  padding-block: var(--space-12);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
}

.ev-logos-strip__label {
  text-align: center;
  margin-bottom: var(--space-8);
  color: var(--text-muted);
  font-size: var(--font-size-caption);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ev-logos-strip__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-10);
}

.ev-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  color: rgb(51 65 85 / .5);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid rgb(219 228 232 / .6);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}
.ev-brand-logo:hover {
  color: var(--color-slate);
  border-color: rgb(7 59 66 / .28);
  box-shadow: var(--shadow-sm);
}

.ev-brand-logo svg {
  width: 20px;
  height: 20px;
  opacity: .55;
  flex-shrink: 0;
}

/* Client badges */
.ev-clients-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.ev-client-badge {
  padding: var(--space-2) var(--space-5);
  color: var(--color-slate);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
}

/* ------------------------------------------------------------
   11. PROBLEM / SOLUTION
   ------------------------------------------------------------ */
.ev-problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.ev-problem__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ev-problem__visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(.75) brightness(1.05);
}

.ev-problem__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgb(11 19 32 / .55) 0%,
    rgb(7 59 66 / .18) 100%
  );
}

.ev-problem__visual-tag {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  padding: var(--space-2) var(--space-4);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgb(255 184 77 / .28);
  border: 1px solid rgb(255 184 77 / .44);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ev-solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.ev-solution-item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.ev-solution-item:hover {
  border-color: rgb(7 59 66 / .32);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.ev-solution-item__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--color-modern-teal);
  background: rgb(142 227 207 / .14);
  border: 1px solid rgb(7 59 66 / .16);
  border-radius: var(--radius-md);
}
.ev-solution-item__icon svg {
  width: 22px;
  height: 22px;
}

.ev-solution-item__title {
  font-size: var(--font-size-body-md);
  font-weight: 600;
  color: var(--color-deep-ink);
  margin-bottom: var(--space-2);
}

.ev-solution-item__text {
  font-size: var(--font-size-body-sm);
  color: var(--color-slate);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   12. SERVICES GRID
   ------------------------------------------------------------ */
.ev-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.ev-service-card {
  padding: var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}
.ev-service-card:hover {
  border-color: rgb(7 59 66 / .34);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.ev-service-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
  color: var(--color-modern-teal);
  background: rgb(142 227 207 / .14);
  border: 1px solid rgb(7 59 66 / .18);
  border-radius: var(--radius-md);
}
.ev-service-card__icon svg {
  width: 24px;
  height: 24px;
}

.ev-service-card__title {
  font-size: var(--font-size-body-md);
  font-weight: 600;
  color: var(--color-deep-ink);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.ev-service-card__text {
  font-size: var(--font-size-body-sm);
  color: var(--color-slate);
  line-height: 1.65;
}

.ev-service-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-5);
  padding: 5px 10px;
  color: var(--color-modern-teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgb(142 227 207 / .12);
  border: 1px solid rgb(7 59 66 / .14);
  border-radius: var(--radius-pill);
}

/* ------------------------------------------------------------
   13. CASE STUDY CARDS
   ------------------------------------------------------------ */
.ev-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.ev-case-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}
.ev-case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgb(7 59 66 / .28);
}

.ev-case-card__header {
  padding: var(--space-6) var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ev-case-card__sector {
  padding: 5px 12px;
  color: var(--color-aqua-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgb(34 199 214 / .1);
  border: 1px solid rgb(34 199 214 / .2);
  border-radius: var(--radius-pill);
}

.ev-case-card__body { padding: var(--space-6); }

.ev-case-card__client {
  font-size: var(--font-size-body-md);
  font-weight: 600;
  color: var(--color-deep-ink);
  margin-bottom: var(--space-5);
}

.ev-case-card__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.ev-case-card__item-label {
  flex-shrink: 0;
  width: 72px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}

.ev-case-card__item-text {
  font-size: var(--font-size-body-sm);
  color: var(--color-slate);
  line-height: 1.55;
}

.ev-case-card__result {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: rgb(142 227 207 / .1);
  border: 1px solid rgb(7 59 66 / .14);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-body-sm);
  color: var(--color-slate);
  line-height: 1.55;
}
.ev-case-card__result svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-modern-teal);
  margin-top: 2px;
}

/* CTA card dentro del grid de casos */
.ev-case-card--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-8);
  background: var(--color-deep-ink);
  border-color: transparent;
}
.ev-case-card--cta .ev-title--light {
  font-size: var(--font-size-heading-md);
  margin-bottom: var(--space-4);
}
.ev-case-card--cta p {
  color: rgb(219 228 232 / .75);
  font-size: var(--font-size-body-sm);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

/* ------------------------------------------------------------
   14. CONTACT FORM
   ------------------------------------------------------------ */
.ev-contact-section {
  position: relative;
  overflow: hidden;
}

.ev-contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 50%, rgb(7 59 66 / .12), transparent 40%),
    radial-gradient(ellipse at 10% 80%, rgb(34 199 214 / .06), transparent 30%);
  pointer-events: none;
}

.ev-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-16);
  align-items: start;
}

.ev-contact-info__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.ev-contact-point {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.ev-contact-point__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-modern-teal);
  background: rgb(142 227 207 / .12);
  border: 1px solid rgb(7 59 66 / .14);
  border-radius: var(--radius-sm);
}
.ev-contact-point__icon svg { width: 18px; height: 18px; }

.ev-contact-point__title {
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  color: var(--color-deep-ink);
  margin-bottom: 2px;
}
.ev-contact-point__text {
  font-size: var(--font-size-body-sm);
  color: var(--color-slate);
  line-height: 1.5;
}

/* Form */
.ev-form {
  padding: var(--space-8) var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.ev-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.ev-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.ev-form__group:last-of-type { margin-bottom: 0; }

.ev-form__label {
  font-size: var(--font-size-body-sm);
  font-weight: 620;
  color: var(--color-deep-ink);
}

.ev-form__input,
.ev-form__textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-4);
  color: var(--color-deep-ink);
  font-size: var(--font-size-body-sm);
  background: #fff;
  border: 1px solid var(--color-cool-gray);
  border-radius: var(--radius-sm);
  outline: none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}
.ev-form__input:focus,
.ev-form__textarea:focus {
  border-color: var(--color-modern-teal);
  box-shadow: 0 0 0 4px rgb(7 59 66 / .14);
}

.ev-form__textarea {
  min-height: 120px;
  padding: var(--space-4);
  resize: vertical;
}

.ev-form__submit {
  width: 100%;
  margin-top: var(--space-6);
  min-height: 54px;
  font-size: var(--font-size-body-sm);
}

.ev-form__notice {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--font-size-caption);
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */
.ev-footer {
  background: var(--color-deep-ink);
  padding-block: var(--space-16);
}

.ev-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}

.ev-footer__brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-5);
}

.ev-footer__desc {
  font-size: var(--font-size-body-sm);
  color: rgb(219 228 232 / .55);
  line-height: 1.65;
  max-width: 280px;
}

.ev-footer__col-title {
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  color: #fff;
  letter-spacing: .03em;
  margin-bottom: var(--space-5);
}

.ev-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.ev-footer__links a {
  font-size: var(--font-size-body-sm);
  color: rgb(219 228 232 / .55);
  transition: color var(--transition-fast);
}
.ev-footer__links a:hover { color: var(--color-soft-mint); }

.ev-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  font-size: var(--font-size-caption);
  color: rgb(219 228 232 / .38);
}

/* ------------------------------------------------------------
   16. FOCUS & ACCESSIBILITY
   ------------------------------------------------------------ */
:focus-visible {
  outline: 3px solid rgb(34 199 214 / .65);
  outline-offset: 4px;
}

/* ------------------------------------------------------------
   17. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .ev-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-footer__grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .ev-nav { display: none; }

  .ev-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding-block: var(--space-16);
  }

  .ev-hero__media {
    min-height: 400px;
    clip-path: none;
  }

  .ev-kpi-card {
    position: static;
    width: 100%;
    margin-top: var(--space-4);
    right: auto;
    bottom: auto;
  }

  .ev-problem__grid  { grid-template-columns: 1fr; }
  .ev-contact-grid   { grid-template-columns: 1fr; }
  .ev-cases-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .ev-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    gap: var(--space-4);
  }

  .ev-header__cta { display: none; }

  /* Hero tablet */
  .ev-hero { padding: var(--space-4) 0; }
  .ev-hero .ev-container { padding-inline: clamp(12px, 2vw, 24px); }
  .ev-hero__frame {
    width: min(90%, 1440px);
    height: 92vh;
    min-height: 520px;
    border-radius: 20px;
  }
  .ev-hero__content {
    max-width: 90%;
  }
  .ev-hero__kpi { gap: 8px; }
  .ev-kpi-item { padding: 14px 16px; }
  .ev-kpi-value { font-size: 22px; }
  .ev-kpi-label { font-size: 11px; }

  .ev-cases-grid    { grid-template-columns: 1fr; }
  .ev-services-grid { grid-template-columns: 1fr 1fr; }
  .ev-form__row     { grid-template-columns: 1fr; }
  .ev-footer__grid  { grid-template-columns: 1fr 1fr; }
  .ev-footer__bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
  .ev-section { padding-block: var(--space-16); }
}

@media (max-width: 480px) {
  /* Hero mobile */
  .ev-hero { padding: var(--space-3) 0; }
  .ev-hero__frame {
    height: 95svh;
    min-height: 480px;
    border-radius: 16px;
  }
  .ev-hero__frame { width: 94%; }
  .ev-hero__body { padding: 20px; gap: 16px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .ev-hero__content { max-width: 100%; }
  .ev-hero__kpi { max-width: 100%; width: 100%; }
  .ev-hero__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .ev-hero__lead { font-size: 1rem; }
  .ev-hero__actions { flex-direction: column; }
  .ev-hero__actions a { width: 100%; justify-content: center; }
  .ev-hero__kpi { gap: 6px; }
  .ev-kpi-item { padding: 12px 14px; border-radius: 10px; }
  .ev-kpi-value { font-size: 20px; }
  .ev-kpi-label { font-size: 10px; }

  .ev-services-grid  { grid-template-columns: 1fr; }
  .ev-footer__grid   { grid-template-columns: 1fr; }
}
