*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --site-max: 72.5rem;
  --gutter: 1rem;
  --section-y: 4.5rem;
  --section-y-compact: 3rem;
  --section-y-hero: 3.875rem;
  --section-y-access: 3.75rem;
  --prose-access: 47.5rem;
  --col-gap: 2.5rem;
  --stack-sm: 0.75rem;
  --stack-md: 1rem;
  --stack-lg: 1.25rem;
  --prose-narrow: 42rem;
  --prose-editorial: 45rem;
  --faq-max: 52rem;
  --hero-max: 58rem;
  --bg-page: #f5f3ef;
  --bg-soft: #efede8;
  --bg-white: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-light: #e5e2dc;
  --navy: #090f1e;
  --navy-surface: #172032;
  --accent: #ff2400;
  --status-green: #1fc124;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.disclosure-bar {
  margin: 0;
  padding: 0.3125rem var(--gutter);
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand toggle"
    "actions actions";
  align-items: center;
  gap: 0.625rem;
  padding-block: 0.5625rem;
  min-height: 3rem;
}

.brand {
  grid-area: brand;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 1.75rem;
}

.nav-toggle {
  grid-area: toggle;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.25rem;
  background: var(--navy-surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.0625rem;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1px;
}

.primary-nav {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.primary-nav.is-open {
  display: flex;
}

.primary-nav a {
  position: relative;
  padding: 0.375rem 0;
  color: #a0a4ad;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #ffffff;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.15s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: 1.25rem;
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  width: 100%;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  line-height: 1;
  color: #a0a4ad;
}

.header-badge strong {
  color: #ffffff;
  font-weight: 700;
}

.header-actions .btn {
  min-height: 2rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.625rem;
  padding: 0.6875rem 1.125rem;
  border-radius: 0.3125rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #e02000;
}

.btn--primary:focus-visible {
  outline: 2px solid var(--status-green);
  outline-offset: 2px;
}

.btn--ghost {
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-primary);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: #c9c5be;
  background: #faf9f7;
}

.btn--dark {
  border: 0;
  background: var(--navy);
  color: #ffffff;
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: #141e35;
}

.btn--dark:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.page-main {
  flex: 1;
  background: var(--bg-page);
}

.section {
  padding-block: var(--section-y);
}

.section--compact {
  padding-block: var(--section-y-compact);
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--navy);
  color: #ffffff;
}

.section-hero {
  padding-block: var(--section-y-hero);
  background: var(--bg-page);
}

.section-cta-band {
  padding-block: 3.2rem;
  background: var(--accent);
  color: #ffffff;
}

.section--faq {
  padding-bottom: 4.5rem;
  background: var(--bg-page);
}

.eyebrow {
  margin: 0 0 var(--stack-sm);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--text-muted);
}

.eyebrow--on-accent {
  color: rgba(255, 255, 255, 0.85);
}

h2 {
  margin: 0 0 var(--stack-md);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section--dark h2 {
  color: #ffffff;
}

.section p,
.dual-editorial p {
  margin: 0 0 var(--stack-md);
  color: var(--text-secondary);
  line-height: 1.65;
}

.section p:last-child,
.dual-editorial p:last-child {
  margin-bottom: 0;
}

.hero-editorial {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: none;
}

.hero-editorial__content {
  max-width: var(--prose-editorial);
}

.hero-editorial__visual {
  display: none;
  justify-content: center;
  align-items: center;
}

.hero-editorial__visual img {
  width: min(100%, 24rem);
  max-height: 13.5rem;
  object-fit: contain;
  object-position: center right;
}

.hero-editorial h1 {
  margin: 0 0 var(--stack-md);
  font-size: clamp(1.75rem, 4.5vw, 2.625rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-editorial__lead {
  margin: 0 0 var(--stack-lg);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 38rem;
}

.hero-editorial__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

.access-strip {
  background: var(--navy);
  padding-block: 1.125rem;
}

.access-strip__list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-strip__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.access-strip__num {
  flex-shrink: 0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.access-strip__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--stack-sm);
}

.section-label__text {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.section-label__line {
  flex: 1;
  max-width: 2.5rem;
  height: 2px;
  background: var(--accent);
}

.editorial-intro {
  max-width: var(--prose-narrow);
}

#acceso.section {
  padding-block: var(--section-y-access);
}

.editorial-intro__prose {
  max-width: var(--prose-access);
}

#como-entrar h2 {
  margin-bottom: var(--stack-lg);
}

.timeline {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.timeline__step {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.625rem;
  min-width: 0;
}

.timeline__step:not(:last-child) {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.timeline__connector {
  display: none;
}

.timeline__num {
  display: block;
  min-height: 1.25rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1.25rem;
}

.timeline__body strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.timeline__body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.section-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
}

.dual-editorial {
  display: grid;
  gap: var(--col-gap);
  align-items: start;
}

.dual-editorial__main,
.dual-editorial__aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dual-editorial__label {
  margin: 0 0 0.375rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.dual-editorial__main h2,
.dual-editorial__aside h2 {
  margin-bottom: var(--stack-md);
}

.dual-editorial__note {
  margin-top: var(--stack-md) !important;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 36, 0, 0.45);
  font-size: 0.9375rem;
  color: var(--text-primary) !important;
}

.security-split {
  display: grid;
  gap: var(--col-gap);
  align-items: start;
}

.security-split__intro {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.security-split__intro p {
  margin: 0;
  color: #a0a4ad;
  line-height: 1.65;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5625rem;
}

.check-list li {
  position: relative;
  padding-left: 1.25rem;
  color: #ffffff;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--status-green);
  font-weight: 700;
  font-size: 0.8125rem;
}

.security-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #d1d5db;
}

.save-block {
  max-width: var(--prose-narrow);
}

.save-block h2 {
  margin-bottom: var(--stack-md);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
  margin: var(--stack-md) 0 0;
  padding: 0;
  list-style: none;
}

.inline-actions li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 36rem;
}

.cta-band__content .eyebrow {
  margin: 0;
}

.cta-band__content h2 {
  margin: 0;
  font-size: clamp(1.375rem, 3.5vw, 1.625rem);
  color: #ffffff;
}

.cta-band__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band__content .btn {
  margin-top: 0.25rem;
}

.section--faq h2 {
  margin-bottom: var(--stack-lg);
}

.faq-list {
  display: grid;
  gap: 0.625rem;
  max-width: var(--faq-max);
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 0.375rem;
  background: var(--bg-white);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.8125rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 0.875rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.site-footer {
  padding-block: 2rem;
  background: var(--navy);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-row--brand {
  display: flex;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-logo {
  width: auto;
  height: 1.125rem;
  opacity: 0.9;
}

.footer-age {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1;
  color: #ffffff;
}

.footer-disclaimer {
  margin: 0;
  max-width: 36rem;
  color: #a0a4ad;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  color: #a0a4ad;
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

.support-main {
  flex: 1;
  padding: var(--section-y) var(--gutter);
  background: var(--bg-page);
  color: var(--text-primary);
}

.support-page {
  max-width: 36rem;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: var(--stack-lg);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text-primary);
}

.support-heading h1 {
  margin: 0 0 var(--stack-sm);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text-primary);
}

.support-heading p {
  margin: 0 0 var(--stack-lg);
  color: var(--text-secondary);
}

.support-content h2 {
  margin: var(--stack-lg) 0 var(--stack-sm);
  font-size: 1.125rem;
}

.support-content p {
  margin: 0 0 var(--stack-md);
  color: var(--text-secondary);
}

.redirect-page,
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter);
  text-align: center;
  background: var(--bg-page);
  color: var(--text-primary);
}

.redirect-page__logo {
  width: auto;
  height: 2.5rem;
  margin-bottom: var(--stack-lg);
}

.redirect-page h1,
.error-page h1 {
  margin: 0 0 var(--stack-sm);
  font-size: 1.375rem;
}

.redirect-page p,
.error-page p {
  margin: 0 0 var(--stack-md);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.redirect-page__note {
  margin-top: var(--stack-md) !important;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
}

@media (min-width: 768px) {
  :root {
    --gutter: 1.5rem;
    --section-y: 5rem;
    --section-y-compact: 3.5rem;
    --section-y-hero: 4.5rem;
    --section-y-access: 4.25rem;
    --col-gap: 3rem;
  }

  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.875rem;
    padding-block: 0.625rem;
    min-height: 3.375rem;
  }

  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 1rem;
    width: auto;
    padding: 0;
    border-top: 0;
  }

  .header-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
  }

  .hero-editorial {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    max-width: none;
  }

  .hero-editorial__visual {
    display: flex;
    justify-content: flex-end;
    padding-left: 0.5rem;
  }

  .hero-editorial__visual img {
    width: min(100%, 22rem);
    max-height: 12.5rem;
  }

  .access-strip__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    column-gap: 1.5rem;
    row-gap: 0;
    margin-bottom: 2rem;
  }

  .timeline__step {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .timeline__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    width: 1.25rem;
    min-height: 1.25rem;
    margin-top: 0;
    color: var(--accent);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
  }

  .dual-editorial {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    gap: 0 2.5rem;
  }

  .dual-editorial__aside {
    padding-left: 2.5rem;
    border-left: 1px solid var(--border-light);
  }

  .security-split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 2.5rem;
  }

  .section-cta-band {
    padding-block: 3.6rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-y: 5.25rem;
    --section-y-hero: 4.75rem;
    --section-y-access: 4.5rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --section-y: 5.5rem;
    --section-y-hero: 4.875rem;
  }
}

@media (max-width: 767px) {
  .header-actions .btn {
    flex: 1 1 auto;
  }

  .dual-editorial__aside {
    padding-left: 0;
    padding-top: var(--col-gap);
    border-left: 0;
    border-top: 1px solid var(--border-light);
  }

  .hero-editorial__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-editorial__actions .btn {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 389px) {
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-actions li {
    justify-content: center;
  }
}
