:root {
  --anchor-offset: 130px;
  --bg: #ffffff;
  --bg-soft: #f3f6ff;
  --surface: #ffffff;
  --surface-alt: #f6f8ff;
  --text: #14244f;
  --muted: #2f447f;
  --line: #c7d3ef;
  --accent: #0d3e8a;
  --accent-strong: #0a2f68;
  --accent-soft: #8da6dd;
  --shadow-soft: 0 18px 34px rgba(27, 39, 95, 0.16);
  --shadow-card: 0 12px 24px rgba(27, 39, 95, 0.12);
  --radius: 20px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body.theme-elegant {
  min-height: 100vh;
  position: relative;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at -10% -10%, rgba(13, 62, 138, 0.15), transparent 65%),
    radial-gradient(1000px 620px at 115% 0%, rgba(127, 143, 205, 0.24), transparent 60%),
    linear-gradient(180deg, var(--bg), #ffffff 60%, #f5f8ff);
  text-align: left;
}

body.theme-elegant::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 62, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 62, 138, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.24s ease, border-color 0.24s ease, background-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 0;
}

#inicio {
  scroll-margin-top: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(13, 62, 138, 0.18);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.brand__logo {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  border: 1px solid rgba(13, 62, 138, 0.18);
  box-shadow: 0 8px 18px rgba(27, 39, 95, 0.2);
  background: transparent;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(1.02);
}

.brand__name {
  font-size: 1.03rem;
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #3f56ba);
  box-shadow: 0 0 0 8px rgba(13, 62, 138, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(13, 62, 138, 0.09);
}

.nav .nav__cta {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #1e56ab);
  box-shadow: 0 10px 18px rgba(27, 39, 95, 0.28);
}

.nav .nav__cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero {
  padding: 64px 0 26px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(13, 62, 138, 0.36);
  border-radius: 999px;
  background: rgba(13, 62, 138, 0.08);
  color: var(--accent-strong);
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

h1,
h2 {
  color: #1e2a63;
  letter-spacing: 0.005em;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

h1 {
  max-width: 13ch;
  margin: 4px 0 12px;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.06;
}

.lead {
  max-width: 54ch;
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--accent), #2a66c8);
  box-shadow: 0 10px 20px rgba(27, 39, 95, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(13, 62, 138, 0.32);
  color: var(--accent-strong);
  background: var(--surface);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--text);
  background: #f1f5ff;
}

.checks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(13, 62, 138, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.checks li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hint {
  margin-top: 8px;
  font-size: 0.93rem;
  color: var(--muted);
}

.hint strong {
  color: var(--accent-strong);
}

.hint.is-error {
  color: #8e2e2e;
}

.hint.is-success {
  color: #265d3e;
}

.card {
  padding: 20px;
  border: 1px solid rgba(13, 62, 138, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(165deg, #ffffff, #f3f7ff 62%, #edf3ff);
  box-shadow: var(--shadow-soft);
}

.card--spotlight {
  position: relative;
  overflow: hidden;
}

.card--spotlight::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -40px;
  bottom: -40px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(13, 62, 138, 0.18), transparent 70%);
}

.card h3 {
  margin: 2px 0 8px;
  font-size: 1.42rem;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.card__logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(13, 62, 138, 0.2);
  box-shadow: 0 8px 18px rgba(27, 39, 95, 0.16);
  margin-bottom: 14px;
  background: transparent;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(1.02);
  margin-left: auto;
  margin-right: auto;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.card--mt14 {
  margin-top: 14px;
}

.card__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.card__stats div {
  padding: 10px 10px;
  text-align: center;
  border: 1px solid rgba(13, 62, 138, 0.18);
  border-radius: 12px;
  background: rgba(246, 249, 255, 0.92);
}

.card__stats strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.15rem;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.card__stats span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.section {
  padding: 44px 0;
}

.section--alt {
  border-top: 1px solid rgba(13, 62, 138, 0.18);
  border-bottom: 1px solid rgba(13, 62, 138, 0.18);
  background: linear-gradient(180deg, rgba(13, 62, 138, 0.05), rgba(13, 62, 138, 0.015));
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.section p:not(.lead):not(.hint) {
  color: var(--muted);
}

.lead,
.card p,
.box p,
.section p:not(.hint) {
  text-align: justify;
  text-justify: inter-word;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.box {
  padding: 18px;
  border: 1px solid rgba(13, 62, 138, 0.18);
  border-radius: 16px;
  background: linear-gradient(170deg, #fffefc, var(--surface-alt));
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.box:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 62, 138, 0.34);
  box-shadow: 0 16px 24px rgba(27, 39, 95, 0.16);
}

.box h3 {
  margin: 2px 0 8px;
  color: #1f2958;
  font-size: 1.28rem;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.box p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: flex-start;
}

.contact__item {
  padding: 11px 13px;
  border: 1px solid rgba(13, 62, 138, 0.18);
  border-radius: 12px;
  color: var(--accent-strong);
  font-weight: 600;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background: rgba(246, 249, 255, 0.94);
}

.contact__item:hover {
  border-color: var(--accent);
  background: #ffffff;
}

.hint--mt14 {
  margin-top: 14px;
}

.hint--compact {
  margin: 10px 0 0;
}

.no-margin {
  margin: 0;
}

.map-wrap {
  margin-top: 12px;
  border: 1px solid rgba(13, 62, 138, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.form {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(13, 62, 138, 0.18);
  border-radius: 18px;
  background: linear-gradient(175deg, #ffffff, #eff4ff);
  box-shadow: var(--shadow-card);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.field span {
  font-size: 0.79rem;
  font-weight: 700;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a4a87;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(13, 62, 138, 0.18);
  border-radius: 11px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f7fbf;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 62, 138, 0.18);
}

.form .btn {
  margin-top: 4px;
}

#form-status {
  min-height: 22px;
}

.footer {
  padding: 22px 0 26px;
  border-top: 1px solid rgba(13, 62, 138, 0.25);
  color: #3b4a86;
  background: rgba(250, 252, 255, 0.95);
}

.footer__grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.muted {
  opacity: 0.9;
}

@keyframes riseFade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy {
  animation: riseFade 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}

.card--spotlight {
  animation: riseFade 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.box {
  animation: riseFade 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.grid .box:nth-child(1) { animation-delay: 0.05s; }
.grid .box:nth-child(2) { animation-delay: 0.1s; }
.grid .box:nth-child(3) { animation-delay: 0.15s; }
.grid .box:nth-child(4) { animation-delay: 0.2s; }
.grid .box:nth-child(5) { animation-delay: 0.25s; }
.grid .box:nth-child(6) { animation-delay: 0.3s; }

.form {
  animation: riseFade 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.contact__item {
  animation: riseFade 0.6s ease both;
}

.contact .contact__item:nth-child(1) { animation-delay: 0.18s; }
.contact .contact__item:nth-child(2) { animation-delay: 0.24s; }
.contact .contact__item:nth-child(3) { animation-delay: 0.3s; }

@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    width: min(var(--max), calc(100% - 34px));
  }

  .top .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    justify-content: center;
  }

  .hero {
    padding-top: 40px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 740px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .card__stats {
    grid-template-columns: 1fr;
  }

  .brand__name {
    display: none;
  }
}

@media (max-width: 560px) {
  .top {
    transform: translateY(0);
    opacity: 1;
  }

  .top.top--hidden {
    transform: translateY(-110%);
    opacity: 0;
  }

  :root {
    --anchor-offset: 280px;
  }

  html {
    scroll-padding-top: var(--anchor-offset);
  }

  section[id] {
    scroll-margin-top: 0;
  }

  .container {
    width: calc(100% - 24px);
  }

  .top .container {
    padding: 10px 0 12px;
    gap: 8px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 11px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(13, 62, 138, 0.28);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(27, 39, 95, 0.12);
  }

  .nav .nav__cta {
    grid-column: auto;
  }

  .nav a:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(27, 39, 95, 0.16);
  }

  .hero {
    padding: 24px 0 12px;
  }

  .hero__grid {
    gap: 12px;
  }

  h1 {
    font-size: clamp(1.95rem, 10.8vw, 2.7rem);
    line-height: 1.09;
    margin-bottom: 8px;
  }

  .lead {
    font-size: 0.98rem;
    margin-bottom: 8px;
  }

  .actions {
    margin: 12px 0 8px;
    gap: 8px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.98rem;
  }

  .checks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .checks li {
    width: 100%;
    justify-content: flex-start;
  }

  .hint {
    margin-top: 6px;
  }

  .card {
    padding: 14px;
  }

  .card h3 {
    font-size: 1.35rem;
  }

  .card__stats div {
    padding: 10px 8px;
  }

  .map-wrap iframe {
    height: 280px;
  }

  .card__logo {
    width: 100%;
  }

  #inicio {
    scroll-margin-top: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --anchor-offset: 300px;
  }

  html {
    scroll-padding-top: var(--anchor-offset);
  }

  section[id] {
    scroll-margin-top: 0;
  }

  .container {
    width: calc(100% - 20px);
  }

  .top .container {
    padding: 10px 0;
    gap: 10px;
  }

  .brand__logo {
    width: 72px;
    height: 72px;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    padding: 10px 10px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 28px 0 14px;
  }

  h1 {
    font-size: clamp(1.8rem, 12vw, 2.5rem);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .lead {
    font-size: 0.93rem;
    margin-bottom: 10px;
  }

  .actions {
    gap: 10px;
    margin: 14px 0 10px;
  }

  .btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .checks {
    gap: 8px;
  }

  .checks li {
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  .hint {
    font-size: 0.85rem;
  }

  .card {
    padding: 14px;
    border-radius: 16px;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.92rem;
  }

  .card__stats div {
    padding: 9px;
  }

  .map-wrap iframe {
    height: 240px;
  }

  .card__logo {
    width: 100%;
  }

  .section {
    padding: 34px 0;
  }

  #inicio {
    scroll-margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
