/* INTEMPO — tokens, reset, header, footer y utilidades */
:root {
  --orange: #ff772b;
  --orange-hover: #e86a24;
  --blue: #005288;
  --blue-deep: #002d4a;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --surface: #ffffff;
  --surface-alt: #f5f6f8;
  --line: rgba(0, 45, 74, 0.08);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 12vw, 9rem);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 30px rgba(0, 45, 74, 0.06);
  --shadow-hover: 0 16px 40px rgba(0, 45, 74, 0.1);
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

address {
  font-style: normal;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--on-orange {
  background: #fff;
  color: var(--blue-deep);
}

.btn--on-orange:hover {
  background: var(--blue-deep);
  color: #fff;
  transform: translateY(-2px);
}

.text-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.35s var(--ease);
}

.text-link:hover::after {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  overflow: visible;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-mega-open {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
  z-index: 2;
  overflow: visible;
}

.header__logo {
  position: relative;
  z-index: 120;
}

.header__logo img {
  height: 64px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.5rem);
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}

.nav-list a[aria-disabled="true"] {
  cursor: default;
}

.site-header.is-scrolled .nav-list > li > a,
.site-header.is-mega-open .nav-list > li > a {
  color: var(--ink);
}

.nav-list > li > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}

.nav-list > li > a:not(.nav-cta):hover::after,
.nav-list > li > a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.1rem !important;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-sm);
  color: #fff !important;
  background: var(--orange);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--orange-hover);
}

.site-header.is-scrolled .nav-cta,
.site-header.is-mega-open .nav-cta {
  color: #fff !important;
}

.nav-item {
  position: relative;
}

.nav-item--mega > a {
  display: inline-flex;
  align-items: center;
}

.nav-item--mega:hover > a,
.nav-item--mega:focus-within > a,
.nav-item--mega.is-open > a {
  color: var(--blue);
}

.nav-list > .nav-item--mega:hover > a::after,
.nav-list > .nav-item--mega:focus-within > a::after,
.nav-list > .nav-item--mega.is-open > a::after {
  width: 100%;
  height: 2px;
  background: var(--blue);
}

.nav-list > .nav-item--lang {
  margin-left: 0.15rem;
}

.nav-list > .nav-item--lang > a {
  font-weight: 600;
  letter-spacing: 0.06em;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  z-index: 130;
  width: min(44.5rem, calc(100vw - var(--gutter) * 2));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(var(--mega-x, -50%), 8px, 0);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 1.1rem;
}

.mega-menu__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 1.5rem 1.65rem 1.35rem;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0, 45, 74, 0.14);
}

.mega-menu__col {
  min-width: 0;
  padding: 0 1.1rem;
}

.mega-menu__col + .mega-menu__col {
  border-left: 1px solid rgba(0, 45, 74, 0.1);
}

.mega-menu__heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.85rem;
  text-align: left;
}

.mega-menu__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mega-menu__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.55rem;
  margin: 0 -0.55rem;
  border-radius: 10px;
  color: var(--ink) !important;
  white-space: normal !important;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.mega-menu__item::after {
  content: none !important;
}

.mega-menu__item:hover,
.mega-menu__item:focus-visible,
.mega-menu__item[aria-current="page"] {
  background: var(--surface-alt);
}

.mega-menu__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.mega-menu__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mega-menu__thumb--placeholder {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.mega-menu__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mega-menu__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}

.mega-menu__desc {
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
}

.mega-menu--compact {
  width: min(26rem, calc(100vw - var(--gutter) * 2));
}

.mega-menu--compact .mega-menu__panel {
  grid-template-columns: 1fr;
  padding: 0.85rem 0.9rem;
}

.mega-menu--compact .mega-menu__col {
  padding: 0;
}

.nav-toggle {
  display: flex;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s;
}

.site-header.is-scrolled .nav-toggle__bar {
  background: var(--ink);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

@media (min-width: 1101px) and (max-width: 1320px) {
  .nav-list {
    gap: 0.7rem;
  }

  .nav-list a {
    font-size: 0.8125rem;
  }
}

@media (min-width: 1101px) {
  .nav-toggle {
    display: none;
  }

  .header__nav,
  .nav-list,
  .nav-item--mega {
    overflow: visible;
  }

  .header__nav {
    display: flex;
    align-self: stretch;
    align-items: stretch;
  }

  .nav-list {
    align-self: stretch;
  }

  .nav-item--mega {
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .mega-menu {
    position: fixed;
    top: var(--mega-top, calc(var(--header-h) + 0.35rem));
    left: var(--mega-left, 50%);
    transform: translate3d(var(--mega-x, -50%), 8px, 0);
  }

  .nav-item--mega:hover .mega-menu,
  .nav-item--mega:focus-within .mega-menu,
  .nav-item--mega.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(var(--mega-x, -50%), 0, 0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
}

.scroll-indicator__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.6);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Sections shared */
.section {
  padding: var(--section-y) 0;
}

.section-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.0625rem;
  text-align: justify;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-lead {
  margin-inline: auto;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding: 0.08em 0 0.16em;
}

.line-inner {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.85);
  padding-top: clamp(3.5rem, 7vw, 5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__brand img {
  width: 108px;
  height: auto;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.9375rem;
  max-width: 16rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__col h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer__col a,
.footer__col address {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__col li + li {
  margin-top: 0.55rem;
}

.footer__col a {
  position: relative;
  display: inline-block;
}

.footer__col a[aria-disabled="true"] {
  cursor: default;
}

.footer__col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.35s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__col a:hover::after {
  width: 100%;
}

.footer__map-link {
  display: block;
  isolation: isolate;
  background: var(--blue-deep);
}

.footer__map-link img {
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.footer__map-link span {
  font-size: 0.875rem;
  font-weight: 500;
}

.footer__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.65rem;
}

.phone-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer__col a.phone-wa {
  display: inline-flex;
}

.phone-wa__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  display: block;
  color: #fff;
}

.contact-data .phone-wa__icon {
  color: currentColor;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.footer__social li,
.footer__social li + li {
  margin-top: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom p {
  text-align: inherit;
}

.footer__bottom a:hover {
  color: #fff;
}

/* Reduced motion */
/* Responsive */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: flex;
    z-index: 120;
  }

  .header__nav {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    z-index: 90;
    background: var(--blue-deep);
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header__nav.is-open {
    display: flex !important;
    width: 100vw;
    height: 100dvh;
    height: 100vh;
  }

  .site-header.is-nav-open,
  .site-header:has(.header__nav.is-open) {
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none;
  }

  .site-header.is-nav-open .nav-toggle__bar,
  .site-header:has(.header__nav.is-open) .nav-toggle__bar {
    background: #fff;
  }

  .site-header.is-nav-open .header__logo img,
  .site-header:has(.header__nav.is-open) .header__logo img {
    position: relative;
    z-index: 99995;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.35rem;
    text-align: center;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: calc(var(--header-h) + 0.75rem) 1.25rem 2.5rem;
  }

  .nav-list a {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 6.4vw, 1.75rem);
    color: #fff !important;
    white-space: normal;
  }

  .nav-list > .nav-item--lang {
    margin-left: 0;
    margin-top: 0.35rem;
  }

  .nav-list > .nav-item--lang > a {
    font-size: 1.15rem;
    opacity: 0.88;
  }

  .nav-item--mega > a {
    justify-content: center;
    gap: 0.65rem;
  }

  .nav-item--mega > a::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0;
    flex-shrink: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease);
  }

  .nav-item--mega.is-open > a::before {
    transform: rotate(225deg);
  }

  .nav-item--mega:hover > a,
  .nav-item--mega:focus-within > a,
  .nav-item--mega.is-open > a {
    color: #fff !important;
  }

  .nav-item--mega > a::after {
    display: none;
  }

  .mega-menu {
    position: static;
    left: auto;
    width: min(22rem, 100%);
    margin: 0.85rem auto 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    text-align: left;
  }

  .mega-menu::before {
    display: none;
  }

  .nav-item--mega.is-open .mega-menu {
    display: block;
  }

  .mega-menu__panel {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.1rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    border-radius: 0;
  }

  .mega-menu__col {
    padding: 0;
  }

  .mega-menu__col + .mega-menu__col {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.15rem;
  }

  .mega-menu__heading {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.55rem;
    text-align: left;
  }

  .mega-menu__item {
    font-family: var(--font-body) !important;
    font-size: 0.9375rem !important;
    color: #fff !important;
    padding: 0.45rem 0.35rem;
    margin: 0 -0.35rem;
  }

  .mega-menu__item:hover,
  .mega-menu__item:focus-visible,
  .mega-menu__item[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
  }

  .mega-menu__title {
    color: #fff;
    font-size: 1rem;
  }

  .mega-menu__desc {
    color: rgba(255, 255, 255, 0.62);
  }

  .mega-menu__thumb {
    width: 58px;
    height: 46px;
    background: #ffffff;
  }

  .mega-menu__thumb--placeholder {
    color: var(--blue);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
    --section-y: clamp(5.25rem, 16vw, 6.5rem);
  }

  .header__logo img {
    height: 40px;
  }

  p {
    text-align: justify;
  }

  .site-footer p,
  .footer__brand p {
    text-align: center;
  }

  [id] {
    scroll-margin-top: calc(var(--header-h) + 0.5rem);
  }

  .site-footer {
    padding-top: 2.75rem;
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 1.75rem;
    max-width: 26rem;
    margin-inline: auto;
  }

  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__brand img {
    width: 56px;
    height: 56px;
    margin-bottom: 0.85rem;
  }

  .footer__brand p {
    max-width: 22rem;
  }

  .footer__col:has(.footer__nav) {
    display: none;
  }

  .footer__col h3 {
    margin-bottom: 0.75rem;
  }

  .footer__phones {
    justify-content: center;
  }

  .footer__map h3,
  .footer__map-link img {
    display: none;
  }

  .footer__map-link {
    margin-top: -0.5rem;
  }

  .footer__social {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .btn {
    width: 100%;
  }

  .nav-list {
    gap: 1.15rem;
  }

  .footer__phones {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }
}

@media (min-width: 1101px) {
  .section-lead {
    font-size: 1.1875rem;
  }

  .footer__brand p {
    font-size: 1.0625rem;
  }
}
