/* ============================================
   KYNOZ — INTELIGENCIA DE MARCA
   styles.css
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #f7f7f5;
  --white:     #ffffff;
  --ink:       #111111;
  --ink-mid:   #444444;
  --ink-light: #888888;
  --border:    #e0e0da;
  --dark-bg:   #0e1628;
  --blue:      #1F96FE;
  --blue-dim:  rgba(31,150,254,.08);
  --pad:       clamp(24px, 6vw, 100px);
  --max:       1380px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue-dim); }

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

/* ── SECTION LABELS ─────────────────────────── */
.s-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 24px;
  display: block;
}
.s-label em { font-style: normal; color: var(--blue); }

/* ── NAV ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 88px;
  width: 100%;
  background: rgba(247,247,245,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav-logo { text-decoration: none; display: flex; align-items: center; }
.logo-svg { height: 56px; width: auto; display: block; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mid);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--ink) !important;
  padding: 10px 26px;
  color: var(--ink) !important;
  transition: background .25s, color .25s, border-color .25s !important;
}
.nav-cta:hover {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--white) !important;
}

/* ── Lang switch ES/EN ───────────────────── */
.lang-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  font-size: .65rem !important;
  font-weight: 600 !important;
  letter-spacing: .15em !important;
  text-transform: uppercase;
  line-height: 1;
}
.lang-switch a,
.lang-switch span.lang-active {
  text-decoration: none;
  padding: 0;
  border: none !important;
}
.lang-switch a {
  color: var(--ink-light) !important;
  transition: color .2s;
}
.lang-switch a:hover { color: var(--ink) !important; }
.lang-switch .lang-active {
  color: var(--blue) !important;
  font-weight: 700 !important;
}
.lang-switch .lang-sep {
  color: var(--border);
  user-select: none;
}

/* ── HERO ─────────────────────────────────────── */
#hero {
  height: calc(100vh - 88px);
  max-height: 900px;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 40px var(--pad);
  background: var(--bg);
  overflow: hidden;
}
#hero .wrap { width: 100%; }

.hero-sublabel {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-sublabel::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--blue);
  display: inline-block;
  flex-shrink: 0;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.025em;
  margin-bottom: 28px;
}
.serif { font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400; }
.blue  { color: var(--blue); }
h1 .serif,
.exp-headline .serif { font-style: normal; }

.hero-cols {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: stretch;
}
.hero-desc {
  font-size: clamp(.9rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; align-items: center; gap: 48px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.arr {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--ink);
  position: relative;
  transition: width .25s;
}
.arr::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid var(--ink);
}
.link-arrow:hover .arr { width: 48px; }

.link-light {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mid);
  transition: color .2s;
}
.link-light:hover { color: var(--ink); }

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 14px 32px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--blue);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-primary:hover {
  background: #0F84E8;
  border-color: #0F84E8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31,150,254,.25);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding-left: clamp(20px, 4vw, 56px);
  border-left: 1px solid var(--border);
}
.hero-img { width: 100%; aspect-ratio: 3/2; overflow: hidden; background: #d0d0cc; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.08); transition: filter .5s; }
.hero-img:hover img { filter: grayscale(0%); }

.hero-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.exp-headline {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-align: center;
}
.exp-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 14px;
  text-align: center;
}
.exp-detail {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 6px;
  text-align: center;
  max-width: 320px;
}
.exp-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 22px auto;
}
.exp-foot {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
}

/* ── NOSOTROS ─────────────────────────────────── */
#nosotros { background: var(--white); }

.nosotros-main {
  padding: clamp(80px, 10vw, 160px) var(--pad) clamp(40px,5vw,80px);
}

.mani-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center; /* centrado vertical */
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -.025em;
}

/* H2 del manifiesto — la columna izquierda es 5fr (estrecha), por eso baja un poco el tamaño */
.mani-grid h2 {
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
}
.mani-grid h2 .serif { font-style: italic; }

.mani-img {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: #ccc;
  margin-bottom: 44px;
}
.mani-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.05); transition: filter .5s; }
.mani-img:hover img { filter: grayscale(0%); }

.mani-big {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 20px;
}
.mani-big strong { font-weight: 700; }
.mani-text {
  font-size: .97rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-mid);
}

/* Barra de hechos — full width */
.mani-bar {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: clamp(32px,4vw,56px) var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.mani-bar-item {
  padding: 0 clamp(20px,3vw,48px);
  border-right: 1px solid var(--border);
}
.mani-bar-item:first-child { padding-left: 0; }
.mani-bar-item:last-child  { border-right: none; }

.fact-lbl {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}
.fact-txt {
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ── SERVICIOS ────────────────────────────────── */
#servicios { padding: clamp(80px, 10vw, 160px) var(--pad); background: var(--bg); }

.svc-header {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 44px;
}
.svc-hint {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: right;
  line-height: 1.9;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  gap: 0;
}

.svc-card {
  padding: clamp(28px, 3.5vw, 52px) clamp(20px, 2.5vw, 40px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: box-shadow .35s, transform .35s;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  cursor: default;
  display: flex;
  flex-direction: column;
}

/* Shimmer azul en hover */
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(31,150,254,.10) 50%, transparent 80%);
  transition: left .65s ease;
  pointer-events: none;
}
.svc-card:hover::after { left: 140%; }
.svc-card:hover {
  box-shadow: 0 12px 48px rgba(31,150,254,.12), 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-4px);
}

.svc-num {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 36px;
  display: block;
}

.svc-icon { margin-bottom: 24px; }
.svc-icon svg { width: 28px; height: 28px; stroke: var(--ink-mid); fill: none; stroke-width: 1.5; }

.svc-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 300;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  line-height: 1.15;
}

.svc-desc {
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 32px;
  flex: 1;
}

.svc-tags { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.svc-tags li {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 6px 12px;
  border: 1px solid var(--border);
  display: inline-block;
  align-self: flex-start;
  transition: border-color .2s, color .2s;
}
.svc-card:hover .svc-tags li {
  border-color: rgba(31,150,254,.3);
  color: var(--blue);
}

/* ── CLIENTES ─────────────────────────────────── */
#clientes { padding: clamp(80px, 10vw, 160px) var(--pad); background: var(--white); }

.cli-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.cli-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-top: 12px;
}

.cli-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

.cli-cell {
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  transition: background .25s;
  min-width: 0;
  overflow: hidden;
}
.cli-cell:hover { background: var(--bg); }

.cli-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cli-placeholder .cli-rect {
  width: 130px; height: 48px;
  background: var(--border);
  opacity: .6;
}
.cli-placeholder span {
  font-size: .5rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* Logo real — cuando reemplaces los placeholders */
.cli-logo {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(60%);
  transition: filter .3s ease;
}
.cli-cell:hover .cli-logo {
  filter: grayscale(0%) opacity(100%);
}

/* ── PUEBLA / HERITAGE ────────────────────────── */
#puebla {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.puebla-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.puebla-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,18,40,.82) 0%, rgba(14,22,45,.70) 100%);
  z-index: 1;
}
.puebla-watermark {
  position: absolute;
  right: -2%;
  bottom: -8%;
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 800;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.04);
  line-height: 1;
  z-index: 2;
  user-select: none;
  pointer-events: none;
}

#puebla .wrap {
  position: relative;
  z-index: 3;
  padding-top: clamp(72px, 10vw, 130px);
  padding-bottom: clamp(72px, 10vw, 130px);
  width: 100%;
}

.puebla-cols {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

#puebla h2 {
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  color: var(--white);
  font-weight: 200;
  line-height: 1.08;
}
#puebla h2 .serif { color: var(--white); }

.puebla-text {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255,255,255,.70);
  margin-bottom: 32px;
}
.puebla-loc {
  display: flex;
  align-items: center;
  gap: 10px;
}
.puebla-dot {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.puebla-loc-txt {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ── CONTACTO ─────────────────────────────────── */
#contacto { padding: clamp(80px, 10vw, 160px) var(--pad); background: var(--bg); }

.contact-cols {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact-head h2 { margin-bottom: 24px; }

.contact-sub {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 44px;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.ci-row-lbl {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.ci-row-val {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
a.ci-row-val:hover { color: var(--blue); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 0; }

.field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: relative;
  transition: border-color .2s;
}
.field:focus-within { border-color: var(--blue); }

.field label {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
  transition: color .2s;
}
.field:focus-within label { color: var(--blue); }

.field input,
.field select,
.field textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: .97rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-light); }
.field select { cursor: pointer; }
.field select option { background: var(--white); }

.field-error {
  font-size: .6rem;
  color: #e53e3e;
  letter-spacing: .08em;
  margin-top: 4px;
  display: none;
}
.field.invalid .field-error { display: block; }
.field.invalid { border-color: #e53e3e; }
.field.invalid label { color: #e53e3e; }
.input-error { border-color: #e53e3e !important; outline-color: #e53e3e !important; }
#form-feedback { border-radius: 4px; padding: 10px 16px; font-size: .9rem; margin-top: 12px; }
#form-feedback.ok  { background: #e6f4ea; color: #2d6a4f; display: block !important; }
#form-feedback.err { background: #fde8e8; color: #9b2c2c; display: block !important; }

.btn-send {
  margin-top: 36px;
  background: var(--ink);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: none;
  padding: 20px 48px;
  cursor: pointer;
  align-self: flex-start;
  transition: background .25s, transform .2s;
}
.btn-send:hover {
  background: var(--blue);
  transform: translateY(-2px);
}
.btn-send:disabled {
  background: var(--ink-mid);
  cursor: not-allowed;
  transform: none;
}
.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-global-error {
  display: none;
  color: #d32f2f;
  font-size: .82rem;
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff5f5;
  border-left: 3px solid #d32f2f;
  border-radius: 2px;
}

/* reCAPTCHA notice */
.recaptcha-note {
  font-size: .58rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-top: 16px;
}
.recaptcha-note a { color: var(--blue); text-decoration: none; }

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 6vw, 80px) var(--pad) clamp(28px, 4vw, 48px);
}
footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.foot-logo { text-decoration: none; display: block; }
.foot-logo svg { height: 40px; width: auto; display: block; }

.foot-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.foot-nav a {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mid);
  transition: color .2s;
}
.foot-nav a:hover { color: var(--blue); }

.foot-copy {
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.foot-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-legal span {
  font-size: .55rem;
  color: var(--border);
}
.foot-legal a {
  font-size: .52rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--ink-light);
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s;
}
.foot-legal a:hover { opacity: 1; color: var(--blue); }

/* ── BLOG ────────────────────────────────────── */
#blog-hero {
  padding: clamp(100px, 12vw, 160px) var(--pad) clamp(48px, 6vw, 80px);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
#blog-hero h1 {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
#blog-hero p {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 560px;
}

.blog-grid {
  padding: clamp(48px, 6vw, 80px) var(--pad);
  background: var(--bg);
}
.blog-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  max-width: var(--max);
  margin: 0 auto;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(28px, 3vw, 44px);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .3s, transform .3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 12px 48px rgba(31,150,254,.10), 0 4px 16px rgba(0,0,0,.06);
  transform: translateY(-4px);
}
.blog-card-tag {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.blog-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.blog-card p {
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}
.blog-card-date {
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ── BLOG ARTICLE ────────────────────────────── */
.article-header {
  padding: clamp(100px, 12vw, 160px) var(--pad) clamp(32px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.article-header .wrap { max-width: 780px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-meta span {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.article-tag { color: var(--blue); }
.article-date { color: var(--ink-light); }
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.article-header .article-excerpt {
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 600px;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad);
}
.article-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.article-body h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-body p {
  font-size: .95rem;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  color: var(--ink-mid);
  font-size: .95rem;
  line-height: 1.85;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--blue-dim);
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.75;
}

.article-cta {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
  padding-top: clamp(32px, 4vw, 48px);
  text-align: center;
}
.article-cta p {
  font-size: 1rem;
  color: var(--ink-mid);
  margin-bottom: 20px;
}
.article-cta a {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 40px;
  transition: background .25s, transform .2s;
}
.article-cta a:hover { background: var(--blue); transform: translateY(-2px); }

/* ── Article tables (used in pillar posts) ──── */
.article-body .article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 32px;
  font-size: .92rem;
  line-height: 1.55;
}
.article-body .article-table thead th {
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
}
.article-body .article-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
  vertical-align: top;
}
.article-body .article-table tbody tr:hover td {
  background: rgba(31,150,254,.04);
}
.article-body .article-table tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 700px) {
  .article-body .article-table {
    font-size: .82rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ── Related article (internal linking) ──────── */
.article-related {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 6vw, 80px);
}
.article-related-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 18px;
  display: block;
}
.article-related-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: color .2s, padding-left .25s;
}
.article-related-link:hover {
  color: var(--blue);
  padding-left: 8px;
}
.article-related-tag {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.article-related-title {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.005em;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mid);
  margin-bottom: 32px;
  transition: color .2s;
}
.blog-back:hover { color: var(--blue); }

/* ── HAMBURGER ────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE 1024px (iPad horizontal) ──────── */
@media (max-width: 1024px) {
  .cli-grid { grid-template-columns: repeat(4, 1fr); }
  .cli-cell:nth-child(4n) { border-right: none; }
}

/* ── RESPONSIVE 900px ─────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  nav { height: 68px; }
  .logo-svg { height: 40px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 16px 0 24px;
    z-index: 150;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: .7rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links li.lang-switch {
    width: auto;
    margin: 12px auto 4px;
    display: inline-flex !important;
  }
  .nav-links li.lang-switch a,
  .nav-links li.lang-switch span {
    display: inline;
    padding: 0;
    border: none;
  }
  .nav-cta {
    margin: 8px auto 0 !important;
    display: inline-block !important;
    width: auto !important;
    padding: 10px 28px !important;
  }

  /* Hero */
  #hero { height: auto; min-height: auto; padding: 48px var(--pad); }

  /* Sections */
  .hero-cols        { grid-template-columns: 1fr; }
  .hero-right       { display: none; }
  .hero-actions     { flex-direction: column; align-items: flex-start; gap: 24px; }
  .mani-grid        { grid-template-columns: 1fr; }
  .mani-bar         { grid-template-columns: 1fr 1fr; }
  .mani-bar-item:nth-child(2) { border-right: none; }
  .mani-bar-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .svc-header       { grid-template-columns: 1fr; }
  .svc-hint         { text-align: left; }
  .svc-grid         { grid-template-columns: 1fr; border-left: none; }
  .svc-card         { border-right: none; border-left: 1px solid var(--border); }
  .cli-grid         { grid-template-columns: repeat(2, 1fr); }
  .cli-cell:nth-child(even) { border-right: none; }
  .cli-logo         { max-width: 80%; max-height: 50px; display: block; margin: 0 auto; }
  .puebla-cols      { grid-template-columns: 1fr; }
  .puebla-watermark { display: none; }
  .contact-cols     { grid-template-columns: 1fr; }
  .blog-cards       { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE 600px ─────────────────────────── */
@media (max-width: 600px) {
  :root { --pad: 20px; }

  .logo-svg { height: 34px; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }

  #hero { padding: 36px var(--pad) 48px; }

  .mani-bar      { grid-template-columns: 1fr; }
  .mani-bar-item { border-right: none !important; border-bottom: 1px solid var(--border); padding-left: 0; }
  .mani-bar-item:last-child { border-bottom: none; }

  .btn-send  { width: 100%; text-align: center; padding: 18px; }

  .foot-nav  { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .foot-legal { flex-wrap: wrap; justify-content: center; }

  .puebla-watermark { display: none; }
}
