/* ═══════════════════════════════════════════════════════════════
   ECOTEC INGENIERÍA — Design System v2
   Paleta base extraída del logo de marca
═══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --azul:      #1829B0;
  --azul-dk:   #0F1A7A;
  --azul-mid:  #2438C8;
  --azul-lt:   #EEF1FB;
  --verde:     #1A8C1A;
  --verde-dk:  #116811;
  --verde-lt:  #E7F5E7;
  --tierra:    #7D3008;
  --tierra-lt: #F6EDE8;

  --p:        var(--azul);
  --p-dk:     var(--azul-dk);
  --p-lt:     var(--azul-lt);
  --s:        var(--verde);
  --s-dk:     var(--verde-dk);
  --s-lt:     var(--verde-lt);

  --ink:      #1C2340;
  --ink-2:    #4A5575;
  --ink-3:    #8A93B0;
  --bg:       #FFFFFF;
  --surface:  #F5F7FC;
  --surface2: #EEF2FA;
  --border:   #D0D8EE;
  --border-lt:#E8ECFA;

  --nav-h:    72px;
  --bar-h:    0px;
  --r:        8px;
  --r-lg:     16px;
  --shadow:   0 2px 12px rgba(24,41,176,0.10);
  --shadow-lg:0 8px 40px rgba(24,41,176,0.14);
  --max-w:    1200px;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p { text-align: justify; hyphens: auto; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ─── LAYOUT ──────────────────────────────────────────────────── */
.wrap    { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 860px; margin: 0 auto; padding: 0 32px; }
section  { padding: 56px 0; }

/* ─── PROTOTYPE BAR ──────────────────────────────────────────── */
#proto-bar {
  display: none; /* oculto para presentación al cliente */
  position: sticky; top: 0; z-index: 1000;
  background: #0D1124; color: #E8ECFA;
  height: var(--bar-h); align-items: center;
  gap: 18px; padding: 0 28px;
  font-size: 11px; font-family: 'Inter', monospace; letter-spacing: .04em;
}
.pb-label { color: #8A93C0; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.palette-swatch { display: flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; }
.swatch { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(255,255,255,.15); }
.pb-sep { width: 1px; height: 20px; background: #2A3560; }
.pb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.proto-btn {
  background: #2A3560; color: #C0C8EE; border-radius: 4px;
  padding: 4px 11px; font-size: 11px; border: 1px solid #3A4580; transition: background .15s;
}
.proto-btn:hover { background: #3A4580; }
.proto-btn.active { background: var(--azul); color: #fff; border-color: var(--azul); }

/* ─── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  box-shadow: 0 2px 8px rgba(24,41,176,0.06);
  /* Sin transform en reposo: translateY(0) crea un containing block y
     el overlay position:fixed del menú WP queda atrapado en 64px. */
  transition: transform .3s ease, box-shadow .3s ease;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
#nav.nav-hidden { transform: translateY(-100%); }
body { padding-top: var(--nav-h); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 2px 0;
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo img {
  display: block;
  height: calc(var(--nav-h) - 4px);
  width: auto;
  max-width: min(300px, calc(100vw - 96px));
  object-fit: contain;
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 12px; border-radius: 6px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-links a:hover       { color: var(--p); background: var(--p-lt); }
.nav-links a.active      { color: var(--p); font-weight: 600; }
.nav-cta { margin-left: auto; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn:not(.wp-block-button) {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; transition: all .15s;
}
.btn-primary:not(.wp-block-button) { background: var(--p); color: #fff; }
.btn-primary:not(.wp-block-button):hover { background: var(--p-dk); transform: translateY(-1px); }
.btn-outline:not(.wp-block-button) { background: transparent; color: var(--p); border: 2px solid var(--p); }
.btn-outline:not(.wp-block-button):hover { background: var(--p); color: #fff; }
.btn-white:not(.wp-block-button) { background: #fff; color: var(--p); }
.btn-white:not(.wp-block-button):hover { background: var(--azul-lt); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.40); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-xl { padding: 16px 36px; font-size: 16px; font-weight: 700; }
.btn-full { width: 100%; justify-content: center; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
  color: var(--s); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--s); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.eyebrow.white { color: rgba(255,255,255,.75); }
.eyebrow.white::before { background: rgba(255,255,255,.5); }

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; text-wrap: balance; }
.display-title {
  font-weight: 800; font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.12; color: #fff; margin-bottom: 20px;
}
.display-title em { font-style: normal; color: #8DF08D; }
.page-title {
  font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15; color: var(--ink); margin-bottom: 16px;
}
.section-title {
  font-weight: 800; font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.2; color: var(--ink); margin-bottom: 14px;
}
.section-title.white { color: #fff; }
.lead { font-size: 16px; line-height: 1.70; color: var(--ink-2); }
.lead.white { color: rgba(255,255,255,.82); }

/* ─── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--azul);
  padding: 56px 0;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.55);
  margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.70); transition: color .15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.35); }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lead { max-width: 640px; }

/* ─── TRUST BAR ──────────────────────────────────────────────── */
#trust {
  background: var(--surface2);
  border-top: 3px solid var(--p); border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
}
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 14px; border-right: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  min-width: 0;
}
.trust-item:last-child { border-right: none; }
.trust-item strong { display: block; font-size: 11px; color: var(--p); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.trust-icon { font-size: 22px; margin: 0 !important; line-height: 1; }

/* ─── SECTION HEAD ───────────────────────────────────────────── */
.section-head    { margin-bottom: 32px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img { overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; }
.card-icon { font-size: 28px; margin-bottom: 12px; }
.card-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.card-text  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ─── PILL / BADGE ───────────────────────────────────────────── */
.pill { background: var(--p-lt); color: var(--p); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 500; display: inline-block; }
.pill.green { background: var(--s-lt); color: var(--s-dk); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; border: 1px solid;
}
.badge-green { background: var(--s-lt); color: var(--s-dk); border-color: var(--verde); }

/* ─── SERVICES GRID ──────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.srv-card { grid-column: span 2; display: flex; flex-direction: column; }
.srv-card:nth-child(4) { grid-column: span 3; }
.srv-card:nth-child(5) { grid-column: span 3; }
.srv-card .card-img { height: 180px; }
.srv-card .card-body { flex: 1; display: flex; flex-direction: column; }
.srv-card .card-text { flex: 1; }
.srv-card .card-footer { margin-top: 16px; }

/* ─── STATS ──────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; }
.stat-item { text-align: left; padding: 32px 0; background: transparent; min-width: 0; }
.stat-num  { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--p); line-height: 1.05; margin-bottom: 8px; overflow-wrap: normal; word-break: normal; min-height: 2.6rem; display: flex; align-items: flex-end; justify-content: flex-start; text-align: left; }
.stat-num.stat-claim { font-size: clamp(1.12rem, 1.5vw, 1.4rem); line-height: 1.2; max-width: none; margin-left: 0; margin-right: 0; }
.stat-lbl  { font-size: 14px; color: var(--ink-2); font-weight: 500; overflow-wrap: anywhere; text-align: left; }
.stat-num sup { font-size: 1.2rem; vertical-align: super; }

/* ─── AGÖF BLOCK ─────────────────────────────────────────────── */
.agof-section { background: var(--p); padding: 48px 0; overflow: hidden; }
.agof-section ul { color: #fff; }
.agof-inner {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 40px 44px;
  align-items: start;
}
.agof-seal {
  width: 140px; height: 140px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.10);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; flex-shrink: 0; padding: 16px;
}
.agof-seal-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.agof-seal-sub   { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .70; margin-top: 4px; line-height: 1.4; }
.agof-seal-flag  { font-size: 22px; margin-top: 6px; }
.agof-text { min-width: 0; display: flex; flex-direction: column; }
.agof-text h2 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.4rem,2vw,1.9rem); color: #fff; margin-bottom: 12px; text-wrap: balance; }
.agof-text p  { color: rgba(255,255,255,.80); line-height: 1.65; font-size: 15px; }
.agof-caps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 24px; }
.agof-cap {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r); padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 10px;
  min-width: 0;
}
.agof-cap-ico { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.agof-cap-lbl { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.4; overflow-wrap: anywhere; }
.agof-cap-sub { font-size: 12px; color: rgba(255,255,255,.60); margin-top: 2px; overflow-wrap: anywhere; }

/* ─── CAROUSEL ───────────────────────────────────────────────── */
.carousel-wrap {
  overflow: hidden; position: relative;
}
.carousel-wrap::before,
.carousel-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.carousel-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.carousel-track {
  display: flex; width: max-content; align-items: center;
  animation: marquee 60s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cli-item {
  flex-shrink: 0; width: 148px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-right: 1px solid var(--border-lt);
}
.cli-item img {
  max-width: 100%; max-height: 54px; object-fit: contain;
  filter: grayscale(100%) contrast(.75); opacity: .55;
  transition: filter .25s, opacity .25s;
}
.cli-item:hover img { filter: grayscale(0%) contrast(1); opacity: 1; }

/* ─── WP GALLERY → CAROUSEL (core/gallery is-style-carousel) ─── */
.gallery-section { padding-top: 48px; padding-bottom: 40px; overflow: hidden; }
.wp-block-gallery.is-style-carousel {
  --ec-per: 3;
  --ec-gap: 14px;
  --ec-h: clamp(240px, 32vw, 380px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wp-block-gallery.is-style-carousel:not(.is-carousel-ready) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ec-gap);
}
.wp-block-gallery.is-style-carousel > .wp-block-image {
  margin: 0;
}
.wp-block-gallery.is-style-carousel > .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}

.wp-block-gallery.is-style-carousel.is-carousel-ready {
  position: relative;
  display: block !important;
  overflow: visible !important;
  background: transparent;
  height: auto;
  border-radius: 0;
  padding-bottom: 0;
}
.wp-block-gallery.is-style-carousel.is-carousel-ready > .wp-block-image { display: none; margin: 0; }
.wp-block-gallery.is-style-carousel.is-carousel-ready .ec-carousel-track .wp-block-image {
	max-width: none;
	flex-grow: 0;
	flex-shrink: 0;
}

.ec-carousel-viewport {
  height: var(--ec-h);
  overflow: hidden;
}
.ec-carousel-track {
  display: flex;
  gap: var(--ec-gap);
  height: 100%;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .ec-carousel-track { transition: none; }
  .hero-right-col, .hero-eyebrow::before, .carousel-track { animation: none !important; }
}
.ec-carousel-track .wp-block-image {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #0D1124;
}
.ec-carousel-track .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}
.ec-carousel-track .wp-element-caption,
.ec-carousel-track figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 36px 16px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(13,17,36,.82) 0%, rgba(13,17,36,.28) 70%, transparent 100%);
}

.ec-carousel-btn {
  position: absolute;
  top: calc(var(--ec-h) / 2);
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(13,17,36,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s, transform .15s;
}
.ec-carousel-btn:hover { background: var(--p); }
.ec-carousel-btn:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.ec-carousel-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ec-carousel-prev { left: 6px; }
.ec-carousel-next { right: 6px; }

.ec-carousel-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 20px 0 4px;
  min-height: 32px;
  position: relative;
  z-index: 2;
}
.ec-carousel-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  width: min(240px, 48vw);
  margin: 0;
  padding: 10px 0;
}
.ec-carousel-dots button {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, height .2s, flex-grow .2s;
}
.ec-carousel-dots button:hover { background: var(--ink-3); }
.ec-carousel-dots button[aria-current="true"] {
  flex: 2.2 1 0;
  height: 6px;
  background: var(--p);
}
.ec-carousel-dots button:focus-visible { outline: 2px solid var(--p); outline-offset: 3px; }
.ec-carousel-count {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ─── CLIENT GRID (clientes.html) ────────────────────────────── */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.client-cell {
  background: var(--bg); padding: 20px 16px;
  display: flex; align-items: center; justify-content: center; min-height: 90px;
  transition: background .15s;
}
.client-cell:hover { background: var(--surface2); }
.client-cell img { max-width: 100%; max-height: 52px; object-fit: contain; filter: grayscale(100%) contrast(.7); opacity: .6; transition: all .2s; }
.client-cell:hover img { filter: grayscale(0%) contrast(1); opacity: 1; }

/* ─── TEAM CARDS ─────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-card { padding: 36px 28px; text-align: center; }
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--p-lt); border: 3px solid var(--p);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 28px; color: var(--p);
}
.team-name  { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.team-role  { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.team-tags  { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.team-tag   { background: var(--p-lt); color: var(--p); border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.team-tag.g { background: var(--s-lt); color: var(--s-dk); }
.team-email { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ─── PROJECT GRID ───────────────────────────────────────────── */
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.proj-card { border-radius: var(--r-lg); overflow: hidden; position: relative; height: 240px; cursor: pointer; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.proj-card:hover img { transform: scale(1.06); }
.proj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,26,122,.88) 0%, rgba(15,26,122,.20) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 20px; transition: background .3s;
}
.proj-card:hover .proj-overlay { background: linear-gradient(to top, rgba(15,26,122,.92) 0%, rgba(15,26,122,.45) 70%, rgba(15,26,122,.10) 100%); }
.proj-label { color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3; }
.proj-cat   { font-size: 11px; color: rgba(255,255,255,.70); margin-top: 3px; }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cinfo-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.cinfo-item { display: flex; align-items: flex-start; gap: 14px; }
.cinfo-ico {
  width: 42px; height: 42px; border-radius: var(--r);
  background: var(--p-lt); color: var(--p);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.cinfo-lbl  { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.cinfo-val  { font-size: 14px; color: var(--ink); font-weight: 500; }
.cinfo-val a { color: var(--p); }
.cinfo-val a:hover { text-decoration: underline; }
.contact-cta-box {
  background: var(--bg); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 48px 40px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-icon  { font-size: 48px; margin-bottom: 20px; }
.cta-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.cta-sub   { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: 32px; }
.cta-note  { font-size: 12px; color: var(--ink-3); margin-top: 16px; }

/* ─── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner { background: var(--surface2); border-top: 1px solid var(--border); padding: 56px 0; text-align: center; }
.cta-banner h2 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.4rem,2.5vw,2rem); color: var(--ink); margin-bottom: 12px; }
.cta-banner p  { color: var(--ink-2); font-size: 16px; margin-bottom: 28px; }

/* ─── FEATURE LIST (nosotros, servicios) ─────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-ico  { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.feature-text { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.feature-text strong { color: var(--ink); }

/* ─── SERVICE DETAIL (servicios.html) ────────────────────────── */
.srv-detail { padding: 56px 0; border-bottom: 1px solid var(--border); }
.srv-detail:last-child { border-bottom: none; }
.srv-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.srv-detail-inner.flip { direction: rtl; }
.srv-detail-inner.flip > * { direction: ltr; }
.srv-detail-img { border-radius: var(--r-lg); overflow: hidden; }
.srv-detail-img img { width: 100%; height: 320px; object-fit: cover; }
.srv-detail-num {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 3.5rem; color: var(--p-lt); line-height: 1;
  margin-bottom: -8px; display: block;
}
.srv-detail-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--ink); margin-bottom: 14px; line-height: 1.2; }
.srv-detail-desc  { font-size: 15px; color: var(--ink-2); line-height: 1.70; margin-bottom: 20px; }
.srv-bullets { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.srv-bullet { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink-2); }
.srv-bullet::before { content: '▶'; font-size: 8px; color: var(--s); flex-shrink: 0; }

/* ─── NOSOTROS SPLIT ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.img-right .split-img { order: 2; }
.split-img { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.split-img img { width: 100%; height: 380px; object-fit: cover; }
.split-stats {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--p); color: #fff; border-radius: var(--r-lg);
  padding: 22px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  box-shadow: var(--shadow-lg);
}
.s-stat-num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 24px; line-height: 1.1; }
.s-stat-num sup { font-size: 13px; vertical-align: super; }
.s-stat-lbl { font-size: 11px; color: rgba(255,255,255,.70); margin-top: 2px; }
.split-text { padding-right: 8px; }
.split-text p { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }

/* ─── CERTS GRID ─────────────────────────────────────────────── */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 16px; }
.cert-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 20px; display: flex; align-items: flex-start; gap: 14px;
  transition: box-shadow .2s;
}
.cert-card:hover { box-shadow: var(--shadow); }
.cert-ico { font-size: 28px; flex-shrink: 0; }
.cert-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.cert-desc { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* ─── SECTOR ICONS ───────────────────────────────────────────── */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px; }
.sector-item {
  text-align: center; padding: 28px 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: box-shadow .2s, transform .2s;
}
.sector-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sector-ico  { font-size: 32px; margin-bottom: 10px; }
.sector-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.sector-cnt  { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
#footer { background: #0D1124; color: rgba(255,255,255,.75); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 28px 36px; margin-bottom: 24px; }
.f-logo {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0 0 14px;
  line-height: 0;
}
.f-logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.50); overflow-wrap: break-word; }
.f-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.f-links { display: flex; flex-direction: column; gap: 9px; }
.f-links a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .15s; overflow-wrap: anywhere; }
.f-links a:hover, .f-links a.active { color: #fff; }
.f-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.f-tag { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); border-radius: 4px; padding: 4px 10px; font-size: 11px; color: rgba(255,255,255,.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.50); }
.footer-bottom a:hover { color: #fff; }

/* ─── HAMBURGER & MOBILE NAV ─────────────────────────────────── */
.nav-ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-ham span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 1050;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 24px 48px;
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
  gap: 0;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a:hover { color: var(--p); }
.nav-mobile .nav-mob-cta {
  margin-top: 32px;
  text-align: center;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .nav-inner { gap: 12px; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
}

@media (max-width: 1080px) {
  :root { --nav-h: 64px; }
  .nav-cta { display: none !important; }
  .nav-ham { display: flex; }
  .nav-logo img { max-width: calc(100vw - 96px); }
}

@media (max-width: 1000px) {
  .trust-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .srv-card, .srv-card:nth-child(4), .srv-card:nth-child(5) { grid-column: span 1; }
  .agof-inner { grid-template-columns: 1fr; gap: 32px; }
  .agof-caps { grid-template-columns: 1fr; }
  .split, .srv-detail-inner { grid-template-columns: 1fr; gap: 36px; }
  .split.img-right .split-img { order: 0; }
  .srv-detail-inner.flip { direction: ltr; }
  .split-stats { position: static; margin-top: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid-lg { grid-template-columns: 1fr 1fr; }
  .srv-detail-grid { grid-template-columns: 1fr !important; }
  .srv-detail-grid .srv-detail-img { order: -1; }
  .two-col, .faq-grid { grid-template-columns: 1fr; }
  .wp-block-gallery.is-style-carousel { --ec-per: 2; --ec-h: clamp(220px, 42vw, 340px); }
  .wp-block-gallery.is-style-carousel:not(.is-carousel-ready) { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .wrap, .wrap-sm, .page-hero-inner { padding: 0 20px; }
  .f-logo { padding: 6px 10px; }
  .f-logo img { height: 44px; }
  .nav-mobile { padding: 12px 20px 40px; }
  .cta-box, .contact-cta-box { padding: 36px 24px; }
  .hero-content { padding: calc(var(--nav-h) + 16px) 20px 36px !important; }
}

@media (max-width: 640px) {
  /* Proto-bar: ocultar paletas, solo mostrar fila 1 compacta */
  .pb-row-2 { display: none !important; }
  .pb-row-1 { flex-wrap: wrap; gap: 6px; padding: 6px 12px; }
  .pb-row-1 .pb-label { font-size: 9px; }

  /* Nav — logo más grande, barra más baja */
  :root { --nav-h: 58px; }
  .wrap, .wrap-sm, .page-hero-inner { padding: 0 16px; }
  .nav-logo { padding: 2px 0; }
  .nav-logo img { height: calc(var(--nav-h) - 4px); }
  .nav-mobile a { font-size: 18px; padding: 16px 0; }

  /* Hero */
  .hero-h1 { font-size: clamp(26px, 7vw, 42px) !important; }
  .hero-desc { font-size: 15px; }
  .hero-chips { gap: 6px; }
  .hero-chip { font-size: 11px; padding: 5px 10px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas a { width: 100%; justify-content: center; }
  .trust-item { white-space: normal; border-right: none; padding: 8px 14px; }
  .stat-cards { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .sc { padding: 14px 12px; }
  .sc-num { font-size: 22px; }

  /* Credentials / trust bar */
  .creds-track, .creds-inner { animation: none !important; }
  .creds-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .creds-inner { width: auto !important; display: flex; gap: 16px; padding: 0 16px; }

  /* Services grid */
  .services-grid { grid-template-columns: 1fr !important; }
  .srv-card { grid-column: span 1 !important; }

  /* Service detail sections */
  .srv-detail-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .srv-detail-img { height: 220px; overflow: hidden; border-radius: var(--r-lg); }
  .srv-detail-img img { width: 100%; height: 220px; object-fit: cover; }

  /* Stats bar */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-item { padding: 24px 0; }

  /* Section headings */
  .section-title { font-size: clamp(24px, 6vw, 40px); }
  section { padding: 36px 0; }

  /* AGÖF */
  .agof-inner { grid-template-columns: 1fr; }
  .agof-caps { grid-template-columns: 1fr; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; }

  /* Projects */
  .proj-grid-lg { grid-template-columns: 1fr !important; }
  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 12px; padding: 6px 12px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cinfo-grid { grid-template-columns: 1fr; }

  /* Clients */
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .clients-logos-grid { grid-template-columns: repeat(3, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .f-logo { padding: 6px 10px; }
  .f-logo img { height: 42px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Page heroes */
  .page-hero { padding: 40px 0 36px; }
  .page-title { font-size: clamp(24px, 7vw, 44px); }
  .lead { font-size: 15px; }

  .wp-block-gallery.is-style-carousel { --ec-per: 1; --ec-gap: 0px; --ec-h: clamp(200px, 58vw, 320px); }
  .wp-block-gallery.is-style-carousel:not(.is-carousel-ready) { grid-template-columns: 1fr; }
  .ec-carousel-btn { width: 40px; height: 40px; }
  .ec-carousel-prev { left: 8px; }
  .ec-carousel-next { right: 8px; }
  .ec-carousel-track .wp-element-caption,
  .ec-carousel-track figcaption { padding: 32px 16px 14px; font-size: 13px; }
}

/* ─── HOME HERO (antes vivía inline en el HTML pegado) ───────── */
#hero.ecotec-hero,
.ecotec-hero.wp-block-cover {
  position: relative;
  min-height: 80vh;
  margin-top: calc(-1 * var(--nav-h));
  overflow: hidden;
  padding: 0 !important;
}
.ecotec-hero .wp-block-cover__image-background {
  object-position: center 40%;
}
.ecotec-hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.ecotec-hero .wp-block-cover__background::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,140,26,.18) 0%, transparent 70%);
}
.ecotec-hero .wp-block-cover__background::after {
  content: '';
  position: absolute; bottom: -100px; left: -60px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125,48,8,.14) 0%, transparent 70%);
}
.ecotec-hero .wp-block-cover__inner-container {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  padding: calc(var(--nav-h) + 28px) 32px 52px;
}
.hero-content { margin: 0 !important; align-items: center; }
.hero-left-col { min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,140,26,.18);
  color: #6ee86e;
  border: 1px solid rgba(26,140,26,.35);
  border-radius: 24px; padding: 6px 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 18px !important;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block; width: 7px; height: 7px;
  background: #1A8C1A; border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff !important;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 0 14px !important;
}
.hero-h1 strong { color: #4de44d; background: none; font-weight: 800; }
.hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  line-height: 1.7; max-width: 540px; margin: 0 0 20px !important;
  text-align: left; hyphens: none;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-right-col { display: flex; flex-direction: column; gap: 16px; animation: float-in .8s ease both; }
@keyframes float-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.stat-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 !important;
}
.sc-blue  { background: rgba(24,41,176,.5); }
.sc-green { background: rgba(26,140,26,.4); }
.sc-earth { background: rgba(125,48,8,.4);  }
.sc-white { background: rgba(255,255,255,.12); }
.stat-card-body { min-width: 0; }
.stat-card-num {
  font-family: 'Outfit', sans-serif; font-size: 1.9rem; font-weight: 800;
  color: #fff; line-height: 1; letter-spacing: -.02em; margin: 0 !important;
}
.stat-card-num sup { font-size: .65em; font-weight: 700; vertical-align: super; }
.stat-card-lbl { font-size: 13px; color: rgba(255,255,255,.65); margin: 3px 0 0 !important; }
.agof-card {
  background: linear-gradient(135deg, rgba(26,140,26,.25) 0%, rgba(24,41,176,.25) 100%);
  border: 1px solid rgba(26,140,26,.35);
  border-radius: 16px; padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.agof-card p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; }
.agof-card p strong { display: block; color: #fff; font-size: 14px; font-weight: 700; }
/* Windows no dibuja 🇩🇪 (se ve "DE"). Pintamos la tricolor alemana. */
.agof-flag,
.flag-de,
.trust-inner > .wp-block-group:nth-child(4) .trust-icon {
  position: relative;
  width: 32px;
  height: 22px;
  flex-shrink: 0;
  overflow: hidden;
  color: transparent !important;
  font-size: 1px !important;
  line-height: 22px !important;
  margin: 0 !important;
}
.agof-flag::before,
.flag-de::before,
.trust-inner > .wp-block-group:nth-child(4) .trust-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: linear-gradient(#000 0 33.34%, #DD0000 33.34% 66.66%, #FFCC00 66.66%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.agof-card-text p { margin: 0; }
.agof-card-text strong { display: block; color: #fff; font-size: 14px; font-weight: 700; }
.agof-card-text span { color: rgba(255,255,255,.6); font-size: 12px; }
#stats { background: var(--surface2); }
#clientes-strip { background: var(--bg); padding: 64px 0; overflow: hidden; }
.clients-head { text-align: center; margin-bottom: 36px; }
@media (max-width: 900px) {
  .ecotec-hero .wp-block-cover__inner-container { padding: calc(var(--nav-h) + 20px) 20px 40px; }
  .hero-right-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-right-col .agof-card { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .hero-right-col { grid-template-columns: 1fr; }
}

/* ─── Páginas interiores (estilos que vivían inline en el mockup) ─── */
.srv-detail { padding: 44px 0; }
.srv-detail + .srv-detail { border-top: 1px solid var(--border); }
.srv-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.srv-detail-grid.flip > :first-child { order: 2; }
.srv-num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 3rem; color: var(--border); line-height: 1; margin-bottom: -6px; display: block; }
.srv-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--ink); margin-bottom: 14px; line-height: 1.2; }
.srv-desc { font-size: 15px; color: var(--ink-2); line-height: 1.72; margin-bottom: 20px; }
.srv-scope { margin: 20px 0; }
.srv-scope-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.srv-clients { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.anchor-nav { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.anchor-link:not(.wp-block-button) { font-size: 13px; font-weight: 500; color: var(--p); padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); transition: all .15s; }
.anchor-link:not(.wp-block-button):hover { background: var(--p); color: #fff; border-color: var(--p); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.value-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; }
.value-icon { font-size: 32px; margin-bottom: 12px; }
.value-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.value-text { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 32px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -32px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--p); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--p); }
.tl-year { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 13px; color: var(--p); margin-bottom: 4px; }
.tl-text { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.tl-text strong { color: var(--ink); }

.proj-listing { display: flex; flex-direction: column; gap: 40px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.filter-btn:not(.wp-block-button) {
  padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg); color: var(--ink-2);
  cursor: pointer; transition: all .15s;
}
.filter-btn:not(.wp-block-button):hover { border-color: var(--p); color: var(--p); }
.filter-btn:not(.wp-block-button).active { background: var(--p); color: #fff; border-color: var(--p); }
.proj-grid-lg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card-lg {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: var(--bg); border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.proj-card-lg:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.proj-img { height: 200px; overflow: hidden; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.proj-card-lg:hover .proj-img img { transform: scale(1.05); }
.proj-body { padding: 20px 22px; }
.proj-sector {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--p); background: var(--p-lt); border-radius: 4px;
  padding: 3px 8px; margin-bottom: 10px;
}
.proj-title-card { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.proj-desc-card { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.proj-meta { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-lt); }
.proj-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.hidden { display: none !important; }

.sector-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.sf-btn {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg); color: var(--ink-2);
  cursor: pointer; transition: all .15s;
}
.sf-btn:hover { border-color: var(--p); color: var(--p); }
.sf-btn.active { background: var(--p); color: #fff; border-color: var(--p); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-intro { font-size: 15px; color: var(--ink-2); line-height: 1.72; margin-bottom: 24px; }
.cinfo-list { display: flex; flex-direction: column; gap: 20px; }
.cinfo-row { display: flex; align-items: flex-start; gap: 14px; }
.cinfo-ico {
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--p-lt); color: var(--p);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.cinfo-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; }
.cinfo-val { font-size: 15px; color: var(--ink); font-weight: 500; }
.cinfo-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cta-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 52px 44px; text-align: center; box-shadow: var(--shadow-lg);
  position: sticky; top: calc(var(--bar-h) + var(--nav-h) + 24px);
}
.cta-box-icon { font-size: 56px; margin-bottom: 24px; line-height: 1; }
.cta-box-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; line-height: 1.2; }
.cta-box-sub { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin-bottom: 36px; }
.cta-box-note { font-size: 12px; color: var(--ink-3); margin-top: 16px; }
.subject-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 28px; }
.subject-btn:not(.wp-block-button) {
  padding: 10px 12px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  cursor: pointer; transition: all .15s; text-align: left; line-height: 1.3;
}
.subject-btn:not(.wp-block-button):hover { border-color: var(--p); background: var(--p-lt); color: var(--p); }
.subject-btn:not(.wp-block-button).active { border-color: var(--p); background: var(--p); color: #fff; }
.olores-block {
  background: var(--p-lt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--p);
  border-radius: var(--r-lg);
  padding: 24px 24px 24px 22px;
  margin-top: 32px;
  max-width: 100%;
  box-sizing: border-box;
}
.olores-block h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: var(--p); margin-bottom: 8px; }
.olores-block p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; }
.client-note { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 20px; }

.agof-seal p { color: #fff; text-align: center; }
.agof-seal-flag.flag-de { margin: 8px auto 0; }

@media (max-width: 860px) {
  .srv-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .srv-detail-grid.flip > :first-child { order: 0; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid-lg { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .cta-box { position: static; padding: 36px 24px; }
  .subject-grid { grid-template-columns: 1fr; }
  .proj-listing { gap: 28px; }
}
@media (max-width: 540px) {
  .values-grid { grid-template-columns: 1fr; }
  .proj-grid-lg { grid-template-columns: 1fr; }
  .anchor-link { font-size: 12px; padding: 6px 10px; }
  .page-hero .lead { font-size: 15px; }
  .filter-bar, .sector-filter { gap: 6px; }
  .filter-btn, .sf-btn { font-size: 12px; padding: 6px 12px; }
  .proj-listing { gap: 24px; }
}
