@font-face {
  font-family: "Bw Modelica";
  src: url("./assets/BwModelica-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bw Modelica";
  src: url("./assets/BwModelica-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Bw Modelica";
  src: url("./assets/BwModelica-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Bw Modelica";
  src: url("./assets/BwModelica-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --navy: #172c55;
  --blue: #507eab;
  --deep: #0a1226;
  --space: #111b36;
  --sky: #8db0e0;
  --paper: #fff;
  --mist: #f3f6fb;
  --ice: #e3eaf4;
  --ink: #131c36;
  --muted: #55617d;
  --text-dark: #c4d2e9;
  --line-dark: #354561;
  --page: 76rem;
  --gutter: clamp(1.375rem, 5.2vw, 5rem);
  --section-space: clamp(4rem, 7.2vw, 7.25rem);
  font: 400 100%/1.65 "Bw Modelica", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
section { scroll-margin-top: 1.5rem; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -.038em; }
::selection { background: var(--sky); color: var(--deep); }
:focus-visible { outline: 3px solid #3d6399; outline-offset: 5px; }
.header :focus-visible, .hero :focus-visible, .bank-band :focus-visible, .footer :focus-visible, .product-navy :focus-visible { outline-color: var(--sky); }
.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.skip { position: fixed; z-index: 10; top: .7rem; left: .7rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.icon { width: 1.2rem; height: 1.2rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.header { color: var(--paper); background: var(--deep); border-bottom: 1px solid #ffffff22; position: relative; z-index: 2; }
.header-inner { min-height: 5.45rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-block; flex: none; }
.brand img { width: 8rem; }
.navigation { display: flex; align-items: center; gap: clamp(1.15rem, 3vw, 2.8rem); }
.navigation > a { text-decoration: none; font-size: .91rem; font-weight: 500; }
.navigation > a:not(.button):hover, .hero-link:hover, .to-top:hover { text-decoration: underline; }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 3.3rem; padding: .7rem 1.16rem; border: 1px solid transparent; border-radius: .65rem; text-decoration: none; font-size: .94rem; font-weight: 700; line-height: 1.3; transition: background-color .18s, color .18s, border-color .18s; }
.button-outline { border-color: #ffffff55; }
.button-outline:hover { border-color: var(--sky); background: #ffffff14; }
.button-white { color: var(--navy); background: var(--paper); }
.button-white:hover { background: var(--ice); }
.button-navy { color: var(--paper); background: var(--navy); }
.button-navy:hover { background: #294573; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(90deg, #0a1226f0 0%, #0a1226ad 43%, #0a122608 78%), url("./assets/galaxia-horizontal.webp") center 54% / cover, var(--deep);
}
.hero-inner { display: grid; align-content: center; justify-items: start; position: relative; min-height: clamp(31rem, 43vw, 40.5rem); padding-block: clamp(4rem, 9vw, 8rem); pointer-events: none; }
.hero h1 { font-size: clamp(2.85rem, 6.3vw, 5.4rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; }
.hero p { max-width: 35rem; margin-top: 1.6rem; color: var(--text-dark); font-size: clamp(1.06rem, 1.5vw, 1.25rem); }
.hero strong { color: var(--paper); }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.55rem; flex-wrap: wrap; }
.hero-actions a { pointer-events: auto; }
.hero-link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .6rem; color: var(--paper); text-decoration: none; font-size: .93rem; font-weight: 700; }
.particles { position: absolute; inset: 0; }
.particles canvas { display: block; width: 100%; height: 100%; }
.orbit-art { position: absolute; width: min(50vw, 47rem); aspect-ratio: 1; right: max(1.5%, calc((100vw - 91rem) / 2)); top: 50%; transform: translateY(-50%); pointer-events: none; opacity: .82; }
.orbit-track { position: absolute; left: 50%; top: 50%; width: 100%; height: 40%; border: 1px solid #a3c4f064; border-radius: 50%; transform: translate(-50%, -50%) rotate(-35deg); }
.track-middle { width: 84%; height: 34%; border-color: #91b4e149; }
.track-inner { width: 67%; height: 27%; border-color: #91b4e137; }
.orbit-axis { position: absolute; width: 62%; height: 62%; left: 19%; top: 19%; border: 1px solid #91b4e133; border-radius: 50%; }
.orbit-star { position: absolute; top: 29%; right: 9%; width: .55rem; height: .55rem; border-radius: 50%; background: #deebff; outline: 1px solid #deebff66; outline-offset: 5px; }

.products { background: var(--mist); }
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(1rem, 4vw, 3.5rem); overflow: hidden; padding: clamp(1.5rem, 4vw, 3.4rem); border-radius: 1.35rem; }
.product h2 { max-width: 24ch; text-wrap: wrap; }
.product p { margin-top: .8rem; max-width: 31rem; }
.product-button { min-width: 12rem; justify-content: space-between; }
.product-navy { color: var(--paper); background: radial-gradient(ellipse at 68% 3%, #355e93 0%, transparent 54%), var(--navy); }
.product-navy p { color: #e1eafa; }
.product-navy .product-button { border-color: #ffffff60; }
.product-navy .product-button:hover { background: #ffffff19; }
.conditions { color: var(--muted); font-size: .82rem; line-height: 1.6; margin-top: 1.15rem; max-width: 65rem; }

.product-art { position: relative; width: 100%; height: 10.4rem; }
.product-art::before { content: ""; position: absolute; inset: 7% -8% 23% 12%; border: 1px solid currentColor; border-radius: 50%; transform: rotate(-13deg); opacity: .18; }
.card-front, .card-back { position: absolute; width: 10.8rem; height: 6.65rem; border-radius: .75rem; top: 1.1rem; left: 12%; }
.card-back { background: #ffffff0d; border: 1px solid #bed9f577; transform: translate(2.7rem, -.25rem) rotate(12deg); }
.card-front { border: 1px solid #b6d2f396; background: linear-gradient(135deg, #628cbb, #1d3b67 78%); transform: rotate(-10deg); box-shadow: 0 .7rem 1.7rem #08162e80; }
.chip { position: absolute; width: 1.5rem; height: 1.16rem; border-radius: .26rem; top: 1.5rem; left: 1.1rem; border: 1px solid #e4effc8c; background: linear-gradient(45deg, #91aed0, #d6e4f4); }
.card-lines { position: absolute; width: 2.65rem; height: .68rem; border-block: 1px solid #edf5fe83; left: 1.1rem; bottom: 1.05rem; }
.card-mark { position: absolute; right: 1rem; bottom: 1.05rem; border: 1px solid #f1f6ff94; width: 1.25rem; height: 1.25rem; border-radius: 50%; }
.card-mark::after { content: ""; position: absolute; inset: -1px .38rem -1px -.38rem; border: inherit; border-radius: inherit; }
.product .card-front, .product .card-back { left: 22%; }

.bank-band { color: var(--paper); background: var(--space); padding-block: clamp(3.75rem, 7vw, 6.5rem); }
.partner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: clamp(2.3rem, 5vw, 4rem); border-bottom: 1px solid var(--line-dark); }
.partner p { margin-top: .9rem; max-width: 38rem; color: var(--text-dark); }
.partner-link { flex: none; display: flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 5.1rem; padding: .85rem 1.15rem; background: var(--paper); color: var(--navy); border-radius: .85rem; }
.partner-link:hover { background: var(--ice); }
.partner-link img { width: clamp(8.7rem, 14vw, 12.1rem); }
.bank-support { padding-top: clamp(2.3rem, 4.2vw, 3.65rem); }
.bank-support h2 { font-size: clamp(1.55rem, 2.65vw, 2.4rem); }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.55rem; padding-top: 1.55rem; border-top: 1px solid var(--line-dark); }
.channels div { padding-right: 1rem; }
.channels div + div { padding-left: clamp(1rem, 3.5vw, 3rem); border-left: 1px solid var(--line-dark); }
.channels dt { font-weight: 700; }
.channels dt span { display: block; color: var(--text-dark); font-size: .82rem; font-weight: 400; }
.channels dd { margin-top: .7rem; }
.channels dd a { display: inline-flex; align-items: center; gap: .35rem; color: var(--sky); text-decoration: none; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.channels dd a:hover { text-decoration: underline; }

.contact { color: var(--navy); background: var(--ice); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.7rem; }
.contact p { margin-top: .75rem; color: #374964; }
.contact .button { flex: none; }
.footer { color: var(--text-dark); background: var(--deep); padding-block: 2.5rem; font-size: .82rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr 1.25fr auto; align-items: start; gap: 1rem clamp(1rem, 3vw, 2.7rem); }
.footer .brand img { width: 7.35rem; }
.company { display: grid; }
.company strong { color: var(--paper); }
.footer address { font-style: normal; }
.to-top { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.credit { color: var(--text-dark); background: var(--deep); border-top: 1px solid var(--line-dark); padding-block: .25rem; font-size: .7rem; text-align: right; }
.credit a { color: var(--paper); }
.credit a:focus-visible { outline-color: var(--sky); }

.text-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; font-size: .9rem; font-weight: 700; }
.text-link:hover { text-decoration-thickness: 2px; }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.15rem; margin-top: 1.65rem; }
.guide { color: var(--navy); }
.guide-inner, .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); }
.guide-inner > div > p, .detail-intro { margin-top: 1rem; max-width: 33rem; color: var(--muted); }
.guide-inner .text-link { margin-top: .75rem; }
.steps { counter-reset: consulta; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: consulta; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .3rem .85rem; padding-block: .9rem; border-top: 1px solid var(--ice); }
.steps li::before { content: counter(consulta) "."; grid-row: span 2; color: #3d6399; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); }

.detail-hero { overflow: hidden; padding-block: 1.6rem clamp(3rem, 6vw, 5.8rem); }
.detail-navy { background: radial-gradient(ellipse at 83% 40%, #355e93, transparent 56%), var(--navy); color: var(--paper); }
.breadcrumb a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; font-size: .9rem; font-weight: 500; }
.breadcrumb .icon { transform: rotate(180deg); }
.detail-hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 2rem; margin-top: clamp(1.35rem, 4vw, 3.5rem); }
.detail-hero h1 { font-size: clamp(2.7rem, 6.3vw, 5.4rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.detail-hero p { max-width: 34rem; margin-top: 1rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.detail-navy p { color: #e1eafa; }
.detail-hero .button { margin-top: 1.45rem; }
.detail-hero .product-art { max-width: 28rem; height: 12.5rem; scale: 1.2; transform-origin: center; }
.detail-hero .product-art::before { inset: 8% 0 15%; }
.detail-hero .card-front, .detail-hero .card-back { top: 2.5rem; left: 23%; }
.detail-navy :focus-visible { outline-color: var(--sky); }
.product-overview, .detail-faq { color: var(--navy); }
.product-facts > div { padding-block: .95rem; border-top: 1px solid var(--ice); }
.product-facts > div:first-child { padding-top: .7rem; }
.product-facts dt { margin-bottom: .25rem; font-size: 1.07rem; font-weight: 700; }
.product-facts dd, .questions p { color: var(--muted); }
.detail-faq { background: var(--mist); }
.source-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: .7rem; }
.questions details { border-top: 1px solid #c5d3e7; }
.questions details:last-child { border-bottom: 1px solid #c5d3e7; }
.questions summary { position: relative; display: block; padding: .95rem 2.25rem .95rem 0; font-weight: 700; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::before, .questions summary::after { content: ""; position: absolute; right: .35rem; top: 1.75rem; width: .85rem; height: 2px; background: currentColor; }
.questions summary::after { transform: rotate(90deg); }
.questions details[open] summary::after { transform: none; }
.questions p { padding: 0 1.1rem 1rem 0; }
.detail-related { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-top: 1.3rem; padding-top: .55rem; border-top: 1px solid #b9cbe3; }

.detail-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.3rem; margin-top: 1.45rem; }
.detail-hero-actions .button { margin-top: 0; }
.convenio-picker { background: var(--ice); color: var(--navy); padding-block: clamp(2.8rem, 5.7vw, 5rem); }
.convenio-picker .detail-layout { align-items: center; }
.convenio-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .5rem .75rem; }
.convenio-form label { grid-column: 1 / -1; font-size: .93rem; font-weight: 700; }
.convenio-form select {
  width: 100%;
  min-height: 3.3rem;
  padding: .6rem .75rem;
  border: 1px solid #657c9d;
  border-radius: .65rem;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}
.convenio-form button { cursor: pointer; }
.convenio-form button:disabled { color: #435674; background: #c6d3e6; cursor: default; }
.convenio-hero { padding-block: 1.4rem clamp(2.5rem, 5.2vw, 4.6rem); }
.convenio-hero h1 { margin-top: clamp(.8rem, 2.7vw, 2rem); max-width: 20ch; font-size: clamp(2.15rem, 5.7vw, 4.65rem); line-height: 1.09; font-weight: 800; letter-spacing: -.04em; }
.convenio-hero p { color: var(--text-dark); margin-top: .8rem; font-size: clamp(1rem, 2vw, 1.25rem); }
.convenio-overview { color: var(--navy); }
.convenio-rules { border-top: 1px solid #c5d3e7; }
.convenio-rules > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: .25rem 1rem; padding-block: .85rem; border-bottom: 1px solid #c5d3e7; }
.convenio-rules dt { color: var(--muted); }
.convenio-rules dd { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 930px) {
  .footer-inner { grid-template-columns: auto 1fr auto; }
  .footer address { grid-column: 2; }
  .to-top { grid-column: 3; grid-row: 1; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 4.5rem; flex-wrap: wrap; gap: 0 1rem; }
  .header .brand img { width: 6.35rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.7rem; padding: .4rem .7rem; border: 1px solid #ffffff55; border-radius: .55rem; color: var(--paper); background: transparent; cursor: pointer; font-size: .83rem; font-weight: 500; }
  .menu-lines { display: inline-block; width: 1rem; height: .64rem; border-block: 1px solid currentColor; }
  .navigation { width: 100%; flex-direction: column; align-items: stretch; gap: .15rem; padding-block: .5rem 1rem; }
  .navigation > a { padding: .6rem .45rem; }
  .navigation .button { width: fit-content; min-height: 2.75rem; margin-top: .2rem; padding-inline: .75rem; }
  .hero { background: linear-gradient(90deg, #0a1226dc, #0a12265c), url("./assets/galaxia-vertical.webp") center 55% / cover, var(--deep); }
  .hero-inner { min-height: 32.5rem; padding-block: 4.5rem; }
  .hero h1 { font-size: clamp(2.25rem, 8.5vw, 4.2rem); }
  .orbit-art { top: 51%; right: -38%; width: 108vw; opacity: .54; }
  .product .card-front, .product .card-back { left: 8%; }
  .product-art { height: 8.5rem; }
  .channels dd a { white-space: nowrap; }
  .guide-inner, .detail-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-hero-inner { gap: 1rem; }
  .detail-hero .product-art { scale: 1; }
}

@media (max-width: 540px) {
  .hero h1 br { display: none; }
  .hero h1 { max-width: 10ch; text-wrap: initial; }
  .hero p { margin-top: 1.2rem; }
  .hero-actions { gap: .55rem 1.05rem; margin-top: 1.45rem; }
  .hero-inner { min-height: 31rem; }
  .product { grid-template-columns: 1fr; }
  .product .product-art { order: -1; }
  .product .card-front, .product .card-back { left: 15%; }
  .partner, .contact-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .channels { grid-template-columns: 1fr; margin-top: 1.2rem; padding-top: 0; }
  .channels div, .channels div + div { padding: .8rem 0; border: 0; }
  .channels div + div { border-top: 1px solid var(--line-dark); }
  .channels div:last-child { padding-bottom: 0; }
  .channels dd { margin-top: .25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer address, .to-top { grid-row: auto; grid-column: auto; }
  .to-top { margin-top: .35rem; }
  .detail-hero-inner { grid-template-columns: 1fr; }
  .detail-hero .product-art { order: -1; height: 9.35rem; margin-block: -.3rem .4rem; }
  .detail-hero .card-front, .detail-hero .card-back { top: 1.25rem; }
  .convenio-form { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .convenio-form .button { justify-self: start; }
  .convenio-rules > div { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .particles { display: none; }
  .button { transition: none; }
}
