/* Desquehacerados — shared styles for SEO guide/article pages (visual parity with seo/index.html) */
:root {
  --void: #050507;
  --bg: #08080c;
  --bg-elevated: #0e0e14;
  --surface: #13131a;
  --surface-hover: #181822;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f2f2f6;
  --text-soft: #e4e4ec;
  --muted: #8e8e9a;
  --muted-2: #6b6b78;
  --blue: #3b82f6;
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --fuchsia: #d946ef;
  --peach: #fb923c;
  --coral: #f05454;
  --coral-glow: rgba(240, 84, 84, 0.35);
  --hero-black: #000000;
  --radius: 1rem;
  --radius-xl: 1.5rem;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section-y: clamp(2.5rem, 6vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.seo-article {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: var(--void);
  color: var(--text-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  z-index: 10001;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: 2px solid #fff; outline-offset: 2px; }

/* Nav (matches index shell) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 8, 12, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo--brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}
.logo__img {
  display: block;
  height: clamp(26px, 5.5vw, 36px);
  width: auto;
  max-width: min(260px, 72vw);
  object-fit: contain;
  object-position: left center;
}
.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.125rem 1.25rem;
}
.nav__links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.btn):hover,
.nav__links a:not(.btn):focus-visible { color: var(--text); outline: none; }
@media (min-width: 961px) {
  .nav__links a:not(.btn)::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--coral), var(--peach));
    transition: width 0.28s var(--ease-out);
  }
  .nav__links a:not(.btn):hover::after,
  .nav__links a:not(.btn):focus-visible::after { width: 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s;
}
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.btn--primary {
  background: var(--text);
  color: var(--void);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(240, 84, 84, 0.2), 0 12px 36px var(--coral-glow);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--outline:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.btn--lg { padding: 0.95rem 1.65rem; font-size: 0.8125rem; }
.btn--nav {
  padding: 0.55rem 1.15rem;
  font-size: 0.6875rem;
}
.btn--cta-web {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}
.btn--cta-web:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fdba74 0%, #f97316 100%);
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.42);
}
.btn--nav-glow--warm {
  box-shadow:
    0 0 20px rgba(251, 146, 60, 0.5),
    0 0 32px rgba(234, 88, 12, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-btn:hover { border-color: rgba(240, 84, 84, 0.45); }
.menu-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(8, 8, 12, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.35s, visibility 0.35s;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__links a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
  }
  .nav__links .btn { margin-top: 0.5rem; width: 100%; text-align: center; }
}

/* Compact hero */
.article-hero {
  position: relative;
  min-height: auto;
  padding: calc(var(--nav-h) + 2.25rem) clamp(1rem, 4vw, 1.5rem) 2.75rem;
  background: var(--hero-black);
  overflow: hidden;
}
.article-hero .ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.article-hero .ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
}
.article-hero .ambient__glow--1 {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  background: linear-gradient(135deg, var(--violet), var(--fuchsia));
  top: -15%;
  right: -12%;
}
.article-hero .ambient__glow--2 {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  background: var(--fuchsia);
  bottom: -5%;
  left: -15%;
  opacity: 0.12;
}
.article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.12);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--violet-soft);
  margin-bottom: 1.25rem;
}
.hero-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--violet-soft);
  flex-shrink: 0;
}
.article-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 42rem;
}
.article-hero__gradient {
  background: linear-gradient(135deg, var(--text) 0%, var(--violet-soft) 45%, var(--peach) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.article-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Main column */
.article-main {
  padding: var(--section-y) clamp(1rem, 4vw, 1.5rem) 3.5rem;
  background: var(--bg);
}
.wrap { max-width: 1160px; margin: 0 auto; }

.article-prose {
  max-width: 42rem;
  margin: 0 auto;
}
.article-prose h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
  line-height: 1.25;
}
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--violet-soft);
  margin: 1.5rem 0 0.5rem;
}
.article-prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.article-prose a {
  color: var(--coral);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 84, 84, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.article-prose a:hover { color: var(--peach); border-bottom-color: var(--peach); }
.article-prose ul, .article-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--muted);
}
.article-prose li { margin-bottom: 0.45rem; }
.article-prose strong { color: var(--text-soft); }

/* Callout / card (replaces light violet Tailwind boxes) */
.article-callout {
  margin: 1.75rem 0;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
}
.article-callout h2, .article-callout .article-callout__title {
  margin-top: 0;
  font-size: 1.125rem;
  color: var(--text);
}
.article-callout p { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.article-callout p:last-child { margin-bottom: 0; }

.article-card {
  margin: 1.5rem 0;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}
.article-card h2, .article-card h3 { margin-top: 0; }

.article-faq {
  margin: 2.5rem 0 0;
  padding: 0;
}
.article-faq dt {
  font-weight: 800;
  color: var(--text);
  margin-top: 1.25rem;
}
.article-faq dt:first-child { margin-top: 0; }
.article-faq dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.article-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.article-related a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.article-related a:hover {
  border-color: rgba(240, 84, 84, 0.45);
  color: var(--peach);
  background: var(--surface-hover);
}

/* Product page wide layout */
.article-main--wide .article-prose { max-width: 52rem; }
/* When there is no .article-hero (e.g. product one-pager), offset fixed nav */
.article-main--post-nav {
  padding-top: calc(var(--nav-h) + 2rem);
}

.article-feature-list article {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.article-feature-list article:last-child { border-bottom: none; }

.product-hero-panel {
  margin-bottom: 2.5rem;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, var(--surface) 0%, var(--bg-elevated) 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.product-hero-panel .eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}
.product-hero-panel h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}
.product-hero-panel .tagline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1rem;
}
.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.steps-box {
  margin: 2rem 0;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.06);
}
.cta-final-dark {
  margin: 2.5rem 0 0;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--void) 100%);
}
.cta-final-dark h2 { margin-top: 0; color: var(--text); }
.cta-final-dark p { color: var(--muted); max-width: 36rem; margin-left: auto; margin-right: auto; }

/* Footer */
footer.seo-foot {
  padding: 3rem clamp(1rem, 4vw, 1.5rem) 2rem;
  border-top: 1px solid var(--line);
  background: var(--void);
}
.foot {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 768px) {
  .foot {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.foot__brand p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 260px;
}
@media (max-width: 768px) {
  .foot__brand p { margin-left: auto; margin-right: auto; }
}
.foot__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 1rem;
}
.foot a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.foot a:not(.logo--brand):hover,
.foot a:not(.logo--brand):focus-visible { color: var(--coral); outline: none; }
.foot__social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .foot__social { justify-content: center; }
}
.foot__social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0;
  font-size: 0.6875rem;
  font-weight: 700;
}
.foot__social a:hover {
  border-color: rgba(240, 84, 84, 0.5);
  color: var(--coral);
  background: rgba(240, 84, 84, 0.08);
}
.foot__copy {
  max-width: 1160px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-2);
}

.back-to-top {
  position: fixed;
  bottom: 1.35rem;
  right: 1.35rem;
  z-index: 950;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease-out), visibility 0.35s, transform 0.35s var(--ease-out);
}
.back-to-top.is-back-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { border-color: var(--muted); background: var(--surface-hover); }
.back-to-top:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.back-to-top svg { width: 1.25rem; height: 1.25rem; }

/* Click to enlarge content images (SEO articles + landing) */
#main img:not(.logo__img) {
  cursor: zoom-in;
}
#main .historia-figure img,
#main .infographic__img {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
#main .historia-figure img:hover,
#main .infographic__img:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.seo-image-lightbox {
  padding: 0;
  border: none;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seo-image-lightbox::backdrop {
  background: rgba(5, 5, 8, 0.92);
  cursor: zoom-out;
}
.seo-image-lightbox__img {
  max-width: min(96vw, 1680px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}
.seo-image-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 15, 22, 0.85);
  color: #f2f2f6;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.seo-image-lightbox__close:hover {
  background: rgba(240, 84, 84, 0.25);
  border-color: rgba(240, 84, 84, 0.5);
}
.seo-image-lightbox__close:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 3px;
}
