
:root {
  --navy: #182167;
  --blue: #0f75bd;
  --bright: #1c76f9;
  --pale: #e8efff;
  --ink: #20264d;
  --muted: #65708c;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24,33,103,.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

/* ENCABEZADO */

.site-header {
  height: 78px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 18px rgba(12,27,75,.07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img {
  width: 174px;
  max-height: 58px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px,2.6vw,34px);
  font-size: 13px;
  font-weight: 500;
}

.main-nav>a:not(.btn) {
  transition: color .25s;
}

.main-nav>a:not(.btn):hover {
  color: var(--bright);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  margin: 5px;
}

/* BOTONES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bright);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  transition: transform .25s, background .25s, box-shadow .25s;
  box-shadow: 0 8px 20px rgba(28,118,249,.18);
}

.btn:hover {
  background: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(24,33,103,.22);
}

.btn-small {
  padding: 9px 14px;
  font-size: 12px;
}

/* BANNER PRINCIPAL */

.hero {
  min-height: 440px;
  height: min(48vw,520px);
  max-height: 540px;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: #081c4c url('../assets/banner-principal.jpg') center 48%/cover no-repeat;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8,19,65,.58),
    rgba(8,24,70,.30) 55%,
    rgba(4,18,48,.42)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 55px 0;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
  color: var(--blue);
  margin: 0 0 9px;
}

.eyebrow.light {
  color: #c9dcff;
}

.hero h1 {
  font-size: clamp(36px,5vw,62px);
  line-height: 1.12;
  letter-spacing: -.045em;
  margin: 8px 0 16px;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.hero-subtitle {
  font-size: 15px;
  color: #e6edff;
  margin: 0 0 27px;
}

.btn-hero {
  padding: 12px 22px;
}

.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 24px;
  height: 35px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 20px;
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 5px;
  background: #fff;
  margin: 7px auto;
  animation: scrollDot 1.5s infinite;
}

/* SECCIONES */

.section {
  padding: 76px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.about h2,
.offices h2 {
  font-size: clamp(27px,3vw,36px);
  line-height: 1.2;
  letter-spacing: -.035em;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 750;
}

.section-heading>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered .blue-lead {
  color: var(--blue);
  font-size: 17px;
}

/* SERVICIOS */

.service-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 3px;
}

.service-card {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #174b9b;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 18px 16px;
  isolation: isolate;
}

.service-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(7,18,70,.78),
    rgba(12,48,118,.12)
  );
  z-index: 1;
  transition: background .3s;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s, filter .4s;
}

.service-card span {
  position: relative;
  z-index: 2;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.service-card i {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
  font-style: normal;
  opacity: 0;
  transform: translate(-5px,5px);
  transition: .3s;
}

.service-card:hover img {
  transform: scale(1.09);
}

.service-card:hover i {
  opacity: 1;
  transform: none;
}

/* NOSOTROS */

.about {
  padding-top: 48px;
  padding-bottom: 82px;
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 8%;
}

.about-copy p:not(.eyebrow) {
  font-size: 14px;
  color: #4e5875;
  line-height: 1.9;
  max-width: 490px;
}

.about-photo {
  position: relative;
  padding: 0 0 12px 12px;
}

.about-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  clip-path: polygon(0 0,90% 0,100% 18%,100% 100%,0 100%);
}

.photo-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45%;
  height: 45%;
  background: var(--pale);
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

/* BENEFICIOS */

.why {
  background: var(--pale);
  padding: 65px 0 72px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 34px;
  margin-top: 42px;
}

.benefit {
  text-align: center;
  padding: 0 12px;
}

.benefit img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  margin: 0 auto 14px;
  transition: transform .35s;
}

.benefit:hover img {
  transform: translateY(-7px) rotate(-4deg);
}

.benefit h3 {
  font-size: 15px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 7px;
}

.benefit p {
  font-size: 12px;
  line-height: 1.65;
  color: #4e5875;
  margin: 0 auto;
  max-width: 220px;
}

/* ESTADÍSTICAS */

.stats {
  background: var(--navy) url('../assets/fondo-estadisticas.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
}

.stats:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9,25,91,.32);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 35px;
  padding: 25px 0;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.stat img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.stat strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

.stat span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #e5ebff;
}

/* CLIENTES */

.clients {
  padding: 50px 0 60px;
}

.clients .section-heading {
  margin-bottom: 30px;
}

.clients .section-heading h2 {
  font-size: 25px;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  align-items: center;
  gap: 24px 30px;
}

.client-logos img {
  width: 100%;
  height: 55px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
  transition: .3s;
}

.client-logos img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

/* OFICINAS */

.offices {
  background: var(--pale);
  padding: 65px 0 50px;
}

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
  margin: 30px 0 55px;
}

.map-wrap {
  position: relative;
  max-width: 420px;
  margin: auto;
  text-align: center;
}

.map-wrap>img {
  width: 100%;
  max-height: 370px;
  object-fit: contain;
}

.map-wrap>p {
  font-size: 12px;
  color: #60709b;
  font-weight: 600;
}

.map-pin {
  position: absolute;
  width: 19px;
  height: 19px;
  background: var(--bright);
  border: 5px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(28,118,249,.15);
  animation: pinPulse 2.2s infinite;
}

.pin-quito {
  top: 31%;
  left: 48%;
}

.pin-gye {
  top: 56%;
  left: 34%;
}

.office-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.office-card {
  background: #fff;
  box-shadow: 0 8px 25px rgba(24,33,103,.08);
  overflow: hidden;
}

.office-card>img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.office-info {
  padding: 15px;
}

.office-info h3 {
  color: var(--navy);
  font-size: 20px;
  margin: 0 0 3px;
}

.office-info p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 54px;
  margin: 0 0 12px;
}

/* BANNER COTIZACIÓN */

.quote-banner {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.quote-banner>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(24,33,103,.98),
    rgba(24,33,103,.82) 42%,
    rgba(24,33,103,.05)
  );
}

.quote-content {
  position: relative;
  z-index: 1;
  padding: 38px 42px;
  max-width: 480px;
}

.quote-content h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 9px;
}

.quote-content p:not(.eyebrow) {
  font-size: 13px;
  color: #e7ecff;
  line-height: 1.55;
  margin: 0 0 17px;
}

/* LLAMADA A LA ACCIÓN */

.contact-strip {
  padding: 45px 0;
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contact-strip h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0;
  color: var(--navy);
  max-width: 650px;
}

/* FOOTER */

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 48px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr 1fr;
  gap: 60px;
  padding-bottom: 35px;
}

.footer-brand img {
  width: 210px;
  max-height: 85px;
  object-fit: contain;
  object-position: left center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-col h3 {
  font-size: 14px;
  margin: 0 0 7px;
}

.footer-col a,
.footer-col p {
  font-size: 11px;
  color: #d7def8;
  margin: 0;
  line-height: 1.65;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #c5ccec;
}

/* BOTÓN FLOTANTE */

.floating-quote {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 500;
  background: var(--bright);
  color: white;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(28,118,249,.35);
  transition: .25s;
}

.floating-quote:hover {
  transform: translateY(-4px);
  background: var(--navy);
}

/* ANIMACIONES */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

@keyframes scrollDot {
  0%,100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: .25; }
}

@keyframes pinPulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(28,118,249,.12); }
  50% { box-shadow: 0 0 0 12px rgba(28,118,249,0); }
}

/* TABLETS */

@media(max-width:900px) {

  .container {
    width: min(100% - 42px,720px);
  }

  .site-header {
    height: 70px;
  }

  .brand img {
    width: 150px;
  }

  .menu-toggle {
    display: block;
    z-index: 1002;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 22px 28px 26px;
    box-shadow: 0 15px 25px rgba(24,33,103,.12);
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    height: 470px;
  }

  .service-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .service-card {
    height: 170px;
  }

  .about-grid {
    gap: 35px;
  }

  .benefits-grid {
    gap: 24px 12px;
  }

  .client-logos {
    grid-template-columns: repeat(4,1fr);
  }

  .office-grid {
    gap: 35px;
  }

  .office-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 30px;
  }
}

/* CELULARES */

@media(max-width:600px) {

  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding: 55px 0;
  }

  .hero {
    height: 440px;
    min-height: 420px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(34px,9vw,46px);
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .service-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 7px;
  }

  .service-card {
    height: 155px;
    padding: 14px;
  }

  .service-card span {
    font-size: 14px;
  }

  .service-card:last-child {
    grid-column: span 2;
    height: 135px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-photo {
    order: -1;
  }

  .about-photo img {
    height: 230px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 32px 16px;
    margin-top: 30px;
  }

  .benefit img {
    width: 58px;
    height: 58px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .stat {
    justify-content: flex-start;
    padding-left: 18%;
  }

  .client-logos {
    grid-template-columns: repeat(3,1fr);
    gap: 18px 15px;
  }

  .client-logos img {
    height: 42px;
  }

  .office-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 35px;
  }

  .map-wrap {
    max-width: 300px;
  }

  .office-cards {
    grid-template-columns: 1fr;
  }

  .office-card {
    display: grid;
    grid-template-columns: 40% 1fr;
  }

  .office-card>img {
    min-height: 170px;
    height: 100%;
  }

  .quote-banner {
    min-height: 290px;
  }

  .quote-overlay {
    background: linear-gradient(
      90deg,
      rgba(24,33,103,.97),
      rgba(24,33,103,.72)
    );
  }

  .quote-content {
    padding: 30px 22px;
  }

  .contact-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-brand img {
    width: 180px;
  }

  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }

  .floating-quote {
    right: 12px;
    bottom: 12px;
    padding: 10px 13px;
    font-size: 11px;
  }
}

/* ACCESIBILIDAD */

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
