/* ============================================================
   ERISA — Web styles (custom for this site)
   Depends on tokens.css for design tokens.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--erisa-paper);
  -webkit-font-smoothing: antialiased;
  line-height: var(--lh-base);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: var(--maxw-container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: 1320px; }

/* ── PRIMITIVES ───────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--erisa-lime-700);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--erisa-lime-500);
}
.eyebrow--navy { color: var(--erisa-navy-700); }
.eyebrow--white { color: var(--erisa-lime-400); }
.eyebrow--white::before { background: var(--erisa-lime-400); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); }

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--erisa-navy-900);
  text-wrap: balance;
  margin: 0;
}
.h-display .accent { color: var(--erisa-lime-600); }

.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--erisa-navy-900);
  margin: 0 0 16px;
  text-wrap: balance;
}
.h-section .accent { color: var(--erisa-lime-600); }

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 58ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 4px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn .chev { font-weight: 900; font-size: 13px; line-height: 1; }
.btn--primary { background: var(--erisa-navy-700); color: #fff; }
.btn--primary .chev { color: var(--erisa-lime-500); }
.btn--primary:hover { background: var(--erisa-navy-600); }
.btn--secondary {
  background: transparent;
  color: var(--erisa-navy-700);
  border: 1.5px solid var(--erisa-navy-200, var(--erisa-navy-100));
  padding: 11.5px 20.5px;
  border-color: #c9d6e6;
}
.btn--secondary .chev { color: var(--erisa-lime-600); }
.btn--secondary:hover {
  background: var(--erisa-navy-50);
  border-color: var(--erisa-navy-700);
}
.btn--accent {
  background: var(--erisa-lime-500);
  color: var(--erisa-navy-900);
}
.btn--accent .chev { color: var(--erisa-navy-900); }
.btn--accent:hover { background: var(--erisa-lime-600); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 11.5px 20.5px;
}
.btn--ghost .chev { color: var(--erisa-lime-400); }
.btn--ghost:hover { border-color: var(--erisa-lime-400); }
.btn--lg { padding: 15px 26px; font-size: 16px; }

.btn .chev::before { content: "❯"; }

/* Arrow link (more chevron) */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--erisa-navy-700);
  transition: color var(--dur-fast);
  cursor: pointer;
}
.arrow-link::after {
  content: "";
  width: 22px; height: 8px;
  background: var(--erisa-lime-500);
  clip-path: polygon(0 35%, 70% 35%, 70% 0, 100% 50%, 70% 100%, 70% 65%, 0 65%);
  transition: transform var(--dur-base) var(--ease-out);
}
.arrow-link:hover { color: var(--erisa-lime-700); }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link--white { color: rgba(255,255,255,0.9); }
.arrow-link--white:hover { color: var(--erisa-lime-400); }

/* Skip link for a11y */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--erisa-navy-700); color: #fff;
  padding: 8px 12px; z-index: 999;
}
.skip-link:focus { top: 0; }

/* ── HEADER ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-1);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.site-header__logo { display: flex; align-items: center; line-height: 0; }
.site-header__logo img { height: 42px; width: auto; }
.site-nav {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.site-nav__item {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  color: var(--fg-2);
  text-decoration: none;
  padding: 10px 14px;
  position: relative;
  transition: color var(--dur-fast);
}
.site-nav__item:hover { color: var(--erisa-navy-700); }
.site-nav__item.is-active { color: var(--erisa-navy-900); font-weight: 600; }
.site-nav__item.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px; height: 2px;
  background: var(--erisa-lime-500);
}
.site-header__cta { display: flex; align-items: center; gap: 8px; }
.site-header__burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  cursor: pointer; padding: 0;
}
.site-header__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--erisa-navy-900);
  margin: 5px auto;
  transition: transform var(--dur-base);
}
.site-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .site-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-1);
    box-shadow: var(--shadow-2);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-base), opacity var(--dur-base);
  }
  .site-nav.is-open {
    transform: translateY(0); opacity: 1; pointer-events: all;
  }
  .site-nav__item { padding: 14px 24px; }
  .site-nav__item.is-active::after { display: none; }
  .site-nav__item.is-active { background: var(--erisa-navy-50); border-left: 3px solid var(--erisa-lime-500); padding-left: 21px; }
  .site-header__burger { display: block; }
  .site-header__cta .btn span.hide-md { display: none; }
}

/* ── HERO — Cinematic full-bleed (default) ─────────────── */

.hero {
  position: relative;
  background: var(--erisa-navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--erisa-navy-900);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(2,42,82,0.95) 0%,
      rgba(2,42,82,0.78) 40%,
      rgba(2,42,82,0.30) 75%,
      rgba(2,42,82,0.05) 100%),
    linear-gradient(180deg,
      rgba(2,42,82,0.2) 0%,
      rgba(2,42,82,0.0) 30%,
      rgba(2,42,82,0.0) 60%,
      rgba(2,42,82,0.65) 100%);
}
/* Subtle technical grid */
.hero__grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 90%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 90%);
  pointer-events: none;
}
.hero__row {
  position: relative;
  z-index: 2;
  padding: 0;
  height: 340px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.hero__copy {
  max-width: 640px;
  position: relative;
}
.hero__copy::before {
  content: ""; position: absolute;
  left: -28px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--erisa-lime-500);
}
.hero .h-display {
  color: #fff;
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}
.hero .lead {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 58ch;
}
.hero .eyebrow { color: var(--erisa-lime-400); }
.hero .eyebrow::before { background: var(--erisa-lime-400); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* "ERISA · 1976" stamp in top-right of hero */
.hero__stamp {
  position: absolute;
  top: 32px; right: 24px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(2,42,82,0.4);
  backdrop-filter: blur(6px);
}
.hero__stamp .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--erisa-lime-500);
}

/* Bottom badge strip (trust indicators inset on photo) */
.hero__badges {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(2,42,82,0.0) 0%, rgba(2,23,42,0.65) 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__badges__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__badges__item {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 16px;
  color: rgba(255,255,255,0.95);
}
.hero__badges__item:last-child { border-right: none; }
.hero__badges__item svg {
  width: 32px; height: 32px;
  color: var(--erisa-lime-400);
  flex-shrink: 0;
}
.hero__badges__lbl {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  line-height: 1.2;
}
.hero__badges__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-top: 3px;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

@media (max-width: 880px) {
  .hero__row { padding: 0; height: 300px; box-sizing: border-box; }
  .hero__badges__row { grid-template-columns: 1fr 1fr; }
  .hero__badges__item:nth-child(2) { border-right: none; }
  .hero__badges__item:nth-child(1),
  .hero__badges__item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero__copy::before { display: none; }
  .hero__stamp { display: none; }
}

/* ── HERO SLIDER (homepage) ──────────────────────────────── */

.hero-slider { padding: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms var(--ease-in-out);
  z-index: 0;
}
.hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slider { position: relative; }
.hero__dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.hero__dot {
  background: rgba(255,255,255,0.45);
  border: none;
  width: 9px; height: 9px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.hero__dot:hover { background: rgba(255,255,255,0.75); }
.hero__dot.is-active { background: var(--erisa-lime-500); transform: scale(1.25); }

@media (max-width: 700px) {
  .hero__dots { gap: 8px; bottom: 12px; }
  .hero__dot { width: 7px; height: 7px; }
}
.hero-slider .hero__row {
  height: 340px;
  padding: 0;
  box-sizing: border-box;
}
.hero-slider .hero .h-display,
.hero-slider .h-display { font-size: clamp(1.5rem, 2.6vw, 2.3rem); margin-bottom: 10px; }
.hero-slider .lead { font-size: 14px; margin-bottom: 16px; }
@media (max-width: 880px) {
  .hero-slider .hero__row { height: 300px; padding: 0; }
}

/* Legacy chevron hero (kept for Tweak toggle) */
.hero.hero--chevron {
  background: linear-gradient(180deg, var(--erisa-paper) 0%, var(--erisa-cloud) 100%);
  color: var(--fg-1);
}
.hero.hero--chevron .hero__bg,
.hero.hero--chevron .hero__scrim,
.hero.hero--chevron .hero__grid,
.hero.hero--chevron .hero__stamp,
.hero.hero--chevron .hero__badges { display: none; }
.hero.hero--chevron .hero__row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 96px;
  min-height: 540px;
}
.hero.hero--chevron .hero__copy {
  max-width: 580px;
}
.hero.hero--chevron .hero__copy::before { display: none; }
.hero.hero--chevron .h-display { color: var(--erisa-navy-900); }
.hero.hero--chevron .lead { color: var(--fg-2); }
.hero.hero--chevron .eyebrow { color: var(--erisa-lime-700); }
.hero.hero--chevron .eyebrow::before { background: var(--erisa-lime-500); }
.hero.hero--chevron .hero__visual { display: block; }

.hero__visual {
  position: relative;
  height: 540px;
  display: none; /* hidden by default; only shown in chevron variant */
}

/* Arrow chevron mosaic — signature ERISA motif */
.chevron-group {
  position: relative;
  width: 100%;
  height: 100%;
}
.chevron {
  --pt: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%, 18% 50%);
  clip-path: var(--pt);
  position: absolute;
  background-size: cover;
  background-position: center;
  background-color: var(--erisa-cloud);
}
.chevron--lime { background: var(--erisa-lime-500); }
.chevron--lime-dark { background: var(--erisa-lime-600); }
.chevron--navy { background: var(--erisa-navy-700); }
.chevron--ghost {
  background: var(--erisa-navy-50);
  border: 1px dashed var(--erisa-navy-100);
}
.chevron--placeholder {
  background:
    radial-gradient(circle at 30% 40%, rgba(151,182,82,0.18) 0%, transparent 50%),
    linear-gradient(135deg, var(--erisa-navy-700) 0%, var(--erisa-navy-800) 50%, var(--erisa-navy-900) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.chevron--placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}
.chevron--placeholder::after {
  content: attr(data-label);
  display: block;
  padding: 0 32px 0 14%;
  text-align: center;
  position: relative;
}

/* Specific hero layout: large left photo, then a stack of smaller chevrons */
.hero__visual .ch-1 {
  left: -8%; top: 4%; width: 76%; height: 92%;
  z-index: 3;
}
.hero__visual .ch-2 {
  right: 6%; top: -4%; width: 48%; height: 40%;
  z-index: 2;
}
.hero__visual .ch-3 {
  right: 6%; top: 32%; width: 48%; height: 40%;
  z-index: 2;
}
.hero__visual .ch-4 {
  right: 6%; top: 68%; width: 48%; height: 40%;
  z-index: 2;
}
.hero__visual .ch-arrow {
  right: -8%; top: 42%; width: 16%; height: 22%;
  z-index: 1;
}

/* Hero variant: full photo + scrim */
.hero--photo .hero__visual { display: none; }
.hero--photo {
  background: var(--erisa-navy-900);
  color: #fff;
}
.hero--photo .hero__copy .h-display { color: #fff; }
.hero--photo .lead { color: rgba(255,255,255,0.86); }
.hero--photo .hero__row {
  grid-template-columns: 1fr;
  min-height: 420px;
  padding: 80px 0;
}
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(2,42,82,0.95) 0%, rgba(2,42,82,0.6) 100%),
              var(--hero-photo, none) center/cover;
}
.hero--photo .container { position: relative; z-index: 1; }

/* ── SERVICE TILES (homepage row) ─────────────────────────── */

.svc-tiles {
  background: var(--erisa-paper);
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border-1);
}
.svc-tiles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.svc-tile {
  display: flex;
  gap: 22px;
  padding: 28px 28px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border-1);
  transition: background var(--dur-base);
}
.svc-tile:last-child { border-right: none; }
.svc-tile:hover { background: var(--erisa-cloud); }
.svc-tile:hover .svc-tile__icon { background: var(--erisa-lime-100); }
.svc-tile:hover .arrow-link::after { transform: translateX(4px); }
.svc-tile__icon {
  flex-shrink: 0;
  width: 88px; height: 88px;
  border-radius: 999px;
  background: var(--erisa-navy-50);
  color: var(--erisa-navy-700);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-base);
}
.svc-tile__icon svg { width: 44px; height: 44px; stroke-width: 1.6; }
.svc-tile__body { flex: 1; min-width: 0; }
.svc-tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  color: var(--erisa-navy-900);
  margin: 0 0 6px;
}
.svc-tile__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 12px;
}
.svc-tile .arrow-link {
  font-size: 0; gap: 0;
}
.svc-tile .arrow-link::after { transform: translateX(0); }

@media (max-width: 980px) {
  .svc-tiles__grid { grid-template-columns: 1fr 1fr; }
  .svc-tile:nth-child(2) { border-right: none; }
  .svc-tile:nth-child(1), .svc-tile:nth-child(2) { border-bottom: 1px solid var(--border-1); }
}
@media (max-width: 600px) {
  .svc-tiles__grid { grid-template-columns: 1fr; }
  .svc-tile { border-right: none; border-bottom: 1px solid var(--border-1); }
  .svc-tile:last-child { border-bottom: none; }
}

/* ── TRUST BAR (stats / certifications row) ──────────────── */

.trust-bar {
  background: var(--erisa-cloud);
  padding: 24px 0;
}
.trust-bar__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px;
  border-right: 1px solid #d8dde6;
}
.trust-item:last-child { border-right: none; }
.trust-item__icon {
  width: 64px; height: 64px;
  color: var(--erisa-navy-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item__icon svg { width: 48px; height: 48px; }
.trust-item__title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
  line-height: 1.2;
}
.trust-item__strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--erisa-navy-900);
  line-height: 1.05;
  margin-top: 3px;
  text-transform: lowercase;
}
.trust-item__strong .num { font-size: 38px; color: var(--erisa-lime-700); }

@media (max-width: 900px) {
  .trust-bar__row { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid #d8dde6; padding-bottom: 16px; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { padding-top: 16px; }
}

/* ── FEATURED SERVICE BAND (Transformadores callout) ─────── */

.feat-svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.feat-svc__copy {
  background: var(--erisa-navy-700);
  color: #fff;
  padding: 64px 56px 64px max(24px, calc((100vw - 1200px) / 2 + 24px));
  position: relative;
  overflow: hidden;
}
.feat-svc__copy::before {
  content: "";
  position: absolute;
  left: -60px; top: 50%;
  transform: translateY(-50%);
  width: 320px; height: 320px;
  background: var(--erisa-navy-800);
  clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%, 18% 50%);
  opacity: 0.6;
  pointer-events: none;
}
.feat-svc__copy > * { position: relative; }
.feat-svc__copy .eyebrow { color: var(--erisa-lime-400); }
.feat-svc__copy .eyebrow::before { background: var(--erisa-lime-400); }
.feat-svc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
}
.feat-svc__copy p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  margin: 0 0 24px;
  max-width: 44ch;
}
.feat-svc__img {
  background-size: cover;
  background-position: center;
  min-height: 360px;
}

@media (max-width: 880px) {
  .feat-svc { grid-template-columns: 1fr; }
  .feat-svc__copy { padding: 48px 24px; }
  .feat-svc__img { min-height: 260px; }
}

/* ── CONTACT STRIP (bottom of pages) ─────────────────────── */

.contact-strip {
  background: var(--erisa-paper);
  padding: 56px 0 48px;
  border-top: 1px solid var(--border-1);
}
.contact-strip__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--erisa-navy-900);
  margin: 0 0 4px;
}
.contact-strip__title .accent { color: var(--erisa-lime-600); }
.contact-strip__sub {
  font-size: 14px; line-height: 1.55; color: var(--fg-3);
  max-width: 36ch;
}
.contact-strip__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.contact-item {
  display: flex; gap: 16px; align-items: center;
}
.contact-item__icon {
  width: 64px; height: 64px;
  background: var(--erisa-navy-50);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--erisa-navy-700);
}
.contact-item__icon svg { width: 28px; height: 28px; }
.contact-item__strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--erisa-navy-900);
  line-height: 1.15;
  margin-bottom: 2px;
  word-break: break-word;
}
.contact-item__sub {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
}
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover .contact-item__strong { color: var(--erisa-navy-700); }

@media (max-width: 900px) {
  .contact-strip__row { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .contact-strip__row { grid-template-columns: 1fr; }
}

/* ── FOOTER ───────────────────────────────────────────────── */

.site-footer {
  background: var(--erisa-navy-900);
  color: rgba(255,255,255,0.84);
  font-size: 14px;
}
.site-footer__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 40px;
}
.site-footer__brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; opacity: 0.95; }
.site-footer__about {
  font-size: 13.5px; line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 36ch;
  margin: 0 0 16px;
}
.site-footer__certs {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.cert-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
}
.cert-chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--erisa-lime-500); }
.site-footer h5 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--erisa-lime-400);
  margin: 0 0 18px;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a {
  color: rgba(255,255,255,0.84);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  transition: color var(--dur-fast);
}
.site-footer__list a::before {
  content: ""; width: 10px; height: 6px;
  background: var(--erisa-lime-500);
  clip-path: polygon(0 35%, 70% 35%, 70% 0, 100% 50%, 70% 100%, 70% 65%, 0 65%);
}
.site-footer__list a:hover { color: var(--erisa-lime-400); }
.site-footer__addr {
  font-size: 13.5px; line-height: 1.7;
  color: rgba(255,255,255,0.84);
}
.site-footer__addr strong { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }
.site-footer__addr a { color: inherit; text-decoration: none; }
.site-footer__addr a:hover { color: var(--erisa-lime-400); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.site-footer__bottomRow {
  display: flex; gap: 24px; align-items: center;
  height: 56px;
}
.site-footer__bottomRow > .spacer { flex: 1; }
.site-footer__bottomRow a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer__bottomRow a:hover { color: var(--erisa-lime-400); }

/* Light footer variant */
.site-footer.is-light {
  background: var(--erisa-cloud);
  color: var(--fg-2);
}
.site-footer.is-light .site-footer__brand img { filter: none; }
.site-footer.is-light .site-footer__about,
.site-footer.is-light .site-footer__addr { color: var(--fg-2); }
.site-footer.is-light .site-footer__addr strong { color: var(--erisa-navy-900); }
.site-footer.is-light .site-footer__addr a:hover { color: var(--erisa-lime-700); }
.site-footer.is-light h5 { color: var(--erisa-navy-700); }
.site-footer.is-light .site-footer__list a { color: var(--fg-2); }
.site-footer.is-light .site-footer__list a:hover { color: var(--erisa-lime-700); }
.site-footer.is-light .cert-chip {
  background: #fff;
  border-color: var(--border-1);
  color: var(--fg-2);
}
.site-footer.is-light .site-footer__bottom { border-top-color: #d8dde6; color: var(--fg-3); }
.site-footer.is-light .site-footer__bottomRow a { color: var(--fg-3); }

@media (max-width: 900px) {
  .site-footer__row { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer__row { grid-template-columns: 1fr; }
  .site-footer__bottomRow { flex-direction: column; height: auto; padding: 20px 0; gap: 8px; }
}

/* ============================================================
   PAGE-LEVEL: GENERIC SECTIONS / BLOCKS
   ============================================================ */

.section { padding: 88px 0; }
.section--tint { background: var(--erisa-cloud); }
.section--navy { background: var(--erisa-navy-900); color: #fff; }
.section--narrow { padding: 64px 0; }
.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section__head.single {
  grid-template-columns: 1fr;
  text-align: left;
  max-width: 720px;
}

/* ── EMPRESA-style differentiators cards (4-up) ──────────── */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.diff-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow var(--dur-base);
}
.diff-card:hover { box-shadow: var(--shadow-2); }
.diff-card__icon {
  width: 64px; height: 64px;
  color: var(--erisa-navy-700);
  display: flex; align-items: center; justify-content: center;
}
.diff-card__icon svg { width: 44px; height: 44px; stroke-width: 1.5; }
.diff-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--erisa-navy-800);
  margin: 0;
  line-height: 1.15;
}
.diff-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .diff-grid { grid-template-columns: 1fr; } }

/* ── EMPRESA-style "how we work" split ───────────────────── */

.how-split {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 56px;
  align-items: stretch;
}
.how-split__copy { max-width: 380px; }
.how-split__copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; color: var(--erisa-navy-900); margin-bottom: 16px; }
.how-split__copy h2 .accent { color: var(--erisa-lime-600); }
.how-split__copy p { font-size: 14.5px; line-height: 1.65; color: var(--fg-2); margin: 0 0 10px; }
.how-split__img {
  background-size: cover; background-position: center;
  border-radius: 4px;
  min-height: 220px;
}
.how-split__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
.feat {
  display: flex; flex-direction: column; gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-1);
}
.feat__icon {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: linear-gradient(155deg, var(--erisa-navy-50) 0%, var(--erisa-cloud) 100%);
  border: 1px solid var(--erisa-navy-100);
  color: var(--erisa-navy-700);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base), border-color var(--dur-base);
}
.feat:hover .feat__icon {
  background: linear-gradient(155deg, var(--erisa-lime-100) 0%, var(--erisa-navy-50) 100%);
  border-color: var(--erisa-lime-500);
  transform: translateY(-3px);
}
.feat__icon svg { width: 30px; height: 30px; stroke-width: 1.75; }
.feat__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--erisa-navy-900);
  line-height: 1.2;
}
.feat__desc { font-size: 13px; line-height: 1.5; color: var(--fg-3); margin: 0; }

@media (max-width: 980px) {
  .how-split { grid-template-columns: 1fr; gap: 32px; }
  .how-split__features { grid-template-columns: 1fr 1fr; }
}

/* ── SECTOR BAR (small icons strip) ──────────────────────── */

.sector-bar {
  background: var(--erisa-cloud);
  padding: 20px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.sector-bar__row {
  display: grid;
  grid-template-columns: minmax(180px, auto) repeat(6, 1fr);
  align-items: center;
  gap: 16px;
}
.sector-bar__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--erisa-navy-900);
  line-height: 1.2;
  position: relative;
  padding-left: 16px;
}
.sector-bar__label::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 3px; background: var(--erisa-lime-500);
}
.sector-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--erisa-navy-700);
  text-decoration: none;
}
.sector-item__icon svg { width: 44px; height: 44px; stroke-width: 1.5; }
.sector-item__lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--erisa-navy-900);
}

@media (max-width: 1000px) {
  .sector-bar__row {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
  }
  .sector-bar__label { grid-column: 1 / -1; padding-left: 0; text-align: left; }
  .sector-bar__label::before { display: none; }
}
@media (max-width: 520px) {
  .sector-bar__row { grid-template-columns: 1fr 1fr; }
}

/* ── PAGE HERO (inner pages — same cinematic treatment, smaller) ── */

.page-hero {
  position: relative;
  background: var(--erisa-navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--erisa-navy-900);
}
.page-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(2,42,82,0.95) 0%,
      rgba(2,42,82,0.78) 40%,
      rgba(2,42,82,0.35) 80%,
      rgba(2,42,82,0.10) 100%);
}
.page-hero__grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 90%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 90%);
  pointer-events: none;
}
.page-hero__row {
  position: relative;
  z-index: 2;
  padding: 0;
  height: 340px;
  display: flex;
  align-items: center;
}
.page-hero__copy {
  max-width: 680px;
  position: relative;
}
.page-hero__copy::before {
  content: ""; position: absolute;
  left: -24px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--erisa-lime-500);
}
.page-hero__copy .h-display {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  margin-bottom: 12px;
  color: #fff;
}
.page-hero__copy .lead {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.86);
  max-width: 56ch;
  margin-bottom: 0;
}
.page-hero__copy .eyebrow { color: var(--erisa-lime-400); }
.page-hero__copy .eyebrow::before { background: var(--erisa-lime-400); }
.page-hero__crumbs {
  display: flex; gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.page-hero__crumbs a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.page-hero__crumbs a:hover { color: var(--erisa-lime-400); }
.page-hero__crumbs span.sep { color: rgba(255,255,255,0.35); }
/* Hide the old visual block */
.page-hero__visual { display: none; }

@media (max-width: 880px) {
  .page-hero__row { padding: 0; height: 300px; }
  .page-hero__copy::before { display: none; }
}

/* ============================================================
   PAGE: SERVICIOS — group hero video + compact info cards
   ============================================================ */

.svc-toc {
  background: #fff;
  border-bottom: 1px solid var(--border-1);
  position: sticky;
  top: 78px;
  z-index: 40;
}
.svc-toc__row {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: thin;
}
.svc-toc__row::-webkit-scrollbar { height: 4px; }
.svc-toc__row::-webkit-scrollbar-thumb { background: var(--erisa-mist); border-radius: 4px; }
.svc-toc__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--border-1);
  border-radius: 999px;
  white-space: nowrap;
  transition: all var(--dur-fast);
  display: inline-flex; align-items: center; gap: 8px;
}
.svc-toc__link .num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--erisa-lime-700);
  font-weight: 700;
}
.svc-toc__link:hover {
  border-color: var(--erisa-navy-700);
  color: var(--erisa-navy-700);
}
.svc-toc__link.is-active {
  background: var(--erisa-navy-700);
  color: #fff;
  border-color: var(--erisa-navy-700);
}
.svc-toc__link.is-active .num { color: var(--erisa-lime-400); }

.svc-group {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-1);
}
.svc-group:last-child { border-bottom: none; }
.svc-group__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
  align-items: end;
}
.svc-group__title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
.svc-group__desc { font-size: 15.5px; line-height: 1.6; color: var(--fg-2); margin: 0; }

/* BIG group video — the hero per family */
.svc-video {
  position: relative;
  display: block;
  aspect-ratio: 21/9;
  background: var(--erisa-navy-800);
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 56px;
  transition: transform var(--dur-base) var(--ease-out);
  isolation: isolate;
}
.svc-video::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(2,42,82,0.2) 0%, rgba(2,42,82,0.6) 100%),
    linear-gradient(90deg, rgba(2,42,82,0.7) 0%, rgba(2,42,82,0.25) 60%, rgba(2,42,82,0.5) 100%);
}
.svc-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.svc-video:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.svc-video:hover .svc-video__play { transform: scale(1.06); background: #fff; }
.svc-video:hover .svc-video__play svg { color: var(--erisa-navy-900); }

.svc-video__badge {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.94);
  color: var(--erisa-navy-900);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
}
.svc-video__badge .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--erisa-lime-500);
}

.svc-video__counter {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(2,42,82,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.svc-video__counter strong { color: var(--erisa-lime-400); font-family: var(--font-display); }

.svc-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: transform var(--dur-base), background var(--dur-base);
  border: none;
  box-shadow: 0 6px 28px rgba(2,42,82,0.45);
}
.svc-video__play svg {
  width: 38px; height: 38px;
  color: var(--erisa-navy-900);
  margin-left: 4px;
  transition: color var(--dur-base);
}

.svc-video__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  color: #fff;
}
.svc-video__caption > span:first-child { display: block; }
.svc-video__caption__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.svc-video__caption__sub {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
}
.svc-video__caption__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 10px 16px;
  border-radius: 2px;
  transition: all var(--dur-fast);
}
.svc-video:hover .svc-video__caption__cta {
  background: var(--erisa-lime-500);
  border-color: var(--erisa-lime-500);
  color: var(--erisa-navy-900);
}

@media (max-width: 720px) {
  .svc-video { aspect-ratio: 16/9; }
  .svc-video__play { width: 64px; height: 64px; }
  .svc-video__play svg { width: 26px; height: 26px; }
  .svc-video__caption { padding: 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .svc-video__caption__cta { display: none; }
}

/* Compact info cards — services inside a group */
.svc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-1);
}
.svc-item {
  position: relative;
  padding: 28px 28px 28px 0;
  margin-right: 24px;
  border-bottom: 1px solid var(--border-1);
  display: flex; flex-direction: column; gap: 10px;
  transition: background var(--dur-base);
}
.svc-item:not(:nth-child(3n)) {
  border-right: 1px solid var(--border-1);
  padding-right: 28px;
  margin-right: 0;
}
.svc-item:nth-child(3n) { padding-right: 0; margin-right: 0; }
.svc-item__head {
  display: flex; align-items: baseline; gap: 14px;
}
.svc-item__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--erisa-lime-600);
  line-height: 1;
}
.svc-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.18;
  color: var(--erisa-navy-900);
  margin: 0;
  flex: 1;
}
.svc-item__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.svc-item__apps {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.svc-item__apps span {
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--erisa-navy-700);
  background: var(--erisa-navy-50);
  padding: 4px 9px;
  border-radius: 2px;
}
.svc-item__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--erisa-navy-700);
  text-decoration: none;
  margin-top: 4px;
}
.svc-item__more::after {
  content: ""; width: 16px; height: 6px;
  background: var(--erisa-lime-500);
  clip-path: polygon(0 35%, 70% 35%, 70% 0, 100% 50%, 70% 100%, 70% 65%, 0 65%);
  transition: transform var(--dur-base);
}
.svc-item__more:hover { color: var(--erisa-lime-700); }
.svc-item__more:hover::after { transform: translateX(4px); }

/* List variant — when tweak is "list" */
[data-svc-list].is-list {
  grid-template-columns: 1fr;
}
[data-svc-list].is-list .svc-item:not(:nth-child(3n)) {
  border-right: none; padding-right: 0;
}
[data-svc-list].is-list .svc-item {
  padding: 22px 0;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
[data-svc-list].is-list .svc-item__head { flex: 0 0 280px; }
[data-svc-list].is-list .svc-item__desc { flex: 1; margin: 0; }
[data-svc-list].is-list .svc-item__apps { flex: 0 0 auto; margin-top: 0; padding-top: 0; }

@media (max-width: 900px) {
  .svc-list { grid-template-columns: 1fr 1fr; }
  .svc-item:not(:nth-child(3n)) { border-right: none; padding-right: 0; }
  .svc-item:not(:nth-child(2n)) {
    border-right: 1px solid var(--border-1);
    padding-right: 24px;
  }
  [data-svc-list].is-list .svc-item { flex-direction: column; align-items: stretch; gap: 10px; }
  [data-svc-list].is-list .svc-item__head { flex: none; }
}
@media (max-width: 560px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc-item:not(:nth-child(2n)) { border-right: none; padding-right: 0; }
  .svc-group__head { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   PAGE: TRANSFORMADORES — feature page
   ============================================================ */

.spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--erisa-lime-600);
  color: #fff;
}
.spec-cell {
  padding: 44px 28px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.spec-cell:last-child { border-right: none; }
.spec-cell__num {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}
.spec-cell__num small { font-size: 28px; color: var(--erisa-navy-900); margin-left: 4px; font-weight: 700; }
.spec-cell__lbl {
  margin-top: 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(2,42,82,0.85);
}

@media (max-width: 800px) { .spec-row { grid-template-columns: 1fr 1fr; }
.spec-cell:nth-child(2) { border-right: none; }
.spec-cell:nth-child(1), .spec-cell:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.18); } }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
}
.timeline__step {
  padding: 20px 24px 20px 0;
  position: relative;
  border-top: 2px solid var(--erisa-mist);
}
.timeline__step::before {
  content: "";
  position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--erisa-lime-500);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--erisa-lime-500);
}
.timeline__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--erisa-lime-700);
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1;
}
.timeline__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--erisa-navy-900);
  margin: 0 0 6px;
  line-height: 1.2;
}
.timeline__desc { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); margin: 0; }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE: PROYECTOS — gallery
   ============================================================ */

.proj-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.proj-filter {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  border: 1px solid var(--border-1);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.proj-filter:hover { border-color: var(--erisa-navy-700); color: var(--erisa-navy-700); }
.proj-filter.is-active { background: var(--erisa-navy-700); color: #fff; border-color: var(--erisa-navy-700); }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.proj-card {
  position: relative;
  background: var(--erisa-navy-700);
  background-size: cover; background-position: center;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  min-height: 280px;
  color: #fff;
  isolation: isolate;
}
.proj-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,42,82,0) 30%, rgba(2,42,82,0.92) 100%);
  z-index: 1;
}
.proj-card__chip {
  position: absolute; top: 16px; left: 16px;
  font-size: 11px; letter-spacing: 0.08em; font-weight: 700;
  text-transform: uppercase;
  background: rgba(255,255,255,0.9);
  color: var(--erisa-navy-900);
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
}
.proj-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px;
  z-index: 2;
}
.proj-card__loc {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--erisa-lime-400);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.proj-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 6px;
  color: #fff;
}
.proj-card__meta {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.proj-card__meta span::after { content: " · "; color: rgba(255,255,255,0.5); margin-left: 10px; }
.proj-card__meta span:last-child::after { display: none; }

.proj-card.is-wide { grid-column: span 8; min-height: 380px; }
.proj-card.is-tall { grid-column: span 4; min-height: 380px; }
.proj-card.is-med { grid-column: span 6; }
.proj-card.is-small { grid-column: span 4; }
@media (max-width: 900px) {
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-card, .proj-card.is-wide, .proj-card.is-tall, .proj-card.is-med, .proj-card.is-small { grid-column: span 1; }
}
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE: NOTICIAS — news listing
   ============================================================ */

.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.news-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.news-card__img {
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: var(--erisa-navy-50);
}
.news-card.is-feat { grid-row: span 2; }
.news-card.is-feat .news-card__img { aspect-ratio: 16/11; }
.news-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--erisa-lime-700);
  text-transform: uppercase;
}
.news-card__meta .date { color: var(--fg-3); margin-left: 8px; }
.news-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--erisa-navy-900);
  margin: 0;
  line-height: 1.18;
}
.news-card.is-feat .news-card__title { font-size: 28px; }
.news-card__excerpt { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.news-card__more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--erisa-navy-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.news-card__more::after {
  content: ""; width: 18px; height: 7px;
  background: var(--erisa-lime-500);
  clip-path: polygon(0 35%, 70% 35%, 70% 0, 100% 50%, 70% 100%, 70% 65%, 0 65%);
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.is-feat { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.is-feat { grid-column: span 1; }
}

/* ============================================================
   PAGE: CONTACTO — form
   ============================================================ */

.contact-page {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info__title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.contact-info p { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0 0 18px; }
.contact-line {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--border-1);
}
.contact-line:last-child { border-bottom: 1px solid var(--border-1); }
.contact-line__icon {
  width: 56px; height: 56px;
  background: var(--erisa-navy-50);
  color: var(--erisa-navy-700);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-line__icon svg { width: 26px; height: 26px; }
.contact-line__lbl {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 700;
}
.contact-line__val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--erisa-navy-900);
  margin-top: 3px;
  line-height: 1.2;
}
.contact-line a { color: inherit; text-decoration: none; }
.contact-line a:hover { color: var(--erisa-navy-700); }

.contact-form {
  background: var(--erisa-cloud);
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 36px;
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--erisa-navy-900);
  margin: 0 0 6px;
}
.contact-form > p { font-size: 14px; color: var(--fg-2); margin: 0 0 24px; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.is-full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--erisa-navy-800);
}
.field label .req { color: var(--erisa-danger); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  background: #fff;
  color: var(--fg-1);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--erisa-navy-700);
  box-shadow: 0 0 0 3px rgba(2,77,142,0.16);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--erisa-danger); box-shadow: 0 0 0 3px rgba(184,54,42,0.15); }
.field__err {
  font-size: 12px;
  color: var(--erisa-danger);
  display: none;
  font-weight: 600;
}
.field.has-error .field__err { display: block; }
.field__hint { font-size: 12px; color: var(--fg-3); }

.contact-form__file {
  display: flex; gap: 12px; align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px dashed var(--border-2);
  border-radius: 3px;
  cursor: pointer;
}
.contact-form__file:hover { border-color: var(--erisa-navy-700); }
.contact-form__file input { display: none; }
.contact-form__file__icon {
  width: 36px; height: 36px;
  background: var(--erisa-navy-50);
  color: var(--erisa-navy-700);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.contact-form__file__txt { font-size: 13px; color: var(--fg-2); }
.contact-form__file__txt strong { color: var(--erisa-navy-900); display: block; }

.contact-form__consent {
  display: flex; gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.5;
}
.contact-form__consent input { margin-top: 3px; accent-color: var(--erisa-navy-700); }
.contact-form__consent a { color: var(--erisa-navy-700); }

.contact-form__submit {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  margin-top: 24px;
}
.contact-form__status {
  font-size: 13px; font-weight: 600;
  color: var(--erisa-success);
}
.contact-form__success {
  background: #fff;
  border: 1px solid var(--erisa-lime-400);
  border-radius: 4px;
  padding: 28px;
  display: flex; gap: 18px; align-items: center;
}
.contact-form__success__icon {
  width: 56px; height: 56px;
  background: var(--erisa-lime-100);
  color: var(--erisa-lime-700);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-form__success h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--erisa-navy-900);
  margin: 0 0 4px;
}
.contact-form__success p { font-size: 14px; color: var(--fg-2); margin: 0; }

@media (max-width: 900px) {
  .contact-page { grid-template-columns: 1fr; gap: 32px; }
  .field-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VIDEO LIGHTBOX
   ============================================================ */

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(2,23,42,0.86);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-modal.is-open { display: flex; }
.video-modal__shell {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  max-width: 1080px; width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.video-modal__close {
  position: absolute;
  top: -44px; right: 0;
  background: transparent; border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center;
}
.video-modal__close:hover { color: var(--erisa-lime-400); }
.video-modal__frame {
  aspect-ratio: 16/9;
  background: var(--erisa-navy-900) center/cover;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: rgba(255,255,255,0.5);
}
.video-modal__placeholder {
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.video-modal__placeholder svg { width: 64px; height: 64px; margin-bottom: 14px; opacity: 0.7; }
.video-modal__meta {
  background: #0a1626;
  color: #fff;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.video-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}
.video-modal__sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ============================================================
   TWEAKS PANEL (in-page)
   ============================================================ */

.tweaks-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: var(--erisa-navy-900);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-3);
  display: inline-flex; gap: 10px; align-items: center;
  transition: background var(--dur-fast);
}
.tweaks-fab:hover { background: var(--erisa-navy-700); }
.tweaks-fab__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--erisa-lime-500); }

.tweaks {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 110;
  width: 320px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--border-1);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.tweaks.is-open { display: flex; }
.tweaks__head {
  background: var(--erisa-navy-900);
  color: #fff;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.tweaks__close {
  background: transparent; border: none; color: #fff;
  cursor: pointer; padding: 4px;
  border-radius: 4px;
}
.tweaks__close:hover { background: rgba(255,255,255,0.1); }
.tweaks__body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 18px; max-height: 60vh; overflow-y: auto; }
.tweak-group { display: flex; flex-direction: column; gap: 8px; }
.tweak-group__lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--erisa-navy-800);
}
.tweak-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  overflow: hidden;
}
.tweak-seg button {
  background: #fff;
  border: none;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  font-family: inherit;
}
.tweak-seg button.is-active { background: var(--erisa-navy-700); color: #fff; }
.tweak-toggle {
  display: flex; justify-content: space-between; align-items: center;
}
.tweak-toggle__lbl { font-size: 13px; color: var(--fg-2); }
.switch {
  position: relative;
  width: 36px; height: 20px;
  background: var(--erisa-fog);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast);
  border: none;
  padding: 0;
}
.switch::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 999px;
  transition: transform var(--dur-base);
}
.switch.is-on { background: var(--erisa-lime-500); }
.switch.is-on::after { transform: translateX(16px); }

/* Display font swap */
body.font-alt {
  --font-display: "Oswald", "Barlow Condensed", sans-serif;
}

/* ============================================================
   UTILS
   ============================================================ */

.spacer-32 { height: 32px; }
.spacer-64 { height: 64px; }
.hide-md { }
@media (max-width: 720px) { .hide-md { display: none !important; } }

/* Faint background grid for navy sections */
.navy-grid-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.navy-grid-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.navy-grid-bg > * { position: relative; z-index: 1; }

/* Decorative big logo watermark */
.big-e-mark {
  position: absolute;
  font-family: var(--font-display);
  font-size: 380px;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  line-height: 0.7;
  user-select: none;
  pointer-events: none;
}

/* Hero style tweak: when body has .hero-chevron, switch to old design */
body.hero-chevron .hero { background: linear-gradient(180deg, var(--erisa-paper) 0%, var(--erisa-cloud) 100%); color: var(--fg-1); }
body.hero-chevron .hero .hero__bg,
body.hero-chevron .hero .hero__scrim,
body.hero-chevron .hero .hero__grid,
body.hero-chevron .hero .hero__stamp,
body.hero-chevron .hero .hero__badges { display: none !important; }
body.hero-chevron .hero .h-display { color: var(--erisa-navy-900); }
body.hero-chevron .hero .lead { color: var(--fg-2); }
body.hero-chevron .hero .eyebrow { color: var(--erisa-lime-700); }
body.hero-chevron .hero .hero__copy::before { display: none; }
body.hero-chevron .hero .hero__row { padding: 88px 0 96px; min-height: 540px; }

body.hero-chevron .page-hero { background: linear-gradient(180deg, var(--erisa-cloud) 0%, #fff 100%); color: var(--fg-1); }
body.hero-chevron .page-hero .page-hero__bg,
body.hero-chevron .page-hero .page-hero__scrim,
body.hero-chevron .page-hero .page-hero__grid { display: none !important; }
body.hero-chevron .page-hero .h-display { color: var(--erisa-navy-900); }
body.hero-chevron .page-hero .lead { color: var(--fg-2); }
body.hero-chevron .page-hero .eyebrow { color: var(--erisa-lime-700); }
body.hero-chevron .page-hero .page-hero__copy::before { display: none; }
body.hero-chevron .page-hero .page-hero__crumbs { color: var(--fg-3); }
body.hero-chevron .page-hero .page-hero__crumbs a { color: var(--erisa-navy-700); }
