: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; }

/* 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 { border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.svc__btn {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%;
  padding: 1.75rem 1.6rem 1.6rem; margin: 0; background: none; border: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer; transition: background-color .15s;
}
.svc__btn:hover { background: #F7FAFD; }
.svc__btn:focus-visible { outline-offset: -4px; }
.svc__btn .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__btn p { margin-top: .4rem; color: var(--texto-2); font-size: .975rem; flex: 1; }
.svc__btn .link { margin-top: 1.1rem; }
.svc.is-active .svc__btn { background: #F7FAFD; box-shadow: inset 0 3px 0 var(--azul); }
.link__close { display: none; }
.svc__btn[aria-expanded="true"] .link__open { display: none; }
.svc__btn[aria-expanded="true"] .link__close { display: inline; }
.link__chev { transition: transform .2s; }
.svc__btn[aria-expanded="true"] .link__chev { transform: rotate(180deg); }

/* panel de detalle del servicio */
.svc-panel { grid-column: 1 / -1; scroll-margin-top: 5.5rem; background: #F7FAFD; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 1.75rem; position: relative; }
.svc-panel:focus { outline: none; }
.svc-panel__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; align-items: center; }
.svc-panel__img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--linea); background: #E4ECFD; }
.svc-panel__txt h3 { font-family: var(--f-titulo); font-weight: 600; font-size: 1.3rem; line-height: 1.25; padding-right: 2.5rem; }
.svc-panel__txt p { margin-top: .6rem; color: var(--texto-2); }
.svc-panel__list { margin: 1rem 0 1.4rem; display: grid; gap: .5rem; }
.svc-panel__list li { position: relative; padding-left: 1.4rem; font-size: .975rem; }
.svc-panel__list li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .55rem; height: .55rem; background: var(--azul); transform: skewX(-16deg); }
.svc-panel__close { position: absolute; top: .9rem; right: .9rem; width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--linea); border-radius: 6px; color: var(--noche); cursor: pointer; }
.svc-panel__close:hover { border-color: var(--azul); color: var(--azul); }
@media (prefers-reduced-motion: no-preference) {
  .svc-panel { animation: abre .25s ease-out both; }
}
@keyframes abre { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

.products { padding-block: 4.5rem; background: #fff; }
.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; }

/* empresas con las que trabajamos (carrusel) */
.brands { position: relative; z-index: 0; background: var(--niebla); padding-block: 4.5rem calc(var(--corte) + 4rem); }
.brands .section-head { margin-bottom: 2rem; }
.marquee { overflow: hidden; background: var(--niebla); }
.marquee__track { background: var(--niebla); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3.5rem; padding-inline: 1.25rem; }
.marquee.is-live { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee.is-live .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; padding-inline: 0; animation: marquee var(--dur, 40s) linear infinite; }
.marquee.is-live .logo { margin-right: 4.5rem; }
.marquee.is-live:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo { display: flex; align-items: center; justify-content: center; height: 3rem; flex: none; }
.logo img { height: 2.4rem; width: auto; max-width: 9.5rem; object-fit: contain; filter: grayscale(1); opacity: .65; mix-blend-mode: multiply; transition: opacity .2s; }
.logo:hover img { opacity: .95; }
.logo__txt { font-family: var(--f-titulo); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; color: #8494AE; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .marquee.is-live .marquee__track { animation: none; } }

.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; }
.cta__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.3); font-size: .95rem; }
.cta__links a { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-weight: 500; }
.cta__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer { background: var(--noche); color: #B9C8E3; padding-block: 2.5rem; font-size: .9rem; }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem 2.5rem; align-items: center; }
.footer__logo { width: 74px; height: auto; }
.footer__info { display: grid; gap: .4rem; }
.footer__place, .footer__mail { display: inline-flex; align-items: center; gap: .45rem; }
.footer__mail { color: #B9C8E3; text-decoration: none; }
.footer__mail:hover { color: #fff; text-decoration: underline; }
.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__social { grid-column: 1 / -1; display: flex; gap: .7rem; }
.footer__social a { display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1px solid #2E4D82; border-radius: 6px; color: #fff; }
.footer__social a:hover { background: var(--azul); border-color: var(--azul); }
.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)); }
    .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__in { grid-template-columns: 1fr; }
  .svc-panel__in { grid-template-columns: 1fr; gap: 1.25rem; }
}

@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, .brands { --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; }
  .svc-panel { padding: 1.25rem; }
  .svc-panel__txt h3 { padding-right: 2.5rem; }
  .shard { padding-inline: 1.2rem; }
}
