/* ==========================================================================
   ETACONNACT S.L. — Design system
   Navy #01122C · white · restrained green #6FA545 (sampled from the logo)
   ========================================================================== */

:root {
  --navy: #01122c;
  --navy-2: #061a38;
  --navy-3: #0a2247;
  --navy-4: #11315e;
  --navy-soft: rgba(255, 255, 255, 0.72);

  --green: #6fa545;
  --green-2: #8fbf5c;
  --green-dk: #4c7a2c;

  --ink: #0c1729;
  --body: #48566b;
  --muted: #6c7a8f;
  --line: #e5e9f0;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-2: #f6f8fb;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --sh-sm: 0 1px 2px rgba(1, 18, 44, 0.06), 0 2px 8px rgba(1, 18, 44, 0.05);
  --sh: 0 18px 40px -24px rgba(1, 18, 44, 0.45);
  --sh-lg: 0 30px 70px -34px rgba(1, 18, 44, 0.55);

  --container: 1200px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.14;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 26px;
}

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--soft { background: var(--bg-2); }
.section--dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; margin-top: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.735rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dk);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--green-2); }
.section--dark .eyebrow::before { background: var(--green-2); }
.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

h1, .h1 { font-size: clamp(2.1rem, 4.6vw, 3.45rem); }
h2, .h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.16rem, 1.8vw, 1.42rem); }
h4, .h4 { font-size: 1.04rem; letter-spacing: -0.01em; }

.lead { font-size: 1.09rem; color: var(--body); }
.section--dark .lead { color: rgba(255, 255, 255, 0.78); }
.muted { color: var(--muted); }
.text-green { color: var(--green-dk); }
.small { font-size: 0.87rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mt-4 { margin-top: 48px; }

/* -------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.945rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary {
  box-shadow: 0 12px 26px -12px rgba(111, 165, 69, 0.85);
}
.btn--primary:hover { background: var(--green-dk); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--navy);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--green-dk); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: #fff; }

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img {
  height: 27px;
  width: auto;
  transition: opacity 0.2s var(--ease);
}
.brand:hover img { opacity: 0.82; }

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a,
.nav button.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  font-weight: 550;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover,
.nav button.nav-toggle:hover,
.nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: "";
  position: absolute;
}
.nav .chev { transition: transform 0.25s var(--ease); }
.nav-item--sub.is-open .chev { transform: rotate(180deg); }

.nav-item { position: relative; }
.nav-item--sub { position: relative; }

.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 290px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav-item--sub:hover .submenu,
.nav-item--sub.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 550;
}
.submenu a:hover { background: var(--bg-2); color: var(--navy); }
.submenu a span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.lang {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.lang a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang a:hover { color: #fff; }
.lang a.is-active { background: #fff; color: var(--navy); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  position: relative;
  width: 18px;
  height: 1.6px;
  background: #fff;
  border-radius: 2px;
  transition: background-color 0.2s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- mobile */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--navy);
  padding: 22px 26px 44px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}
.mobile-nav .m-sub a {
  padding: 11px 4px 11px 16px;
  font-size: 0.97rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.68);
  border-bottom: 0;
}
.mobile-nav .m-sub { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 8px; }
.mobile-nav .m-actions { margin-top: 26px; display: grid; gap: 12px; }
.mobile-nav .m-label {
  margin-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.mobile-nav .m-lang { display: flex; gap: 8px; margin-top: 12px; }
.mobile-nav .m-lang a {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-nav .m-lang a.is-active { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 92px));
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--navy) 6%, rgba(1, 18, 44, 0.94) 34%, rgba(1, 18, 44, 0.55) 66%, rgba(1, 18, 44, 0.35) 100%),
    linear-gradient(180deg, rgba(1, 18, 44, 0.55) 0%, rgba(1, 18, 44, 0) 35%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero__content { max-width: 700px; }

/* white quick-nav card overlapping the bottom of the hero */
.hero-band {
  position: relative;
  z-index: 5;
  margin-top: -46px;
}
.hero-band .container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 8px 14px;
}
.hero-band ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-band li + li { border-left: 1px solid var(--line); }
.hero-band a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.hero-band a:hover { color: var(--green-dk); background: var(--bg-2); }
.hb-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(111, 165, 69, 0.12);
  color: var(--green-dk);
}

/* image cropped to a fixed ratio */
.media-cover {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--sh);
}
.media-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--green-2); }
.hero .eyebrow::before { background: var(--green-2); }
.hero__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.09rem;
  max-width: 56ch;
  margin-top: 22px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 30px 30px 26px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.hero__panel h2 {
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-2);
  margin-bottom: 4px;
}
.hero__panel-head { margin-bottom: 20px; }
.hero__panel-head p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.hero__list { display: grid; gap: 2px; }
.hero__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.97rem;
  font-weight: 500;
}
.hero__list li span:first-child {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(111, 165, 69, 0.16);
  color: var(--green-2);
}
.hero__panel-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------- page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
  padding-top: calc(var(--header-h) + clamp(52px, 6.5vw, 88px));
  padding-bottom: clamp(48px, 6vw, 76px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 460px at 88% -10%, rgba(111, 165, 69, 0.22), transparent 62%),
    linear-gradient(120deg, var(--navy) 40%, var(--navy-3) 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 75%);
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { max-width: 62ch; margin-top: 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255, 255, 255, 0.35); }

.hero-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}
.hero-strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-strip li {
  padding: 24px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-strip li:first-child { border-left: 0; padding-left: 0; }
.hero-strip li svg { color: var(--green-2); flex: none; }

/* ------------------------------------------------------------- service */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: #d8e0ea; }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-2); }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(1, 18, 44, 0.82);
  backdrop-filter: blur(6px);
  color: var(--green-2);
}
.card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { font-size: 0.95rem; }
.card__body .link-arrow { margin-top: auto; padding-top: 18px; font-size: 0.92rem; }

.card--plain { padding: 28px; }
.card--plain .card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(111, 165, 69, 0.12);
  color: var(--green-dk);
  margin-bottom: 18px;
}
.card--plain h3 { margin-bottom: 9px; }
.card--plain p { font-size: 0.95rem; }

/* -------------------------------------------------------------- checks */
.checks { display: grid; gap: 14px; }
.checks li {
  position: relative;
  padding-left: 34px;
  font-size: 0.99rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(111, 165, 69, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fa545' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}
.section--dark .checks li { color: rgba(255, 255, 255, 0.8); }

/* -------------------------------------------------------------- split */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}
.split__media--framed {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
}
.split__media--framed img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: none;
}
/* la imagen con proporción fija manda sobre las reglas genéricas de .split__media */
.split__media .media-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-frame {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
}
.brand-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
}
.split__tag {
  position: absolute;
  right: -14px;
  bottom: -18px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r);
  padding: 16px 20px;
  box-shadow: var(--sh-lg);
  max-width: 230px;
}
.split__tag strong { display: block; color: var(--green-2); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }
.split__tag span { font-size: 0.92rem; line-height: 1.5; display: block; }

.feature-list { display: grid; gap: 18px; margin-top: 30px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .fl-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--green-2);
}
.feature-list h4 { margin-bottom: 3px; }
.feature-list p { font-size: 0.93rem; margin: 0; }

/* ------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin: 0; }
.step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -14px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
  transform: rotate(45deg);
}
.step:last-child::after { display: none; }
.section--dark .step { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.1); }
.section--dark .step h3 { color: #fff; }
.section--dark .step p { color: rgba(255, 255, 255, 0.68); }

/* ------------------------------------------------------------ gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: #d8e0ea; }
.gallery .gallery__open { overflow: hidden; background: var(--bg-2); }
.gallery .gallery__open img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery figcaption {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 20px;
  background: #fff;
}
.gallery figcaption .tag { align-self: flex-start; }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 0.98rem; }
.gallery figcaption span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 3px; }
.gallery .tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(111, 165, 69, 0.13);
  color: var(--green-dk);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gallery--filterable .fig-hidden { display: none; }
.gallery .gallery__open { position: relative; }
.gallery .gallery__open::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 18, 44, 0) 62%, rgba(1, 18, 44, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery figure:hover .gallery__open::after { opacity: 1; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --------------------------------------------------------------- cta */
.cta-band {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(52px, 6.5vw, 88px) 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/hero-bg.jpg") center / cover no-repeat;
  opacity: 0.24;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--navy) 20%, rgba(1, 18, 44, 0.75) 70%);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 54ch; margin-top: 12px; }

/* -------------------------------------------------------------- forms */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(111, 165, 69, 0.16);
}
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d9534f; }
.field .error { font-size: 0.8rem; color: #c0392b; display: none; }
.field.has-error .error { display: block; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.checkbox label { font-size: 0.88rem; color: var(--body); text-transform: none; letter-spacing: 0; font-weight: 450; }

.form-status {
  display: none;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  border: 1px solid;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(111, 165, 69, 0.1); border-color: rgba(111, 165, 69, 0.4); color: #3d6b22; }
.form-status--warn { background: #fdf6e3; border-color: #f0dca8; color: #8a6314; }
.form-status--err { background: #fdeceb; border-color: #f3c3c0; color: #a8322a; }

/* ------------------------------------------------------- contact rows */
.contact-list { display: grid; gap: 2px; }
.contact-list li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .ci {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(111, 165, 69, 0.12);
  color: var(--green-dk);
}
.contact-list .ci svg { width: 19px; height: 19px; }
.contact-list .ck {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-list .cv { color: var(--ink); font-weight: 600; font-size: 0.99rem; }
.contact-list .cv.is-pending {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
  font-size: 0.92rem;
}
.contact-list a.cv:hover { color: var(--green-dk); }

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------- values */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.value:hover { transform: translateY(-4px); border-color: #d8e0ea; }
.value .vi {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(111, 165, 69, 0.13);
  color: var(--green-dk);
  margin-bottom: 16px;
}
.value h3 { color: var(--ink); font-size: 1.04rem; margin-bottom: 7px; }
.value p { color: var(--body); font-size: 0.92rem; margin: 0; }

/* ------------------------------------------------------------ sectors */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sector {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.sector:hover { border-color: var(--green); transform: translateY(-4px); }
.sector h3 { font-size: 1.06rem; margin-bottom: 9px; }
.sector p { font-size: 0.93rem; margin: 0; }
.sector ul { margin-top: 16px; display: grid; gap: 7px; }
.sector li {
  position: relative;
  padding-left: 18px;
  font-size: 0.89rem;
  color: var(--muted);
}
.sector li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* -------------------------------------------------------------- quote */
.quote {
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 26px;
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.88rem; color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.62); padding: clamp(54px, 6vw, 80px) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 48px;
}
.footer-brand img { height: 26px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 0.92rem; max-width: 40ch; }
.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--green-2); }
.footer-col .contact-list li { border-bottom-color: rgba(255, 255, 255, 0.1); padding: 11px 0; }
.footer-col .contact-list .ck { color: rgba(255, 255, 255, 0.42); }
.footer-col .contact-list .cv { color: rgba(255, 255, 255, 0.88); font-size: 0.93rem; }
.footer-col .contact-list .cv.is-pending { color: rgba(255, 255, 255, 0.5); }
.footer-col .contact-list .ci { background: rgba(255, 255, 255, 0.07); color: var(--green-2); width: 34px; height: 34px; }
.footer-col .contact-list .ci svg { width: 16px; height: 16px; }

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  transition: all 0.22s var(--ease);
}
.btn-linkedin:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }
.btn-linkedin svg { width: 17px; height: 17px; }
.btn-linkedin .li-note { color: rgba(255, 255, 255, 0.45); font-weight: 500; font-size: 0.78rem; }
.btn-linkedin[aria-disabled="true"] { cursor: default; }
.btn-linkedin[aria-disabled="true"]:hover { background: transparent; border-color: rgba(255, 255, 255, 0.22); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom .fl { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--green-2); }

/* --------------------------------------------------------- back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--sh);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-dk); }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .burger { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .hero-band ul { grid-template-columns: 1fr 1fr; }
  .hero-band li:nth-child(3) { border-left: 0; }
  .hero-band li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__tag { position: static; margin-top: 16px; max-width: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip ul { grid-template-columns: 1fr 1fr; }
  .hero-strip li { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 18px; }
  .hero-strip li:nth-child(odd) { border-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__panel { padding: 24px 22px 22px; }
  .hero__cta .btn { width: 100%; }
  .brand img { height: 22px; }
  .hero-band { margin-top: -30px; }
  .hero-band .container { padding: 6px 8px; }
  .hero-band ul { grid-template-columns: 1fr; }
  .hero-band li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero-band a { padding: 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Ampliaciones: <picture> WebP, galería con lightbox y equipo en obra
   ========================================================================== */

/* <picture> no debe romper los contenedores de imagen de proporción fija */
picture { display: contents; }

/* --------------------------------------------------------------- galería */
.gallery__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}
.gallery__open img {
  width: 100%;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.gallery figure:hover .gallery__open img { transform: scale(1.04); }
.filter-count {
  margin: -18px 0 30px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* --------------------------------------------------------- equipo en obra */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.team-photo { margin: 0; }
.team-photo .media-cover { box-shadow: var(--sh); }
.team-photo figcaption { padding-top: 14px; }
.team-photo strong { display: block; color: var(--ink); font-size: 0.97rem; }
.team-photo span { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 3px; }

/* -------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(1, 18, 44, 0.96);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  margin: 0;
  max-width: min(1120px, 100%);
  text-align: center;
}
.lightbox__figure img {
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--r);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.lightbox__figure figcaption { color: #fff; margin-top: 20px; }
.lightbox__figure figcaption .tag {
  background: rgba(111, 165, 69, 0.2);
  color: var(--green-2);
}
.lightbox__figure figcaption strong { display: block; font-size: 1.06rem; margin-top: 10px; }
.lightbox__figure figcaption span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.93rem;
  margin-top: 4px;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__close { top: 18px; right: 18px; width: 44px; height: 44px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--green); border-color: var(--green); }
.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
body.lb-open { overflow: hidden; }

@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__figure img { max-height: 66vh; }
  .lightbox__figure figcaption { margin-top: 14px; }
}
