/* =========================================================
   AHORA O NUNCA — Marketing Digital
   Design system: tokens + base + components
   Colores extraídos por muestreo de píxeles del PPT de marca.
   ========================================================= */

:root {
  /* --- Paleta de marca (medida sobre el PPT) --- */
  --navy-950: #001529;
  --navy-900: #00203d;
  --navy-800: #00284a;
  --navy-700: #00335e;   /* navy "core" de marca: texto, isotipo, sólidos */
  --navy-600: #0b4372;
  --teal-800: #0b3a3a;
  --teal-700: #0f4a45;
  --teal-600: #14524c;
  --teal-500: #1b6f5c;
  --teal-400: #237f63;
  --accent-500: #0b6fb0;  /* azul brillante de acento (highlights, links) */
  --accent-400: #347cb6;  /* azul medio (íconos, pins) */
  --white: #ffffff;
  --ink: #00335e;         /* color de texto principal sobre blanco */
  --ink-soft: #3a5776;
  --bg-soft: #f4f7fa;
  --bg-card: #ffffff;
  --border-soft: #dfe6ec;
  --success: #1b7a4d;
  --danger: #b0271e;

  /* --- Tipografía --- */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-grunge: 'Big Shoulders Stencil Display', var(--font-display);
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Espaciado / forma --- */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-md: 0 12px 32px -12px rgba(0, 32, 61, 0.35);
  --shadow-sm: 0 4px 14px -6px rgba(0, 32, 61, 0.25);
  --maxw: 1180px;

  --grad-brand: linear-gradient(115deg, var(--navy-950) 0%, var(--navy-800) 32%, var(--teal-700) 72%, var(--teal-500) 100%);
  --grad-brand-soft: linear-gradient(115deg, var(--navy-900) 0%, var(--teal-700) 100%);
  --grad-tag: linear-gradient(100deg, var(--navy-700) 0%, var(--teal-500) 100%);
}

/* ---------- Reset ligero ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff;
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Texturas de marca ---------- */
.stripe-texture {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px,
    transparent 2px, transparent 26px
  );
  pointer-events: none;
}
.noise-texture {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 70%, rgba(255,255,255,.06) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.07) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 85%, rgba(255,255,255,.05) 0 2px, transparent 3px);
  background-size: 340px 340px;
}
.ghost-mark {
  position: absolute; pointer-events: none; opacity: .07; z-index: 0;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.2));
}

/* ---------- Tipografía de título ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .3px;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); text-transform: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; color: var(--accent-500); margin-bottom: .8em;
}
.eyebrow::before { content: '— '; }

.tag-highlight {
  background: var(--grad-tag); color: #fff; padding: .12em .4em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: .95rem; padding: .95em 1.7em; border-radius: 999px;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  letter-spacing: .01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-500); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline {
  background: transparent; color: var(--navy-700); border-color: var(--navy-700);
}
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .65em; font-weight: 800; color: var(--navy-700); }
.brand-badge {
  width: 42px; height: 42px; border-radius: 10px; overflow: hidden; flex: none;
  background: var(--navy-900);
}
.brand-badge img {
  width: 100%; height: 100%; object-fit: cover; object-position: 48% 42%;
  transform: scale(1.55);
}
.brand-word { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em; line-height: 1; text-transform: uppercase;}
.brand-word span { display: block; font-family: var(--font-body); font-weight: 600; font-size: .56rem; letter-spacing: .18em; color: var(--ink-soft); text-transform: uppercase; margin-top: 2px;}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-weight: 600; font-size: .93rem; color: var(--navy-700); position: relative; padding: 4px 0;
}
.nav-links a[aria-current="page"] { color: var(--accent-500); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent-500);
  transform: scaleX(0); transition: transform .2s ease; transform-origin: left;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none; background: none; border: none; padding: 8px; color: var(--navy-700);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; bottom: auto; max-height: calc(100vh - 68px);
    background: #fff; flex-direction: column; padding: 28px 24px; gap: 1.4rem; overflow-y: auto;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .2s ease, transform .2s ease; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { padding: .7em 1.2em; font-size: .85rem; }
}

/* ---------- Bandas degradadas (huella visual del PPT) ---------- */
.brand-band {
  position: relative; overflow: hidden; background: var(--grad-brand); color: #fff;
}
.brand-band .container { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 110px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 2;
}
.hero-copy .eyebrow { color: #8fd9c4; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #6fd8c0; }
.hero-copy p.lede { color: rgba(255,255,255,.82); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #fff; }
.hero-stats div span { font-size: .8rem; color: rgba(255,255,255,.7); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { border-radius: var(--radius-md); max-width: 420px; width: 100%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 280px; margin: 0 auto; }
}

/* ---------- Secciones generales ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 0 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Bloque "problema" ---------- */
.problem {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.problem-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.problem-card .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent-400); display: block; margin-bottom: .3em; }
@media (max-width: 780px) { .problem { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--grad-tag);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1em;
}
.service-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; }
.service-card h3 { margin-bottom: .4em; }
.service-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Proceso (Entender+Diseñar+Implementar+Medir) ---------- */
.process { position: relative; }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 6%; right: 6%; height: 2px; background: var(--border-soft); z-index: 0;
}
.step { position: relative; z-index: 1; text-align: left; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy-700); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem;
  margin-bottom: 1em; box-shadow: var(--shadow-sm);
}
.step:nth-child(2) .step-dot { background: var(--teal-600); }
.step:nth-child(3) .step-dot { background: var(--accent-500); }
.step:nth-child(4) .step-dot { background: var(--teal-500); }
.step h3 { text-transform: uppercase; font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; margin-bottom: .3em; }
.step p { color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } .process-steps::before { display: none; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- Por qué elegirnos ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why-list { display: grid; gap: 18px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item .ico { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--teal-700); display:flex; align-items:center; justify-content:center;}
.why-item .ico svg { width: 18px; height: 18px; stroke: #fff; fill: none; }
.why-item h3 { margin-bottom: .15em; font-size: 1.02rem; }
.why-item p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card .thumb { aspect-ratio: 16/10; background: var(--grad-brand-soft); position: relative; overflow: hidden; }
.blog-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.blog-card .thumb::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,32,61,0) 40%, rgba(0,21,41,.75) 100%);
}
.blog-card .thumb .stripe-texture, .blog-card .thumb .noise-texture { opacity: .35; z-index: 1; }
.blog-card .thumb:not(:has(img)) .stripe-texture, .blog-card .thumb:not(:has(img)) .noise-texture { opacity: .6; }
.blog-card .thumb .cat {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.28); padding: .35em .8em; border-radius: 999px;
}
.blog-card .body { padding: 22px; display: flex; flex-direction: column; gap: .6em; flex: 1; }
.blog-card time { font-size: .78rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.blog-card h3 { margin: 0; }
.blog-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; flex: 1; }
.blog-card .readmore { font-weight: 700; font-size: .88rem; color: var(--accent-500); margin-top: .4em; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.4rem; }
.filter-chip {
  border: 1.5px solid var(--border-soft); background: #fff; padding: .55em 1.2em; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--ink-soft); transition: all .15s ease;
}
.filter-chip.is-active, .filter-chip:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

/* ---------- FAQ (details/summary nativo, accesible sin JS) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: #fff; padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-500); flex: none;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; padding: 90px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 50ch; margin: 0 auto 2em; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Formulario de contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: flex-start; }
.form-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .5em; color: var(--navy-700); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: var(--radius-sm); border: 1.5px solid var(--border-soft);
  font-family: inherit; font-size: .96rem; color: var(--ink); background: #fbfcfd; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(11,111,176,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: .4em; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.consent { display: flex; gap: .7em; align-items: flex-start; font-size: .84rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: .25em; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: 1em; }
.form-status {
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; font-weight: 600; margin-bottom: 20px; display: none;
}
.form-status.is-success { display: block; background: #e7f6ee; color: var(--success); }
.form-status.is-error { display: block; background: #fbe9e7; color: var(--danger); }

.contact-side { display: grid; gap: 20px; }
.info-card {
  background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden;
}
.info-card .container { padding: 0; }
.info-list { display: grid; gap: 16px; margin-top: 1.4em; position: relative; z-index: 2; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.info-list svg { width: 20px; height: 20px; flex: none; stroke: #6fd8c0; fill: none; margin-top: 2px; }
.info-list a { text-decoration: underline; text-underline-offset: 3px; }
.side-faq .faq-item { padding: 2px 18px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Artículo de blog ---------- */
.article-banner { max-width: var(--maxw); margin: 0 auto 2.8rem; padding: 0 24px; }
.article-banner img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block;
}
.article-head { max-width: 780px; margin: 0 auto; text-align: left; }
.article-meta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.2em; font-weight: 600; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { color: var(--navy-700); margin-top: 1.6em; text-align: left; }
.article-body h3 { color: var(--navy-700); margin-top: 1.4em; text-align: left; }
.article-body p { color: #253649; font-size: 1.03rem; text-align: justify; text-align-last: left; hyphens: auto; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; color: #253649; text-align: left; }
.article-body li { margin-bottom: .5em; }
@media (max-width: 640px) { .article-banner img { aspect-ratio: 4 / 3; } }
.article-body blockquote {
  border-left: 4px solid var(--accent-500); margin: 2em 0; padding: .3em 0 .3em 1.4em; font-size: 1.15rem;
  font-style: italic; color: var(--navy-700);
}
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.6em; }
.breadcrumb a { color: var(--accent-500); font-weight: 600; }
.breadcrumb [aria-current] { color: var(--ink-soft); }
.article-cta {
  margin: 3rem auto 0; max-width: 720px; background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg);
  padding: 34px; text-align: center;
}
.article-cta h3 { color: #fff; }
.article-cta p { color: rgba(255,255,255,.82); }
.related { max-width: 960px; margin: 4rem auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.78); padding: 70px 0 26px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; position: relative; z-index: 2; }
.footer-brand .brand-word { color: #fff; }
.footer-brand p { max-width: 32ch; font-size: .88rem; margin-top: 1em; }
.footer-col h3 { font-family: var(--font-body); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1.1em; }
.footer-col ul { display: grid; gap: .7em; }
.footer-col a { font-size: .9rem; }
.footer-col a:hover { color: #6fd8c0; }
.footer-social { display: flex; gap: 10px; margin-top: 1.2em; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 17px; height: 17px; stroke: #fff; fill: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding-top: 22px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: rgba(255,255,255,.55); position: relative; z-index: 2;
}
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilidades de aparición ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Página 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); color: var(--navy-700); line-height: .9; }

/* ---------- Ticker / marquee de marca ---------- */
.marquee {
  position: relative; overflow: hidden; background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 15px 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 24s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  font-size: .76rem; color: #6fd8c0; white-space: nowrap; padding-right: 2.5rem;
}
.marquee-track span::after { content: '|'; color: rgba(255,255,255,.25); margin-left: 2.5rem; font-weight: 400; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Hero editorial (poster) ----------
   Composición en capas: titular gigante de fondo (grid-row/column
   compartido con la foto a propósito) + foto ancla-abajo que se
   superpone al titular + pie con tagline y botón. La foto SOLO fija
   `height`; `width` queda en auto para que el navegador jamás
   deforme su relación de aspecto original. */
.hero-poster { position: relative; overflow: hidden; background: var(--grad-brand); }
.hero-poster .stripe-texture { opacity: .5; }
.hero-poster .noise-texture { opacity: .35; }
.network-graphic { position: absolute; inset: 0; opacity: .3; z-index: 1; pointer-events: none; }

.hero-poster-stage {
  position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.08fr .92fr; grid-template-rows: auto 1fr auto;
  min-height: clamp(640px, 74vw, 940px);
}
.hero-poster-headline {
  grid-column: 1 / 3; grid-row: 1 / 3; align-self: start; justify-self: start; text-align: left;
  font-family: var(--font-grunge); font-weight: 800; color: #fff; text-transform: uppercase; line-height: .86;
  font-size: clamp(4rem, 15.5vw, 13rem); letter-spacing: .01em; margin: 0; padding-top: clamp(64px, 10vw, 140px);
  z-index: 1; max-width: 100%;
}
.hero-poster-headline .line2 { color: #fff; display: block; }
.hero-poster-figure {
  grid-column: 2 / 3; grid-row: 1 / 4; z-index: 2; position: relative;
  display: flex; align-items: flex-end; justify-content: flex-end; height: 100%; pointer-events: none;
}
.hero-poster-figure img {
  height: 100%; max-height: 860px; width: auto; max-width: none;
  display: block; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.4));
}
.hero-poster-foot {
  grid-column: 1 / 2; grid-row: 3; align-self: end; position: relative; z-index: 3;
  padding-bottom: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
}
.hero-poster-tagline { color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; line-height: 1.4; margin: 0; }

@media (max-width: 900px) {
  .hero-poster-stage { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; padding-top: 28px; row-gap: 0; }
  .hero-poster-headline { grid-column: 1; grid-row: 1; margin: 0; }
  .hero-poster-foot { grid-column: 1; grid-row: 2; padding-bottom: 0; margin-top: 14px; }
  .hero-poster-figure {
    grid-column: 1; grid-row: 3; justify-content: center; align-items: flex-end;
    height: auto; margin-top: 14px; margin-bottom: 0;
  }
  .hero-poster-figure img {
    height: auto; width: 82%; max-width: 340px; max-height: none; margin: 0 auto; display: block;
  }
}

/* ---------- Botón contorno con flecha ---------- */
.btn-line {
  display: inline-flex; align-items: center; gap: .6em; border: 1.5px solid rgba(255,255,255,.6); color: #fff;
  padding: .85em 1.7em; border-radius: 999px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: .85rem; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-line svg { width: 16px; height: 16px; transition: transform .15s ease; stroke: currentColor; fill: none; }
.btn-line:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-line:hover svg { transform: translateX(4px); }

/* ---------- Portafolio de marcas (galería de logos) ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
}
.logo-wall .logo-tile {
  display: flex; align-items: center; justify-content: center; height: 140px;
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 24px; transition: box-shadow .18s ease, transform .18s ease;
}
.logo-wall .logo-tile:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.logo-wall .logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
