/* ZetaTech Perú · formato corto. Paleta tomada del logo: azul #0089ea → cian #00c8fd, plata #c8c9cc → #8f949f. */
:root {
  color-scheme: light;
  --blue: #0089ea;
  --blue-deep: #0063c7;
  --cyan: #00c8fd;
  --silver: #c8c9cc;
  --steel: #8f949f;
  --ink: #0b1a30;
  --muted: #4c5d76;
  --line: #cde1f6;
  --card: #ffffffd9;
  --grad: linear-gradient(112deg, var(--blue) 0%, #00a6f3 55%, var(--cyan) 100%);
  --stage-h: clamp(250px, 72vw, 300px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #eaf4ff; overflow-x: clip; }
body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fondo blanco y azul ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #ffffff 0%, #f6fbff 36%, #e5f2ff 70%, #cfe6ff 100%); }
.photos { inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 14%, #000 42%); mask-image: linear-gradient(180deg, transparent 0%, transparent 14%, #000 42%); }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: ken-burns 26s ease-in-out infinite alternate; }
.photo-b { opacity: 0; object-position: 50% 55%; animation: photo-swap 18s ease-in-out infinite, ken-burns 26s ease-in-out -13s infinite alternate; }
.veil { position: absolute; inset: 0; background: linear-gradient(180deg, #ffffffe6 0%, #fbfdffd1 36%, #f2f8ffb8 58%, #e0efff9e 80%, #cfe6ff94 100%); }
.scene::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#0089ea26 1px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); opacity: .55; }
.scene > * { position: absolute; display: block; }
.glow { border-radius: 50%; }
.glow-a { top: -220px; left: calc(50% - 400px); width: 800px; height: 640px; background: radial-gradient(ellipse, #00c8fd30 0, #00c8fd10 40%, transparent 66%); animation: drift-a 18s ease-in-out infinite alternate; }
.glow-b { bottom: -260px; left: calc(50% - 640px); width: 720px; height: 720px; background: radial-gradient(circle, #0089ea38 0, #0089ea12 42%, transparent 68%); animation: drift-b 22s ease-in-out infinite alternate; }
.glow-c { bottom: -200px; right: calc(50% - 620px); width: 600px; height: 600px; background: radial-gradient(circle, #00c8fd36 0, #00c8fd10 40%, transparent 66%); animation: drift-a 26s ease-in-out infinite alternate-reverse; }
.swooshes { inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; }
.sw { stroke-width: 30; opacity: .15; }
.sw-gray { stroke-width: 13; opacity: .3; }
.sw-pulse { stroke: #00c8fd; stroke-width: 5; stroke-dasharray: 46 954; stroke-dashoffset: 1000; opacity: .85; animation: run 7s cubic-bezier(.55, .05, .45, 1) infinite; }
.sw-pulse-gray { stroke: #a8adb5; stroke-width: 3; animation-duration: 9s; animation-delay: -3s; }
.circuit { top: 0; width: 170px; height: 560px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.circuit-left { left: 0; }
.circuit-right { right: 0; transform: scaleX(-1); }
.trace { stroke: #0089ea3d; stroke-width: 1.3; }
.trace-pulse { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 9 91; stroke-dashoffset: 100; animation: run 4.6s linear infinite; }
.trace-pulse:nth-of-type(2n) { animation-duration: 6.2s; animation-delay: -2s; }
.trace-pulse:nth-of-type(3n) { animation-duration: 5.4s; animation-delay: -3.6s; }
.via { fill: #fff; stroke: #0089ea80; stroke-width: 1.4; animation: via 4.6s ease-in-out infinite; }
.via:nth-of-type(2n) { animation-delay: -1.7s; }
.via:nth-of-type(3n) { animation-delay: -3.1s; }
.circuit-right .trace-pulse { animation-direction: reverse; }
@media (max-width: 699px) { .circuit { width: 118px; height: 390px; opacity: .6; } }

/* ---------- Estructura ---------- */
.wrap { position: relative; width: 100%; max-width: 440px; text-align: center; }
.page-top { display: flex; justify-content: space-between; gap: 12px; font-family: "Exo 2", "Manrope", sans-serif; font-style: italic; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #66768d; }
.page-top span:first-child { display: flex; align-items: center; gap: 7px; }
.page-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px #00c8fd26, 0 0 12px #00c8fdaa; animation: status 3.2s ease-in-out infinite; }

/* ---------- Logo 3D ---------- */
.brand-mark { --logo-fit: .8; position: relative; height: var(--stage-h); margin: 6px -10px 2px; -webkit-tap-highlight-color: transparent; }
.zt-3d .brand-mark { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.zt-3d .brand-mark:active { cursor: grabbing; }
.zt-3d .logo-img { pointer-events: none; }
.brand-mark.is-landed .pf-glow { transform-box: fill-box; transform-origin: center; animation: pf-land 1.2s cubic-bezier(.2, .7, .25, 1), pf-glow 5s ease-in-out 1.2s infinite; }
.logo-canvas { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: calc(100% - 34px); pointer-events: none; }
.logo-img { position: absolute; left: 50%; top: calc(50% - 17px); z-index: 1; width: min(80%, calc((var(--stage-h) - 34px) * .8 * 1.4234)); height: auto; transform: translate(-50%, -50%); opacity: 0; animation: logo-in .6s 1.3s ease forwards, logo-sway 9s 2s ease-in-out infinite; }
.zt-3d .logo-img { opacity: 0; animation: none; }
.platform { position: absolute; left: 50%; bottom: -6px; z-index: 0; width: 78%; height: 50px; transform: translateX(-50%); pointer-events: none; }
.platform::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 26px; height: 150px; background: linear-gradient(0deg, #00c8fd24, transparent 85%); clip-path: polygon(0 100%, 100% 100%, 82% 0, 18% 0); filter: blur(2px); animation: beam 5s ease-in-out infinite; }
.platform svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.pf-glow { fill: url(#zt-pf-fill); animation: pf-glow 5s ease-in-out infinite; }
.pf-ring { stroke: url(#zt-pf-stroke); stroke-width: 1.6; stroke-dasharray: 62 4 14 4 12 4; animation: run 18s linear infinite; }
.pf-ring-2 { stroke: #a8adb580; stroke-width: 1.2; stroke-dasharray: 3 5; animation-duration: 24s; animation-direction: reverse; }
.pf-scan { stroke: var(--cyan); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 10 90; animation: run 4s linear infinite; }

/* ---------- Texto ---------- */
.intro h1 { font-family: "Exo 2", "Manrope", sans-serif; font-style: italic; font-size: clamp(27px, 7.8vw, 36px); font-weight: 700; line-height: 1.12; letter-spacing: -.4px; }
.headline-line, .headline-accent { display: inline-block; animation: title-in .8s cubic-bezier(.2, .7, .25, 1) both; }
.intro h1 .headline-accent { padding: 0 .08em; background: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 40%, var(--blue) 80%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: title-in .9s cubic-bezier(.2, .7, .25, 1) both, shimmer 7s ease-in-out 1.2s infinite; }
.intro p { margin: 10px 0 20px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.wide-break { display: none; }

/* ---------- Botones ---------- */
.actions { display: flex; flex-direction: column; gap: 10px; }
.button { position: relative; overflow: hidden; isolation: isolate; display: flex; text-decoration: none; color: inherit; border-radius: 18px; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 32%, #ffffff8c 50%, transparent 68%); transform: translateX(-120%); pointer-events: none; animation: shine 8s ease-in-out infinite; }
.button svg { flex: none; }
.button:active { transform: scale(.98); }
.button:focus-visible, .social:focus-visible, footer a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.link-corner { margin-left: auto; color: var(--blue); font-size: 17px; line-height: 1; transition: transform .2s ease; }

.button-whatsapp { align-items: center; gap: 13px; min-height: 72px; padding: 13px 18px 13px 13px; background: var(--grad); color: #fff; text-align: left; font-size: 15px; font-weight: 800; box-shadow: 0 14px 30px -12px #0077dccc, inset 0 1px 0 #ffffff59; }
.button-whatsapp::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -90px; top: -120px; border: 1px solid #ffffff40; border-radius: 50%; pointer-events: none; animation: wave 7s ease-in-out infinite; }
.button-whatsapp::after { animation-delay: 1s; animation-duration: 6.5s; }
.button-whatsapp small { display: block; margin-top: 3px; color: #e3f6ff; font-size: 11.5px; font-weight: 600; }
.wa-icon { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 2px solid #ffffffd0; background: #ffffff24; }
.wa-icon::after { content: ""; position: absolute; inset: -2px; border: 2px solid #ffffffa6; border-radius: 50%; animation: ping 2.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.wa-icon svg { width: 23px; height: 23px; }
.button-whatsapp .arrow { width: 20px; height: 20px; margin-left: auto; transition: transform .2s ease; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile, .button-map { border: 1px solid var(--line); background: var(--card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 26px -16px #0063c773, inset 0 1px 0 #fff; }
.tile { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 116px; padding: 15px 15px 14px; text-align: left; font-size: 14px; font-weight: 800; }
.tile::before, .button-map::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent) no-repeat; background-size: 45% 100%; animation: trace-top 5.5s ease-in-out infinite; pointer-events: none; }
.tile + .tile::before { animation-delay: -2.7s; }
.tile .link-corner { position: absolute; top: 14px; right: 14px; }
.tile small, .button-map small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.node-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; color: var(--blue); }
.node-icon svg { width: 20px; height: 20px; }
.node-icon .google-logo { width: 20px; height: 20px; }
.stars { display: flex; gap: 3px; margin-top: 6px; }
.stars svg { width: 13px; height: 13px; fill: #00a6f3; animation: star 6s ease-in-out infinite; }
.stars svg:nth-child(2) { animation-delay: .25s; }
.stars svg:nth-child(3) { animation-delay: .5s; }
.stars svg:nth-child(4) { animation-delay: .75s; }
.stars svg:nth-child(5) { animation-delay: 1s; }

.button-map { align-items: center; gap: 13px; min-height: 74px; padding: 13px 16px 13px 13px; text-align: left; font-size: 14px; font-weight: 800; }
.button-map::before { animation-delay: -1.3s; }
.pin { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px #0077dcb3; }
.pin::before, .pin::after { content: ""; position: absolute; inset: 0; border: 1.5px solid #00a6f3; border-radius: 50%; animation: ping 3.2s cubic-bezier(.2, .6, .3, 1) infinite; }
.pin::after { animation-delay: 1.6s; }
.pin svg { width: 22px; height: 22px; }

/* ---------- Redes ---------- */
.socials { display: flex; justify-content: center; gap: 30px; padding-top: 22px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #42536b; font-size: 11px; font-weight: 700; text-decoration: none; border-radius: 12px; }
.social-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; color: var(--blue); border: 1px solid var(--line); background: #fff; border-radius: 50%; box-shadow: 0 8px 18px -12px #0063c780; transition: color .2s ease, transform .2s ease, border-color .2s ease; }
.social-icon::before { content: ""; position: absolute; inset: -5px; border: 1.5px solid transparent; border-top-color: var(--cyan); border-right-color: #00c8fd40; border-radius: 50%; pointer-events: none; animation: spin 9s linear infinite; }
.social:nth-child(2) .social-icon::before { border-top-color: var(--steel); border-right-color: #8f949f40; animation-direction: reverse; animation-duration: 12s; }
.social:nth-child(3) .social-icon::before { border-top-color: var(--blue); animation-duration: 10.5s; }
.social svg { width: 21px; height: 21px; }

footer { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 24px; color: #5f708a; font-size: 10.5px; }
footer a { color: var(--ink); text-decoration: none; font-weight: 800; }
.footer-line { width: 16px; height: 2px; margin-right: 5px; border-radius: 2px; background: var(--grad); }

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
  .button-whatsapp:hover { box-shadow: 0 18px 34px -12px #0077dcd9, inset 0 1px 0 #ffffff59; }
  .tile:hover, .button-map:hover { border-color: #7fc4f5; box-shadow: 0 14px 30px -16px #0063c799, inset 0 1px 0 #fff; }
  .button:hover .arrow, .button:hover .link-corner { transform: translate(2px, -2px); }
  .social:hover .social-icon { color: var(--blue-deep); border-color: #7fc4f5; transform: translateY(-3px); }
  footer a:hover { color: var(--blue); }
}
@media (min-width: 700px) {
  :root { --stage-h: 300px; }
  body { align-items: center; padding-top: 40px; padding-bottom: 40px; }
  .wide-break { display: inline; }
}
@media (max-width: 359px) {
  body { padding-right: 16px; padding-left: 16px; }
  .brand-mark { margin-right: -6px; margin-left: -6px; }
  .page-top { font-size: 8.5px; letter-spacing: .8px; }
  .button-whatsapp { gap: 10px; padding-right: 13px; font-size: 13.5px; }
  .button-whatsapp small { font-size: 10.5px; }
  .tile { padding: 13px 12px; font-size: 13px; }
  .button-map { font-size: 13px; }
  .socials { gap: 24px; }
}

@keyframes run { to { stroke-dashoffset: 0; } }
@keyframes ken-burns { from { transform: scale(1.03); } to { transform: scale(1.12) translateY(-1.5%); } }
@keyframes photo-swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes drift-a { from { transform: translate(-40px, -30px) scale(.95); } to { transform: translate(50px, 40px) scale(1.08); } }
@keyframes drift-b { from { transform: translate(30px, 20px); } to { transform: translate(-60px, -70px) scale(1.1); } }
@keyframes via { 0%, 100% { stroke: #0089ea66; } 50% { stroke: var(--cyan); fill: #e0f8ff; } }
@keyframes status { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes logo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes logo-sway { 0%, 100% { transform: translate(-50%, -50%) perspective(900px) rotateY(-7deg); } 50% { transform: translate(-50%, calc(-50% - 5px)) perspective(900px) rotateY(7deg); } }
@keyframes beam { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes pf-glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes pf-land { 0% { opacity: 1; transform: scale(1.18); } 100% { opacity: .7; transform: scale(1); } }
@keyframes title-in { from { opacity: .6; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes shine { 0%, 64% { transform: translateX(-120%); } 84%, 100% { transform: translateX(120%); } }
@keyframes wave { 0%, 100% { opacity: .35; transform: scale(.8) translate(-15px, 10px); } 50% { opacity: 1; transform: scale(1.4) translate(-30px, 22px); } }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.55); } }
@keyframes trace-top { 0% { background-position: -60% 0; } 60%, 100% { background-position: 160% 0; } }
@keyframes star { 0%, 25%, 100% { opacity: .65; transform: scale(1); } 45%, 60% { opacity: 1; transform: scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo-img { opacity: 1; }
  .button::after { transform: translateX(-120%); }
  .sw-pulse, .trace-pulse, .pf-scan { opacity: 0; }
}
