/* ============================================================
   EVOMARCA — Sistema visual
   Estética: atrevida, editorial, tipografía gigante, movimiento.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Familjen+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Base */
  --bg: #F2EEE4;          /* cream */
  --bg-2: #E9E3D5;        /* slightly deeper cream */
  --ink: #15120F;         /* near black */
  --ink-2: #5C564C;       /* muted */
  --line: rgba(21,18,15,.14);
  --paper: #FBF9F3;

  /* Accent (overridden by JS theme) */
  --accent: #FF2E88;
  --accent-ink: #FFFFFF;

  /* Type */
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Familjen Grotesk', sans-serif;

  /* Rhythm */
  --container: 1320px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;

  --ease: cubic-bezier(.22,1,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html, body { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.dark { background: var(--ink); color: var(--paper); }
.dark { --line: rgba(255,255,255,.16); }
.dark ::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h-mega   { font-family: var(--display); font-weight: 800; line-height: .88; letter-spacing: -.035em; font-size: clamp(3.3rem, 12vw, 12rem); }
.h-xl     { font-family: var(--display); font-weight: 700; line-height: .94; letter-spacing: -.03em; font-size: clamp(2.4rem, 6.5vw, 5.5rem); }
.h-l      { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.025em; font-size: clamp(1.8rem, 4vw, 3.2rem); }
.h-m      { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.lead     { font-size: clamp(1.12rem, 1.7vw, 1.5rem); line-height: 1.4; color: var(--ink-2); max-width: 40ch; }
.dark .lead { color: rgba(251,249,243,.72); }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em;
  color: var(--ink-2);
}
.dark .eyebrow { color: rgba(251,249,243,.65); }
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block;
}
.ink-accent { color: var(--accent); }

/* outlined display text */
.outline-text {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.dark .outline-text { -webkit-text-stroke-color: var(--paper); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: difference; color: #fff;
  transition: transform .5s var(--ease);
}
.site-header.hide { transform: translateY(-130%); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.brand image-slot { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); }
.nav a { font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1.5px solid currentColor; border-radius: 100px; padding: 9px 20px !important;
}
.nav-cta::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; }

@media (max-width: 900px) {
  .site-header { mix-blend-mode: normal; color: var(--ink); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
         background: var(--ink); color: var(--paper); transform: translateY(-100%); transition: transform .6s var(--ease); }
  .nav.open { transform: translateY(0); }
  .nav a { font-family: var(--display); font-size: 2rem; }
  .menu-toggle { display: block; z-index: 90; font-family: var(--display); font-weight: 700; font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-weight: 600; font-size: 1.02rem;
  padding: 16px 28px; border-radius: 100px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .35s var(--ease);
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: var(--ink); }
.btn--accent:hover { color: var(--paper); border-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--accent-ink); }
.dark .btn--ghost { color: var(--paper); border-color: var(--paper); }

.magnetic { will-change: transform; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; display: flex; user-select: none; }
.marquee__track { display: flex; flex-shrink: 0; gap: .35em; padding-right: .35em; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee__item {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.4rem, 7vw, 6.5rem); line-height: 1; display: inline-flex; align-items: center; gap: .35em;
}
.marquee__item .star { color: var(--accent); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

.line-mask { overflow: hidden; display: block; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.line-mask.in > span { transform: none; }
.line-mask:nth-child(2) > span { transition-delay: .09s; }
.line-mask:nth-child(3) > span { transition-delay: .18s; }
.line-mask:nth-child(4) > span { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .line-mask > span { opacity: 1 !important; transform: none !important; }
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 200; transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s; mix-blend-mode: difference; }
.cursor--ring { width: 40px; height: 40px; background: transparent; border: 1.5px solid var(--accent);
  z-index: 199; transition: width .35s var(--ease), height .35s var(--ease), transform .14s ease-out; }
.cursor.is-hover { width: 0; height: 0; }
.cursor--ring.is-hover { width: 76px; height: 76px; background: var(--accent); border-color: var(--accent); mix-blend-mode: normal; }
.cursor--ring.is-hover.with-label::after { content: attr(data-label); color: var(--accent-ink); font-family: var(--display); font-weight: 700; font-size: .8rem; }
@media (max-width: 900px) { .cursor, .cursor--ring { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(60px, 9vw, 120px); }
.footer-cta { font-family: var(--display); font-weight: 800; line-height: .9; letter-spacing: -.035em;
  font-size: clamp(2.6rem, 11vw, 9rem); display: inline-flex; align-items: center; gap: .1em; }
.footer-cta a { color: var(--paper); transition: color .4s; }
.footer-cta a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 60px; border-top: 1px solid var(--line); margin-top: clamp(40px,7vw,90px); }
.footer-grid h4 { font-family: var(--body); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: rgba(251,249,243,.55); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); color: rgba(251,249,243,.55); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Utility ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 100px; padding: 8px 16px; font-size: .85rem; font-weight: 600; }
.tag-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.divider { height: 1px; background: var(--line); width: 100%; }
.mono-num { font-family: var(--display); font-weight: 600; }

/* number badges */
.idx { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 1rem; }

/* ============================================================
   COMPONENTES PÁGINAS INTERNAS
   ============================================================ */
.page-hero { padding-top: 150px; padding-bottom: clamp(28px, 4vw, 56px); }
.page-hero h1 { margin-top: 20px; }
.page-hero .lead { margin-top: 24px; max-width: 44ch; }

/* Service block */
.service-block { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px,4vw,70px); align-items: center;
  padding-block: clamp(40px,6vw,92px); border-top: 1px solid var(--line); }
.service-block:nth-child(even) .service-visual { order: -1; }
.service-visual { position: relative; }
.service-visual image-slot { width: 100%; aspect-ratio: 4/3; }
.service-visual .num-lg { position: absolute; top: -.35em; right: 8px; font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem,9vw,9rem); color: var(--accent); line-height: .8; letter-spacing: -.04em; mix-blend-mode: multiply; opacity: .92; }
.service-block h2 { margin-bottom: 18px; }
.deliverables { list-style: none; margin-top: 26px; }
.deliverables li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.deliverables li::before { content: "✸"; color: var(--accent); font-size: .85em; }
@media (max-width: 820px) { .service-block { grid-template-columns: 1fr; } .service-block:nth-child(even) .service-visual { order: 0; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .display { font-size: clamp(2.4rem,8vw,6.5rem); line-height: .9; }

/* Team */
.team-card image-slot { width: 100%; aspect-ratio: 3/4; transition: transform .6s var(--ease); }
.team-card:hover image-slot { transform: translateY(-6px); }
.team-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-top: 16px; letter-spacing: -.02em; }
.team-card .role { color: var(--ink-2); font-size: .95rem; }

/* Values */
.value { padding: clamp(24px,3vw,38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.value .vn { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.value h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 16px 0 10px; }
.value p { color: var(--ink-2); font-size: .98rem; }

/* Blog */
.post-card { display: block; }
.post-card image-slot { width: 100%; aspect-ratio: 16/10; transition: transform .6s var(--ease); }
.post-card:hover image-slot { transform: scale(1.03); }
.post-card .pm { display: flex; gap: 12px; align-items: center; margin: 16px 0 8px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.post-card .pm .cat { color: var(--accent); font-weight: 700; }
.post-card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem,1.8vw,1.7rem); letter-spacing: -.02em; line-height: 1.05; }
.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.post-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px,4vw,56px); align-items: center; }
.post-feature image-slot { width: 100%; aspect-ratio: 4/3; }
@media (max-width: 820px) { .post-feature { grid-template-columns: 1fr; } }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: clamp(20px,2.4vw,30px) 0; }
.faq-item summary { list-style: none; cursor: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem,2vw,1.7rem); letter-spacing: -.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .sign { color: var(--accent); transition: transform .35s var(--ease); flex: none; font-weight: 400; }
.faq-item[open] summary .sign { transform: rotate(45deg); }
.faq-item p { color: var(--ink-2); margin-top: 16px; max-width: 64ch; }

/* Form */
.form { display: grid; gap: 26px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 12px 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem,1.8vw,1.6rem); color: inherit; cursor: text;
}
.field select { cursor: none; }
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: .5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; cursor: none; }
.chip-radio span { display: inline-flex; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 100px; font-weight: 600; font-size: .92rem; transition: all .25s var(--ease); }
.chip-radio input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.form-done { text-align: center; padding: clamp(40px,7vw,80px) 0; }
.form-done .fd-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 24px; font-size: 2.4rem; }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-cell { padding: clamp(24px,3vw,44px) clamp(14px,2vw,28px); border-left: 1px solid var(--line); }
.stat-cell:first-child { border-left: 0; }
.stat-cell b { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem,5vw,4.4rem); letter-spacing: -.03em; display: block; line-height: 1; }
.stat-cell span { color: var(--ink-2); font-size: .92rem; }
.dark .stat-cell span { color: rgba(251,249,243,.6); }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr 1fr; gap: 0; } .stat-cell { border-top: 1px solid var(--line); } .stat-cell:nth-child(-n+2) { border-top: 0; } .stat-cell:nth-child(odd) { border-left: 0; } }

/* ============================================================
   BLOG — contenido de post
   ============================================================ */
.post-content h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem,2.6vw,2.2rem); letter-spacing: -.025em; margin: 2em 0 .6em; }
.post-content h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem,2vw,1.7rem); letter-spacing: -.02em; margin: 1.6em 0 .5em; }
.post-content p { margin-bottom: 1.3em; }
.post-content ul, .post-content ol { margin: 0 0 1.3em 1.4em; }
.post-content li { margin-bottom: .4em; }
.post-content a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.4em; color: var(--ink-2); font-style: italic; margin: 1.8em 0; }
.post-content img { border-radius: var(--radius); margin-block: 1.8em; }
.post-content .wp-block-image { margin-block: 1.8em; }
.post-content code { background: var(--bg-2); padding: 2px 7px; border-radius: 5px; font-size: .88em; }
.post-content pre { background: var(--ink); color: var(--paper); padding: 20px 24px; border-radius: var(--radius); overflow-x: auto; margin-block: 1.8em; }

/* paginación */
.wp-block-query-pagination, .navigation { margin-top: clamp(40px,6vw,80px); display: flex; gap: 12px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); font-family: var(--display); font-weight: 600; transition: background .25s, border-color .25s; }
.page-numbers.current, .page-numbers:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* PM (post meta) */
.pm { display: flex; gap: 12px; align-items: center; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.pm .cat { color: var(--accent); font-weight: 700; }
