:root {
  --color-primary: #035BF6;
  --color-primary-hover: #0248C8;
  --color-navy: #0A1629;
  --color-white: #FFFFFF;
  --color-bg-soft: #F7F9FC;
  --color-border: #D5DDEC;
  --color-muted: #859CBD;
  --color-text-main: #0A1629;
  --color-text-muted: #5F6F89;
  --shadow-soft: 0 1rem 2.5rem rgba(10, 22, 41, 0.08);
  --radius-large: 1.5rem;
  --radius-medium: 1rem;
  --container: 70rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#inicio,
#servicios,
#metodo,
#contacto {
  scroll-margin-top: 7rem;
}

body {
  margin: 0;
  color: var(--color-text-main);
  background: var(--color-white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 0.2rem solid var(--color-primary);
  outline-offset: 0.2rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container-small {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.narrow {
  max-width: 48rem;
}

.section {
  padding: clamp(1rem, 4vw, 3rem) 0;
}

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

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

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 7rem;
  height: 7rem;
  margin-block: -0.375rem;
  object-fit: contain;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.btn-primary {
  color: var(--color-white);
  background: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  color: var(--color-navy);
  background: var(--color-white);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.header-cta {
  display: none;
}

.hero {
  padding-top: clamp(0.75rem, 0.75vw, 4.5rem);
}

.hero-grid,
.two-columns {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-navy);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 100%;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 6.5vw, 5.8rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.hero-text,
.section-lead,
.text-block p,
.card p,
.step p,
.cta-box p,
.site-footer p {
  color: var(--color-text-muted);
}

.hero-text {
  max-width: 42rem;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-panel {
  align-self: center;
  padding: clamp(1.75rem, 4vw, 2.85rem);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

.panel-label {
  margin-bottom: 1rem;
  color: var(--color-navy);
  font-size: 1.5rem;
  font-weight: 800;
}

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

.check-list li {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card,
.step {
  padding: 1.4rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
  font-weight: 850;
}

.section-heading {
  margin-bottom: 2rem;
}

.services-grid {
  margin-top: 0;
}

.service-card {
  min-height: 12rem;
}

.highlight,
.quote {
  margin-top: 1.5rem;
  padding: 1rem 0 1rem 1rem;
  color: var(--color-navy) !important;
  border-left: 0.25rem solid var(--color-primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.method-intro {
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  gap: 1rem;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;
  font-weight: 850;
}

.section-navy {
  color: var(--color-white);
  background: var(--color-navy);
}

.section-navy h2,
.section-navy .quote {
  color: var(--color-white) !important;
}

.section-navy p {
  color: #D5DDEC;
}

.eyebrow-light {
  color: var(--color-muted);
}

.final-cta {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-soft) 100%);
}

.cta-box {
  max-width: 48rem;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

.cta-box .btn {
  margin-top: 1rem;
}

.site-footer {
  padding: 2rem 0 1rem;
  background: var(--color-navy);
  color: var(--color-white);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand strong {
  display: inline-block;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  margin-bottom: 0;
}

.footer-contact a {
  font-weight: 700;
}

.site-footer p,
.site-footer a,
.site-footer button {
  color: #D5DDEC;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--color-white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.footer-legal button {
  padding: 0;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  border-top: 1px solid rgba(213, 221, 236, 0.18);
}

.footer-bottom p {
  margin-bottom: 0;
}

.legal-modal {
  width: min(100% - 2rem, 48rem);
  max-height: min(44rem, calc(100vh - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--radius-large);
  box-shadow: 0 1.5rem 4rem rgba(10, 22, 41, 0.28);
}

.legal-modal::backdrop {
  background: rgba(10, 22, 41, 0.62);
}

.legal-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.legal-modal-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-navy);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.legal-modal-body {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.legal-modal-body h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body a {
  color: var(--color-primary);
  font-weight: 700;
}

.legal-modal-body ul {
  padding-left: 1.25rem;
}

address {
  display: grid;
  gap: 0.45rem;
  font-style: normal;
}

@media (min-width: 42rem) {
  .site-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .three-columns,
  .services-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56rem) {
  .hero-grid,
  .two-columns {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    align-items: center;
  }

  h1 {
    max-width: 100%;
  }

  .three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-inner {
    flex-wrap: nowrap;
  }
}

@media (max-width: 27rem) {
  .brand-name {
    display: none;
  }

  .btn {
    width: 100%;
  }
}