/* ─────────── NAV ─────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250,250,247,.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
/* Funnel variant (oferta / contratar / gracias / legal): compact, fixed border */
.nav.nav-funnel { border-bottom-color: var(--line); }
.nav.nav-funnel .nav-inner { height: 72px; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 110px; width: auto; display: block; position: relative; top: 12px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-cta {
  font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--white);
  border: 0; padding: 11px 18px; border-radius: 999px;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--teal-deep); transform: translateY(-1px); }

/* Funnel breadcrumbs (oferta → contratar → gracias) */
.nav-progress {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.nav-progress .step { display: flex; align-items: center; gap: 8px; }
.nav-progress .step .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}
.nav-progress .step.done .dot { background: var(--teal-deep); }
.nav-progress .step.active .dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(46,182,188,.18);
}
.nav-progress .step.active { color: var(--ink); }
.nav-progress .sep { width: 24px; height: 1px; background: var(--line); }

.nav-help {
  font-family: var(--mono); font-size: 11px;
  color: var(--teal-deep);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* Nav badge (PYME · 3.0TD, Legal · Condiciones, etc.) */
.nav-segment {
  font-family: var(--mono); font-size: 11px;
  color: var(--teal-deep);
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 6px 12px;
  background: var(--teal-soft);
  border-radius: 999px;
  border: 1px solid rgba(46,182,188,.3);
}

/* Nav back-arrow (legal pages) */
.nav-back {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.14em;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: border-color .15s, color .15s;
}
.nav-back:hover { color: var(--teal-deep); border-color: var(--teal); }

/* ─────────── GENERIC SECTION ─────────── */
section.block { padding: 120px 0; position: relative; }
section.block.alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
section.block.dark { background: var(--ink); color: var(--white); }
section.block.dark .muted { color: rgba(255,255,255,.6); }

.block-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-deep);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.block-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--teal-deep);
}
section.block.dark .block-eyebrow { color: var(--teal); }
section.block.dark .block-eyebrow::before { background: var(--teal); }

h2.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
h2.title em { font-style: italic; color: var(--teal-deep); }
section.block.dark h2.title em { color: var(--teal); }

.title-row {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 800px) {
  .title-row { grid-template-columns: 1fr; gap: 24px; }
}
.title-row p {
  font-size: 18px; line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
section.block.dark .title-row p { color: rgba(255,255,255,.75); }

/* ─────────── MARQUEE ─────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  width: max-content;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
}
.marquee-item .sep { color: var(--teal); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────── FOOTER ─────────── */
footer.foot {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--white);
}
.foot-brand h3 em { color: var(--teal); font-style: italic; }
.foot-brand p {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 0 24px;
}
.foot-brand .logo-mono {
  height: 28px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,.5);
  margin: 0 0 18px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-col a {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  transition: color .15s;
}
.foot-col a:hover { color: var(--teal); }

.foot-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.5);
}
.foot-bottom .legal-links { display: flex; gap: 24px; }
.foot-bottom .legal-links a { color: rgba(255,255,255,.7); }
.foot-bottom .legal-links a:hover { color: var(--teal); }

/* ─────────── MINI FOOTER (funnel + legal pages) ─────────── */
footer.foot-mini {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.foot-mini-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.foot-mini-inner a { color: var(--ink-2); }
.foot-mini-inner a:hover { color: var(--teal-deep); }
.foot-mini-inner .legal-links { display: flex; gap: 20px; }
.foot-mini-inner .legal-links a.is-current { color: var(--teal-deep); }

/* ─────────── COOKIE BANNER ─────────── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  background: var(--ink); color: var(--white);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(20px); opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  max-width: 920px; margin: 0 auto;
}
.cookie-banner.is-in { transform: translateY(0); opacity: 1; }
.cookie-banner.is-leaving { transform: translateY(20px); opacity: 0; }
.cookie-banner .cb-inner {
  padding: 18px 22px;
  display: grid; gap: 14px;
}
.cookie-banner .cb-copy {
  font-size: 14px; line-height: 1.5;
  color: rgba(255,255,255,.78);
}
.cookie-banner .cb-copy strong {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-weight: 400; font-size: 18px; color: var(--white);
  margin-bottom: 4px; letter-spacing: -0.005em;
}
.cookie-banner .cb-copy a {
  color: var(--teal); border-bottom: 1px solid rgba(46,182,188,.45);
}
.cookie-banner .cb-copy a:hover { color: var(--white); border-color: var(--white); }

.cookie-banner .cb-prefs {
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 8px;
}
.cookie-banner .cb-prefs[hidden] { display: none; }
.cookie-banner .cb-row {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px; border-radius: 10px;
  cursor: pointer;
}
.cookie-banner .cb-row:hover { background: rgba(255,255,255,.04); }
.cookie-banner .cb-row .meta {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
}
.cookie-banner .cb-row .meta b { color: var(--white); font-weight: 500; }
.cookie-banner .cb-row .meta small {
  color: rgba(255,255,255,.55); font-size: 12px;
}
.cookie-banner .cb-row input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.cookie-banner .cb-toggle {
  width: 36px; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,.16);
  position: relative; flex-shrink: 0;
  transition: background .18s;
}
.cookie-banner .cb-toggle::after {
  content: ""; position: absolute;
  top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--white); border-radius: 50%;
  transition: transform .18s;
}
.cookie-banner .cb-row input[type="checkbox"]:checked ~ .cb-toggle {
  background: var(--teal);
}
.cookie-banner .cb-row input[type="checkbox"]:checked ~ .cb-toggle::after {
  transform: translateX(16px);
}
.cookie-banner .cb-toggle.is-locked {
  background: var(--teal-deep);
  opacity: .85;
}
.cookie-banner .cb-toggle.is-locked::after { transform: translateX(16px); }

.cookie-banner .cb-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: flex-end; align-items: center;
}
.cookie-banner .cb-btn {
  background: var(--teal); color: var(--ink);
  border: 0; border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px; font-weight: 600;
  transition: background .15s, color .15s, transform .15s;
}
.cookie-banner .cb-btn:hover { background: var(--white); transform: translateY(-1px); }
.cookie-banner .cb-btn.ghost {
  background: transparent; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
}
.cookie-banner .cb-btn.ghost:hover {
  background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.4);
}
.cookie-banner .cb-btn.link {
  background: transparent; color: rgba(255,255,255,.65);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 11px 12px;
  margin-right: auto;
}
.cookie-banner .cb-btn.link:hover { color: var(--teal); transform: none; }

@media (min-width: 720px) {
  .cookie-banner .cb-inner {
    grid-template-columns: 1fr auto;
    align-items: center; gap: 22px;
    padding: 16px 22px;
  }
  .cookie-banner .cb-copy { padding-right: 8px; }
  .cookie-banner .cb-prefs { grid-column: 1 / -1; }
  .cookie-banner .cb-actions { grid-column: 2; justify-content: flex-end; }
}
@media (max-width: 540px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; border-radius: 16px; }
  .cookie-banner .cb-inner { padding: 16px; }
  .cookie-banner .cb-actions { justify-content: stretch; }
  .cookie-banner .cb-btn { flex: 1; }
  .cookie-banner .cb-btn.link { flex: 0 1 auto; margin-right: 0; }
}
