:root {
  --navy: #0E2A47;
  --orange: #F5801F;
  --steel: #6B7280;
  --technical: #E5E7EB;
  --white: #FFFFFF;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

body,
button,
input,
textarea,
select {
  font-size: 16px;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.hero :focus-visible,
.dark-section :focus-visible,
.contact-section :focus-visible,
footer :focus-visible {
  outline-color: var(--orange);
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--technical);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 164px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.contact-links a:hover,
.footer-links a:hover,
.hero-contact a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.nav-contact {
  padding: 0 20px;
  color: var(--white);
  background: var(--navy);
}

.nav-contact span {
  color: var(--orange);
}

.menu-toggle {
  min-width: 48px;
  min-height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
}

.menu-symbol {
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(229, 231, 235, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 231, 235, 0.7) 1px, transparent 1px);
  background-size: 70px 70px;
}

.hero-inner {
  position: relative;
  min-height: 620px;
  padding-block: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.85fr);
  align-items: center;
  gap: 68px;
}

.eyebrow {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--technical);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--navy);
}

.pip {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--orange);
}

h1,
h2,
h3 {
  font-family: Montserrat, Arial, sans-serif;
  color: inherit;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-sub {
  max-width: 650px;
  margin: 28px 0 34px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 20px;
  border: 2px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--navy);
  background: var(--orange);
}

.btn-outline {
  color: var(--white);
  border-color: var(--technical);
  background: transparent;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.hero-contact {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.hero-contact a {
  text-underline-offset: 4px;
}

.hero-contact span {
  padding-left: 20px;
  border-left: 2px solid var(--orange);
}

.hero-panel {
  padding: 30px;
  border: 1px solid rgba(229, 231, 235, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.panel-rule {
  width: 42px;
  height: 4px;
  margin-bottom: 26px;
  background: var(--orange);
}

.tiny,
.service-meta {
  margin: 0;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.4;
  text-transform: uppercase;
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.35);
}

.panel-item span,
.panel-item b {
  color: var(--orange);
}

.panel-item span {
  font-size: 13px;
}

.panel-item strong {
  flex: 1;
  font-size: 15px;
}

.hero-panel > p:last-child {
  margin: 24px 0 0;
  color: var(--technical);
  font-size: 14px;
  line-height: 1.7;
}

.hero-footer {
  position: relative;
  border-top: 1px solid rgba(229, 231, 235, 0.35);
}

.hero-footer .container {
  padding-block: 17px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--technical);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.section {
  padding-block: 104px;
}

.light {
  background: var(--white);
}

.section h2 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 3.9vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.light .section-top h2 span,
.light > .container > h2 span {
  color: var(--navy);
  background-image: linear-gradient(transparent 76%, var(--orange) 76%);
}

.section-top {
  margin-bottom: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-top > p {
  width: 350px;
  flex-shrink: 0;
  margin: 0;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.75;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service {
  min-height: 340px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--technical);
  background: var(--white);
  transition: border-color 160ms ease, transform 160ms ease;
}

.service:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.service-meta {
  display: flex;
  justify-content: space-between;
  color: var(--steel);
}

.service-meta span:last-child {
  color: var(--navy);
  font-size: 17px;
}

.service-icon {
  margin: 42px 0 18px;
  color: var(--orange);
  font-size: 38px;
  line-height: 1;
}

.service h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 21px;
}

.service p {
  margin: 0;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.75;
}

.dark-section {
  color: var(--white);
  background: var(--navy);
}

.dark-section h2 {
  color: var(--white);
}

.dark-section h2 span,
.contact-section h2 span {
  color: var(--orange);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
}

.about-right > p {
  margin: 40px 0 36px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.85;
}

.values > div {
  padding: 18px 0;
  display: flex;
  gap: 26px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.42);
}

.values span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps > article {
  padding: 26px 10px 0 0;
  border-top: 4px solid var(--orange);
}

.steps span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.steps h3 {
  margin: 16px 0 9px;
  color: var(--navy);
  font-size: 19px;
}

.steps p {
  margin: 0;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.75;
}

.contact-section {
  color: var(--white);
  background: var(--navy);
}

.contact-section h2 {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 76px;
}

.contact-intro {
  max-width: 440px;
  margin: 24px 0 38px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-links a {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-links > span {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 3px solid var(--orange);
  color: var(--technical);
  font-weight: 700;
}

.form-card {
  padding: 38px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 22px 50px rgba(14, 42, 71, 0.22);
}

.form-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.form-note,
.noscript-note {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-top: 18px;
}

.field > label:not(.consent) {
  margin-bottom: 7px;
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.optional {
  color: var(--steel);
  font-weight: 500;
}

.form-card input:not([type="checkbox"]),
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: 0;
  outline: 0;
  color: var(--navy);
  background: var(--white);
  caret-color: var(--navy);
}

.form-card textarea {
  min-height: 132px;
  resize: vertical;
}

.form-card input:not([type="checkbox"]):focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--orange);
}

.form-card [aria-invalid="true"] {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--orange);
}

.field-error {
  min-height: 21px;
  margin-top: 5px;
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.field-error:not(:empty)::before {
  content: "— ";
  color: var(--orange);
}

.field-consent {
  margin-top: 20px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}

.consent a {
  color: var(--navy);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.submit {
  width: 100%;
  margin-top: 20px;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.form-status:not(:empty) {
  padding: 12px 14px;
  border-left: 4px solid var(--steel);
  background: var(--technical);
}

.form-status[data-state="error"] {
  border-left-color: var(--orange);
}

.form-status[data-state="success"] {
  border-left-color: var(--navy);
}

.form-status a {
  font-weight: 800;
  text-underline-offset: 3px;
}

.noscript-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--orange);
  background: var(--technical);
}

.honeypot {
  position: absolute;
  top: auto;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  padding: 42px 0 20px;
  color: var(--white);
  background: var(--navy);
  border-top: 1px solid rgba(229, 231, 235, 0.32);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand img {
  width: 146px;
  height: auto;
  padding: 5px;
  border: 1px solid var(--technical);
  background: var(--white);
}

.footer-brand span {
  color: var(--technical);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footnote {
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.32);
  color: var(--technical);
  font-size: 12px;
}

/* Página de privacidad */
.legal-header {
  border-bottom: 1px solid var(--technical);
  background: var(--white);
}

.legal-header .container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 4px;
}

.legal-main {
  width: min(780px, calc(100% - 44px));
  margin-inline: auto;
  padding-block: 64px 96px;
}

.legal-main h1 {
  color: var(--navy);
  font-size: clamp(36px, 6vw, 54px);
}

.legal-lead {
  margin: 18px 0 28px;
  color: var(--steel);
  font-size: 17px;
}

.legal-warning {
  margin: 28px 0 42px;
  padding: 18px 20px;
  border-left: 5px solid var(--orange);
  color: var(--navy);
  background: var(--technical);
  font-weight: 700;
}

.legal-section {
  padding-block: 24px;
  border-top: 1px solid var(--technical);
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
  color: var(--steel);
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section a {
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-list {
  padding-left: 22px;
}

.legal-meta {
  color: var(--steel);
  font-size: 14px;
}

.legal-footer {
  padding-block: 28px;
  color: var(--technical);
  background: var(--navy);
}

.legal-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 960px) {
  .hero-inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-inner {
    padding-block: 68px;
  }

  .hero-panel {
    max-width: 640px;
  }

  .section {
    padding-block: 82px;
  }

  .section-top {
    display: block;
  }

  .section-top > p {
    width: auto;
    max-width: 660px;
    margin-top: 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 0;
  }

  .service-icon {
    margin: 28px 0 16px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-right > p {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 22px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-bottom: 1px solid var(--technical);
    background: var(--white);
    box-shadow: 0 18px 30px rgba(14, 42, 71, 0.18);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding-inline: 12px;
  }

  .nav-contact {
    margin-top: 8px;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  html {
    scroll-padding-top: 78px;
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand img {
    width: 142px;
    max-height: 52px;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(38px, 12vw, 50px);
    letter-spacing: -0.035em;
  }

  .hero-inner {
    min-height: auto;
    padding-block: 58px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-contact span {
    padding-top: 8px;
    padding-left: 0;
    border-top: 2px solid var(--orange);
    border-left: 0;
  }

  .hero-footer .container {
    align-items: flex-start;
  }

  .hero-footer span {
    max-width: 48%;
    font-size: 9px;
  }

  .section {
    padding-block: 68px;
  }

  .section h2 {
    font-size: 34px;
  }

  .service,
  .form-card {
    padding: 24px;
  }

  .steps,
  .form-two {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 48px;
  }

  .footer-inner,
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .footnote,
  .legal-footer .container {
    flex-wrap: wrap;
  }

  .legal-header .container {
    min-height: 72px;
  }

  .legal-header .brand img {
    width: 132px;
  }

  .legal-main {
    width: min(100% - 32px, 780px);
    padding-block: 48px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
