/* ============================================================
   Cooperativa de Trabajo Forward — sistema visual v2
   ============================================================ */
:root {
  --primary: #0d2742;
  --primary-2: #0a1d31;
  --accent: #7cb518;
  --accent-ink: #527d0e;
  --bg: #f5f6f2;
  --surface: #ffffff;
  --ink: #16201b;
  --muted: #59635c;
  --faint: #8b948c;
  --line: #e2e3da;
  --line-strong: #cdcfc2;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 14px;
}
html[data-variant="carton"] {
  --primary: #1f3d2c;
  --primary-2: #16301f;
  --bg: #f0ece1;
  --surface: #fbf9f3;
  --ink: #1b1f17;
  --muted: #5d6151;
  --faint: #8d8e79;
  --line: #e0d9c9;
  --line-strong: #ccc3ad;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font-family: var(--body); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.display {
  font-family: var(--display); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.005em; margin: 0;
}
html[data-titlefont="Anton"] .display { font-family: "Anton", sans-serif; font-weight: 400; }
html[data-titlefont="Archivo"] .display { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* etiqueta de sección (sin numeritos de template) */
.label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink);
}
.label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.label.on-dark { color: #aee06a; }

.lede { font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); line-height: 1.55; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 13px 22px; border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn .arw { transition: transform .2s; }
.btn:hover .arw { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: #14240a; }
.btn-accent:hover { filter: brightness(1.04); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-wa { background: #1f8a3b; color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }

/* ============================================================
   HEADER — sólido
   ============================================================ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(13,39,66,.34); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); }
body { padding-top: 78px; }
[id]:not(body) { scroll-margin-top: 92px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand .bn-name { display: block; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
html[data-titlefont="Anton"] .brand .bn-name { font-family: "Anton", sans-serif; }
.brand .bn-sub { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; margin-top: 3px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; white-space: nowrap; }
.nav a.navlink:hover { color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 15px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.header-phone svg { color: var(--accent-ink); }
.menu-btn { display: none; border: 1.5px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }

.mobile-nav { display: none; }
.mobile-nav.open { display: block; position: fixed; inset: 78px 0 0; z-index: 49; background: var(--bg); padding: 26px var(--pad); }
.mobile-nav a { display: block; font-family: var(--display); text-transform: uppercase; font-size: 30px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ============================================================
   HERO — foto a sangre + tarjeta de datos superpuesta
   ============================================================ */
.hero { position: relative; background: var(--primary); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media image-slot { width: 100%; height: 100%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,21,38,.34) 0%, rgba(8,21,38,.55) 55%, rgba(8,21,38,.88) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  min-height: clamp(520px, 80vh, 720px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 80px; padding-bottom: clamp(56px, 9vh, 104px);
}
.hero-inner .label { color: #aee06a; }
.hero-inner .label::before { background: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 68px); max-width: 17ch; margin-top: 18px; }
.hero h1 .hl { color: #aee06a; }
.hero-lede { color: rgba(255,255,255,.82); max-width: 50ch; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-loc { position: absolute; top: 26px; right: var(--pad); z-index: 2; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500; letter-spacing: 0.03em; display: flex; align-items: center; gap: 8px; }
.hero-loc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* foto-postal del hero: personalidad de entrada */
.hero-snapshot {
  position: absolute; top: 58px; right: 0; z-index: 6; margin: 0;
  width: clamp(244px, 25vw, 320px);
  border-radius: 12px; overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.62);
}
.hero-snapshot img { width: 100%; height: clamp(176px, 19vw, 230px); object-fit: cover; object-position: center 60%; display: block; }
.hero-snapshot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.01em; color: #fff;
  padding: 22px 12px 9px; line-height: 1.25;
  background: linear-gradient(transparent, rgba(8,21,38,.86));
}
@media (max-width: 860px) {
  .hero-snapshot {
    position: static; transform: none; width: 100%; max-width: 380px;
    margin-top: 26px; border-width: 3px;
  }
  .hero-snapshot img { height: 168px; }
}

/* tarjeta de datos superpuesta */
.statcard { position: relative; z-index: 5; margin-top: clamp(-56px, -6vh, -44px); }
.statcard-inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 60px -28px rgba(8,21,38,.4);
  display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden;
}
.statcard .stat { padding: 26px 28px; border-left: 1px solid var(--line); }
.statcard .stat:first-child { border-left: 0; }
.statcard .num { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--primary); }
html[data-titlefont="Anton"] .statcard .num { font-family: "Anton", sans-serif; font-weight: 400; }
.statcard .lbl { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.4; }

/* ============================================================
   Secciones
   ============================================================ */
.section { padding-block: clamp(64px, 10vh, 120px); }
.sec-title { font-size: clamp(30px, 4.2vw, 50px); margin: 14px 0 0; }

/* ---- NOSOTROS: historia + ficha ---- */
.about { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-lead { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 36px); line-height: 1.18; letter-spacing: -0.005em; color: var(--ink); margin: 18px 0 26px; text-wrap: pretty; }
html[data-titlefont="Anton"] .about-lead { font-family: "Anton", sans-serif; font-weight: 400; line-height: 1.22; }
.about-body p { color: var(--muted); margin: 0 0 16px; max-width: 60ch; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--ink); font-weight: 600; }
.ficha { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 28px; position: sticky; top: 100px; }
.ficha h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); margin: 0 0 18px; font-weight: 700; }
.ficha dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; }
.ficha .row { display: contents; }
.ficha dt, .ficha dd { padding: 13px 0; border-top: 1px solid var(--line); margin: 0; }
.ficha .row:first-child dt, .ficha .row:first-child dd { border-top: 0; padding-top: 0; }
.ficha dt { color: var(--muted); font-size: 15px; }
.ficha dd { text-align: right; font-weight: 600; font-size: 15px; }
.ficha dd.accent { color: var(--accent-ink); }
.about-photo { margin-top: clamp(40px, 6vh, 68px); }
.about-photo image-slot { width: 100%; height: clamp(280px, 42vh, 440px); border-radius: var(--r); overflow: hidden; }

/* ---- SERVICIOS: tarjetas ---- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: clamp(36px, 5vh, 56px); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 30px 32px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(8,21,38,.34); border-color: var(--line-strong); }
.card .ico { width: 52px; height: 52px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); display: grid; place-items: center; color: var(--accent-ink); margin-bottom: 20px; }
.card h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 25px; letter-spacing: 0.005em; margin: 0 0 10px; line-height: 1.05; }
html[data-titlefont="Anton"] .card h3 { font-family: "Anton", sans-serif; font-weight: 400; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- PROCESO: diagrama circular ---- */
.proc { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proc-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.proc-intro p { color: var(--muted); margin: 18px 0 0; max-width: 42ch; }
.proc-legend { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.proc-legend .lg { display: flex; align-items: baseline; gap: 12px; font-size: 15px; }
.proc-legend .lg b { font-family: var(--display); font-weight: 700; color: var(--accent-ink); width: 22px; }
.proc-legend .lg span { color: var(--muted); }
.proc-legend .lg strong { color: var(--ink); font-weight: 600; }

.loop { position: relative; width: min(440px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.loop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42%; height: 42%; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px;
}
.loop-center .lc-k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #aee06a; }
.loop-center .lc-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.02; margin-top: 4px; }
html[data-titlefont="Anton"] .loop-center .lc-t { font-family: "Anton", sans-serif; font-weight: 400; }
.node {
  position: absolute; width: 30%; transform: translate(-50%, -50%);
  text-align: center;
}
.node .nd-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #14240a; font-family: var(--display); font-weight: 700; font-size: 20px; display: grid; place-items: center; margin: 0 auto 8px; box-shadow: 0 0 0 6px var(--surface); }
html[data-titlefont="Anton"] .node .nd-dot { font-family: "Anton", sans-serif; font-weight: 400; }
.node .nd-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 17px; line-height: 1; }
html[data-titlefont="Anton"] .node .nd-t { font-family: "Anton", sans-serif; font-weight: 400; }
.node.n1 { top: 4%; left: 50%; }
.node.n2 { top: 50%; left: 96%; }
.node.n3 { top: 96%; left: 50%; }
.node.n4 { top: 50%; left: 4%; }

/* ---- PROPÓSITO: panel navy redondeado ---- */
.purpose-panel { background: var(--primary); color: #fff; border-radius: calc(var(--r) + 6px); padding: clamp(36px, 5vw, 64px); }
.purpose-top { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 4vw, 56px); align-items: end; }
.purpose-statement { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.005em; margin: 16px 0 0; text-wrap: pretty; }
html[data-titlefont="Anton"] .purpose-statement { font-family: "Anton", sans-serif; font-weight: 400; line-height: 1.18; }
.purpose-statement .hl { color: #aee06a; }
.purpose-side p { color: rgba(255,255,255,.72); margin: 0; font-size: 16px; }
.purpose-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(36px, 5vh, 52px); background: rgba(255,255,255,.14); border-radius: 10px; overflow: hidden; }
.purpose-item { background: var(--primary); padding: 26px 28px; }
.purpose-item .pi-k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #aee06a; }
.purpose-item h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 22px; margin: 10px 0 8px; }
html[data-titlefont="Anton"] .purpose-item h3 { font-family: "Anton", sans-serif; font-weight: 400; }
.purpose-item p { margin: 0; color: rgba(255,255,255,.72); font-size: 15.5px; }

/* ---- NOVEDADES ---- */
.news { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vh, 48px); }
.news-head .nh-link { font-size: 15px; font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.news-head .nh-link .arw { transition: transform .2s; }
.news-head .nh-link:hover .arw { transform: translateX(3px); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(8,21,38,.34); border-color: var(--line-strong); }
.post-media { position: relative; }
.post-media image-slot { width: 100%; height: 200px; display: block; }
.post-media .post-img { width: 100%; height: 200px; display: block; object-fit: cover; object-position: center 30%; }
.post-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--surface); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-size: 13px; color: var(--faint); font-weight: 500; letter-spacing: 0.02em; }
.post h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 23px; line-height: 1.06; letter-spacing: 0.005em; margin: 10px 0 10px; }
html[data-titlefont="Anton"] .post h3 { font-family: "Anton", sans-serif; font-weight: 400; }
.post p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.post-more { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.post-more .arw { color: var(--accent-ink); transition: transform .2s; }
.post:hover .post-more .arw { transform: translateX(3px); }
.news-empty { margin-top: 8px; font-size: 14px; color: var(--faint); }

/* nota destacada */
.feature { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(24px, 3vw, 44px); align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.feature-media { position: relative; min-height: 320px; }
.feature-media image-slot { width: 100%; height: 100%; display: block; }
.feature-body { padding: clamp(26px, 3vw, 44px) clamp(24px, 3vw, 44px) clamp(28px, 3vw, 44px) 0; display: flex; flex-direction: column; }
.feature .post-tag { position: static; align-self: flex-start; margin-bottom: 14px; background: var(--accent); color: #14240a; }
.feature-meta { font-size: 13px; color: var(--faint); font-weight: 500; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.feature-meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.feature-title { font-family: var(--display); font-weight: 700; font-size: clamp(23px, 2.6vw, 33px); line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 16px; text-wrap: pretty; }
html[data-titlefont="Anton"] .feature-title { font-family: "Anton", sans-serif; font-weight: 400; line-height: 1.16; }
.feature-lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.feature-more { margin-top: 18px; }
.feature-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 11px 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; transition: border-color .18s, background .18s; width: fit-content; }
.feature-more summary::-webkit-details-marker { display: none; }
.feature-more summary:hover { border-color: var(--ink); }
.feature-more summary .arw { color: var(--accent-ink); transition: transform .2s; }
.feature-more[open] summary .arw { transform: rotate(90deg); }
.feature-more .feature-full { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.feature-more .feature-full p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.feature-more .feature-full p strong { color: var(--ink); font-weight: 600; }
.feature-credit { font-size: 13.5px !important; color: var(--faint) !important; font-style: italic; padding-top: 6px; border-top: 1px solid var(--line); }

@media (max-width: 940px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 240px; }
  .feature-body { padding: 28px 24px 30px; }
}

@media (max-width: 940px) { .news-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* ---- ODS ---- */
.ods-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(30px, 4vh, 44px); }
.ods-head p { color: var(--muted); margin: 0; }
.ods-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.ods { border-radius: 10px; padding: 16px 14px 16px; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--ods, var(--accent)); }
.ods .on { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; }
html[data-titlefont="Anton"] .ods .on { font-family: "Anton", sans-serif; font-weight: 400; }
.ods .ol { font-size: 13px; line-height: 1.25; font-weight: 600; }

/* ---- CLIENTES ---- */
.clients-head { text-align: center; max-width: 64ch; margin: 0 auto clamp(28px, 4vh, 40px); }
.clients-head .label { justify-content: center; }
.clients-head .sec-title { margin: 14px 0 0; }
.clients-head p { color: var(--muted); margin: 14px auto 0; max-width: 56ch; }
.clients-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients-track {
  display: flex; gap: 16px; width: max-content;
  animation: clients-scroll 32s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.client {
  flex: 0 0 auto; width: 170px; height: 86px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 14px 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.client:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(13,39,66,.08); }
.client img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  margin: auto; object-fit: contain; mix-blend-mode: multiply;
}
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}
@media (max-width: 560px) { .client { width: 140px; height: 74px; } }

/* ---- RESPALDO ---- */
.partners-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(32px, 4vh, 44px); }
.partners-head .sec-title { margin-left: auto; margin-right: auto; }
.partners-head p { color: var(--muted); margin: 14px 0 0; }
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.partner:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(13,39,66,.08); }
.partner img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.partner--fill { background: #004e96; border-color: #004e96; padding: 0; }
.partner--fill img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; mix-blend-mode: normal; }
@media (max-width: 860px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .partners { grid-template-columns: repeat(2, 1fr); } }

/* ---- CONTACTO ---- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { margin-top: 26px; }
.contact-info .ci { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-info .ci:first-child { border-top: 0; padding-top: 0; }
.contact-info .ci-k { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.contact-info .ci-v { font-size: 19px; font-weight: 600; }
.contact-info .ci-v a { border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.contact-info .ci-v a:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.contact-info .ci-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.form .fr { margin-bottom: 16px; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form input, .form textarea { width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form textarea { resize: vertical; min-height: 116px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.form-note { font-size: 12.5px; color: var(--faint); margin-top: 14px; }

/* ---- FOOTER ---- */
.site-footer { background: var(--primary-2); color: #fff; padding-block: 0 28px; }
.foot-cta { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.14); padding-block: clamp(56px, 9vh, 92px); background: radial-gradient(120% 180% at 50% 120%, rgba(174,224,106,.16), transparent 60%); }
.foot-cta::before { content: ""; position: absolute; top: -40%; left: 50%; width: 640px; height: 640px; transform: translateX(-50%); background: radial-gradient(circle, rgba(174,224,106,.14) 0%, transparent 68%); pointer-events: none; }
.foot-cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.foot-cta-inner.in { opacity: 1; transform: translateY(0); }
.foot-cta-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.foot-cta-eyebrow .ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.foot-cta-eyebrow .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ctaPing 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ctaPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
.foot-cta h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); margin: 0; }
html[data-titlefont="Anton"] .foot-cta h3 { font-family: "Anton", sans-serif; font-weight: 400; }
.foot-cta p { margin: 0; color: rgba(255,255,255,.72); font-size: 15.5px; max-width: 46ch; }
.foot-cta .btn.btn-cta-wa { font-size: 16px; padding: 15px 30px 15px 22px; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; box-shadow: 0 14px 32px -14px rgba(174,224,106,.55); transition: transform .22s ease, box-shadow .22s ease; }
.foot-cta .btn.btn-cta-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(174,224,106,.7); }
.foot-cta .btn.btn-cta-wa .arw { transition: transform .22s ease; }
.foot-cta .btn.btn-cta-wa:hover .arw { transform: translateX(4px); }
.site-footer .foot-top { padding-top: clamp(48px, 7vh, 78px); }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; max-width: 36ch; }
.foot-brand .fb-lock { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 44px; height: 44px; }
.foot-brand .fb-name { font-family: var(--display); text-transform: uppercase; font-size: 22px; font-weight: 700; }
html[data-titlefont="Anton"] .foot-brand .fb-name { font-family: "Anton", sans-serif; font-weight: 400; }
.foot-brand p { color: rgba(255,255,255,.62); font-size: 15px; margin: 0; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); color: #fff; transition: background .18s, border-color .18s, transform .18s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #14240a; transform: translateY(-2px); }
.contact-info .social { margin-top: 4px; }
.contact-info .social a { border-color: var(--line-strong); color: var(--ink); }
.contact-info .social a:hover { background: var(--accent); border-color: var(--accent); color: #14240a; }
.foot-col h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #aee06a; margin: 0 0 15px; font-weight: 700; }
.foot-col a, .foot-col span { display: block; color: rgba(255,255,255,.74); font-size: 15px; margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(38px, 6vh, 60px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-bottom span { font-size: 13px; color: rgba(255,255,255,.5); }

/* ---- reveal ---- */
body.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
body.reveal-on [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { body.reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .nav, .header-phone { display: none; }
  .menu-btn { display: inline-flex; }
  /* Header móvil: menú a la izquierda, marca a la derecha */
  .header-right { order: 1; gap: 0; }
  .header-right .btn-accent { display: none; }
  .brand { order: 2; text-align: right; }
  .brand .bn-name, .brand .bn-sub { text-align: right; }
  .statcard-inner { grid-template-columns: repeat(2, 1fr); }
  .statcard .stat:nth-child(3) { border-left: 0; }
  .statcard .stat { border-top: 1px solid var(--line); }
  .statcard .stat:nth-child(1), .statcard .stat:nth-child(2) { border-top: 0; }
  .about { grid-template-columns: 1fr; }
  .ficha { position: static; }
  .svc-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .purpose-top { grid-template-columns: 1fr; align-items: start; }
  .ods-head { grid-template-columns: 1fr; }
  .ods-grid { grid-template-columns: repeat(4, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand .bn-sub { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand .bn-name { font-size: 21px; }
  .statcard-inner { grid-template-columns: 1fr; }
  .statcard .stat { border-left: 0; }
  .purpose-row { grid-template-columns: 1fr; }
  .ods-grid { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr; }
  .hero-loc { display: none; }
}

/* ============================================================
   IMÁGENES REALES — build de producción (slots → <img>)
   ============================================================ */
.about-photo img { width: 100%; height: clamp(280px, 42vh, 440px); object-fit: cover; border-radius: var(--r); display: block; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   NOVEDADES — índice y páginas de artículo
   ============================================================ */
/* tarjeta de post como enlace */
a.post { color: inherit; }
.post-link-row { margin-top: clamp(36px, 5vh, 52px); display: flex; justify-content: center; }

/* feature como enlace (en landing e índice) */
.feature-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-top: 18px; padding: 11px 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; width: fit-content; transition: border-color .18s, background .18s; }
.feature-link:hover { border-color: var(--ink); }
.feature-link .arw { color: var(--accent-ink); transition: transform .2s; }
.feature-link:hover .arw { transform: translateX(3px); }

/* cabecera del índice de novedades */
.news-index-head { padding-block: clamp(48px, 8vh, 96px) clamp(8px, 2vh, 20px); }
.news-index-head .sec-title { max-width: 18ch; }
.news-index-head p { color: var(--muted); margin: 16px 0 0; max-width: 56ch; }

/* ---- PÁGINA DE ARTÍCULO ---- */
.article-wrap { max-width: 860px; margin: 0 auto; padding-inline: var(--pad); }
.crumbs { padding-top: clamp(26px, 5vh, 44px); font-size: 14px; color: var(--faint); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.crumbs a { color: var(--accent-ink); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--line-strong); }
.article-head { padding-top: clamp(18px, 3vh, 26px); }
.article-tag { display: inline-block; background: var(--accent); color: #14240a; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; }
.article-title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.8vw, 54px); line-height: 1.05; letter-spacing: -0.005em; margin: 0; text-wrap: pretty; }
html[data-titlefont="Anton"] .article-title { font-family: "Anton", sans-serif; font-weight: 400; }
.article-meta { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.article-hero { margin: clamp(26px, 4vh, 40px) 0 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.article-hero img { width: 100%; height: clamp(280px, 50vh, 520px); object-fit: cover; display: block; }
.article-hero figcaption { font-size: 13px; color: var(--faint); padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--line); }
.img-ph { height: clamp(280px, 46vh, 460px); background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #aee06a; text-align: center; padding: 28px; }
.img-ph .ph-ico { width: 46px; height: 46px; opacity: .9; }
.img-ph .ph-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 16px; }
.img-ph .ph-s { font-size: 13px; color: rgba(255,255,255,.6); max-width: 30ch; }
.article-body { margin-top: clamp(28px, 4vh, 42px); padding-bottom: clamp(36px, 5vh, 56px); }
.article-body p { font-size: 18px; line-height: 1.72; color: var(--ink); margin: 0 0 22px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body p.lead { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); margin-bottom: 24px; }
html[data-titlefont="Anton"] .article-body p.lead { font-family: "Anton", sans-serif; font-weight: 400; line-height: 1.34; }
.article-body strong { font-weight: 600; }
.article-foot { border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: clamp(44px, 7vh, 80px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.back-link { font-weight: 600; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.back-link .arw { color: var(--accent-ink); transition: transform .2s; }
.back-link:hover .arw { transform: translateX(-3px); }
@media (max-width: 560px) {
  .article-body p { font-size: 16.5px; }
}
/* galería dentro del artículo */
.article-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: clamp(8px, 2vh, 16px) 0 26px; }
.article-figs figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.article-figs img { width: 100%; height: clamp(240px, 38vh, 360px); object-fit: cover; display: block; }
.article-figs figcaption { font-size: 12.5px; color: var(--faint); padding: 10px 14px; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .article-figs { grid-template-columns: 1fr; } }
