:root {
  color-scheme: light;
  --night: #07111f;
  --ink: #132137;
  --muted: #4d5d73;
  --mist: #f1f5fa;
  --border: #dce5ef;
  --cyan: #79e7f3;
  --gradient: linear-gradient(105deg, #73eafa, #adbaff 64%, #d7a6f7);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4488ff; outline-offset: 5px; }
.wrap { width: min(calc(100% - 96px), var(--wrap)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 10px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; color: white; background: #07111ff5; border-bottom: 1px solid #b0ccff26; backdrop-filter: blur(16px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 136px; height: auto; }
.header-inner nav { display: flex; align-items: center; gap: clamp(17px, 2.5vw, 38px); }
.header-inner nav a { text-decoration: none; font-size: .88rem; font-weight: 650; color: #d4dfef; }
.header-inner nav a:hover { color: var(--cyan); }
.header-inner nav .nav-contact, .menu-toggle { border: 1px solid #aec8ff45; border-radius: 8px; padding: 10px 14px; color: #f4f8ff; background: #ffffff08; }
.menu-toggle span { margin-left: 4px; }

.hero { color: white; padding: clamp(56px, 7vw, 104px) 0 42px; background: radial-gradient(ellipse at 78% 12%, #172952 0, transparent 56%), radial-gradient(ellipse at 98% 70%, #13253f 0, transparent 44%), var(--night); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr); gap: clamp(35px, 7vw, 104px); align-items: center; }
.eyebrow { color: var(--cyan); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; margin-bottom: 19px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px #79e7f388; }
.hero h1 { font-size: clamp(3.3rem, 6.35vw, 6rem); letter-spacing: -.07em; line-height: .99; max-width: 770px; }
.hero h1 em { display: block; font-style: normal; color: var(--cyan); background: var(--gradient); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy > p:not(.eyebrow) { color: #c4d2e6; max-width: 39rem; margin: 24px 0 26px; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; border-radius: 8px; padding: 10px 17px; text-decoration: none; font-size: .92rem; font-weight: 750; }
.button.primary { color: #0c2234; background: var(--gradient); }
.button.primary:hover { background: #a2f1fa; }
.button.outline { border: 1px solid #a7c4f060; color: #eff5ff; }
.button.outline:hover { border-color: var(--cyan); }
.scroll-progress { position: absolute; z-index: 1; inset: auto 0 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--gradient); pointer-events: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(58px, 8vw, 104px); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(90deg, #9cbcff0d 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, #9cbcff0d 0 1px, transparent 1px 64px); mask-image: linear-gradient(90deg, transparent 12%, #000 92%); }
.hero h1 { font-size: clamp(3.3rem, 6.1vw, 5.65rem); }
.hero::after { content: ""; position: absolute; z-index: -1; width: min(78vw,1050px); height: 100%; top: 0; right: -18%; background: radial-gradient(ellipse at center,#4674d23a,transparent 65%); pointer-events: none; }
body.motion-on .hero::after { animation: hero-glow 6s ease-in-out alternate infinite; }
body.motion-on .hero-copy { animation: reveal-in .7s cubic-bezier(.16,1,.3,1) both; }
@keyframes hero-glow { to { transform: translate(-18%,-10%) scale(.87); } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 22px; }
.hero-secondary { font-size: .9rem; font-weight: 700; color: #e2ebfa; text-underline-offset: 4px; }
.hero-panel { position: relative; min-width: 0; border: 1px solid #aec7ff48; padding: 22px; border-radius: 18px; background: linear-gradient(150deg,#152640,#0b172a); box-shadow: 0 24px 72px #02091686, 0 0 44px #77dfff12; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; color: #c6d7ef; font-weight: 690; }
.demo-top > span { display: flex; align-items: center; gap: 8px; }
.demo-top .status-dot { display: inline-block; flex: 0 0 auto; }
.motion-toggle { color: #d3e5fc; font-size: .73rem; background: none; border: 1px solid #adc3e554; border-radius: 6px; padding: 6px 8px; }
.demo-select { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: 17px 0 22px; }
.demo-select a { display: flex; align-items: center; padding: 8px; min-height: 38px; border: 1px solid #aac6ff35; border-radius: 7px; color: #d7e5fb; text-decoration: none; font-size: .77rem; font-weight: 710; }
.demo-select a[aria-current="true"], .demo-select a:hover { background: #79e7f322; border-color: #79e7f37a; color: #e8fbff; }
.demo-scene h2 { min-height: 2.25em; font-size: clamp(1.22rem,2vw,1.65rem); color: #f1f7ff; }
.demo-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 17px 0 16px; padding: 0; list-style: none; }
.demo-flow li { position: relative; display: grid; align-content: start; gap: 7px; min-height: 77px; padding: 9px 7px; border: 1px solid #b4d4ff3b; border-radius: 7px; background: #bbd4ff10; color: #e4edff; font-size: .76rem; line-height: 1.32; }
.demo-flow i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.demo-flow li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; width: 8px; height: 1px; left: 100%; top: 13px; background: var(--cyan); }
.demo-link { color: #c0f4ff; font-size: .85rem; font-weight: 700; text-underline-offset: 4px; }
body.motion-on .demo-flow li { animation: flow-in .65s both; animation-delay: calc(var(--step) * 180ms); }
body.motion-on .demo-flow i { animation: pulse 1.7s ease-in-out 2; animation-delay: calc(var(--step) * 180ms); }
@keyframes flow-in { from { transform: translateY(7px); border-color: #79e7f35e; } to { transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #79e7f339; } }

.journey { background: #f5f8fc; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px,7vw,96px); }
.journey-grid > div > p { margin: 14px 0 18px; color: var(--muted); }
.journey-options { display: grid; gap: 7px; }
.journey-options a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #cddced; border-radius: 8px; background: white; text-decoration: none; font-size: .9rem; font-weight: 700; }
.journey-options a:hover, .journey-options a[aria-current="true"] { border-color: #4277cb; color: #174996; background: #eaf3ff; }
.journey-results { border: 1px solid #adc3e853; border-radius: 18px; padding: clamp(20px,4vw,44px); color: white; background: radial-gradient(ellipse at 100% 0,#263e65,transparent 72%),#0d1c31; }
.journey-result h3 { font-size: clamp(1.65rem,3vw,2.75rem); }
.journey-result p:not(.eyebrow) { margin: 14px 0 22px; color: #d0ddef; }
.journey-link { display: block; width: fit-content; margin-top: 14px; color: #c0f4ff; font-size: .88rem; text-underline-offset: 4px; }
body.motion-on .journey-result { animation: scene-in .42s ease-out; }

.offers { position: relative; }
.offers h2 { margin-bottom: 20px; }
.offer-window { min-width: 0; }
.offer { min-height: 320px; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-radius: 16px; background: #0f2036; color: white; }
.offer + .offer { margin-top: 10px; }
.offers.is-ready .offer { margin-top: 0; }
body.motion-on .offers.is-ready .offer { animation: scene-in .46s ease-out; }
@keyframes scene-in { from { opacity: .5; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.offer-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(23px,5vw,60px); }
.offer-copy h3 { font-size: clamp(1.68rem,3.4vw,3.22rem); max-width: 18ch; }
.offer-copy p:not(.eyebrow) { color: #d0ddef; margin: 12px 0 18px; max-width: 42ch; }
.offer-visual { background: radial-gradient(ellipse at 65% 35%, #365d8e 0, #183250 43%, #0d1c31 78%); min-height: 115px; }
.offer--reactiva .offer-visual { position: relative; isolation: isolate; overflow: hidden; }
.offer--reactiva .offer-visual::before, .offer--reactiva .offer-visual::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: 5%; top: 50%; border: 1px solid #84dcf269; border-radius: 50%; transform: translateY(-50%) rotateX(35deg) rotateY(-36deg); box-shadow: 0 0 0 23px #68c8e015, 0 0 0 46px #68c8e012; }
.offer--reactiva .offer-visual::after { width: 42%; right: 19%; box-shadow: 0 0 34px #83e7ff4f; transform: translateY(-50%) rotateX(-32deg) rotateY(43deg); }
body.motion-on .offer--reactiva .offer-visual::after { animation: orbit 4s ease-in-out alternate infinite; }
@keyframes orbit { to { transform: translateY(-50%) rotateX(37deg) rotateY(-40deg); } }
.offer--web .offer-visual { background: linear-gradient(90deg,#0f2036,transparent 35%), url("/assets/web-design/preview-habita.jpg") center / cover; }
.offer--eventos .offer-visual { background: linear-gradient(90deg,#0f2036,transparent 38%), url("/empresas/muestras/vertice.webp") center / cover; }
.offer-controls { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.offer-count { font-size: .84rem; color: var(--muted); min-width: 3.4rem; text-align: center; }
.offer-controls button { display: grid; place-items: center; width: 42px; height: 40px; border: 1px solid #bdcde2; border-radius: 7px; background: #f6f9fe; color: #152b49; font-size: 1.3rem; }
.offer-controls button:hover { border-color: #416fb4; }
.offer-pause span { width: 9px; height: 11px; border-inline: 2px solid currentColor; }
.offer-pause.is-paused span { width: 0; height: 0; border: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
body.motion-on [data-reveal].is-revealed { animation: reveal-in .58s cubic-bezier(.16,1,.3,1) both; }
@keyframes reveal-in { from { opacity: .5; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.section { padding: clamp(58px, 8vw, 104px) 0; }
.section h2 { font-size: clamp(2.15rem, 4.8vw, 4rem); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: end; margin-bottom: 34px; }
.section-heading p, .service-copy p, .method-steps p { color: var(--muted); }
.section-heading p { max-width: 37ch; }
.services { background: #f5f8fc; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--border); border-radius: 15px; overflow: clip; }
.service-card:target { outline: 2px solid #4488ff; outline-offset: 3px; }
.service-copy { padding: 26px; display: flex; flex-direction: column; align-items: start; flex: 1; }
.service-copy h3 { font-size: 1.6rem; }
.service-copy p { margin: 11px 0 19px; }
.service-copy a { margin-top: auto; color: #184eb2; font-weight: 740; text-underline-offset: 4px; }
.service-flow, .service-board, .service-image { height: 160px; background: radial-gradient(ellipse at 75% 0,#233c67,transparent 68%),#0b182a; color: #e9f3ff; }
.service-flow { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; }
.service-flow span { border: 1px solid #a9c5f94d; background: #ffffff0b; border-radius: 7px; padding: 9px; font-size: .83rem; text-align: center; }
.service-flow b { color: var(--cyan); }
.service-board { display: grid; align-content: center; gap: 8px; padding: 18px clamp(14px,6vw,70px); }
.service-board div { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; background: #ffffff0b; border: 1px solid #a9c5f94d; border-radius: 7px; font-size: .8rem; }
.service-board i { width: 6px; height: 6px; border-radius: 50%; background: #7ce8f3; }
.service-board b { color: #a3edf5; font-size: .73rem; }
.service-image { position: relative; overflow: hidden; }
.service-image img { display: block; }
.web-image img { width: min(80%, 390px); height: auto; margin: 20px auto 0; border-radius: 7px; box-shadow: 0 12px 28px #0007; }
.sponsor-image img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .74; }
.sponsor-image img:last-child { position: absolute; height: 145px; width: auto; right: 14%; top: 19px; transform: rotate(8deg); box-shadow: 0 8px 28px #020711a0; }
.case { color: white; background: #0e1c31; }
.case-grid, .contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(25px,7vw,94px); align-items: center; }
.case-grid p:not(.eyebrow), .contact-grid p { color: #c3d3e7; max-width: 55ch; margin: 16px 0 23px; }
.case-steps { margin: 0; padding: 14px 22px; list-style: none; border: 1px solid #adc3e83d; border-radius: 14px; background: #ffffff06; }
.case-steps li { display: grid; gap: 3px; padding: 13px 0; }
.case-steps li + li { border-top: 1px solid #adc3e83d; }
.case-steps strong { color: #9debf4; }
.case-steps span { color: #d0dcee; font-size: .92rem; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 25px 0 0; padding: 0; }
.method-steps li { border-top: 2px solid #bad1ee; padding: 15px 0 0; }
.method-steps h3 { font-size: 1.2rem; margin-bottom: 7px; }
.contact { background: radial-gradient(ellipse at 70% 0,#22365f,transparent 70%),#081524; color: white; }
.contact-grid p { margin-bottom: 0; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
footer { padding: 24px 0; background: var(--night); color: #c9d6e8; border-top: 1px solid #a8c9ff30; }
.footer-inner, footer nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav a { font-size: .83rem; text-underline-offset: 3px; }

@media (max-width: 940px) {
  .wrap { width: min(calc(100% - 56px),var(--wrap)); }
  .header-inner nav { gap: 14px; }
  .hero-grid { gap: 30px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 77px; }
  .wrap { width: min(calc(100% - 38px),var(--wrap)); }
  .header-inner { min-height: 63px; flex-wrap: wrap; gap: 10px; }
  .brand img { width: 118px; }
  .header-inner nav { flex-basis: 100%; flex-wrap: wrap; padding-bottom: 12px; }
  .site-header.has-menu nav { display: none; }
  .site-header.has-menu nav.is-open { display: flex; }
  .hero { padding-top: 46px; }
  .hero-grid, .section-heading, .case-grid, .contact-grid { grid-template-columns: 1fr; gap: 25px; }
  .hero h1 { font-size: clamp(2.85rem, 9.5vw, 4.65rem); }
  .hero-copy > p:not(.eyebrow) { margin: 17px 0 19px; }
  .hero-panel { padding: 16px; }
  .journey-grid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; min-height: 0; }
  .offer-copy { min-height: 235px; }
  .offer-visual { height: 125px; }
  .offer--web .offer-visual, .offer--eventos .offer-visual { background-position: center 40%; }
}
@media (max-width: 510px) {
  .service-grid, .method-steps { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.arrow-ne { display: inline-block; width: .68em; height: .68em; position: relative; flex: 0 0 auto; vertical-align: .04em; }
.arrow-ne::before, .arrow-ne::after { content: ""; position: absolute; }
.arrow-ne::before { top: 0; right: 0; width: 65%; height: 65%; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.arrow-ne::after { left: 0; bottom: 0; width: 123%; height: 1.5px; background: currentColor; transform: rotate(-45deg); transform-origin: left center; }
.nav-contact .arrow-ne, .offer a .arrow-ne, .service-copy a .arrow-ne { margin-left: 3px; }

/* Event campaign and scroll effects */
.hero {
  background: radial-gradient(ellipse at 78% 12%, #253660 0, transparent 59%),
    radial-gradient(ellipse at 16% 100%, #19253c 0, transparent 55%), var(--night);
}
.hero-panel { background: linear-gradient(145deg,#263550,#131d38 68%,#221b38); }
.sponsor-promo {
  --promo-accent: #b9f4e2;
  padding: 0 clamp(0px, 2.5vw, 32px) clamp(42px, 5vw, 72px);
  color: white;
  background: var(--night);
}
.promo-ribbon {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  background: #c5f4e5;
  color: #19332e;
  margin-bottom: clamp(23px,4vw,48px);
}
.promo-ribbon-track {
  width: max-content;
  display: flex;
  animation: promo-ticker 46s linear infinite;
  animation-play-state: paused;
}
body.motion-on .promo-ribbon-track { animation-play-state: running; }
.promo-ribbon-track span {
  padding-inline-start: 22px;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 790;
  letter-spacing: .02em;
}
.promo-ribbon-track b { margin-inline: 16px; color: #3d5270; }
@keyframes promo-ticker { to { transform: translateX(-50%); } }

.promo-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr .92fr;
  align-items: stretch;
  border: 1px solid #a9bcf557;
  border-radius: 24px;
  overflow: clip;
  background: radial-gradient(ellipse at 65% 0,#2d2951,transparent 77%), #121c32;
}
.promo-copy { position: relative; z-index: 1; padding: clamp(28px,5vw,70px); }
.promo-copy .eyebrow { color: var(--promo-accent); margin-bottom: 14px; }
.promo-copy h2 { font-size: clamp(2.15rem,4.7vw,4.65rem); letter-spacing: -.055em; }
.promo-copy h2 em { color: var(--promo-accent); font-style: normal; }
.promo-copy > p:not(.eyebrow) { margin: 16px 0 24px; color: #d7ddef; max-width: 45ch; }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 19px; }
.promo-button { color: #122e2a; background: #b9f4e2; }
.promo-button:hover { background: #e0fff5; }
.promo-example { font-size: .87rem; color: #eef5ff; text-underline-offset: 4px; }
.promo-pause {
  position: absolute;
  inset: 4px 8px 4px auto;
  padding: 3px 9px;
  background: #e0fff5;
  color: #19332e;
  border: 1px solid #497468;
  border-radius: 6px;
  font-size: .73rem;
}

.promo-art { position: relative; isolation: isolate; min-height: 340px; overflow: clip; }
.promo-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#1b213e 0%,transparent 50%), linear-gradient(0deg,#121c3291,transparent 65%);
}
.promo-photo { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.promo-sheets { position: absolute; inset: 5% 5% 6%; display: grid; place-items: center; }
.promo-sheet {
  position: absolute;
  width: min(39%, 205px);
  height: auto;
  border: 1px solid #e0ebff6b;
  border-radius: 5px;
  box-shadow: 0 20px 52px #0009;
  transform: translateX(var(--spread)) rotate(var(--tilt));
}
.promo-sheet-left { --spread: -64%; --tilt: -13deg; }
.promo-sheet-right { --spread: 64%; --tilt: 14deg; }
.promo-sheet-front { --spread: 0%; --tilt: -1deg; }
.promo-art figcaption {
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: #fff;
  background: #141d38d9;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: .73rem;
}

.journey { background: linear-gradient(138deg, #f7f8ff, #eef7f5); }
.case { background: radial-gradient(ellipse at 100% 30%, #26365d, transparent 70%), #121c32; }
.service-card--automatizacion .service-flow { background: radial-gradient(ellipse at 65% 0,#243f76,transparent 75%),#0f1e39; }
.service-card--software .service-board { background: radial-gradient(ellipse at 70% 0,#244b4d,transparent 80%),#12272d; }
.service-card--webs .service-image { background: radial-gradient(ellipse at 50% 0,#56375e,transparent 85%),#241b35; }
.service-card--eventos { background: #f3fbf7; }
.service-copy a:hover, .promo-example:hover { text-decoration-thickness: 2px; }
body.motion-on .service-card.is-revealed { animation-delay: var(--reveal-delay, 0ms); }
@media (min-width: 511px) {
  .service-card:nth-child(even) { --reveal-delay: 130ms; }
}
@supports (animation-timeline: view()) {
  .promo-art { view-timeline-name: --promo-view; }
  body.motion-on .promo-sheet {
    animation: spread-sheets linear both;
    animation-timeline: --promo-view;
    animation-range: entry 0% cover 48%;
  }
  @keyframes spread-sheets {
    from { transform: translateX(0) translateY(36px) rotate(0) scale(.86); }
    to { transform: translateX(var(--spread)) rotate(var(--tilt)); }
  }
}
@media (max-width: 760px) {
  .promo-card { grid-template-columns: 1fr; }
  .promo-art { min-height: clamp(230px, 60vw, 380px); }
  .promo-art::after { background: linear-gradient(180deg,#1f2240 0%,transparent 38%), linear-gradient(0deg,#121c3291,transparent 65%); }
  .promo-sheet { width: min(37%, 175px); }
}
@media (prefers-reduced-motion: reduce) {
  body.motion-on .promo-ribbon-track, body.motion-on .promo-sheet { animation: none; }
}
