/* ==========================================================
   NAZAN — Custom CSS (ported from landing)
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
svg, svg * { outline: none !important; }

:root {
  --cream: #FAF7F2;
  --ink: #0A0A0A;
  --ink-mid: rgba(10, 10, 10, 0.7);
  --ink-soft: rgba(10, 10, 10, 0.55);
  --ink-faint: rgba(10, 10, 10, 0.4);
  --line: rgba(10, 10, 10, 0.08);
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-soft: rgba(124, 58, 237, 0.1);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.85, 0, 0.15, 1);
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  overflow-x: clip;
}

/* ========================================================
   HEADER STICKY
   ======================================================== */
.nz-header-sticky {
  position: sticky;
  top: 0;
  z-index: 210;
}
.nz-header {
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nz-header.scrolled {
  padding: 10px 40px;
  border-bottom-color: rgba(0,0,0,0.06);
}

/* Header sobre un hero oscuro (todas las páginas abren con uno).
   Arriba de todo el header desaparece y deja respirar al hero; en
   cuanto se scrollea vuelve la barra crema de siempre. La clase la
   pone nazan.js mirando la primera sección, no una lista de
   plantillas. */
.nz-header--over-dark:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nz-header--over-dark:not(.scrolled) .nz-nav a { color: rgba(250, 247, 242, 0.72); }
.nz-header--over-dark:not(.scrolled) .nz-nav a:hover { color: var(--cream); }
.nz-header--over-dark:not(.scrolled) .nz-cta-mini { background: var(--cream); color: var(--ink); }
.nz-header--over-dark:not(.scrolled) .nz-cta-mini:hover { background: #fff; color: var(--ink); }
.nz-header--over-dark:not(.scrolled) .nz-burger-line { background: var(--cream); }
/* El logo arranca en crema y vuelve al violeta al scrollear. La ola
   del logo recién entra a partir de scroll 160, con .scrolled ya
   puesta, así que no se pisan. */
.nz-header--over-dark:not(.scrolled) #main-logo-text { fill: var(--cream); }
.nz-header #main-logo-text { transition: fill 0.3s var(--ease-out); }
.nz-header .nz-nav a,
.nz-header .nz-cta-mini,
.nz-header .nz-burger-line { transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out); }
.nz-header-logo {
  height: 36px;
  transition: height 0.3s var(--ease-out);
  line-height: 0;
  display: flex;
  align-items: center;
}
.nz-header.scrolled .nz-header-logo { height: 30px; }
.nz-header-logo svg {
  height: 100%;
  width: auto;
  display: block;
}
.nz-nav { display: flex; gap: 28px; align-items: center; }
.nz-nav a {
  font-size: 13px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nz-nav a:hover { color: var(--ink); }
.nz-cta-mini {
  background: var(--ink); color: var(--cream);
  padding: 9px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer; border: none; font-family: inherit;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.nz-cta-mini:hover {
  background: var(--accent);
  transform: translateY(-1px);
  color: var(--cream);
}

/* ========================================================
   BURGER BUTTON (animated morph)
   ======================================================== */
.nz-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 201;
}
.nz-burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
  left: 9px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.nz-burger-line:nth-child(1) { top: 12px; }
.nz-burger-line:nth-child(2) { top: 19px; }
.nz-burger-line:nth-child(3) { top: 26px; }
body.nz-menu-open .nz-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nz-menu-open .nz-burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.nz-menu-open .nz-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================
   MOBILE OVERLAY
   ======================================================== */
.nz-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.4s var(--ease-out), transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.4s;
}
/* Lock the page scroll while the menu is open (reliable on iOS too).
   The scroll offset is held via the inline `top` set in JS, so the page
   stays visually in place. JS disables `scroll-behavior` while restoring
   on close, so the page doesn't animate ("jump") back. */
body.nz-menu-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* Overlay's own header: logo + close button, always visible */
.nz-mobile-overlay-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 14px;
  margin-bottom: 8px;
  background: var(--cream);
}
.nz-mobile-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
}
.nz-mobile-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.nz-mobile-close:hover {
  background: rgba(10, 10, 10, 0.04);
  transform: rotate(90deg);
}
.nz-mobile-close svg { display: block; }
body.nz-menu-open .nz-header {
  background: var(--cream);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
body.nz-menu-open .nz-mobile-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Mobile nav links — staggered reveal */
.nz-mobile-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
body.nz-menu-open .nz-mobile-nav > a,
body.nz-menu-open .nz-mobile-nav > .nz-mobile-nav-item,
body.nz-menu-open .nz-mobile-nav > .nz-mobile-cta {
  animation: nz-mobile-nav-in 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}
body.nz-menu-open .nz-mobile-nav > :nth-child(1) { animation-delay: 0.12s; }
body.nz-menu-open .nz-mobile-nav > :nth-child(2) { animation-delay: 0.17s; }
body.nz-menu-open .nz-mobile-nav > :nth-child(3) { animation-delay: 0.22s; }
body.nz-menu-open .nz-mobile-nav > :nth-child(4) { animation-delay: 0.27s; }
body.nz-menu-open .nz-mobile-nav > :nth-child(5) { animation-delay: 0.32s; }
body.nz-menu-open .nz-mobile-nav > :nth-child(6) { animation-delay: 0.37s; }
@keyframes nz-mobile-nav-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.nz-mobile-nav > a {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  display: block;
  letter-spacing: -0.02em;
  transition: color 0.2s, padding-left 0.3s var(--ease-out);
}
.nz-mobile-nav > a:hover {
  color: var(--accent);
  padding-left: 8px;
}
.nz-mobile-nav-item > button {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  letter-spacing: -0.03em;
}

/* Mobile CTA */
/* Selector specific enough to beat `.nz-mobile-nav > a` (which would
   otherwise force the dark --ink color onto this dark-background button). */
.nz-mobile-nav > a.nz-mobile-cta {
  color: var(--cream);
}
.nz-mobile-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin-top: auto;
  margin-bottom: 24px;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nz-mobile-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out);
  z-index: 0;
}
.nz-mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: var(--cream);
}
.nz-mobile-cta:hover::before {
  width: 400px; height: 400px;
}

/* ========================================================
   RESPONSIVE: mobile header
   ======================================================== */
@media (max-width: 720px) {
  .nz-nav { display: none; }
  .nz-cta-mini { display: none; }
  .nz-burger { display: flex; }
  .nz-header, .nz-header.scrolled { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 721px) {
  .nz-mobile-overlay { display: none !important; visibility: hidden !important; }
  .nz-burger { display: none !important; }
}

/* ========================================================
   SHARED BUTTON STYLES
   ======================================================== */
.btn-solid {
  position: relative;
  overflow: hidden;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-solid > * { position: relative; z-index: 1; }
.btn-solid::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out);
}
.btn-solid {
  background: var(--ink);
  color: var(--cream);
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-solid::before { background: rgba(250,247,242,0.15); }
.btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: #1a1a1a;
  color: var(--cream);
}
.btn-solid:hover::before { width: 260px; height: 260px; }

/* Inline SVG arrow icons */
.nz-icon-arrow,
.nz-icon-arrow-diag {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
a:hover .nz-icon-arrow,
button:hover .nz-icon-arrow { transform: translateX(3px); }
a:hover .nz-icon-arrow-diag,
button:hover .nz-icon-arrow-diag { transform: translate(3px, -3px); }

/* ========================================================
   BLOCK BUTTON STYLES (wp:button equivalents)
   ======================================================== */
.wp-block-button.is-style-accent .wp-block-button__link {
  position: relative;
  overflow: hidden;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
  text-decoration: none;
  z-index: 0;
}
.wp-block-button.is-style-accent .wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out);
  z-index: -1;
}

.wp-block-button.is-style-accent .wp-block-button__link {
  background: var(--accent);
  color: var(--cream);
  border: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.wp-block-button.is-style-accent .wp-block-button__link::before { background: rgba(250,247,242,0.18); }
.wp-block-button.is-style-accent .wp-block-button__link:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
  color: var(--cream);
}
.wp-block-button.is-style-accent .wp-block-button__link:hover::before { width: 280px; height: 280px; }

/* Block button arrow pseudo-elements (SVG mask) */
.wp-block-button.nz-arrow-diag .wp-block-button__link::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform 0.3s var(--ease-out);
}
.wp-block-button.nz-arrow-diag .wp-block-button__link::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E");
}
.wp-block-button.nz-arrow-diag .wp-block-button__link:hover::after { transform: translate(4px, -4px); }

/* ========================================================
   EYEBROW (reutilizable)
   ======================================================== */
.nz-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 500;
  margin-bottom: 24px;
}
.nz-hero .nz-eyebrow {
  font-size: 11px;
  color: var(--ink-mid);
  max-width: none;
  margin: 0 0 24px;
}

/* ========================================================
   SECTION HEADER (reutilizable)
   ======================================================== */
.nz-section-header {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}
.nz-section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--ink);
  margin: 0 0 24px;
}
.nz-section-subtitle {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-mid);
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================================
   HERO / PROMO
   ======================================================== */
.nz-hero {
  padding: 80px 40px 120px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.nz-hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 1400px; height: 1200px;
  background: radial-gradient(circle at center, rgba(8,145,178,0.18) 0%, rgba(8,145,178,0.08) 25%, rgba(8,145,178,0.03) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}
.nz-hero::after {
  content: '';
  position: absolute;
  top: 10%; left: 15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(196,66,26,0.12) 0%, rgba(196,66,26,0.04) 35%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.nz-hero h1, .nz-hero h2 {
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.02;
  margin: 0 0 28px;
}
.nz-hero p {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-mid);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.nz-promo-divider {
  max-width: 200px;
  margin: 60px auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ========================================================
   FOOTER
   ======================================================== */
.nz-footer {
  background: var(--ink); color: var(--cream);
  padding: 120px 40px 0;
  position: relative;
  overflow: hidden;
}
.nz-footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
  padding-bottom: 100px;
}
@media (max-width: 720px) {
  .nz-footer-content { grid-template-columns: 1fr; gap: 48px; }
}
.nz-footer-message { max-width: 460px; }
.nz-footer-message h2 {
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.3;
  color: var(--cream); margin: 0 0 32px;
}
.nz-footer-col-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.5);
  margin: 0 0 24px;
  font-weight: 600;
}
.nz-footer-links {
  display: flex; flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0; padding: 0;
}
.nz-footer-links a {
  font-size: 14px;
  color: rgba(250,247,242,0.85);
  text-decoration: none;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  position: relative;
  display: inline-block;
}
.nz-footer-links a:hover {
  color: var(--accent);
  transform: translateX(20px);
}
.nz-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid rgba(250,247,242,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.nz-footer-bottom-text {
  font-size: 11px;
  color: rgba(250,247,242,0.4);
  letter-spacing: 0.08em;
}
.nz-footer-bottom-links { display: flex; gap: 24px; }
.nz-footer-bottom-links a {
  font-size: 11px;
  color: rgba(250,247,242,0.4);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nz-footer-bottom-links a:hover { color: var(--cream); }

/* ========================================================
   CONTACT FORM
   ======================================================== */
.nz-contact-form {
  margin-top: 80px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .nz-contact-form { grid-template-columns: 1fr; gap: 48px; padding: 48px 36px; }
}
.nz-form-perks {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 0; margin: 0;
}
.nz-form-perks li {
  font-size: 14px;
  color: var(--ink-mid);
  padding-left: 26px;
  position: relative;
  line-height: 1.45;
}
.nz-form-perks li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 600;
}
.nz-form input,
.nz-form select,
.nz-form textarea {
  background: white;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  width: 100%;
}
.nz-form input:focus,
.nz-form select:focus,
.nz-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.nz-form label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
.nz-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .nz-form-row { grid-template-columns: 1fr; } }
.nz-form-field { margin-bottom: 18px; }
.nz-qs-stories-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 40px;
  text-align: center;
}
.nz-qs-proyectos-header {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}
.nz-footer-links a::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%230891B2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.nz-footer-links a:hover::before { opacity: 1; }

/* Native block compatibility for footer */
.nz-footer-links p { margin: 0; }
.nz-footer-links p a { position: relative; transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.nz-footer-bottom-links p { margin: 0; display: inline; }
.nz-footer .nz-footer-cta-btn .wp-block-button__link {
  background: var(--accent);
  color: var(--cream);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.nz-footer .nz-footer-cta-btn .wp-block-button__link:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  color: var(--cream);
}
.nz-footer .nz-footer-col-title { margin: 0 0 24px; }

/* Hero responsive */

/* Responsive */

/* ========================================================
   FORM STATES: loading spinner + animated thank-you
   ======================================================== */

/* Loading state on submit buttons */
.btn-solid.nz-sending,
button.nz-sending {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
}
.nz-sending > span,
.nz-sending .nz-icon-arrow,
.nz-sending .nz-icon-arrow-diag,
.nz-sending svg:not(.nz-spinner) {
  visibility: hidden;
}
.nz-sending::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: nz-spin 0.6s linear infinite;
}
@keyframes nz-spin { to { transform: rotate(360deg); } }

/* Thank-you panel */
.nz-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: 100%;
  padding: 32px 24px;
}
.nz-form-success.is-visible {
  display: flex;
  animation: nz-success-in 0.55s var(--ease-out) both;
}
@keyframes nz-success-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nz-form-success-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,0.08);
  animation: nz-check-pop 0.5s var(--ease-out) 0.05s both;
}
.nz-form-success-check svg {
  width: 56px;
  height: 56px;
  overflow: visible;
}
@keyframes nz-check-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.nz-check-circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}
.is-visible .nz-check-circle {
  animation: nz-check-draw 0.5s var(--ease-out) 0.15s forwards;
}
.nz-check-mark {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.is-visible .nz-check-mark {
  animation: nz-check-draw-mark 0.4s var(--ease-out) 0.5s forwards;
}
@keyframes nz-check-draw { to { stroke-dashoffset: 0; } }
@keyframes nz-check-draw-mark { to { stroke-dashoffset: 0; } }

.nz-form-success-title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink, #0A0A0A);
}
.nz-form-success-msg {
  margin: 0;
  max-width: 380px;
  color: var(--ink-mid);
  font-size: 15px;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .nz-form-success.is-visible,
  .nz-form-success-check,
  .is-visible .nz-check-circle,
  .is-visible .nz-check-mark,
  .nz-sending::after {
    animation: none;
  }
  .is-visible .nz-check-circle,
  .is-visible .nz-check-mark { stroke-dashoffset: 0; }
}

/* ========================================================
   CONTADORES ANIMADOS (F2)
   El valor final viene server-rendered; el JS solo lo anima.
   ======================================================== */
.nz-counter { display: flex; flex-direction: column; gap: 6px; }
.nz-counter-value {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.nz-counter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- Desktop (mouse/trackpad): expansión in-place como flyout,
       sin empujar la grilla. Teclado: focus abre igual que hover. --- */

/* --- Táctil: el panel abre como modal a pantalla completa --- */

/* ========================================================
   HOME — CASOS (F3)
   Grilla centrada que se ve bien con 1, 2, 3 o 6 tarjetas.
   ======================================================== */
.nz-casos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 420px));
  justify-content: center;
  gap: 24px;
}
.nz-caso {
  background: rgba(250, 247, 242, 0.04);
  border: 1px solid rgba(250, 247, 242, 0.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--cream);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.nz-caso:hover {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.4);
}
.nz-caso-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nz-caso-agente {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 100px;
}
.nz-caso-cliente {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--cream);
}
.nz-caso-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.7);
  margin: 0;
  flex: 1;
}
