/* The service pages (apps.html, paginas-web.html, agentes-de-ia.html, 26 Oct 2026): the same look as index.html
   (tokens, fonts, header, buttons, cut-corner cards), in a shared file because three pages use it.
   servicio.js runs the physics: the hero pieces fall into a heap and then put themselves in order, and the
   gravity switch drops the whole screen and rewinds it. */
@font-face { font-family: REM; font-weight: 500; font-display: swap; src: url(fonts/rem-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: REM; font-weight: 600; font-display: swap; src: url(fonts/rem-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: REM; font-weight: 700; font-display: swap; src: url(fonts/rem-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Atkinson; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Atkinson; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-mono-latin-700-normal.woff2) format("woff2"); }

:root {
  --ink: #0f0e0d; --ink-2: #171614; --ink-3: #201e1b;
  --paper: #f0eee6; --paper-2: #cfccc3; --muted: #8b887f; --dim: #5d5a54;
  --clay: #d97757; --clay-2: #e8956f; --patina: #5fb3a1;
  --line: rgba(240, 238, 230, .07); --line-2: rgba(240, 238, 230, .14);
  --grad: linear-gradient(90deg, #5fb3a1 0%, #9bb08a 24%, #d97757 56%, #e9a065 78%, #efc68a 100%);
  --gutter: clamp(16px, 4vw, 56px);
  --head: REM, system-ui, sans-serif;
  --mono: Atkinson, ui-monospace, Menlo, monospace;
  --shape: polygon(0 0, 78% 0, 100% 11%, 100% 94%, 85% 94%, 79% 100%, 21% 100%, 15% 94%, 0 94%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--paper); -webkit-text-size-adjust: 100%; }
body { font: 400 15px/1.65 var(--mono); background: var(--ink); overflow-x: hidden; }
em, i { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--clay); color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font: 400 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--clay); font-weight: 400; }
main, header, footer { position: relative; z-index: 1; }

/* the surveyed-plot grid and the film grain, as on the home page */
.plots { position: fixed; inset: 0 var(--gutter); pointer-events: none; z-index: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.plots i { border-left: 1px solid var(--line); }
.plots i:last-child { border-right: 1px solid var(--line); }
.grain { position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .9s steps(5) infinite; }
@keyframes grain { 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* ---------- header ---------- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 18px var(--gutter); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.solid { background: rgba(15, 14, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand img { height: 64px; width: auto; display: block; margin: -14px 0; }
nav { display: flex; gap: 24px; margin-left: auto; }
nav a { font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-2); transition: color .2s; white-space: nowrap; }
nav a:hover, nav a[aria-current="page"] { color: var(--clay); }
.tools { display: flex; align-items: center; gap: 10px; flex: none; }
nav + .tools { margin-left: 0; }
.lang-dd { position: relative; flex: none; }
.lang-dd-b { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 14px; background: var(--paper); color: var(--ink); font: 700 12px/1 var(--mono); letter-spacing: .08em; transition: background .2s; }
.lang-dd-b:hover { background: var(--clay-2); }
.lang-dd-b svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.lang-dd-b[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-dd-l { position: absolute; right: 0; top: 100%; z-index: 60; list-style: none; min-width: 100%; background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: 0 16px 30px rgba(0, 0, 0, .4); }
.lang-dd-l[hidden] { display: none; }
.lang-dd-l button { display: block; width: 100%; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--paper); font: 400 12px/1 var(--mono); letter-spacing: .08em; text-align: left; white-space: nowrap; }
.lang-dd-l li:first-child button { border-top: 0; }
.lang-dd-l button:hover, .lang-dd-l button[aria-current="true"] { background: var(--clay); color: var(--ink); }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--paper-2); transition: border-color .2s, color .2s, background .2s; flex: none; }
.round:hover { border-color: var(--clay); color: var(--clay); }
.round[aria-pressed="true"] { color: var(--clay); border-color: rgba(217, 119, 87, .5); }
.round svg { width: 22px; height: 22px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.eq i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; transform: scaleY(.45); }
.round[aria-pressed="true"] .eq i { animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.5s !important; } .eq i:nth-child(3) { animation-delay: -.2s !important; } .eq i:nth-child(4) { animation-delay: -.65s !important; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 99px; font: 700 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--clay); color: var(--ink); transition: background .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: var(--clay-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--paper); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.sm { padding: 11px 16px; font-size: 12px; }
@media (max-width: 1180px) { nav { display: none; } .tools { margin-left: auto; } }
@media (max-width: 700px) { header .btn .t { display: none; } header .btn { padding: 11px 13px; } }
@media (max-width: 480px) {
  header { gap: 6px; } .tools { gap: 6px; }
  .brand img { height: 50px; margin: -10px 0; }
  .lang-dd-b { height: 30px; padding: 0 4px 0 9px; gap: 4px; font-size: 11px; }
  .lang-dd-b svg { width: 15px; height: 15px; }
  .round { width: 32px; height: 32px; } .round svg { width: 18px; height: 18px; }
}
@media (max-width: 380px) { .brand img { height: 44px; margin: -8px 0; } .lang-dd-b { padding-inline: 8px 4px; } }
@media (max-width: 358px) { .brand img { height: 38px; margin: -6px 0; } }

/* ---------- hero: words on the left, the physics on the right ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 130px var(--gutter) 70px; }
.hero h1 { font-size: clamp(36px, 4.9vw, 76px); line-height: 1.02; margin-top: 18px; }
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .l { display: inline-block; will-change: transform; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--paper-2); margin-top: 24px; max-width: 54ch; font-size: 15.5px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .where { margin-top: 28px; }
.stagewrap { position: relative; }
.stage { position: relative; height: min(620px, 74svh); min-height: 440px; }
.stage .frame { position: absolute; pointer-events: none; border: 1px solid var(--line-2); }
.stage .frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(240, 238, 230, .025); }
.stage .frame.phone { border-radius: 44px; }
.stage .frame.phone::after { content: ""; position: absolute; top: 12px; left: 50%; width: 30%; height: 7px; border-radius: 9px; transform: translateX(-50%); background: var(--line-2); }
.stage .frame.browser { border-radius: 12px; }
.stage .frame.browser::after { content: ""; position: absolute; top: 13px; left: 16px; width: 44px; height: 9px; background: radial-gradient(circle at 4.5px 4.5px, var(--dim) 3.5px, transparent 4px) 0 0 / 15px 9px repeat-x; }
.stage .frame.chat { border-radius: 26px; }
.stage .frame .fl { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; }
.stagek { margin-bottom: 12px; }
.stagebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.stagebar .hint { color: var(--dim); }
.chaos { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 10px 14px; transition: border-color .2s, color .2s; }
.chaos:hover { color: var(--clay); border-color: var(--clay); }

/* the pieces: each one is a physics body; servicio.js moves them with transform */
.pc { position: absolute; left: 0; top: 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform; display: flex; align-items: center; justify-content: center; text-align: center; }
.pc.held { cursor: grabbing; z-index: 5; }
/* on a touch screen a vertical swipe over the pieces scrolls the page; a sideways move grabs and throws */
@media (pointer: coarse) { .pc { touch-action: pan-y; } }
.stage .pc[hidden] { display: none !important; }   /* a piece the layout has no room for (a short screen) */
.pc.tile { width: 84px; height: 84px; border-radius: 22px; flex-direction: column; gap: 8px; background: var(--ink-3); border: 1px solid var(--line-2); font: 700 10.5px/1.1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper-2); }
.pc.tile i { width: 26px; height: 26px; border-radius: 8px; background: var(--c, var(--clay)); opacity: .9; }
.pc.note { width: 236px; padding: 12px 14px; border-radius: 16px; gap: 10px; justify-content: flex-start; text-align: left; background: rgba(240, 238, 230, .92); color: var(--ink); font: 400 12.5px/1.35 -apple-system, "Segoe UI", system-ui, sans-serif; }
.pc.note b { display: block; font-weight: 600; }
.pc.note i { width: 30px; height: 30px; border-radius: 9px; background: var(--clay); flex: none; }
.pc.blk { border: 1px solid var(--line-2); background: var(--ink-3); color: var(--paper-2); font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 8px; }
.pc.blk.hero-b { background: linear-gradient(135deg, rgba(95, 179, 161, .25), rgba(217, 119, 87, .28)); color: var(--paper); font: 600 15px/1.1 var(--head); letter-spacing: .04em; }
.pc.blk.photo { background: repeating-linear-gradient(135deg, rgba(240, 238, 230, .07) 0 8px, transparent 8px 16px), var(--ink-2); }
.pc.blk.wa { border-radius: 99px; background: var(--clay); color: var(--ink); border: 0; }
.pc.blk.map { background: radial-gradient(circle at 60% 45%, var(--clay) 0 5px, transparent 6px), repeating-linear-gradient(0deg, transparent 0 13px, rgba(240, 238, 230, .08) 13px 14px), repeating-linear-gradient(90deg, transparent 0 13px, rgba(240, 238, 230, .08) 13px 14px), var(--ink-2); }
.pc.bub { display: block; max-width: 250px; padding: 10px 14px; border-radius: 18px; font: 400 13px/1.35 -apple-system, "Segoe UI", system-ui, sans-serif; text-align: left; justify-content: flex-start; }
.pc.bub.user { background: rgba(240, 238, 230, .9); color: var(--ink); border-bottom-left-radius: 6px; }
.pc.bub.agent { background: var(--clay); color: var(--ink); border-bottom-right-radius: 6px; }
.pc.bub.tool { background: transparent; color: var(--paper-2); border: 1px solid var(--line-2); font: 400 11.5px/1.3 var(--mono); }
.pc.bub.tool b { color: var(--patina); font-weight: 400; }
.pc.bub.done { background: rgba(95, 179, 161, .16); color: #bfe3d9; border: 1px solid rgba(95, 179, 161, .35); font: 700 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- sections ---------- */
section { padding: 120px var(--gutter); position: relative; }
.shead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.shead h2 { font-size: clamp(30px, 4.2vw, 62px); line-height: 1.04; margin-top: 18px; }
.shead p { color: var(--paper-2); max-width: 480px; justify-self: end; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; padding: 26px 24px 40px; min-height: 300px; display: flex; flex-direction: column; background: rgba(240, 238, 230, .16); clip-path: var(--shape); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.card::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: rgba(28, 26, 24, .96); clip-path: var(--shape); }
.card .k { font: 400 11px/1 var(--mono); letter-spacing: .12em; color: var(--clay); }
.card h3 { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.1; margin-top: 16px; }
.card p { color: var(--paper-2); font-size: 14px; margin-top: 14px; }
.card .ex { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: var(--muted); }
.card .ex b { color: var(--paper); font-weight: 400; }
.band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 90px; }
.band h2 { font-size: clamp(30px, 4vw, 58px); line-height: 1.04; margin-top: 18px; }
.band h2 span { color: var(--clay); }
.band p { color: var(--paper-2); }
.band.solo { grid-template-columns: 1fr; }
.band.solo h2 { font-size: clamp(34px, 5.4vw, 84px); max-width: 16ch; }
.band .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ex3 { display: grid; gap: 12px; }
.ex3 .e { padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(240, 238, 230, .02); }
.ex3 .e h3 { font-size: 17px; }
.ex3 .e p { font-size: 14px; margin-top: 8px; }
.inc { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.inc li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 10px; color: var(--paper-2); }
.inc li:nth-child(odd) { padding-right: 40px; }
.inc li b { color: var(--clay); font-weight: 400; }
.promises { border-top: 1px solid var(--line); }
.prom { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.prom h3 { font-size: clamp(21px, 2.3vw, 32px); line-height: 1.1; }
.prom p { color: var(--paper-2); max-width: 560px; }
.faq { border-top: 1px solid var(--line); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 26px 0; font: 500 clamp(17px, 1.7vw, 22px)/1.25 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--clay); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--paper-2); padding: 0 0 28px; max-width: 70ch; }
.final { padding: 150px var(--gutter) 90px; text-align: center; }
.final h2 { font-size: clamp(34px, 5.6vw, 92px); line-height: 1.02; max-width: 1200px; margin: 22px auto 0; }
.final h2 span { color: var(--clay); }
.final .sub { color: var(--paper-2); margin: 26px auto 0; max-width: 560px; }
.final .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 48px; }
.more a { color: var(--paper-2); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; font-size: 13px; transition: color .2s, border-color .2s; }
.more a:hover { color: var(--clay); border-color: var(--clay); }
footer { padding: 34px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--clay); }

/* the assistant, one tap away (opens it on the home page) */
.ask { visibility: hidden; position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 85; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 10px; border-radius: 99px; background: var(--clay); color: var(--ink); font: 700 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .65); transform: translateY(160%); transition: transform .6s cubic-bezier(.2, .9, .1, 1), background .2s, visibility 0s .6s; }
.ask.on { transform: none; visibility: visible; transition: transform .6s cubic-bezier(.2, .9, .1, 1), background .2s, visibility 0s; }   /* hidden ones take no keyboard focus */
.ask:hover { background: var(--clay-2); }
.ask svg { width: 30px; height: 30px; flex: none; }
@media (max-width: 560px) { .ask .t { display: none; } .ask { padding: 10px; } }

/* words build in as they come into view */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.on { opacity: 1; transform: none; }

/* our pointer (fine pointers only): the logo's gyroscope */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor .pc { cursor: none; }
.cursor { opacity: 0; position: fixed; left: 0; top: 0; z-index: 200; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; display: none; transition: width .2s, height .2s, margin .2s; }
.has-cursor .cursor { display: block; }
.cursor.on { opacity: 1; }
.cursor svg { width: 100%; height: 100%; }
.cursor.big { width: 58px; height: 58px; margin: -29px 0 0 -29px; }

/* the gravity switch: while everything is falling, nothing else answers, and nothing eases behind the physics */
.falling .fall { will-change: transform; transition: none !important; }
/* the pieces stay unseen until the script has measured them, and until the stage comes into view */
.stage:not(.ready) .pc, .stage.waiting .pc { visibility: hidden; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .stage { height: 500px; min-height: 0; }
  .shead, .band { grid-template-columns: 1fr; }
  .shead p { justify-self: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inc { grid-template-columns: 1fr; } .inc li:nth-child(odd) { padding-right: 0; }
  .prom { grid-template-columns: 1fr; gap: 10px; }
  section { padding-block: 90px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .stage { height: 480px; }
  .pc.tile { width: 70px; height: 70px; border-radius: 18px; font-size: 9.5px; }
  .pc.tile i { width: 22px; height: 22px; }
  .pc.note { width: 210px; }
  .pc.bub { max-width: 220px; font-size: 12px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .round[aria-pressed="true"] .eq i { animation: none; transform: scaleY(.6); }
  .stagebar { display: none; }   /* nothing to grab or scramble when nothing moves */
}
