:root {
  --noche: #0B1F3B;
  --noche-2: #16325C;
  --azul: #2565EA;
  --azul-osc: #1B4FC4;
  --cian: #00BFFF;
  --niebla: #EEF3FA;
  --linea: #D3DCEB;
  --texto: #0B1F3B;
  --texto-2: #4B5D7A;
  --blanco: #ffffff;

  --f-titulo: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-cuerpo: "Figtree", "Segoe UI", system-ui, sans-serif;

  --corte: 3.6vw;
  --ancho: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--f-cuerpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }

.ico { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 1rem; height: 1rem; }
.ico--lg { width: 2rem; height: 2rem; stroke-width: 1.5; }

:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--noche); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-cuerpo); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .8rem 1.1rem; border-radius: 6px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { font-size: 1rem; padding: 1rem 1.4rem; }
.btn--blue { background: var(--azul); color: #fff; }
.btn--blue:hover { background: var(--azul-osc); }
.btn--navy { background: var(--noche); color: #fff; }
.btn--navy:hover { background: var(--noche-2); }
.btn--white { background: #fff; color: var(--noche); }
.btn--white:hover { background: var(--niebla); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem; color: var(--azul); text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc--dark .link { color: var(--cian); }

/* barra superior */
.topbar { background: var(--noche); color: #B9C8E3; font-size: .8125rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .45rem; }
.topbar__in span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__in a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar__in a:hover { text-decoration: underline; }

/* encabezado */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--linea); backdrop-filter: blur(6px); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .6rem; }
.brand img { width: 74px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--texto-2); padding-block: .3rem; }
.nav a:not(.btn):hover { color: var(--azul); }
.menu-btn { display: none; background: none; border: 0; color: var(--noche); padding: .5rem; cursor: pointer; }

/* portada */
.hero {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--noche); color: #fff;
  padding-block: 4.5rem calc(var(--corte) + 4rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corte)), 0 100%);
}
.hero__mark { position: absolute; right: -6%; top: 50%; width: min(60vw, 620px); transform: translateY(-50%); opacity: .06; pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero__place { color: var(--cian); font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.hero h1 { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; max-width: 14em; text-wrap: balance; }
.hero__lead { margin-top: 1.25rem; font-size: 1.125rem; color: #C6D3EA; max-width: 34em; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* franjas inclinadas (eco del isotipo) */
.shards { display: flex; flex-direction: column; gap: .9rem; padding-right: 1.5rem; }
.shard { display: block; transform: skewX(-16deg); border-radius: 6px; padding: 1.05rem 1.6rem 1.05rem 1.9rem; }
.shard__in { display: flex; align-items: center; gap: .9rem; transform: skewX(16deg); }
.shard strong { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.shard small { display: block; font-size: .875rem; line-height: 1.35; margin-top: .1rem; }
.shard .ico { width: 1.7rem; height: 1.7rem; }
.shard--1 { background: var(--noche-2); border: 1px solid #2E4D82; margin-left: 2.5rem; margin-right: -.5rem; }
.shard--1 small { color: #B9C8E3; }
.shard--2 { background: var(--azul); margin-left: 0; margin-right: 2rem; }
.shard--2 small { color: #E3ECFF; }
.shard--3 { background: var(--cian); color: var(--noche); margin-left: 3.5rem; margin-right: -1rem; }
.shard--3 small { color: #0B3350; }

@media (prefers-reduced-motion: no-preference) {
  .shard { animation: entra .7s cubic-bezier(.2,.7,.2,1) both; }
  .shard--2 { animation-delay: .12s; }
  .shard--3 { animation-delay: .24s; }
}
@keyframes entra { from { opacity: 0; translate: 2.5rem 0; } to { opacity: 1; translate: 0 0; } }

/* secciones */
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2, .cta h2 { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.015em; }
.section-head p { margin-top: .6rem; color: var(--texto-2); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.services { position: relative; z-index: 0; background: var(--niebla); margin-top: calc(var(--corte) * -1); padding-block: calc(var(--corte) + 3.5rem) 4.5rem; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--linea); border-left: 1px solid var(--linea); background: #fff; }
.svc { padding: 1.75rem 1.6rem 1.6rem; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); display: flex; flex-direction: column; align-items: flex-start; }
.svc .ico--lg { color: var(--azul); margin-bottom: 1.1rem; }
.svc h3 { font-family: var(--f-titulo); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.svc p { margin-top: .4rem; color: var(--texto-2); font-size: .975rem; flex: 1; }
.svc .link { margin-top: 1.1rem; }
.svc--dark { background: var(--noche); color: #fff; }
.svc--dark .ico--lg { color: var(--cian); }
.svc--dark p { color: #B9C8E3; }

.paths { padding-block: 4.5rem; background: #fff; }
.paths__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.path { padding-top: 1.4rem; border-top: 3px solid var(--azul); }
.path__icon { display: inline-flex; width: 3.2rem; height: 2.6rem; align-items: center; justify-content: center; background: #E4ECFD; color: var(--azul); transform: skewX(-16deg); border-radius: 4px; margin-bottom: 1rem; }
.path__icon .ico { transform: skewX(16deg); }
.path h3 { font-family: var(--f-titulo); font-weight: 600; font-size: 1.15rem; }
.path p { margin-top: .4rem; color: var(--texto-2); }
.path .link { margin-top: 1rem; }

.products { position: relative; z-index: 0; background: var(--niebla); padding-block: 4.5rem calc(var(--corte) + 5rem); }
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.prod { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--linea); text-decoration: none; transition: border-color .15s, transform .15s; }
.prod:hover { border-color: var(--azul); }
.prod__icon .ico--lg { width: 2.7rem; height: 2.7rem; stroke-width: 1.4; }
.prod__icon { display: flex; align-items: center; justify-content: center; height: 7rem; background: #E4ECFD; color: var(--azul); }
.prod strong { font-family: var(--f-titulo); font-weight: 600; font-size: .975rem; line-height: 1.3; padding: 1rem 1.1rem 0; }
.prod small { color: var(--texto-2); font-size: .9rem; padding: .2rem 1.1rem 1.1rem; }

.cta { position: relative; z-index: 1; margin-top: calc(var(--corte) * -1); background: var(--azul); color: #fff; padding-block: calc(var(--corte) + 3rem) 3rem; clip-path: polygon(0 var(--corte), 100% 0, 100% 100%, 0 100%); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta p { margin-top: .4rem; color: #DCE8FF; }
.cta h2 { max-width: 22em; }

.footer { background: var(--noche); color: #B9C8E3; padding-block: 2.5rem; font-size: .9rem; }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2.5rem; align-items: center; }
.footer__logo { width: 74px; height: auto; }
.footer__place { display: inline-flex; align-items: center; gap: .4rem; }
.footer__nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid #23406E; font-size: .8125rem; }

/* botón flotante */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #1FAF57; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(11,31,59,.35); transition: background-color .15s; }
.wa-float:hover { background: #178a45; }

/* tablet y móvil */
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 2.5rem; }
  .shards { padding-right: 0; max-width: 30rem; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paths__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__in { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--linea); padding: .5rem 1.25rem 1.1rem; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--linea); }
  .nav__store { margin-top: .9rem; }
  .hero { padding-block: 3rem calc(var(--corte) + 3rem); --corte: 6vw; }
  .services, .products { --corte: 6vw; }
  .cta { --corte: 6vw; }
  .hero__cta .btn { width: 100%; }
  .section-head--row .btn { width: 100%; }
  .cta__in .btn { width: 100%; }
  .shard--1, .shard--2, .shard--3 { margin-inline: 0; }
}

@media (max-width: 560px) {
  .svc-grid, .prod-grid { grid-template-columns: 1fr; }
  .shard { padding-inline: 1.2rem; }
}
