html {
  scroll-behavior: smooth;
  interpolate-size: allow-keywords;
}

@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes hero-media {
  from {
    opacity: 0;
    scale: 1.03;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes accent-grow {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

@keyframes step-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.anim-hero-copy > * {
  animation: fade-up 0.7s ease-out both;
}

.anim-hero-copy > :nth-child(1) {
  animation-delay: 0.05s;
}

.anim-hero-copy > :nth-child(2) {
  animation-delay: 0.16s;
}

.anim-hero-copy > :nth-child(3) {
  animation-delay: 0.28s;
}

.anim-hero-copy > :nth-child(4) {
  animation-delay: 0.4s;
}

.anim-hero-media {
  animation: hero-media 0.9s ease-out 0.2s both;
}

.anim-accent {
  animation: accent-grow 0.55s ease-out 0.5s both;
}

.lg-nav a {
  position: relative;
}

.lg-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  background: #c81e28;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.lg-nav a:hover::after,
.lg-nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.btn-primary {
  background: #c81e28;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #9e1820;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: #0b3a82;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #0b3a82;
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: #0b3a82;
}

.btn-light:hover,
.btn-light:focus-visible {
  background: #0b3a82;
  color: #ffffff;
}

article.reveal {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

article.reveal:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 58, 130, 0.16);
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-duration: auto;
    animation-range: entry 0% entry 40%;
  }

  .reveal:nth-child(even) {
    animation-range: entry 8% entry 48%;
  }

  .stat:nth-child(1) {
    animation-range: entry 0% entry 50%;
  }

  .stat:nth-child(2) {
    animation-range: entry 12% entry 62%;
  }

  .stat:nth-child(3) {
    animation-range: entry 24% entry 74%;
  }

  .stat:nth-child(4) {
    animation-range: entry 36% entry 86%;
  }

  .step::before {
    animation: step-line linear both;
    animation-timeline: view();
    animation-duration: auto;
    animation-range: entry 0% entry 55%;
  }
}

.step {
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #c81e28;
  transform: scaleX(1);
  transform-origin: left center;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b3a82;
  border-bottom: 2px solid #0b3a82;
  transform: rotate(45deg);
  flex: none;
  transition: transform 0.25s ease;
}

.faq[open] summary::after {
  transform: rotate(225deg);
}

@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.3s ease;
  }

  .faq[open]::details-content {
    height: auto;
    content-visibility: visible;
  }
}

#flotilla article.reveal > div:first-child {
  overflow: hidden;
}

#flotilla article.reveal img {
  transition: scale 0.4s ease;
}

#flotilla article.reveal:hover img {
  scale: 1.04;
}

#cotizacion input,
#cotizacion textarea {
  transition: box-shadow 0.2s ease;
}

#cotizacion input:focus,
#cotizacion textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #0b3a82;
}

.alerta {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1b2333;
  max-width: min(440px, calc(100vw - 32px));
}

.alerta::backdrop {
  background: rgba(11, 58, 130, 0.72);
}

.alerta[open] .alerta-panel {
  animation: fade-up 0.35s ease-out;
}

.alerta-panel {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(11, 58, 130, 0.16);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.alerta-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #c81e28;
  border-radius: 4px 4px 0 0;
}

.alerta-eyebrow {
  margin: 0;
  color: #c81e28;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
}

.alerta-panel h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  color: #0b3a82;
}

.alerta-panel p:last-of-type {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.55;
}

.alerta-cerrar {
  font: inherit;
  font-weight: 600;
  font-size: 18px;
  border: 0;
  padding: 14px 24px;
  border-radius: 4px;
  cursor: pointer;
}

html.lg-menu-open,
html.lg-menu-open body {
  overflow: hidden;
}

.lg-menu-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b3a82;
  border-radius: 4px;
  color: #0b3a82;
  background: #ffffff;
  box-sizing: border-box;
  padding: 0;
  cursor: pointer;
}

.lg-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border-top: 4px solid #c81e28;
}

.lg-menu-m[open] .lg-menu-panel {
  animation: fade-up 0.28s ease-out;
}

.lg-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid #e3e7ee;
}

.lg-menu-links {
  display: flex;
  flex-direction: column;
  padding: 8px 24px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
}

.lg-menu-links a {
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid #e3e7ee;
}

.lg-menu-links a:last-child {
  border-bottom: 0;
}

.lg-menu-foot {
  margin-top: auto;
  padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  background: #f4f6fa;
  font-size: 16px;
  color: #4a5468;
}

.lg-menu-foot p {
  margin: 12px 0 0;
  text-align: center;
}

.lg-menu-foot p a {
  text-decoration: none;
  font-weight: 600;
}

.lg-menu-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  padding: 16px 22px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .anim-hero-copy > *,
  .anim-hero-media,
  .anim-accent,
  .reveal,
  .step::before,
  .lg-menu-m[open] .lg-menu-panel,
  .alerta[open] .alerta-panel {
    animation: none;
    opacity: 1;
    translate: none;
    scale: none;
  }

  .step::before {
    transform: scaleX(1);
  }

  .btn,
  article.reveal,
  .lg-nav a::after,
  .faq summary::after,
  .faq::details-content,
  #flotilla article.reveal img,
  #cotizacion input,
  #cotizacion textarea {
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible,
  article.reveal:hover {
    transform: none;
  }

  #flotilla article.reveal:hover img {
    scale: 1;
  }
}
