/* ==========================================================================
   Envisolutions — sistema de diseño
   Tech-ambiental sobre base minimal clara.
   Tokens en :root → mapear a Variables Globales de Elementor al migrar.
   ========================================================================== */

:root {
  --bg: #f2f6f4;
  --bg-2: #e4ecea;
  --surface: #ffffff;
  --ink: #14152a;
  --ink-2: #3a3d57;
  --ink-3: #5a5e78;
  --line: rgba(20, 21, 42, 0.12);
  --line-2: rgba(20, 21, 42, 0.24);
  --deep: #1a1b32;
  --deep-2: #2a2c52;
  --signal: #9ecc38;
  --aqua: #2cc6c3;
  --signal-ink: #14210a;
  --teal: #0a7f7c;

  --font-display: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --green-ink: #4f7d0f;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1360px;
  --r: 22px;
  --r-s: 12px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(0.94rem, 0.92rem + 0.16vw, 1rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--signal); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 3px solid var(--bg); }
.num { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top 0.2s; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.display { font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; }
.h1 { font-size: clamp(2rem, 1rem + 3.2vw, 3.4rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.6rem, 1.05rem + 2vw, 2.5rem); }
.h3 { font-size: clamp(1.12rem, 1rem + 0.55vw, 1.4rem); letter-spacing: -0.015em; line-height: 1.18; }
.lead { font-size: clamp(0.96rem, 0.92rem + 0.2vw, 1.06rem); color: var(--ink-2); max-width: 56ch; line-height: 1.6; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 2em; }
.prose p { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; list-style: disc; color: var(--ink-2); }
.prose li + li { margin-top: 0.4em; }

/* ---------- Botones ---------- */
.btn {
  --bg-b: var(--ink); --fg-b: #fff;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--bg-b); color: var(--fg-b);
  border: 1px solid var(--bg-b);
  font-weight: 500; font-size: 0.97rem; text-decoration: none; letter-spacing: -0.005em;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn .btn__icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--signal); color: var(--signal-ink);
  transition: transform 0.45s var(--ease), background-color 0.3s;
}
.btn .btn__icon svg { width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.btn:hover .btn__icon svg { transform: translateX(2px) rotate(-45deg); }
.btn:active { transform: scale(0.97); }
.btn--ghost { --bg-b: transparent; --fg-b: var(--ink); border-color: var(--line-2); }
.btn--ghost .btn__icon { background: var(--ink); color: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { --bg-b: #fff; --fg-b: var(--ink); border-color: #fff; }
.btn--light .btn__icon { background: var(--deep); color: var(--signal); }
.btn--sm { min-height: 42px; padding: 5px 5px 5px 18px; font-size: 0.92rem; }
.btn--sm .btn__icon { width: 30px; height: 30px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color 0.3s, gap 0.35s var(--ease); }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.link-arrow:hover { border-color: currentColor; gap: 12px; }
.link-arrow:hover svg { transform: rotate(-45deg); }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--deep); color: rgba(255,255,255,0.78); font-size: 0.8rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 38px; }
.topbar a { text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--signal); }
.topbar__list { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__list li { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; opacity: 0.8; }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a { display: grid; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); transition: box-shadow 0.4s, transform 0.5s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(20,21,42,0.35); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 0.94rem; text-decoration: none; color: var(--ink-2); transition: background-color 0.25s, color 0.25s; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav__link svg { width: 12px; height: 12px; transition: transform 0.35s var(--ease); }
.has-sub:hover > .nav__link svg, .has-sub:focus-within > .nav__link svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 50%; width: min(760px, 92vw); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 28px 56px -24px rgba(20,21,42,0.38), 0 2px 6px rgba(20,21,42,0.05);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(0.98); transform-origin: top center;
  transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.sub a { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; text-decoration: none; font-weight: 500; transition: background-color 0.2s; }
.sub a small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }
.sub a:hover { background: var(--bg); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .topbar { display: none; }
  .burger { display: block; }
  .nav__cta .btn { display: none; }
  .nav__list {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--pad) 40px; overflow-y: auto; z-index: 99;
    clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease); visibility: hidden;
  }
  .menu-open .nav__list { clip-path: inset(0); visibility: visible; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.03em; padding: 18px 0; border-radius: 0; background: none !important; width: 100%; justify-content: space-between; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .sub { transform: none; left: auto; }
  .sub { position: static; width: auto; display: block; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 14px; }
  .sub a { padding: 8px 0; }
  .nav__link svg { display: none; }
  .nav__list .mobile-cta { display: block; border: 0; padding-top: 24px; }
}
@media (min-width: 1021px) { .mobile-cta { display: none; } }

/* ---------- Revelado ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="clip"] { opacity: 0; transform: translateY(32px) scale(0.96); transition: opacity 1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.12em; margin: 0 -0.08em -0.12em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--base, 0ms)); }
.split.is-in .w > span { transform: none; }
html:not(.js) .split .w > span { transform: none; }

/* ---------- Topografía (canvas) ---------- */
.topo { --topo-accent: currentColor; position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); pointer-events: none; }
.on-dark .topo { color: #fff; --topo-accent: var(--aqua); }
.hero .topo { --topo-accent: #9ecc38; }
.topo--over { color: #fff; opacity: 0.4; mix-blend-mode: soft-light; }

/* ---------- HERO ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh - var(--header-h) - 38px, 880px); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(72px, 11vh, 140px) 0 0; overflow: clip; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero__canvas .topo { pointer-events: auto; }
.hero__body { position: relative; z-index: 1; pointer-events: none; }
.hero__body a, .hero__body button { pointer-events: auto; }
.hero__title { max-width: 16ch; font-size: clamp(2.6rem, 1rem + 3.5vw, 4rem); }
.hero__title { isolation: isolate; }
.hero__title em { font-style: normal; color: var(--ink); position: relative; display: inline-block; padding: 0 0.14em; margin-left: -0.06em; }
.hero__title em::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0.12em; bottom: 0.02em; background: var(--signal); border-radius: 0.16em; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 0.9s; }
.hero__title.is-in em::before { transform: none; }
html:not(.js) .hero__title em::before { transform: none; }
.hero__sub { margin-top: 28px; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot { position: relative; z-index: 1; margin-top: clamp(56px, 9vh, 104px); border-top: 1px solid var(--line); background: var(--bg); }
.hero__foot .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__foot a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; text-decoration: none; font-weight: 500; border-right: 1px solid var(--line); padding-inline: 22px; transition: background-color 0.3s; }
.hero__foot a:first-child { padding-left: 0; }
.hero__foot a:last-child { border-right: 0; }
.hero__foot a > svg { width: 16px; height: 16px; flex: none; transition: transform 0.45s var(--ease); color: var(--teal); }
.hero__foot a:hover > svg { transform: rotate(-45deg); }
.hero__foot a:hover { color: var(--teal); }
.readout {
  position: absolute; right: var(--pad); bottom: calc(100% + 18px); z-index: 2;
  display: flex; gap: 18px; align-items: center; padding: 10px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.readout b { color: var(--ink); font-weight: 500; }
.readout i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(158, 204, 56,0.35); display: inline-block; margin-right: 8px; }
@media (max-width: 900px) {
  .hero__foot .container { grid-template-columns: 1fr 1fr; }
  .hero__foot a { border-bottom: 1px solid var(--line); }
  .hero__foot a:nth-child(2) { border-right: 0; }
  .hero__foot a:nth-child(odd) { padding-left: 0; }
  .readout { display: none; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.section__head { display: grid; grid-template-columns: 1fr minmax(0, 0.9fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head .lead { justify-self: end; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } .section__head .lead { justify-self: start; } }
.on-dark { background: var(--deep); color: #fff; }
.on-dark .lead, .on-dark .muted, .on-dark p { color: rgba(255,255,255,0.78); }
.on-dark ::selection { background: var(--signal); color: var(--signal-ink); }

/* ---------- Acerca ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.about__text { display: grid; gap: 28px; }
.about__text .h2 { max-width: 16ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); margin-top: 8px; }
.stat { padding: 28px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat__n { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 1.2rem + 1.9vw, 2.9rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__l { margin-top: 10px; font-size: 0.9rem; color: var(--ink-3); line-height: 1.35; max-width: 18ch; }
.about__visual { margin: 0; position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.about__visual .topo { color: var(--deep); }
.about__visual figcaption { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; justify-content: space-between; align-items: end; color: var(--ink-2); }
.about__visual img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__visual { aspect-ratio: 4/3; order: -1; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 24px; } .stat__l { max-width: none; } }

/* ---------- Lista de servicios (filas) ---------- */
.rows { border-top: 1px solid var(--line-2); }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) auto auto; gap: clamp(16px, 4vw, 64px); align-items: center; padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line-2); text-decoration: none; isolation: isolate; }
.row::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--deep); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row__title { transition: transform 0.6s var(--ease), color 0.4s; }
.row__body { display: grid; gap: 14px; transition: color 0.4s; }
.row__body p { color: var(--ink-2); max-width: 48ch; transition: color 0.4s; }
.row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.row__tags li { font-size: 0.8rem; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); transition: color 0.4s, border-color 0.4s; }
.row__go { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 0.4s, border-color 0.4s, transform 0.6s var(--ease); }
.row__go svg { width: 20px; height: 20px; transition: transform 0.6s var(--ease), color 0.3s; }
.row:hover .row__title, .row:focus-visible .row__title { transform: translateX(14px); color: #fff; }
.row:hover .row__body p, .row:focus-visible .row__body p { color: rgba(255,255,255,0.8); }
.row:hover .row__tags li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.row:hover .row__go { background: var(--signal); border-color: var(--signal); transform: scale(1.08); }
.row:hover .row__go svg { transform: rotate(-45deg); color: var(--signal-ink); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr auto; } .row__body { grid-column: 1 / -1; grid-row: 2; } .row__go { display: none; } .row__title { grid-column: 1; } .row__img { grid-column: 2; grid-row: 1; width: 132px; } }
@media (hover: none) { .row::before { display: none; } .row:hover .row__title { transform: none; color: inherit; } }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--line-2); }
.steps__line { position: absolute; left: 0; top: 14px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--signal), var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease-in-out); }
.steps.is-in .steps__line { transform: scaleX(1); }
.step { position: relative; padding: 76px 28px 0 0; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 4px; left: 76px; padding: 4px 12px 4px 10px; background: var(--bg-2); font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--ink-2); max-width: 28ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before, .steps__line { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__line { transform: scaleY(0); transform-origin: top; width: 2px; height: 100%; }
  .steps.is-in .steps__line { transform: scaleY(1); }
  .step { padding: 4px 0 40px 72px; min-height: 64px; }
  .step::before { display: none; }
}

/* ---------- Por qué elegirnos ---------- */
.why { overflow: clip; isolation: isolate; }
.why .topo { opacity: 0.16; }
.why__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 7vw, 120px); }
.why__intro { display: grid; gap: 28px; align-content: start; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.why__list { border-top: 1px solid rgba(255,255,255,0.22); }
.why__list li { padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,0.22); display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: baseline; }
.why__list h3 { color: #fff; }
.why__list p { color: rgba(255,255,255,0.74); }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } .why__intro { position: static; } .why__list li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Clientes (marquee) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marq 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-slot { width: 210px; height: 96px; flex: none; display: grid; place-items: center; padding: 14px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.logo-slot img { max-height: 52px; max-width: 100%; width: auto; opacity: 0.62; transition: opacity 0.35s, transform 0.5s var(--ease); }
.logo-slot:hover img { opacity: 1; transform: scale(1.06); }
@keyframes marq { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Tarjetas de proyecto / post ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { display: grid; gap: 18px; text-decoration: none; align-content: start; }
.card__media { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--bg-2); isolation: isolate; transition: transform 0.7s var(--ease); }
.card__media .topo { color: var(--deep); transition: transform 1.2s var(--ease); }
.card__media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media .topo, .card:hover .card__media img.photo { transform: scale(1.07); }
.card__chip { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.card__chip--ex { left: auto; right: 14px; background: var(--signal); border-color: transparent; color: var(--signal-ink); font-weight: 500; }
.card__meta { display: flex; gap: 12px; align-items: center; color: var(--ink-3); font-size: 0.85rem; }
.card__meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.card h3 { transition: color 0.3s; }
.card:hover h3 { color: var(--teal); }
.card p { color: var(--ink-2); max-width: 46ch; }
.card--wide { grid-column: span 2; }
.card--wide .card__media { aspect-ratio: 16/9; }
@media (max-width: 640px) { .card--wide { grid-column: auto; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 0.92rem; font-weight: 500; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s; }
.filters button:hover { border-color: var(--ink); }
.filters button:active { transform: scale(0.96); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-item][hidden] { display: none; }

/* ---------- CTA ---------- */
.cta { overflow: clip; isolation: isolate; }
.cta .topo { opacity: 0.2; }
.cta__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.cta__list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.22); }
.cta__list a, .cta__list div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.22); text-decoration: none; color: #fff; transition: color 0.3s, transform 0.5s var(--ease); }
.cta__list a:hover { color: var(--signal); transform: translateX(10px); }
.cta__list span:first-child { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.cta__list span:last-child { text-align: right; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interiores) ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 6vw, 88px); overflow: clip; border-bottom: 1px solid var(--line); }
.page-hero .topo { opacity: 0.7; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero .lead { margin-top: 28px; }
.meta-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.meta-bar dt { color: var(--ink-3); font-size: 0.82rem; margin-bottom: 4px; }
.meta-bar dd { margin: 0; font-weight: 500; }
@media (max-width: 720px) { .meta-bar { grid-template-columns: 1fr 1fr; } }

.split-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.split-layout aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; } .split-layout aside { position: static; } }

.blocks { border-top: 1px solid var(--line-2); }
.block { padding: 30px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: baseline; }
.block p { color: var(--ink-2); }
@media (max-width: 720px) { .block { grid-template-columns: 1fr; gap: 8px; } }
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }

.note { padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 0.9rem; }
.figure-lg { aspect-ratio: 16/8; border-radius: var(--r); overflow: hidden; position: relative; background: var(--bg-2); isolation: isolate; margin: clamp(32px, 5vw, 64px) 0; }
@media (max-width: 720px) { .figure-lg { aspect-ratio: 4/3; } }
.figure-lg .topo { color: var(--deep); }
.figure-lg img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color 0.25s, box-shadow 0.25s; min-height: 52px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10,127,124,0.18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--teal); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; }
.form__status { min-height: 1.5em; font-weight: 500; }
.form__status[data-s="ok"] { color: var(--teal); } .form__status[data-s="err"] { color: #b3261e; }
.contact-list { display: grid; border-top: 1px solid var(--line-2); }
.contact-list a, .contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.contact-list span:first-child { color: var(--ink-3); font-size: 0.88rem; }
.contact-list a:hover span:last-child { color: var(--teal); }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(0.95); }

/* ---------- Artículos ---------- */
.article-head { max-width: 900px; }
.article-body { max-width: 68ch; margin-inline: auto; }
.article-body p { font-size: 1.12rem; color: var(--ink-2); line-height: 1.7; }
.article-body p + p { margin-top: 1.3em; }
.article-body p:first-child::first-line { color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.74); padding: clamp(56px, 7vw, 96px) 0 28px; position: relative; overflow: clip; isolation: isolate; }
.footer .topo { opacity: 0.1; color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); }
.footer h4 { font-family: var(--font); font-size: 0.85rem; letter-spacing: 0; font-weight: 500; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--signal); }
.footer__brand img { height: 36px; margin-bottom: 20px; }
.footer__brand p { max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.footer__social a:hover { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__big { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 0.8; font-size: clamp(3.5rem, 14vw, 15rem); color: rgba(255,255,255,0.06); margin-top: clamp(40px, 6vw, 80px); user-select: none; white-space: nowrap; overflow: hidden; }
.footer__bottom { padding-right: 150px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.86rem; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--deep); color: #fff; text-decoration: none; font-weight: 500; font-size: 0.92rem; box-shadow: 0 14px 34px -12px rgba(20,21,42,0.6); transition: transform 0.4s var(--ease), background-color 0.3s; }
.wa:hover { transform: translateY(-3px); background: var(--deep-2); }
.wa__i { width: 42px; height: 42px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; position: relative; }
.wa__i svg { width: 22px; height: 22px; }
.wa__i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--signal); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 520px) { .wa span:last-child { display: none; } .wa { padding: 6px; } }

/* ---------- Transiciones entre páginas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s ease both vt-out; }
::view-transition-new(root) { animation: 0.5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .split .w > span { transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Marca / fotos ---------- */
.logo img { height: 38px; width: auto; }
.footer__brand img { height: 42px; }
.card__media img.photo, .about__visual img.photo, .figure-lg img.photo { background: var(--bg-2); }
.aside-img { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; position: relative; background: var(--bg-2); }
.aside-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(40px, 6vw, 80px); }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4/3; grid-column: span 2; }
.gallery figure:first-child { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure, .gallery figure:first-child { grid-column: span 1; grid-row: auto; aspect-ratio: 4/3; } .gallery figure:first-child { grid-column: span 2; } }
.photo-band { border-radius: var(--r); overflow: hidden; aspect-ratio: 21/9; position: relative; background: var(--bg-2); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* Sección "Acerca": fondo geológico con desvanecimiento */
.about-sec { position: relative; overflow: clip; isolation: isolate; }
.about-bg { position: absolute; inset: 0 0 0 30%; z-index: -1; -webkit-mask-image: radial-gradient(ellipse 70% 75% at 78% 50%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 75% at 78% 50%, #000 25%, transparent 75%); }
.about-bg .topo { color: var(--ink); --topo-accent: #0f9a96; opacity: 0.9; }
@media (max-width: 900px) { .about-bg { inset: 0; } }

/* ---------- Iconos de servicio: manchas orgánicas + trazo animado ---------- */
.sico { --blob-a: 58% 42% 55% 45% / 48% 58% 42% 52%; --blob-b: 42% 58% 46% 54% / 58% 44% 56% 42%; --s: 52px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; color: var(--ink); background: rgba(158, 204, 56, 0.26); border-radius: var(--blob-a); transition: border-radius 0.9s var(--ease), background-color 0.4s, transform 0.7s var(--ease); }
.sico svg { width: calc(var(--s) * 0.66); height: calc(var(--s) * 0.66); flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sico svg > *, .sico svg g > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease) 0.15s; }
.sico.is-in svg > *, .sico.is-in svg g > *, html:not(.js) .sico svg > *, html:not(.js) .sico svg g > * { stroke-dashoffset: 0; }
.sico--sm { --s: 46px; }
a:hover > .sico, a:focus-visible > .sico { border-radius: var(--blob-b); background: var(--signal); transform: rotate(-6deg) scale(1.06); }
.sico--leaf svg { transform-origin: 15% 85%; }
a:hover > .sico--leaf svg { animation: sway 1.8s ease-in-out infinite; }
a:hover > .sico--drop svg { animation: drip 1.6s var(--ease-in-out) infinite; }
a:hover > .sico--drone svg { animation: float 1.8s ease-in-out infinite; }
a:hover > .sico--drone .rot { animation: spin 0.18s linear infinite; transform-box: fill-box; transform-origin: center; }
.sico--scales .beam { transform-origin: 24px 13px; }
a:hover > .sico--scales .beam { animation: tilt 2.2s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-9deg); } }
@keyframes drip { 0% { transform: translateY(-1px) scale(1); } 45% { transform: translateY(2px) scale(0.94, 1.06); } 100% { transform: translateY(-1px) scale(1); } }
@keyframes float { 50% { transform: translateY(-3px); } }
@keyframes spin { 50% { transform: scaleX(0.55); } }
@keyframes tilt { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.hero__foot a { gap: 14px; justify-content: flex-start; }
.hero__foot a .sico { --s: 60px; }
.hero__foot a > span:not(.sico) { flex: 1; line-height: 1.25; }
.hero__foot a:hover { color: var(--ink); }

/* Miniatura orgánica en filas de servicio */
.row__img { width: clamp(170px, 19vw, 300px); aspect-ratio: 5 / 4; overflow: hidden; background: var(--bg-2); border-radius: 58% 42% 52% 48% / 52% 58% 42% 48%; transition: border-radius 1s var(--ease), transform 0.9s var(--ease); }
.row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.row:hover .row__img { border-radius: 42% 58% 46% 54% / 46% 44% 56% 54%; transform: rotate(-3deg) scale(1.1); }
.row:hover .row__img img { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .sico svg > *, .sico svg g > * { stroke-dashoffset: 0; } }

.sub .sub__all { grid-column: 1 / -1; align-items: center; justify-content: space-between; margin-top: 4px; padding: 14px 16px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; font-size: 0.92rem; color: var(--teal); }
.sub .sub__all svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.sub .sub__all:hover svg { transform: translateX(4px); }
@media (max-width: 1020px) { .sub .sub__all { display: none; } }

.sub .sico svg > *, .sub .sico svg g > * { stroke-dashoffset: 0; }

.stat__plus { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-left: 0.18em; vertical-align: 0.95em; background: var(--signal); color: var(--ink); border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; font-family: var(--font-display); font-weight: 600; font-size: 0.46em; line-height: 1; letter-spacing: 0; transition: border-radius 0.9s var(--ease), transform 0.7s var(--ease); }
.stat:hover .stat__plus { border-radius: 42% 58% 46% 54% / 58% 44% 56% 42%; transform: rotate(90deg) scale(1.08); }

/* Iconos en el proceso */
.step .sico--step { --s: 56px; position: absolute; top: -14px; left: 0; background: linear-gradient(rgba(158, 204, 56, 0.32), rgba(158, 204, 56, 0.32)), var(--bg-2); }
.step:hover .sico { border-radius: var(--blob-b); background: var(--signal); transform: rotate(-6deg) scale(1.08); }
.step:hover .sico--strata svg { animation: wave 1.6s ease-in-out infinite; }
.step:hover .sico--search svg { animation: tilt2 1.6s ease-in-out infinite; }
.step:hover .sico--doc svg { animation: float 1.8s ease-in-out infinite; }
.step:hover .sico--pulse svg, .step:hover .sico--check svg { animation: pop 1.4s var(--ease) infinite; }
@keyframes wave { 50% { transform: translateX(3px); } }
@keyframes tilt2 { 50% { transform: rotate(-12deg) scale(1.05); } }
@keyframes pop { 50% { transform: scale(1.12); } }
@media (max-width: 860px) { .step .sico--step { --s: 46px; top: -2px; left: 0; } }

.topbar__social { gap: 18px; }
.topbar__social svg { width: 19px; height: 19px; opacity: 1; }
.topbar .container { min-height: 42px; }

/* Menos aire entre el banner de página interior y su primera sección */
.page-hero + .section { padding-top: clamp(40px, 5vw, 72px); }

/* ---------- Nota de blog: autor, compartir, navegación ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: linear-gradient(90deg, var(--signal), var(--aqua)); transform: scaleX(0); transform-origin: left; opacity: 0; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; line-height: 1.35; }
.avatar { --s: 48px; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; background: var(--deep); border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }
.avatar img { width: 62%; height: 62%; object-fit: contain; }
.avatar--lg { --s: 72px; }
.article-foot { max-width: 68ch; margin: clamp(48px, 6vw, 80px) auto 0; padding-top: 32px; border-top: 1px solid var(--line-2); display: grid; gap: clamp(32px, 4vw, 48px); }
.article-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tag { padding: 7px 16px; border-radius: 999px; background: rgba(158, 204, 56, 0.3); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: background-color 0.3s; }
.tag:hover { background: var(--signal); }
.share { display: flex; align-items: center; gap: 8px; }
.share > span.muted { margin-right: 4px; font-size: 0.9rem; }
.share a, .share button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.share a:hover, .share button:hover { background: var(--signal); border-color: var(--signal); transform: translateY(-3px); }
.share svg { width: 19px; height: 19px; }
.share__ok { font-size: 0.85rem; color: var(--teal); font-weight: 500; }
.author { display: flex; gap: 20px; align-items: flex-start; }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.postnav a { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line-2); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.postnav a:last-child { text-align: right; }
.postnav a:hover strong { color: var(--teal); }
.postnav strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.02em; transition: color 0.3s; }
@media (max-width: 640px) { .postnav { grid-template-columns: 1fr; } .postnav a:last-child { text-align: left; } .author { flex-direction: column; } }

.why__photo { margin: 12px 0 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep-2); border-radius: 58% 42% 52% 48% / 52% 58% 42% 48%; transition: border-radius 1s var(--ease), transform 0.9s var(--ease); }
.why__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.why__photo:hover { border-radius: 42% 58% 46% 54% / 46% 44% 56% 54%; transform: rotate(-1.5deg); }
.why__photo:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .why__photo { max-width: 520px; } }

.why__intro .hero__cta { gap: 16px 32px; }

.row__tags a { text-decoration: none; }
.row__tags li:has(> a) { transition: background-color 0.3s, border-color 0.3s; }
.row__tags li:has(> a):hover { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }

/* Banner de páginas interiores: más compacto */
.page-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.page-hero .h1 { font-size: clamp(2rem, 1rem + 3vw, 3.5rem); letter-spacing: -0.035em; }
.page-hero .crumbs { margin-bottom: 18px; }
.page-hero .lead { margin-top: 18px; }
.page-hero .meta-bar { margin-top: 32px; }

/* ---------- Nosotros: visión / misión ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.vm__item--b { margin-top: clamp(0px, 7vw, 112px); }
.vm__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); border-radius: 58% 42% 52% 48% / 52% 58% 42% 48%; transition: border-radius 1s var(--ease), transform 0.9s var(--ease); }
.vm__item--b .vm__photo { border-radius: 42% 58% 46% 54% / 46% 44% 56% 54%; }
.vm__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.vm__item:hover .vm__photo, .vm__photo--sm:hover { border-radius: 42% 58% 46% 54% / 46% 44% 56% 54%; transform: rotate(-1.5deg); }
.vm__item--b:hover .vm__photo { border-radius: 58% 42% 52% 48% / 52% 58% 42% 48%; transform: rotate(1.5deg); }
.vm__item:hover .vm__photo img, .vm__photo--sm:hover img { transform: scale(1.06); }
.vm__head { display: flex; align-items: center; gap: 16px; margin: 32px 0 16px; }
.vm__head .sico { --s: 60px; }
.vm__item:hover .vm__head .sico { border-radius: var(--blob-b); background: var(--signal); transform: rotate(-6deg) scale(1.06); }
.vm__photo--sm { margin-top: 28px; max-width: 420px; }
@media (max-width: 860px) { .vm { grid-template-columns: 1fr; } .vm__item--b { margin-top: 0; } }

/* Franja de foto con trama geológica detrás y por encima */
.band-wrap { position: relative; isolation: isolate; }
.band-bg { position: absolute; inset: -72px -6vw; z-index: -1; -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 35%, transparent 78%); mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 35%, transparent 78%); }
.band-bg .topo { color: var(--ink); --topo-accent: #0f9a96; }
.band-wrap .photo-band img { object-position: 50% 42%; }
.band-wrap .topo--over { opacity: 0.5; mix-blend-mode: soft-light; }

.vm__item .lead { font-size: clamp(1rem, 0.95rem + 0.22vw, 1.1rem); line-height: 1.65; max-width: 52ch; }

/* Trama geológica en la esquina inferior derecha */
.corner-bg { position: absolute; right: 0; bottom: 0; width: min(820px, 75%); height: min(560px, 70%); z-index: -1; -webkit-mask-image: radial-gradient(ellipse 85% 85% at 100% 100%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 85% 85% at 100% 100%, #000 25%, transparent 78%); }
.corner-bg .topo { color: var(--ink); --topo-accent: #0f9a96; }
@media (max-width: 860px) { .corner-bg { width: 100%; } }

/* Banner del inicio en pantallas grandes: texto a la izquierda, centrado en vertical */
@media (min-width: 1400px) {
  .hero { padding-top: clamp(48px, 8vh, 110px); }
  .hero__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); }
  .hero__foot { margin-top: 0; }
}

/* Trama geológica lateral en detalle de proyecto */
.side-bg { position: absolute; left: 0; top: 28%; bottom: 0; width: min(780px, 56%); z-index: -1; -webkit-mask-image: radial-gradient(ellipse 85% 80% at 0% 55%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 85% 80% at 0% 55%, #000 25%, transparent 78%); }
.side-bg .topo { color: var(--ink); --topo-accent: #0f9a96; }
@media (max-width: 900px) { .side-bg { width: 100%; top: 45%; } }

/* Bloque de relleno con trama (cuando hay pocos proyectos) */
.more-box { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); display: grid; align-items: center; min-height: 320px; }
.more-box .topo { color: var(--ink); --topo-accent: #0f9a96; opacity: 0.9; -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 75%); mask-image: linear-gradient(90deg, transparent 5%, #000 75%); }
.more-box__txt { position: relative; padding: clamp(28px, 4vw, 56px); }

/* Franja de servicios del inicio en móvil: que no se corte a la derecha */
@media (max-width: 900px) {
  .hero__foot .container { padding-inline: var(--pad); }
  .hero__foot a { min-width: 0; gap: 10px; padding: 16px 10px; }
  .hero__foot a .sico { --s: 44px; }
  .hero__foot a > svg { display: none; }
  .hero__foot a > span:not(.sico) { font-size: 0.9rem; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 860px) { .step:last-child { padding-bottom: 0; } }

.footer__credit { opacity: 0.4; }
.footer__credit a, .footer__credit a:hover { color: inherit; text-decoration: none; transition: none; }

/* Iconos pequeños en las etiquetas de servicio */
.row__tags li { display: inline-flex; align-items: center; gap: 8px; padding-left: 5px; }
.row__tags li:has(> a) { padding-left: 11px; }
.pico { width: 22px; height: 22px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(158, 204, 56, 0.3); color: var(--teal); transition: background-color 0.4s, color 0.4s; }
.pico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.row:hover .pico, .row:focus-visible .pico { background: rgba(158, 204, 56, 0.22); color: var(--signal); }

/* Trama detrás de Visión / Misión */
.vm-bg { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 30%, transparent 82%); mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 30%, transparent 82%); }
.vm-bg .topo { color: var(--ink); --topo-accent: #0f9a96; }

.gallery--flush { margin-top: 0; }
@media (max-width: 720px) { .gallery--flush figure { aspect-ratio: 4/3; } }

/* Proyectos destacados (inicio): 2 tarjetas horizontales + cuadro con trama */
.feat { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 36px); align-items: stretch; }
.feat__list { display: grid; gap: clamp(28px, 3vw, 44px); }
.card--h { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(18px, 2.4vw, 32px); align-items: center; }
.card--h .card__media { aspect-ratio: 4 / 3; }
.card--h .card__body { display: grid; gap: 12px; align-content: center; }
.card--h .card__body p { max-width: 38ch; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 500; color: var(--teal); transition: gap 0.4s var(--ease); }
.card__more svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.card--h:hover .card__more { gap: 12px; }
.card--h:hover .card__more svg { transform: rotate(-45deg); }
.feat .more-box { min-height: 0; }
@media (max-width: 1000px) { .feat { grid-template-columns: 1fr; } .feat .more-box { min-height: 300px; } }
@media (max-width: 640px) { .card--h { grid-template-columns: 1fr; } }

.head-link { justify-self: end; }
@media (max-width: 860px) { .head-link { justify-self: start; } }

/* Cuadro con trama: el borde se vuelve azul al pasar el mouse */
.more-box { transition: border-color 0.4s var(--ease); }
@media (hover: hover) {
  .more-box:hover { border-color: var(--deep); }
}

/* Botones del banner en móvil: en una sola línea */
@media (max-width: 640px) {
  .hero__cta { flex-wrap: nowrap; gap: 8px; }
  .hero__cta .btn { min-height: 44px; padding: 4px 4px 4px 16px; gap: 8px; font-size: 0.88rem; white-space: nowrap; }
  .hero__cta .btn .btn__icon { width: 32px; height: 32px; }
}
@media (max-width: 350px) { .hero__cta { flex-wrap: wrap; } }

/* Filas de servicio: foto rectangular, más sobria */
.row__img { width: clamp(210px, 22vw, 330px); aspect-ratio: 4 / 3.1; border-radius: var(--r-s); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.0); }
.row:hover .row__img { border-radius: var(--r-s); transform: none; }
.row:hover .row__img img { transform: scale(1.07); }
@media (max-width: 860px) { .row__img { width: 132px; aspect-ratio: 4 / 3; } }

/* Filas de servicio en móvil: título, descripción y etiquetas, y la foto al final */
@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .row__title { grid-column: 1; grid-row: 1; }
  .row__body { grid-column: 1; grid-row: 2; }
  .row__img { grid-column: 1; grid-row: 3; width: 100%; aspect-ratio: 16 / 10; }
  .row__go { display: none; }
}

/* Móvil: filas de servicio como acordeón (una abierta a la vez) */
@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; align-items: center; padding: 22px 0; }
  .row::before { display: none; }
  .row__title { grid-column: 1; grid-row: 1; }
  .row__go { display: grid; grid-column: 2; grid-row: 1; width: 42px; height: 42px; }
  .row__body { grid-column: 1 / -1; grid-row: 2; }
  .row__img { grid-column: 1 / -1; grid-row: 3; width: 100%; aspect-ratio: 16 / 10; }
  .row:not(.is-open) .row__body, .row:not(.is-open) .row__img { display: none; }
  .row.is-open .row__body { margin-top: 14px; animation: rowopen 0.5s var(--ease) both; }
  .row.is-open .row__img { margin-top: 18px; animation: rowopen 0.6s var(--ease) 0.05s both; }
  @keyframes rowopen { from { opacity: 0; transform: translateY(-8px); } }
  /* sin efecto "hover" (fila oscura y título desplazado) en pantallas pequeñas */
  .row:hover .row__title, .row:focus-visible .row__title { transform: none; color: inherit; }
  .row:hover .row__body p { color: var(--ink-2); }
  .row:hover .row__tags li { color: var(--ink-2); border-color: var(--line-2); }
  .row:hover .pico { background: rgba(158, 204, 56, 0.3); color: var(--teal); }
  .row:hover .row__img { transform: none; }
  .row:hover .row__img img { transform: none; }
  /* flecha: ↓ cerrada (abrir) · ↗ abierta (ir al servicio) */
  .row .row__go svg, .row:hover .row__go svg { transform: rotate(90deg); color: inherit; }
  .row.is-open .row__go svg, .row.is-open:hover .row__go svg { transform: rotate(-45deg); }
  .row:hover .row__go { background: transparent; border-color: var(--line-2); transform: none; }
  .row.is-open .row__go, .row.is-open:hover .row__go { background: var(--signal); border-color: var(--signal); }
  .row.is-open .row__go svg { color: var(--signal-ink); }
}


/* ==========================================================================
   Ajustes corporativos (feedback del cliente)
   ========================================================================== */
/* Header: logo más grande que se achica al hacer scroll */
.nav { transition: height 0.4s var(--ease); }
.logo img { height: 48px; width: auto; transition: height 0.4s var(--ease); }
.site-header.is-scrolled .nav { height: 68px; }
.site-header.is-scrolled .logo img { height: 38px; }
.menu-open .site-header .nav { height: var(--header-h); }
.menu-open .site-header .logo img { height: 42px; }
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .logo img { height: 42px; }
  .site-header.is-scrolled .nav { height: 62px; }
  .site-header.is-scrolled .logo img { height: 36px; }
}
/* Menú: al pasar el mouse el texto se pone verde, con subrayado verde */
.nav__link { position: relative; }
.nav__link:hover { color: var(--green-ink); background: transparent; }
.nav__link[aria-current="page"] { color: var(--ink); background: transparent; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.has-sub:hover > .nav__link, .has-sub:focus-within > .nav__link { color: var(--green-ink); }
@media (max-width: 1020px) { .nav__link::after { display: none; } .nav__link:hover { color: var(--ink); } }
.btn { font-size: 0.93rem; }

/* Banner: título y texto más sobrios, sin resaltado detrás de "responsables" */
.hero__title { max-width: 18ch; font-size: clamp(2.1rem, 1rem + 2.6vw, 3.2rem); line-height: 1.06; letter-spacing: -0.028em; }
.hero__title em { position: static; display: inline; padding: 0; margin: 0; color: inherit; font-style: normal; }
.hero__title em::before { display: none; content: none; }
.hero__sub { font-size: clamp(0.95rem, 0.92rem + 0.18vw, 1.04rem); max-width: 54ch; margin-top: 22px; }

/* Footer: logo más grande */
.footer__brand img { height: 52px; }

/* Párrafos y bloques con título: menos grandes */
.vm__item .lead { font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.04rem); }
.article-body p { font-size: 1.04rem; }
.page-hero .h1 { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.6rem); letter-spacing: -0.028em; }
.footer__big { font-weight: 500; }
.postnav strong { font-weight: 560; font-size: 1.02rem; }

.footer__bottom { margin-top: clamp(40px, 5vw, 64px); }

/* Móvil: títulos más legibles y sin cortes raros (el banner no se toca) */
@media (max-width: 640px) {
  .h2 { font-size: 1.75rem; line-height: 1.14; }
  .h3 { font-size: 1.22rem; line-height: 1.22; }
  .page-hero .h1 { font-size: 1.95rem; line-height: 1.12; }
  h2.display { font-size: 1.95rem !important; line-height: 1.12; }
  .lead { font-size: 1rem; }
  h2.h2, h2.display, .page-hero .h1 { max-width: none !important; }
  .cta .lead, .cta__grid .lead { max-width: none !important; font-size: 1rem !important; }
  .row__title { font-size: 1.38rem !important; letter-spacing: -0.018em; }
  .more-box__txt h3 { font-size: 1.55rem !important; }
  h2[style*="text-align:center"] { font-size: 1.45rem !important; }
  .vm__item .lead, .article-body p { font-size: 1rem; }
}

/* Banner: titular con el espaciado entre letras un poco más cerrado */
.hero__title { letter-spacing: -0.042em; }

/* Título de "Acerca": espaciado entre letras un poco más cerrado */
.about__text .h2 { letter-spacing: -0.035em; }

/* Footer más compacto: logo, párrafo y enlaces */
.footer__brand img { height: 44px; margin-bottom: 16px; }
.footer__brand p { font-size: 0.88rem; line-height: 1.6; max-width: 36ch; }
.footer__top ul { font-size: 0.88rem; }
.footer__top li + li { margin-top: 9px; }

.footer__brand img { width: auto; max-width: 100%; }
.logo img { width: auto; }

/* Acerca: el texto de la izquierda acompaña el scroll hasta que termina la foto */
@media (min-width: 901px) {
  .about { align-items: start; }
  .about__text { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* Títulos un poco más gruesos */
h1, h2, h3, h4 { font-weight: 620; }
.postnav strong { font-weight: 620; }


/* ==========================================================================
   Ajustes de la web publicada (ronda 2)
   ========================================================================== */
:root { --hover-blue: #2a3870; --green-2: #5f9319; --ease-soft: cubic-bezier(0.22, 0.8, 0.3, 1); }

/* Iconos: círculo perfecto (sin forma orgánica) */
.sico, .avatar { border-radius: 50% !important; }
a:hover > .sico, a:focus-visible > .sico, .step:hover .sico, .vm__item:hover .vm__head .sico { border-radius: 50% !important; transform: scale(1.06); }

/* Franja de servicios del banner: imágenes realistas dentro de un círculo */
.sico--photo { --s: 72px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.sico--photo img { width: 84%; height: 84%; object-fit: contain; transition: transform 0.7s var(--ease-soft); }
a:hover > .sico--photo { background: #fff; transform: none; }
a:hover > .sico--photo img { transform: scale(1.1); }
.hero__foot a .sico--photo { --s: 76px; }
@media (max-width: 900px) { .hero__foot a .sico--photo { --s: 54px; } }

/* Acerca: foto más baja (sin tanto cielo) y centrada con el texto */
@media (min-width: 901px) {
  .about { align-items: center; }
  .about__text { position: static; }
}
.about__visual { aspect-ratio: 1 / 1; }
.about__visual img.photo { object-position: 50% 88%; }
@media (max-width: 900px) { .about__visual { aspect-ratio: 4 / 3; } }

/* Nuestras soluciones: título centrado y números verdes */
.section__head--center { display: block; text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--center .h2 { margin-inline: auto; }
.row__num { display: block; margin-bottom: 10px; font-family: var(--font); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; color: var(--green-2); transition: color 0.4s; }
.row:hover .row__num, .row.is-open .row__num { color: var(--signal); }
.row::before { background: var(--hover-blue); }

/* Botón verde */
.btn--green { --bg-b: var(--signal); --fg-b: var(--signal-ink); border-color: var(--signal); }
.btn--green .btn__icon { background: var(--deep); color: var(--signal); }

/* Por qué elegirnos: foto rectangular con borde */
.why__photo { border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.28); aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.6); }
.why__photo:hover { border-radius: 20px; transform: none; }
.why__photo:hover img { transform: scale(1.04); }

/* Clientes: logos nítidos, sin atenuar */
.logo-slot img { opacity: 1; }

/* Franja de contacto: verde de la marca y más baja */
.cta--green { background: var(--signal); color: var(--ink); padding: clamp(44px, 5.5vw, 76px) 0; }
.cta--green .topo { color: var(--ink); --topo-accent: #ffffff; opacity: 0.22; }
.cta--green h2 { color: var(--ink); }
.cta--green .lead { color: rgba(20, 21, 42, 0.82); }
.cta--green .cta__list { border-top-color: rgba(20, 21, 42, 0.24); }
.cta--green .cta__list a, .cta--green .cta__list div { color: var(--ink); border-bottom-color: rgba(20, 21, 42, 0.24); padding: 14px 0; }
.cta--green .cta__list a:hover { color: var(--deep); }
.cta--green .cta__list span:first-child { color: rgba(20, 21, 42, 0.74); }
.cta--green .cta__grid { align-items: center; }

/* Animaciones de entrada: más suaves */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1.1s var(--ease-soft), transform 1.25s var(--ease-soft); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="clip"] { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.975); transition: opacity 1.2s var(--ease-soft), transform 1.4s var(--ease-soft); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-in { opacity: 1; transform: none; }
.split .w > span { opacity: 0; transform: translateY(105%); transition: transform 1.1s var(--ease-soft), opacity 0.9s var(--ease-soft); transition-delay: calc(var(--i) * 45ms + var(--base, 0ms)); }
.split.is-in .w > span { opacity: 1; transform: none; }
html:not(.js) .split .w > span { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="clip"], .js [data-reveal="clip"] img.photo, .split .w > span { opacity: 1 !important; transform: none !important; }
}

/* Azul un poco más claro en todo el sitio (el footer usa el mismo azul que las secciones) */
:root { --ink: #1a1c38; --deep: #1f2243; --deep-2: #2d3259; --hover-blue: var(--deep); }
.footer { background: var(--deep); }


/* ==========================================================================
   Tarjetas de servicios bajo el banner (solapan el banner)
   ========================================================================== */
.hero { padding-bottom: clamp(104px, 13vh, 140px); }
.svc-strip { position: relative; z-index: 5; margin-top: -82px; padding-bottom: clamp(48px, 6vw, 88px); }
.svc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.svc-card { display: block; text-decoration: none; color: inherit; }
.svc-card__in { position: relative; display: grid; gap: 10px; align-content: start; height: 100%; padding: 22px 22px 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 22px 44px -28px rgba(20, 21, 42, 0.38), 0 2px 8px rgba(20, 21, 42, 0.05); transition: transform 0.7s var(--ease-soft), box-shadow 0.7s var(--ease-soft), border-color 0.4s; }
.svc-card__in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-soft); }
.svc-card:hover .svc-card__in, .svc-card:focus-visible .svc-card__in { transform: translateY(-7px); box-shadow: 0 36px 64px -30px rgba(20, 21, 42, 0.5), 0 4px 12px rgba(20, 21, 42, 0.06); border-color: transparent; }
.svc-card:hover .svc-card__in::after, .svc-card:focus-visible .svc-card__in::after { transform: scaleX(1); }
.svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.svc-card .sico { --s: 84px; }
.svc-card .sico--photo { background: rgba(158, 204, 56, 0.16); border: 0; }
.svc-card .sico--photo img { width: 88%; height: 88%; }
.svc-card:hover .sico { transform: none; }
.svc-card:hover .sico--photo img { transform: scale(1.08) translateY(-2px); }
.svc-card__go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 0.4s, border-color 0.4s; }
.svc-card__go svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease-soft); }
.svc-card:hover .svc-card__go { background: var(--signal); border-color: var(--signal); }
.svc-card:hover .svc-card__go svg { transform: rotate(-45deg); }
.svc-card__t { font-size: 1.12rem; line-height: 1.2; }
.svc-card__p { font-size: 0.9rem; line-height: 1.55; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .svc-strip { margin-top: -56px; }
  .svc-card__in { padding: 16px 14px 18px; border-radius: 16px; gap: 8px; }
  .svc-card .sico { --s: 60px; }
  .svc-card__go { width: 32px; height: 32px; }
  .svc-card__t { font-size: 0.98rem; }
  .svc-card__p { display: none; }
}


/* Fotos: entrada tipo "cortina" (se revelan de arriba a abajo y asientan con un zoom lento) */
.js [data-img] img.photo { clip-path: inset(0 0 100% 0); scale: 1.16; transition: clip-path 1.35s var(--ease-soft), scale 2s var(--ease-soft); transition-delay: var(--d, 0ms); }
.js [data-img].is-in img.photo { clip-path: inset(0 0 0 0); scale: 1; }
.js [data-img] { background: var(--bg-2); }
/* Imágenes de las tarjetas de servicio: leve flotación continua */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.svc-card .sico--photo img { animation: bob 4.2s ease-in-out infinite; }
.svc-card:nth-child(2) .sico--photo img { animation-delay: -1s; }
.svc-card:nth-child(3) .sico--photo img { animation-delay: -2s; }
.svc-card:nth-child(4) .sico--photo img { animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-img] img.photo { clip-path: none; scale: 1; }
  .svc-card .sico--photo img { animation: none; }
}

/* Más aire entre los botones del banner y las tarjetas */
.hero { padding-bottom: clamp(156px, 18vh, 200px); }
@media (max-width: 640px) { .hero { padding-bottom: 112px; } }

/* Tarjetas sin descripción: más compactas */
.svc-card__in { gap: 14px; padding-bottom: 24px; }
.svc-card__top { margin-bottom: 4px; }
.svc-card__t { font-size: 1.1rem; }

/* Tarjetas de servicios del banner: sin borde y sin efecto al pasar el mouse */
.svc-card__in { border: 0; }
.svc-card:hover .svc-card__in, .svc-card:focus-visible .svc-card__in { transform: none; box-shadow: 0 22px 44px -28px rgba(20, 21, 42, 0.38), 0 2px 8px rgba(20, 21, 42, 0.05); border-color: transparent; }
.svc-card__in::after { display: none; }
.svc-card:hover .svc-card__go { background: transparent; border-color: var(--line-2); }
.svc-card:hover .svc-card__go svg { transform: none; }
.svc-card:hover .sico--photo img { transform: none; }

/* ==========================================================================
   Animaciones de entrada (mismo lenguaje que Nexoclinic: sube, desenfoca y aparece)
   ========================================================================== */
:root { --ease-soft: cubic-bezier(0.16, 1, 0.3, 1); }

/* Bloques: suben 30 px, salen de un desenfoque y aparecen */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(8px); transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease-soft), filter 1s var(--ease-soft); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="fade"] { transform: none; filter: none; }
/* Contenedores de foto: solo aparecen; la foto se abre con su propia máscara */
.js [data-reveal="clip"] { opacity: 0; transform: none; filter: none; transition: opacity 0.7s var(--ease-soft); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-in { opacity: 1; }

/* Fotos: se abren con máscara de abajo hacia arriba y el zoom se asienta */
.js [data-img] img.photo { clip-path: inset(100% 0 0 0); scale: 1.28; transition: clip-path 1.3s var(--ease-soft), scale 1.8s var(--ease-soft); transition-delay: calc(var(--d, 0ms) + 120ms); }
.js [data-img].is-in img.photo { clip-path: inset(0 0 0 0); scale: 1; }

/* Palabras de los títulos: máscara + subida */
.split .w > span { opacity: 1; transform: translateY(112%); transition: transform 1.15s var(--ease-soft); transition-delay: calc(var(--i) * 75ms + var(--base, 0ms)); }
.split.is-in .w > span { transform: none; }
.hero__title { --base: 250ms; }

/* Cabecera: baja al cargar */
@keyframes drop { from { transform: translateY(-100%); } }
.site-header { animation: drop 0.9s var(--ease-soft) backwards; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="clip"], .js [data-img] img.photo, .split .w > span, .site-header { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; scale: 1 !important; animation: none !important; }
}

/* Tarjetas de servicios: al pasar el mouse solo se pinta de verde el círculo de la flecha */
.svc-card:hover .svc-card__go, .svc-card:focus-visible .svc-card__go { background: var(--signal); border-color: var(--signal); }
.svc-card:hover .svc-card__go svg, .svc-card:focus-visible .svc-card__go svg { transform: rotate(-45deg); }

/* Tarjetas de servicios: título en una sola línea en escritorio */
@media (min-width: 1101px) {
  .svc-card__t { white-space: nowrap; font-size: clamp(0.92rem, 0.3rem + 0.95vw, 1.1rem); }
  .svc-card__in { padding-inline: 20px; }
}
@media (max-width: 1100px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fotos: sin cortina. Entrada suave con fundido, leve subida y zoom que se asienta */
.js [data-img] img.photo { clip-path: none !important; opacity: 0; scale: 1.08; transform: translate3d(0, 14px, 0); filter: blur(4px); transition: opacity 1.1s var(--ease-soft), scale 1.8s var(--ease-soft), transform 1.3s var(--ease-soft), filter 1s var(--ease-soft); transition-delay: var(--d, 0ms); }
.js [data-img].is-in img.photo { opacity: 1; scale: 1; transform: none; filter: none; }
.js [data-reveal="clip"] { opacity: 0; transform: translate3d(0, 20px, 0); filter: none; transition: opacity 1s var(--ease-soft), transform 1.2s var(--ease-soft); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-img] img.photo, .js [data-reveal="clip"] { opacity: 1 !important; transform: none !important; scale: 1 !important; filter: none !important; } }

/* Fotos: entrada tipo referencia, sin cortina (zoom amplio que se asienta, fundido y desenfoque suave) */
.js [data-img] img.photo { scale: 1.22; transform: translate3d(0, 18px, 0); filter: blur(6px); transition: opacity 1.2s var(--ease-soft), scale 2.1s var(--ease-soft), transform 1.5s var(--ease-soft), filter 1.1s var(--ease-soft); transition-delay: calc(var(--d, 0ms) + 80ms); }
.js [data-img].is-in img.photo { scale: 1; transform: none; filter: none; }
/* al pasar el mouse el zoom es sutil */
.card:hover .card__media img.photo, .gallery figure:hover img.photo { scale: 1.04; transition-delay: 0ms; transition-duration: 1.2s; }

/* Tarjetas de servicios: al pasar el mouse el círculo detrás de la imagen se pinta de verde */
.svc-card .sico--photo { transition: background-color 0.5s var(--ease-soft); }
.svc-card:hover .sico--photo, .svc-card:focus-visible .sico--photo { background: var(--signal); }

/* Menú móvil: compacto y sin tanto texto */
@media (max-width: 1020px) {
  .nav__list { padding: 4px var(--pad) 28px; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { font-family: var(--font); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; padding: 15px 0; }
  .nav__link[aria-current="page"] { color: var(--green-ink); }
  .has-sub > .nav__link { padding-bottom: 6px; }
  .sub { padding: 0 0 12px; display: grid; gap: 0; }
  .sub a { padding: 9px 0 9px 14px; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); border-left: 2px solid var(--line); border-radius: 0; gap: 0; align-items: center; }
  .sub a small, .sub .sico, .sub .sub__all { display: none; }
  .sub a:hover { background: transparent; color: var(--green-ink); border-left-color: var(--signal); }
  .nav__list .mobile-cta { padding-top: 20px; border: 0; }
  .nav__list .mobile-cta .btn { width: 100%; justify-content: space-between; }
}

/* Cabecera estable: no cambia de alto al hacer scroll (evita el temblor); solo el logo se achica con transform */
.site-header.is-scrolled .nav, .nav { height: var(--header-h); transition: none; }
.logo img { height: 48px; transition: none; }
.site-header.is-scrolled .logo img { height: 48px; }
.logo { transform-origin: left center; transition: transform 0.45s var(--ease-soft); will-change: transform; }
.site-header.is-scrolled .logo { transform: scale(0.8); }
.menu-open .site-header .logo { transform: none; }
@media (max-width: 1020px) { .logo img, .site-header.is-scrolled .logo img { height: 42px; } .site-header.is-scrolled .nav { height: var(--header-h); } }

/* Franja verde de contacto: etiquetas y datos más marcados */
.cta--green .cta__list span:first-child { color: rgba(20, 21, 42, 0.9); font-weight: 600; font-size: 0.92rem; }
.cta--green .cta__list span:last-child { color: var(--ink); font-weight: 700; }

/* Tarjetas de servicios: del color del fondo; blancas solo al pasar el mouse */
.svc-card__in { background: var(--bg); box-shadow: none; transition: background-color 0.5s var(--ease-soft), box-shadow 0.6s var(--ease-soft); }
.svc-card:hover .svc-card__in, .svc-card:focus-visible .svc-card__in { background: var(--surface); box-shadow: 0 26px 52px -30px rgba(20, 21, 42, 0.34), 0 2px 8px rgba(20, 21, 42, 0.05); transform: none; }
.svc-card .sico--photo { background: rgba(158, 204, 56, 0.2); }

/* Tarjetas de servicios: borde fino como el del círculo de la flecha */
.svc-card__in { border: 1px solid var(--line-2); transition: background-color 0.5s var(--ease-soft), box-shadow 0.6s var(--ease-soft), border-color 0.5s var(--ease-soft); }
.svc-card:hover .svc-card__in, .svc-card:focus-visible .svc-card__in { border-color: var(--line-2); }

/* Hover de las tarjetas: versión apenas más clara del fondo, no blanco puro */
.svc-card:hover .svc-card__in, .svc-card:focus-visible .svc-card__in { background: #f8faf9; box-shadow: 0 24px 48px -32px rgba(20, 21, 42, 0.26), 0 1px 4px rgba(20, 21, 42, 0.04); }

/* Banner más bajo: las tarjetas de servicios deben verse completas al entrar */
.hero { min-height: clamp(500px, calc(100svh - 300px), 640px); padding-top: clamp(40px, 6vh, 84px); padding-bottom: clamp(128px, 15vh, 168px); }
@media (min-width: 1400px) { .hero { padding-top: clamp(40px, 6vh, 84px); } .hero__body { padding-bottom: 0; } }
@media (max-width: 640px) { .hero { min-height: 0; padding-bottom: 112px; } }

/* Megamenú: arranca justo debajo de la cabecera (los ítems ocupan todo el alto) */
@media (min-width: 1021px) {
  .nav__list { align-self: stretch; }
  .nav__list > li { display: flex; align-items: center; height: 100%; }
  .nav__list > li > .sub { top: 100%; margin-top: 4px; }
  /* puente invisible para que el menú no se cierre al bajar el mouse */
  .has-sub > .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
}

/* El botón de contacto del menú móvil no debe verse en escritorio */
@media (min-width: 1021px) { .nav__list > li.mobile-cta { display: none; } }


/* ==========================================================================
   Nota de blog: cabecera compacta, contenido más ancho y barra lateral que acompaña
   ========================================================================== */
.post-wrap { max-width: 1240px; }
.post-head { padding: clamp(22px, 3vw, 38px) 0 clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.post-head .crumbs { margin-bottom: 12px; }
.post-title { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.026em; max-width: 26ch; }
.post-head .byline { margin-top: 16px; }
.post-head .avatar { --s: 38px; }
.post-main { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.post-col { min-width: 0; }
.post-cover { position: relative; aspect-ratio: 16 / 6; border-radius: var(--r-s); overflow: hidden; background: var(--bg-2); margin-bottom: clamp(24px, 3vw, 36px); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-col .article-body { max-width: 780px; margin: 0; }
.article-body .post-lead { font-size: 1.14rem; color: var(--ink); font-weight: 500; line-height: 1.6; }
.article-body p { font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.article-body p:first-child::first-line { font-weight: inherit; color: inherit; }
.article-body p + p, .article-body ul + p, .article-body ol + p, .article-body blockquote + p { margin-top: 1.1em; }
.article-body h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem); margin: 2.1em 0 0.6em; scroll-margin-top: calc(var(--header-h) + 24px); letter-spacing: -0.02em; }
.article-body h3 { font-size: 1.12rem; margin: 1.6em 0 0.5em; letter-spacing: -0.012em; }
.article-body ul, .article-body ol { margin: 1em 0 0.4em; padding-left: 1.3em; color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li { padding-left: 0.3em; } .article-body li + li { margin-top: 0.45em; }
.article-body li::marker { color: var(--teal); font-weight: 600; }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--signal); font-family: var(--font-display); font-size: 1.22rem; line-height: 1.4; font-weight: 560; color: var(--ink); letter-spacing: -0.012em; }
.post-col .article-foot { max-width: 780px; margin: clamp(36px, 5vw, 56px) 0 0; }
/* barra lateral */
.post-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; align-self: start; }
.toc { padding-left: 16px; border-left: 1px solid var(--line-2); }
.toc__t { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-2); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; font-size: 0.92rem; line-height: 1.35; color: var(--ink-3); text-decoration: none; transition: color 0.3s, padding 0.4s var(--ease-soft); }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { font-weight: 600; }
.mini-cta { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; text-decoration: none; background: var(--bg); transition: background-color 0.4s, box-shadow 0.5s var(--ease-soft); }
.mini-cta:hover { background: #f8faf9; box-shadow: 0 20px 40px -30px rgba(20, 21, 42, 0.3); }
.mini-cta__img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--bg-2); display: block; }
.mini-cta__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-cta__txt { display: grid; gap: 3px; min-width: 0; }
.mini-cta small { font-size: 0.72rem; color: var(--ink-3); }
.mini-cta strong { font-size: 0.9rem; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-cta__go { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--teal); }
.mini-cta__go svg { width: 13px; height: 13px; transition: transform 0.4s var(--ease-soft); }
.mini-cta:hover .mini-cta__go svg { transform: rotate(-45deg); }
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-aside { position: static; order: 2; }
  .toc { display: none; }
  .post-cover { aspect-ratio: 16 / 8; }
}

/* Nota: foto dentro del artículo tras el párrafo de apertura, y columna más ancha */
.post-wrap { max-width: 1300px; }
.post-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.post-col .article-body, .post-col .article-foot { max-width: 860px; }
.article-body .post-cover { margin: 1.4em 0 0.4em; aspect-ratio: 16 / 7; }
.article-body .post-lead { margin-top: 0; }
.post-main { padding-top: clamp(22px, 2.6vw, 32px); }
.article-body .post-cover { aspect-ratio: 4 / 1; margin: 1.1em 0 0; }
.article-body .post-cover + h2 { margin-top: 1.5em; }
@media (max-width: 1000px) { .article-body .post-cover { aspect-ratio: 16 / 7; } }

.article-body .post-cover + p { margin-top: 1.3em; }

/* Títulos de página: máximo 2 líneas en escritorio */
.page-hero .page-title { max-width: 36ch; }
@media (min-width: 1021px) { .page-hero .page-title { max-width: 40ch; } }

.post-title { max-width: 34ch; }

/* Foto de la nota: más alta (antes quedaba muy achatada) */
.article-body .post-cover { aspect-ratio: 16 / 7.5; margin: 1.2em 0 0; }
.article-body .post-cover img { object-position: 50% 40%; }
@media (max-width: 1000px) { .article-body .post-cover { aspect-ratio: 16 / 9; } }

/* Nota de blog: una sola columna en móvil/tablet; dos columnas solo en escritorio */
@media (max-width: 1000px) {
  .post-grid { display: block; }
  .post-col .article-body, .post-col .article-foot { max-width: none; }
  .post-aside { position: static; margin-top: 32px; }
  .toc { display: none; }
}

.page-hero + .section { padding-top: clamp(36px, 4.5vw, 64px); }

.split-layout aside .aside-img { aspect-ratio: 4 / 3.2; }


/* ==========================================================================
   Carrusel de fotos (rota solo; flechas, puntos y deslizamiento táctil)
   ========================================================================== */
.carousel { position: relative; }
.carousel__track { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 18px; outline-offset: 4px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 min(66%, 760px); margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--bg-2); position: relative; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.carousel__dots { display: flex; gap: 8px; flex-wrap: wrap; }
.carousel__dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: var(--line-2); transition: width 0.5s var(--ease-soft), background-color 0.4s; }
.carousel__dots button[aria-selected="true"] { width: 30px; background: var(--signal); }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; transition: background-color 0.35s, border-color 0.35s; }
.carousel__btn svg { width: 17px; height: 17px; transition: transform 0.4s var(--ease-soft); }
.carousel__btn[data-dir="-1"] svg { transform: rotate(180deg); }
.carousel__btn:hover { background: var(--signal); border-color: var(--signal); }
@media (max-width: 720px) { .carousel__slide { flex-basis: 88%; aspect-ratio: 4 / 3; } .carousel__btn { width: 42px; height: 42px; } }

/* Lista de bloques del servicio: sin línea superior; el primero alineado con la foto */
.blocks { border-top: 0; }
.blocks .block:first-child { padding-top: 0; }

/* Franja verde de contacto: solo los datos en negrita; etiquetas en peso normal y oscuras */
.cta--green .cta__list span:first-child { font-weight: 400; color: rgba(20, 21, 42, 0.88); font-size: 0.95rem; }
.cta--green .cta__list span:last-child { font-weight: 700; color: var(--ink); }

/* Contacto: etiquetas en peso normal, datos en negrita */
.contact-list span:first-child { font-weight: 400; color: var(--ink-3); }
.contact-list span:last-child { font-weight: 600; color: var(--ink); }

/* Nosotros: fotos rectangulares con esquinas redondeadas (sin forma orgánica) */
.vm__photo, .vm__item--b .vm__photo, .vm__photo--sm { border-radius: 20px; aspect-ratio: 4 / 3; box-shadow: 0 24px 48px -34px rgba(20, 21, 42, 0.35); transition: box-shadow 0.6s var(--ease-soft); }
.vm__item:hover .vm__photo, .vm__item--b:hover .vm__photo, .vm__photo--sm:hover { border-radius: 20px; transform: none; }
.vm__item:hover .vm__photo img, .vm__photo--sm:hover img { scale: 1.03; }
.vm__item--b { margin-top: clamp(0px, 5vw, 72px); }
.vm__photo--sm { max-width: 460px; }

/* Carrusel: tres a la vista (la tercera cortada) y fotos menos altas */
@media (min-width: 721px) {
  .carousel__slide { flex: 0 0 calc((100% - 2 * clamp(12px, 1.6vw, 22px)) / 2.55); aspect-ratio: 4 / 3; }
}

/* Por qué elegirnos: verde de la marca, sin foto, tipografía más liviana y lista con líneas arriba */
.why--green { background: var(--signal); color: var(--ink); }
.why--green .topo { color: var(--ink); --topo-accent: #ffffff; opacity: 0.22; }
.why--green h2 { color: var(--ink); }
.why--green .lead { color: rgba(20, 21, 42, 0.84); }
.why--green .link-arrow { color: var(--ink); border-color: rgba(20, 21, 42, 0.4); }
.why--green .why__list { border-top-color: rgba(20, 21, 42, 0.28); }
.why--green .why__list li { padding: 20px 0; border-bottom-color: rgba(20, 21, 42, 0.28); }
.why--green .why__list h3 { color: var(--ink); font-size: 1.05rem; font-weight: 560; letter-spacing: -0.01em; line-height: 1.25; }
.why--green .why__list p { color: rgba(20, 21, 42, 0.8); font-size: 0.95rem; line-height: 1.6; }
.why--green .why__intro { gap: 20px; }
.why--green .why__grid { align-items: start; }


/* ==========================================================================
   Nosotros compacto: quiénes somos + cifras, visión/misión, valores en verde, acreditaciones
   ========================================================================== */
.about2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about2__text { display: grid; gap: 18px; }
.about2__text .h2 { font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.1rem); }
.about2__text .prose p { font-size: 0.98rem; line-height: 1.7; }
.about2__photo { aspect-ratio: 4 / 3; max-width: none; margin: 0; }
.stats--inline { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-2); }
.stats--inline .stat { padding-top: 22px; }
@media (max-width: 860px) { .about2 { grid-template-columns: 1fr; } .about2__photo { order: -1; max-width: 520px; } }

.vm2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.vm2__item { border-top: 1px solid var(--line-2); padding-top: 20px; }
.vm2__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vm2__head .sico { --s: 44px; }
.vm2__item p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.7; max-width: 60ch; }
@media (max-width: 760px) { .vm2 { grid-template-columns: 1fr; } }

.values { background: var(--signal); color: var(--ink); position: relative; overflow: clip; isolation: isolate; }
.values .topo { color: var(--ink); --topo-accent: #ffffff; opacity: 0.2; }
.values__t { margin-bottom: 22px; color: var(--ink); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.values__grid li { border-top: 1px solid rgba(20, 21, 42, 0.3); padding-top: 14px; }
.values__grid h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 6px; color: var(--ink); }
.values__grid p { font-size: 0.92rem; line-height: 1.55; color: rgba(20, 21, 42, 0.82); }
@media (max-width: 960px) { .values__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values__grid { grid-template-columns: 1fr; } }

.accr { display: grid; grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.accr .checks { gap: 12px; font-size: 0.96rem; }
@media (max-width: 860px) { .accr { grid-template-columns: 1fr; } }

/* Servicios: carrusel al tamaño de la foto principal y lista más compacta */
@media (min-width: 721px) { .carousel__slide { flex: 0 0 calc((100% - 3 * clamp(12px, 1.6vw, 22px)) / 3.4); aspect-ratio: 4 / 3.2; } }
.block { padding: 20px 0; gap: 20px; line-height: 1.5; }
.block .h3 { letter-spacing: -0.01em; }
.block p { font-size: 0.94rem; line-height: 1.5; }

/* Detalle de proyecto: más compacto */
.figure-lg--proj { aspect-ratio: 16 / 5; margin-bottom: clamp(24px, 3.5vw, 44px); }
@media (max-width: 720px) { .figure-lg--proj { aspect-ratio: 16 / 10; } }
.about-sec .prose h2 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); margin-top: 1.5em; margin-bottom: 0.4em; }
.about-sec .prose h2:first-child { margin-top: 0; }
.about-sec .prose p, .about-sec .prose li { font-size: 0.96rem; line-height: 1.6; }
.about-sec .checks { gap: 8px; }
.about-sec .split-layout { gap: clamp(28px, 5vw, 72px); }
.about-sec .split-layout aside .h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.more-projects .card__media { aspect-ratio: 16 / 10; }
.more-projects .card h3 { font-size: 1.1rem; }
.more-projects .card p { font-size: 0.92rem; }
.more-projects .more-box { min-height: 0; align-self: stretch; }

/* ==========================================================================
   WordPress: títulos del pie, botón de idioma flotante, subtítulos del proyecto
   ========================================================================== */
.footer h2.fh { font-family: var(--font); font-size: 0.85rem; letter-spacing: 0; font-weight: 500; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.langfab { position: fixed; right: 18px; bottom: 82px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--deep); border: 1px solid var(--line-2); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-decoration: none; box-shadow: 0 10px 26px -12px rgba(20,21,42,0.5); transition: background-color 0.3s, transform 0.4s var(--ease); }
.langfab:hover { background: var(--signal); transform: translateY(-2px); }
@media (max-width: 520px) { .langfab { bottom: 76px; right: 14px; } }
.about-sec .prose h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); margin-top: 1.5em; margin-bottom: 0.4em; }
.about-sec .prose h3:first-child { margin-top: 0; }
.form__status[data-s="err"] { color: #b3261e; }
.nav-links, .pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; }
.page-numbers.current { background: var(--signal); border-color: var(--signal); }

/* Tarjetas de notas: título y resumen con alto parejo */
.card .h3{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.card .card__ex{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
