* {
  box-sizing: border-box;
}

:root {
  --blue: #0831ff;
  --white: #ffffff;
  --light: #f5f7ff;
  --text: #111111;
  --muted: #626262;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 49, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand img {
  width: 118px;
  display: block;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .02em;
  position: relative;
  opacity: .9;
  transition: opacity .25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width .25s ease;
}

nav a:hover {
  opacity: 1;
}

nav a:hover::after {
  width: 100%;
}

.hero {
  min-height: 100svh;
  padding: 140px 64px 72px;
  display: flex;
  align-items: center;
  background: var(--blue);
  color: var(--white);
  position: relative;
  overflow: hidden;

}

.map-lines {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(35deg, transparent 48%, rgba(255,255,255,.8) 49%, transparent 51%),
    linear-gradient(115deg, transparent 48%, rgba(255,255,255,.5) 49%, transparent 51%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.7) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.7) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.7) 0 2px, transparent 3px);
  background-size: 240px 240px, 300px 300px, 100% 100%, 100% 100%, 100% 100%;
}

.hero-content {
  max-width: 980px;
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(48px, 8vw, 104px);
  line-height: .95;
  letter-spacing: -0.06em;
  margin: 0 0 28px;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

p {
  font-size: 18px;
  line-height: 1.55;
}

.lead {
  max-width: 680px;
  font-size: 22px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--white);
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}

.button span {
  transition: transform .25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover span {
  transform: translateX(3px);
}
.arrow-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-left: 6px;
}

.arrow-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button.primary {
  background: var(--white);
  color: var(--blue);
}

.button.primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.arrow-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  transition: transform .25s ease;
}

.arrow-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover .arrow-icon {
  transform: translate(3px, -3px);
}
.button.secondary {
  color: var(--white);
}

.button.secondary:hover {
  background: var(--white);
  color: var(--blue);
}

.section {
  padding: 110px 64px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
}

.statement {
  padding: 120px 64px;
  background: var(--blue);
  color: var(--white);
}

.statement h2 {
  max-width: 1050px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.steps article,
.value-grid article {
  border: 1px solid rgba(8, 49, 255, .18);
  padding: 28px;
  min-height: 250px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.steps article:hover,
.value-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 49, 255, .45);
  background: rgba(8, 49, 255, .03);
}

.steps span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.icon {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--blue);
}

.icon svg,
.footer-contact svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.project-card {
  background: var(--light);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(8, 49, 255, .14);
}

.project-image {
  height: 280px;
  background:
    linear-gradient(135deg, rgba(8,49,255,.9), rgba(8,49,255,.35)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 1px, transparent 1px 18px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform .45s ease;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

.project-info {
  padding: 26px;
}

.tag {
  color: var(--blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}

.values {
  background: var(--light);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.contact {
  padding: 110px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--blue);
  color: var(--white);
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-note {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  margin-top: 16px;
  max-width: 420px;
}

footer {
  padding: 36px 64px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  background: #050505;
  color: var(--white);
}

footer p,
footer a {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-contact {
  text-align: right;
  display: grid;
  gap: 8px;
}

.footer-contact a,
.footer-contact p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
}

.footer-contact a {
  transition: color .25s ease;
}

.footer-contact a:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .site-header {
    height: 64px;
    padding: 0 22px;
  }

  .brand img {
    width: 92px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 104px 24px 56px;
    align-items: flex-end;
  }

  .map-lines {
    opacity: .12;
    background-size: 170px 170px, 220px 220px, 100% 100%, 100% 100%, 100% 100%;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: .14em;
    margin-bottom: 5px;
    margin-top: 30px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
    line-height: .94;
    letter-spacing: -0.065em;
    margin-bottom: 22px;
  }

  h2 {
    font-size: clamp(34px, 10vw, 50px);
    letter-spacing: -0.055em;
  }

  h3 {
    font-size: 22px;
  }

  p,
  .lead {
    font-size: 16px;
    line-height: 1.52;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }

  .button {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  .section,
  .statement,
  .contact {
    padding: 26px 24px;
  }

  .two-col,
  .section-header,
  .contact,
  .project-grid,
  .value-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 42px;
    border-top: 1px solid rgba(8, 49, 255, .2);
  }

  .steps article {
    min-height: auto;
    border: 0;
    border-bottom: 1px solid rgba(8, 49, 255, .2);
    padding: 24px 0;
    display: grid;
    grid-template-columns: 42px 46px 1fr;
    column-gap: 14px;
    align-items: start;
  }

  .steps article:hover {
    transform: none;
    background: transparent;
  }

  .steps article h3,
  .steps article p {
    grid-column: 3;
  }

  .steps .icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    margin: 3px 0 0;
  }

  .steps span {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 12px;
  }

  .project-grid {
    gap: 18px;
  }

  .project-card:hover {
    transform: none;
    box-shadow: none;
  }

  .project-card:hover .project-image {
    transform: none;
  }

  .project-image {
    height: 210px;
  }

  .project-info {
    padding: 22px;
  }

  .value-grid article {
    min-height: auto;
    background: var(--white);
    padding: 24px;
  }

  .value-grid article:hover {
    transform: none;
  }

  .contact-action {
    width: 100%;
  }

  .contact-note {
    display: none;
  }

  footer {
    padding: 34px 24px;
    display: grid;
    gap: 24px;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-contact a,
  .footer-contact p {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 96px;
  }

  h1 {
    font-size: 43px;
  }

  .section,
  .statement,
  .contact {
    padding-left: 22px;
    padding-right: 22px;
  }

  .steps article {
    grid-template-columns: 34px 42px 1fr;
    column-gap: 10px;
  }
  .footer-contact a,
.footer-contact p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact a {
  transition: color .25s ease;
}

.footer-contact a:hover {
  color:  #0831ff;
}
}
.menu-toggle,
.mobile-menu {
  display: none;
}


/* AJUSTES MOBILE TRIAVA V2 - NO AFECTA DESKTOP */
@media (min-width: 901px) {
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 900px) {
  /* Header mobile equilibrado */
  .site-header {
    height: 64px !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .brand img {
    width: 92px !important;
  }

  .site-header nav {
    display: none !important;
  }
  

  /* Menú hamburguesa */
  .menu-toggle {
    display: flex !important;
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 80 !important;
  }

  .menu-toggle span {
    display: block !important;
    width: 25px !important;
    height: 2px !important;
    background: var(--white) !important;
    border-radius: 999px !important;
    transition: transform .25s ease, opacity .25s ease !important;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0 !important;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }

  .mobile-menu {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    display: grid !important;
    background: var(--blue) !important;
    z-index: 70 !important;
    padding: 10px 22px 24px !important;
    transform: translateY(-120%) !important;
    transition: transform .28s ease !important;
    border-top: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: 0 24px 50px rgba(0,0,0,.12) !important;
  }

  .menu-open .mobile-menu {
    transform: translateY(0) !important;
  }

  .mobile-menu a {
    color: var(--white) !important;
    text-decoration: none !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    padding: 17px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.18) !important;
  }

  .mobile-menu a:last-child {
    border-bottom: 0 !important;
  }

  /* Hero mobile: acorta distancia entre nav y primer texto */
  .hero {
    min-height: 60svh !important;
    padding: 86px 24px 52px !important;
    align-items: flex-start !important;
  }

  .hero-content {
    transform: none !important;
    margin-top: 10 !important;
    padding-top: 0 !important;
  }

  .hero .eyebrow {
    margin-top: 1000 !important;
  }

  .hero-actions {
    margin-top: 20px !important;
  }

  /* Footer mobile totalmente alineado a la izquierda */
  footer {
    padding: 34px 24px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    justify-items: start !important;
    align-items: start !important;
    text-align: left !important;
  }

  footer > div {
    width: 100% !important;
    text-align: left !important;
    justify-self: start !important;
  }

  .footer-contact {
    width: 100% !important;
    display: grid !important;
    gap: 12px !important;
    text-align: left !important;
    justify-items: start !important;
    align-items: start !important;
  }

  .footer-contact a,
  .footer-contact p {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 78px !important;
  }
}
