/* =========================================================
   Zuman · Sistema de diseño
   Paleta extraída del logo: azul acero + verde oliva
   ========================================================= */

:root {
  /* Colores del logo */
  --blue:        #3E6B8A;
  --blue-dark:   #2C4E66;
  --blue-ink:    #1E3447;
  --olive:       #8B9A46;
  --olive-dark:  #6C7933;

  /* Neutrales cálidos (ni tech frío, ni amarillento) */
  --bg:          #FAFAF7;
  --bg-warm:     #F2F0EA;
  --bg-card:    #FFFFFF;
  --fg:          #1C2530;
  --fg-dim:      #4A5666;
  --fg-mute:     #8A95A3;
  --line:        #E2DED4;
  --line-soft:   #ECE8DF;
  --line-strong: #C9C2B4;

  /* Fuentes — clásicas, profesionales, legibles */
  --display: "Manrope", "Inter Tight", system-ui, sans-serif;
  --body:    "Source Sans 3", "Inter", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

/* Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
p { margin: 0; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--olive);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  background: transparent;
  color: var(--fg);
  transition: all .18s ease;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.olive {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}
.btn.olive:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.btn.lg { padding: 16px 26px; font-size: 18px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
}
.nav-logo { display: flex; align-items: center; gap: 12px; margin-left: -14px; flex-shrink: 0; min-width: max-content; }
.nav-logo img { height: 132px; width: auto; flex-shrink: 0; }
.nav-links {
  display: flex; gap: 16px; justify-content: center;
  font-size: 15.5px; color: var(--fg-dim);
}
.nav-links > li { list-style: none; position: relative; }
.nav-links a, .nav-links .menu-trigger {
  padding: 6px 0; border-bottom: 2px solid transparent; transition: all .18s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit; font-size: inherit; color: inherit;
}
.nav-links a:hover, .nav-links .menu-trigger:hover { color: var(--blue); }
.nav-links a.active, .nav-links .menu-trigger.active { color: var(--blue); border-bottom-color: var(--olive); }
.menu-trigger .chev { width: 10px; height: 10px; transition: transform .2s; }

/* Dropdown — CSS-only */
.submenu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 14px; min-width: 320px;
  box-shadow: 0 24px 60px -20px rgba(30,52,71,0.25);
  opacity: 0; visibility: hidden; transition: all .18s; z-index: 30;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.has-submenu:hover .chev { transform: rotate(180deg); }
.submenu::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.submenu-grid { display: grid; gap: 2px; }
.submenu a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: 4px; border-bottom: none;
  font-family: var(--display); font-weight: 500; font-size: 16px;
  color: var(--fg); transition: background .15s;
}
.submenu a:hover { background: var(--bg-warm); border-bottom: none; color: var(--blue); }
.submenu a .ico {
  width: 32px; height: 32px; background: var(--bg-warm); border-radius: 4px;
  display: grid; place-items: center; color: var(--blue); flex-shrink: 0;
}
.submenu a .label { display: block; line-height: 1.2; }
.submenu a .desc { display: block; font-family: var(--body); font-weight: 400; font-size: 13.5px; color: var(--fg-mute); margin-top: 2px; }

/* ---------- AI Summary block (per page) ---------- */
.ai-summary {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.ai-summary .label {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--olive-dark); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.ai-summary .label::before {
  content: ''; width: 18px; height: 2px; background: var(--olive);
}
.ai-summary p {
  font-size: 19px; line-height: 1.6; color: var(--fg-dim);
  max-width: 80ch; margin: 0;
}
.ai-summary p strong { color: var(--fg); font-weight: 600; }

/* ---------- FAQ block (visible HTML, no acordeón) ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item-v {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  padding-right: 32px;
}
.faq-item-v:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 32px; }
.faq-item-v:nth-child(even) { padding-left: 32px; padding-right: 0; }
.faq-item-v .num {
  font-family: var(--mono); font-size: 12px;
  color: var(--olive-dark); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 8px;
}
.faq-item-v h3 {
  font-size: 21px; font-weight: 600; margin: 0 0 12px;
  line-height: 1.3;
}
.faq-item-v p {
  font-size: 17px; color: var(--fg-dim);
  line-height: 1.6; margin: 0;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right .btn { padding: 11px 18px; font-size: 15px; }

/* ---------- Selector de idioma ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button,
.lang-switch a {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  padding: 6px 9px;
  line-height: 1;
  text-decoration: none;
  transition: background .15s, color .15s;
  border-left: 1px solid var(--line-soft);
}
.lang-switch button:first-child,
.lang-switch a:first-child { border-left: 0; }
.lang-switch button:hover,
.lang-switch a:hover { color: var(--blue); background: var(--bg-warm); }
.lang-switch button.is-active,
.lang-switch a.is-active {
  background: var(--blue);
  color: #fff;
}
.nav-lang {
  font-family: var(--mono); font-size: 12.5px; color: var(--fg-mute);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.nav-lang b { color: var(--fg); }

/* ---------- Section spacing ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }
.section-warm { background: var(--bg-warm); }
.section-blue { background: var(--blue-ink); color: #fff; }
.section-blue .eyebrow { color: #C8E0F0; }
.section-blue .eyebrow::before { background: var(--olive); }
.section-blue h2, .section-blue h3, .section-blue h4 { color: #fff; }
.section-blue p { color: #BFD0DD; }

/* ---------- Section head (reusable) ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}
.sec-head h2 {
  font-size: 56px;
  line-height: 1.02;
  margin: 16px 0 0;
  font-weight: 600;
  max-width: 14ch;
}
.sec-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}
.sec-head .sub {
  color: var(--fg-dim);
  font-size: 19px;
  line-height: 1.6;
  max-width: 44ch;
}
.sec-head.stack { grid-template-columns: 1fr; }
.sec-head.stack h2 { max-width: 20ch; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Banda cinematográfica de servicio (foto operario + texto) ---------- */
.qh-band {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blue-ink);
}
.qh-band .qh-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 76% 36%;
  z-index: 0;
  /* calienta y calma el tono acero frío para integrarlo en la paleta cálida */
  filter: saturate(0.80) contrast(1.02) brightness(1.02) sepia(0.16);
}
.qh-band .qh-scrim {
  position: absolute; inset: 0; z-index: 1;
  /* azul-tinta exacto de marca (--blue-ink 30,52,71): mismo del footer y CTA */
  background:
    linear-gradient(95deg,
      rgba(30,52,71,0.97) 0%,
      rgba(30,52,71,0.93) 24%,
      rgba(30,52,71,0.66) 43%,
      rgba(30,52,71,0.20) 58%,
      rgba(30,52,71,0) 72%);
}
/* lavado cálido en suave-luz para que las luces frías recojan el tono crema */
.qh-band .qh-warm {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: soft-light;
  background: linear-gradient(95deg, rgba(139,154,70,0) 48%, rgba(214,196,150,0.55) 100%);
}
/* refuerzo inferior sutil para asentar la imagen */
.qh-band::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(30,52,71,0.12) 0%, transparent 22%, transparent 70%, rgba(30,52,71,0.40) 100%);
}
.qh-band .qh-inner { position: relative; z-index: 3; width: 100%; padding: 64px; }
.qh-copy { max-width: 568px; color: #fff; }
.qh-copy .eyebrow { color: #C8D492; }
.qh-copy .eyebrow::before { background: #C8D492; }
.qh-copy h2 {
  font-size: 50px; line-height: 1.03; font-weight: 600;
  color: #fff; margin: 22px 0 26px; letter-spacing: -0.025em;
}
.qh-copy h2 em { font-style: italic; font-weight: 400; color: #C8D492; }
.qh-copy p {
  font-size: 19px; line-height: 1.62; color: #D2DDE6; margin: 0 0 16px;
  max-width: 50ch;
}
.qh-copy p:last-child { margin-bottom: 0; }
.qh-copy p strong { color: #fff; font-weight: 600; }
/* caption técnica sobre la foto, esquina inferior derecha */
.qh-cap {
  position: absolute; right: 30px; bottom: 22px; z-index: 3;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.62);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px; border-radius: 4px;
  background: rgba(30,52,71,0.40);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(3px);
}
.qh-cap::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #C8D492; box-shadow: 0 0 0 3px rgba(200,212,146,0.22);
}
@media (max-width: 980px) {
  .qh-copy h2 { font-size: 40px; }
}
@media (max-width: 860px) {
  .qh-band { min-height: 0; }
  .qh-band .qh-scrim {
    background: linear-gradient(180deg, rgba(30,52,71,0.45) 0%, rgba(30,52,71,0.58) 40%, rgba(30,52,71,0.96) 78%);
  }
  .qh-band::after { display: none; }
  .qh-band .qh-inner { padding: 260px 28px 44px; }
  .qh-copy h2 { font-size: 34px; }
  .qh-copy p { font-size: 17px; }
  .qh-cap { display: none; }
}

/* ---------- Exhibición de arquitectura (diagrama centrado) ---------- */
.arch-figure {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 30px 70px -40px rgba(30,52,71,0.30);
  max-width: 1040px;
  margin: 0 auto;
}
.arch-figure img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* ---------- Flow diagram (blended into page bg) ---------- */
.flow-diagram {
  position: relative;
  container-type: inline-size;
  width: 106%;
  margin: 0 -3% 0 -1%;
}
.flow-diagram img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  /* White plate of the artwork multiplies down to the page color,
     so the rectangular edges dissolve into the background. */
  mix-blend-mode: multiply;
  filter: saturate(1.05) contrast(1.02);
}
/* Translatable labels overlaid on the (text-free) base artwork.
   Positioned in % and sized in cqw so they track the image at any width. */
.flow-labels { position: absolute; inset: 0; pointer-events: none; }
.fl {
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.14;
  letter-spacing: 0.004em;
  white-space: nowrap;
  text-wrap: nowrap;
}
.fl-corner { font-size: 2.95cqw; color: #34424E; }
.fl-sat    { font-size: 2.1cqw; }     /* longest label — keep clear of the machine icon */
.fl-ring   { font-size: 1.72cqw; color: #262d33; }
.fl-ring.r { transform: translateX(calc(-100% - 2.4cqw)); } /* right-aligned, gap before icon */
.fl-ring.l { transform: translateX(2.4cqw); }                /* left-aligned, gap after icon */
.fl-ring.c { transform: translateX(-50%); text-align: center; }
@media (max-width: 860px) {
  .flow-diagram { width: 100%; margin: 8px 0 0; }
}

/* ---------- Placeholder (for missing photos) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-warm);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(62,107,138,0.06) 0 1px,
    transparent 1px 14px
  );
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  min-height: 200px;
}
.ph::before {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.85);
  padding: 4px 9px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.ph.photo {
  background-size: cover;
  background-position: center;
  background-image: none, none;
  background-color: #222;
  border: none;
}
.ph.photo::before { display: none; }

/* ---------- Page hero (smaller than home hero) ---------- */
.page-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-warm), var(--bg));
}
.page-hero .crumbs {
  font-family: var(--mono); font-size: 13px; color: var(--fg-mute);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
}
.page-hero .crumbs a { color: var(--fg-mute); }
.page-hero .crumbs a:hover { color: var(--blue); }
.page-hero .crumbs .sep { margin: 0 8px; color: var(--line-strong); }
.page-hero h1 {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.02;
  margin: 10px 0 20px;
  max-width: 16ch;
}
.page-hero h1 em { font-style: italic; font-weight: 400; color: var(--blue); }
.page-hero .lead {
  font-size: 22px;
  color: var(--fg-dim);
  max-width: 58ch;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-ink);
  color: #BFD0DD;
  padding: 72px 0 28px;
}
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand .nav-logo img {
  width: 210px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-brand p {
  margin-top: 28px;
  font-size: 16.5px;
  line-height: 1.55;
  max-width: 36ch;
  color: #A8BECE;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7FA0B5;
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 16.5px; }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  color: #7FA0B5;
  letter-spacing: 0.06em;
}
.footer-meta a { color: #7FA0B5; }

/* ---------- Legal / Documentos ---------- */
.legal { padding: 56px 0 96px; }
.legal-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 72px;
  align-items: start;
}
.legal-toc { position: sticky; top: 156px; }
.legal-toc .label {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--olive-dark); margin-bottom: 14px;
}
.legal-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc li a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 15px; color: var(--fg-dim); line-height: 1.45;
}
.legal-toc li a:hover { color: var(--blue); border-left-color: var(--olive); }
.legal-body { max-width: 70ch; }
.legal-body .legal-meta {
  font-family: var(--mono); font-size: 13px; color: var(--fg-mute);
  letter-spacing: 0.04em; margin: 0 0 36px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-body h2 {
  font-size: 25px; margin: 52px 0 14px; scroll-margin-top: 150px;
  display: flex; align-items: baseline; gap: 12px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h2 .n {
  font-family: var(--mono); font-size: 14.5px; font-weight: 500;
  color: var(--olive-dark); letter-spacing: 0.04em; flex-shrink: 0;
}
.legal-body h3 { font-size: 19px; margin: 28px 0 8px; }
.legal-body p, .legal-body li { font-size: 18px; color: var(--fg-dim); line-height: 1.72; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--olive-dark); }
.legal-body a { color: var(--blue); }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--fg); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 4px 0 24px; font-size: 16px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 11px 14px;
  border: 1px solid var(--line); vertical-align: top; color: var(--fg-dim); line-height: 1.5;
}
.legal-table th {
  background: var(--bg-warm); font-family: var(--display);
  font-weight: 600; color: var(--fg); font-size: 14.5px;
}
.legal-callout {
  background: var(--bg-warm); border: 1px solid var(--line);
  border-left: 3px solid var(--olive); border-radius: 4px;
  padding: 18px 22px; margin: 0 0 24px;
}
.legal-callout p { margin: 0; font-size: 16px; line-height: 1.6; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .legal-toc ul { display: flex; flex-wrap: wrap; gap: 4px 18px; border-left: none; }
}
