:root {
  --seo-ink: #173e3a;
  --seo-muted: #47605d;
  --seo-cream: #f7e9c7;
  --seo-paper: #fff8e6;
  --seo-ember: #e94a2f;
  --seo-green: #1f705c;
  --seo-blue: #1f64aa;
}

.brand-lockup .brand-name { display: block; }
.brand-lockup .brand-search-title {
  display: block;
  max-width: 420px;
  margin: 14px auto 0;
  color: #f6e7bd;
  font: 850 clamp(17px, 4.6vw, 23px)/1.15 system-ui, sans-serif;
  letter-spacing: .01em;
  text-shadow: 0 2px 5px rgba(0,0,0,.38);
}

body:not(.is-public-request):not(.auth-pending) .seo-home-content { display: none !important; }

.seo-home-content {
  width: min(100% - 24px, 980px);
  margin: 26px auto 42px;
  color: var(--seo-ink);
}

.seo-language-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.seo-language-nav a,
.seo-language-nav strong {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #f8eac6;
  background: rgba(3,30,29,.7);
  text-decoration: none;
}

.seo-home-intro,
.seo-topic-links,
.seo-faq {
  padding: clamp(22px, 5vw, 42px);
  border: 2px solid rgba(31,100,170,.72);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,248,230,.98), rgba(244,225,181,.98));
  box-shadow: 0 13px 35px rgba(0,0,0,.28), inset 0 0 0 7px rgba(255,255,255,.38);
}
.seo-home-intro h2,
.seo-topic-links h2,
.seo-faq h2 {
  margin: 5px 0 12px;
  color: var(--seo-ink);
  font: 900 clamp(27px, 5vw, 42px)/1.02 Georgia, serif;
}
.seo-home-intro > p:last-child { max-width: 720px; margin: 0; color: var(--seo-muted); line-height: 1.65; }
.seo-about { margin-top: 14px; }
.seo-about h2 { font-size: clamp(23px, 4vw, 32px); }

.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.seo-feature-grid article {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
  color: #f9ebc8;
  background: linear-gradient(155deg, rgba(25,104,87,.96), rgba(6,46,43,.98));
  box-shadow: 0 10px 25px rgba(0,0,0,.24);
}
.seo-feature-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255,210,123,.6);
  border-radius: 50%;
  color: #ffd98c;
  font: 900 17px/1 Georgia, serif;
}
.seo-feature-grid h3 { margin: 0 0 8px; color: #fff3d2; font: 850 20px/1.1 Georgia, serif; }
.seo-feature-grid p { margin: 0 0 12px; color: rgba(255,245,218,.83); font-size: 13px; line-height: 1.55; }
.seo-feature-grid a { color: #ffd98c; font-size: 12px; font-weight: 900; }

.seo-topic-links { margin-top: 14px; }
.seo-topic-links > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seo-topic-links a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(23,62,58,.18);
  border-radius: 14px;
  color: var(--seo-ink);
  background: rgba(255,255,255,.48);
  text-decoration: none;
}
.seo-topic-links a:hover,
.seo-topic-links a:focus-visible { border-color: var(--seo-blue); background: rgba(255,255,255,.78); }
.seo-topic-links strong { font: 850 16px/1.2 Georgia, serif; }
.seo-topic-links span { color: var(--seo-muted); font-size: 12px; line-height: 1.35; }

.seo-faq { margin-top: 14px; }
.seo-faq details { border-top: 1px solid rgba(23,62,58,.18); }
.seo-faq summary { padding: 15px 2px; cursor: pointer; font-weight: 900; }
.seo-faq details p { margin: -4px 0 16px; color: var(--seo-muted); line-height: 1.55; }

.seo-home-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 24px 8px 0;
  color: #f3e2b8;
  font-size: 12px;
}
.seo-home-footer p { flex-basis: 100%; margin: 0; text-align: center; }
.seo-home-footer a { color: #ffd98c; }

/* Páginas públicas de lectura. */
.seo-page {
  min-height: 100vh;
  margin: 0;
  color: var(--seo-ink);
  background:
    radial-gradient(circle at 50% 0, rgba(38,116,99,.82), transparent 38rem),
    linear-gradient(180deg, #082c29, #031313 48rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.seo-page * { box-sizing: border-box; }
.seo-page a { color: #155f9c; text-underline-offset: 3px; }
.seo-page-header {
  display: flex;
  width: min(100% - 28px, 1040px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 20px 0;
}
.seo-page-brand { color: #fff1c9 !important; font: 900 30px/1 Georgia, serif; letter-spacing: -.04em; text-decoration: none; }
.seo-page-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 13px; }
.seo-page-header nav a { color: #f6e7bd; font-size: 12px; font-weight: 800; }
.seo-page-main { width: min(100% - 28px, 900px); margin: 0 auto 48px; }
.seo-article {
  overflow: hidden;
  border: 2px solid rgba(31,100,170,.75);
  border-radius: 26px;
  background: linear-gradient(145deg, var(--seo-paper), #f1dfb5);
  box-shadow: 0 22px 55px rgba(0,0,0,.34), inset 0 0 0 7px rgba(255,255,255,.38);
}
.seo-article-hero { padding: clamp(28px, 7vw, 64px); border-bottom: 1px solid rgba(23,62,58,.16); }
.seo-article-hero .eyebrow { color: #42615d; }
.seo-article h1 { max-width: 760px; margin: 7px 0 16px; color: var(--seo-ink); font: 900 clamp(38px, 8vw, 68px)/.98 Georgia, serif; letter-spacing: -.035em; }
.seo-article-lead { max-width: 690px; margin: 0; color: var(--seo-muted); font-size: clamp(16px, 2.7vw, 20px); line-height: 1.55; }
.seo-article-body { padding: clamp(26px, 7vw, 64px); }
.seo-article-body h2 { margin: 38px 0 12px; color: var(--seo-ink); font: 900 clamp(27px, 5vw, 38px)/1.05 Georgia, serif; }
.seo-article-body h2:first-child { margin-top: 0; }
.seo-article-body h3 { margin: 25px 0 8px; font: 850 21px/1.15 Georgia, serif; }
.seo-article-body p,
.seo-article-body li { color: #36534f; line-height: 1.68; }
.seo-article-body li + li { margin-top: 6px; }
.seo-article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.seo-article-body th,
.seo-article-body td { padding: 11px; border-bottom: 1px solid rgba(23,62,58,.2); text-align: left; }
.seo-article-body th { color: var(--seo-ink); }
.seo-callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--seo-ember);
  border-radius: 0 14px 14px 0;
  background: rgba(255,255,255,.48);
}
.seo-cta {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 38px;
  padding: 24px;
  border-radius: 18px;
  color: #fff2d1;
  background: linear-gradient(145deg, #247561, #0b4840);
}
.seo-cta h2 { margin: 0; color: #fff5dc; }
.seo-cta p { margin: 0; color: rgba(255,245,220,.86); }
.seo-cta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #ff7047, #da3c28);
  box-shadow: 0 5px 0 #8d291b;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}
.seo-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.seo-related h2 { grid-column: 1 / -1; margin-bottom: 2px; }
.seo-related ul { display: contents; list-style: none; margin: 0; padding: 0; }
.seo-related a { padding: 14px; border: 1px solid rgba(23,62,58,.18); border-radius: 12px; background: rgba(255,255,255,.4); font-weight: 800; }
.seo-page-footer { padding: 0 14px 36px; color: #d9cda9; font-size: 12px; text-align: center; }
.seo-page-footer a { color: #ffd98c; }

@media (max-width: 720px) {
  .seo-feature-grid,
  .seo-topic-links > div,
  .seo-related { grid-template-columns: 1fr; }
  .seo-page-header { align-items: flex-start; }
  .seo-page-header nav { max-width: 230px; }
  .seo-article-body table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-home-content *,
  .seo-page * { scroll-behavior: auto !important; }
}
