/* =========================================================================
   ALTA VITA — sistema visual
   Retícula de 12 columnas, blanco dominante, azul #2B4CFF solo como acento.
   Tipografía: Geist (titulares y texto), Newsreader itálica (acento editorial),
   Geist Mono (datos técnicos, índices).
   Diseño de un solo tema claro por decisión de marca (blanco dominante).
   ========================================================================= */

:root {
  --blue: #2B4CFF;
  --blue-press: #1E39E0;
  --blue-wash: #EEF1FF;
  --white: #FFFFFF;
  --ink: #111111;
  --mute: #64748B;
  --alt: #F7F9FC;
  --line: #E5EAF2;
  --line-strong: #CBD3E1;
  --sky: #013A71;          /* cielo de la fotografía del hero */
  --on-photo: #FFFFFF;

  --f-sans: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.5rem, 1.35rem + 4.6vw, 5.25rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem);
  --fs-h3: clamp(1.2rem, 1.08rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.05rem, .98rem + .35vw, 1.28rem);
  --fs-serif-lead: clamp(1.45rem, 1.1rem + 1.4vw, 2.35rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --section: clamp(72px, 9vw, 144px);
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
em.serif, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: var(--white); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.section--alt { background: var(--alt); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
.label--plain::before { display: none; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.lead { font-size: var(--fs-lead); color: var(--mute); line-height: 1.55; max-width: 58ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--r-md);
  font-size: .95rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .ic-ne { transform: translate(2px, -2px); }
.btn:hover .ic-e { transform: translateX(3px); }
.btn--blue { --bg: var(--blue); --fg: var(--white); --bd: var(--blue); }
.btn--blue:hover { --bg: var(--blue-press); --bd: var(--blue-press); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--white { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--white:hover { --bg: #E9EDF5; --bd: #E9EDF5; }
.btn--onphoto { --bg: rgba(255,255,255,.08); --fg: var(--white); --bd: rgba(255,255,255,.42); backdrop-filter: blur(6px); }
.btn--onphoto:hover { --bg: rgba(255,255,255,.16); --bd: var(--white); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.link-arrow .ic { width: 16px; height: 16px; color: var(--blue); transition: transform .35s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover .ic { transform: translateX(3px); }

.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo__mark { width: 30px; height: auto; color: var(--blue); flex: none; }
.logo__word { font-weight: 600; font-size: 1.02rem; letter-spacing: .24em; line-height: 1; padding-top: 1px; white-space: nowrap; }

/* ---------- header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .35s var(--ease); }
.header.is-scrolled .header__in { height: 64px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__list { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__link {
  position: relative; display: inline-block; padding-block: 8px;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #3B4556;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }
.btn-contact {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 16px;
  background: var(--blue); color: var(--white); border-radius: var(--r-md);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-contact .ic { width: 15px; height: 15px; stroke-width: 2; transition: transform .35s var(--ease); }
.btn-contact:hover { background: var(--blue-press); box-shadow: 0 6px 18px -8px rgba(43,76,255,.7); }
.btn-contact:hover .ic { transform: translate(2px, -2px); }
.btn-contact[aria-current="page"] { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-md); border: 1px solid var(--line); }
.burger span { position: relative; display: block; width: 18px; height: 1.5px; background: var(--ink); transition: background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--white);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav__list { display: grid; border-top: 1px solid var(--line); }
.mnav__list a {
  display: flex; align-items: baseline; justify-content: space-between; padding-block: 18px; border-bottom: 1px solid var(--line);
  font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 500; letter-spacing: -.03em;
  transform: translateY(10px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.mnav.is-open .mnav__list a { transform: none; opacity: 1; }
.mnav.is-open .mnav__list li:nth-child(2) a { transition-delay: .04s; }
.mnav.is-open .mnav__list li:nth-child(3) a { transition-delay: .08s; }
.mnav.is-open .mnav__list li:nth-child(4) a { transition-delay: .12s; }
.mnav__list a[aria-current="page"] { color: var(--blue); }
.mnav__foot { margin-top: auto; display: grid; gap: 16px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 901px) { .mnav { display: none; } }

/* ---------- views / page transitions ---------- */
.view { animation: viewIn .7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Revelado al hacer scroll: solo donde el navegador lo soporta.
   Sin soporte, el contenido está visible desde el inicio. */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes reveal { from { opacity: .001; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* ---------- HERO ---------- */
.hero { padding-top: 8px; }
.hero__frame {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: var(--sky); color: var(--on-photo);
  min-height: clamp(560px, 80vh, 860px);
  display: grid;
}
/* La foto se ancla a la derecha; el fondo del marco es el mismo azul del cielo,
   así la mitad izquierda queda libre para el titular sin superponerse al edificio. */
.hero__img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: 100%;
  object-fit: cover; object-position: 50% 28%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%);
  transform-origin: 70% 40%;
  animation: heroImg 2.4s var(--ease) both;
}
@keyframes heroImg { from { transform: scale(1.06); } to { transform: none; } }
.hero__content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-content: center;
  padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 80px);
}
.hero__title { grid-column: 1 / span 6; font-size: var(--fs-hero); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.hero__title .serif { display: block; font-size: 1.04em; letter-spacing: -.02em; }
.hero__aside { grid-column: 1 / span 5; display: grid; gap: 20px; padding-top: clamp(20px, 2.4vw, 32px); }
.hero__aside p { font-size: var(--fs-lead); line-height: 1.5; color: rgba(255,255,255,.82); max-width: 38ch; }
.hero__ctas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.5vw, 44px); }
.hero__title, .hero__aside, .hero__ctas { animation: rise 1s var(--ease) both; }
.hero__aside { animation-delay: .18s; }
.hero__ctas { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero__meta {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center;
  padding-block: 22px; border-bottom: 1px solid var(--line);
}
.hero__meta .triad { grid-column: 1 / span 8; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.hero__meta .triad span { display: inline-flex; align-items: center; gap: 22px; }
.hero__meta .triad span + span::before { content: "+"; color: var(--blue); font-weight: 400; letter-spacing: 0; }
.hero__meta .coords { grid-column: 9 / span 4; justify-self: end; color: var(--mute); }

@media (max-width: 900px) {
  .hero__frame { min-height: 0; grid-template-rows: auto minmax(300px, 52vh); }
  .hero__img { top: auto; bottom: 0; width: 100%; height: 64%; object-position: 50% 14%; }
  .hero__img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
  .hero__content { padding: 36px 22px 12px; row-gap: 20px; }
  .hero__title, .hero__aside, .hero__ctas { grid-column: 1 / -1; }
  .hero__aside { padding-top: 0; }
  .hero__ctas { margin-top: 4px; }
  .hero__meta .triad, .hero__meta .coords { grid-column: 1 / -1; justify-self: start; }
  .hero__meta { row-gap: 10px; }
}
@media (max-width: 480px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* ---------- PRESENTACIÓN ---------- */
.intro__head { align-items: start; row-gap: 24px; }
.intro__head .label { grid-column: 1 / span 3; padding-top: 14px; }
.intro__head h2 { grid-column: 4 / span 9; font-size: var(--fs-h2); }
.intro__body { margin-top: clamp(48px, 6vw, 96px); align-items: start; row-gap: 40px; }
.intro__photo { grid-column: 1 / span 7; position: relative; }
.intro__photo .ph { aspect-ratio: 4 / 4.6; }
.intro__photo figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; color: var(--mute); }
.intro__text { grid-column: 9 / span 4; display: grid; gap: 28px; padding-top: clamp(0px, 4vw, 64px); }
.intro__text p.serif-lead { font-family: var(--f-serif); font-size: var(--fs-serif-lead); line-height: 1.2; letter-spacing: -.015em; font-weight: 400; }
.intro__text p { color: var(--mute); }
.equation { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.equation li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding-block: 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.equation .op { font-family: var(--f-mono); color: var(--blue); font-size: 1rem; }
.equation strong { font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; }
.equation small { grid-column: 2; color: var(--mute); font-size: var(--fs-small); line-height: 1.5; }
.intro__small { grid-column: 9 / span 4; margin-top: -8px; }
.intro__small .ph { aspect-ratio: 4 / 3; }

.ph { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--alt); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

@media (max-width: 900px) {
  .intro__head .label, .intro__head h2, .intro__photo, .intro__text, .intro__small { grid-column: 1 / -1; }
  .intro__head .label { padding-top: 0; }
}

/* ---------- section head ---------- */
.shead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.shead > div { display: grid; gap: 18px; max-width: 760px; min-width: 0; }
.shead h2 { font-size: var(--fs-h2); }

/* ---------- SERVICIOS DESTACADOS (tarjetas fotográficas) ---------- */
.fcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.fcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: clamp(260px, 25vw, 340px);
  overflow: hidden; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), box-shadow .4s var(--ease);
  isolation: isolate;
}
.fcard__img { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; z-index: -1; overflow: hidden; }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.fcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,.7) 16%, rgba(255,255,255,0) 46%); }
.fcard__body { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(22px, 2.6vw, 36px); max-width: 50%; }
.fcard__body h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -.03em; }
.fcard__body p { color: var(--mute); font-size: .95rem; line-height: 1.5; margin-top: 12px; }
.fcard:hover { border-color: var(--line-strong); box-shadow: 0 24px 48px -32px rgba(17,17,17,.35); }
.fcard:hover .fcard__img img { transform: scale(1.045); }
.fcard:hover .link-arrow { background-size: 100% 1px; }
.fcard:hover .link-arrow .ic { transform: translateX(3px); }
.fcard .stretch::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 900px) {
  .fcards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .fcard { min-height: 0; }
  .fcard__img { position: relative; width: 100%; height: 200px; grid-row: 1; z-index: 0; }
  .fcard__img::after { background: none; }
  .fcard__body { max-width: none; }
}

/* ---------- TECNOLOGÍA ---------- */
.tech { align-items: center; row-gap: 48px; }
.tech__text { grid-column: 1 / span 5; display: grid; gap: 24px; }
.tech__text h2 { font-size: var(--fs-h2); }
.tech__feats { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.tech__feat {
  display: grid; grid-template-columns: 36px 1fr 20px; gap: 12px; align-items: start; text-align: left;
  padding: 18px 4px; border-bottom: 1px solid var(--line); transition: color .25s;
}
.tech__feat .mono { color: var(--mute); padding-top: 3px; transition: color .25s; }
.tech__feat strong { font-weight: 500; font-size: 1.05rem; display: block; }
.tech__feat span.t { display: block; color: var(--mute); font-size: .92rem; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .35s, margin .35s; }
.tech__feat .ic { color: var(--line-strong); margin-top: 3px; transition: color .25s, transform .35s var(--ease); }
.tech__feat[aria-selected="true"] .mono, .tech__feat[aria-selected="true"] .ic { color: var(--blue); }
.tech__feat[aria-selected="true"] .ic { transform: rotate(-45deg); }
.tech__feat[aria-selected="true"] span.t { max-height: 80px; opacity: 1; margin-top: 6px; }
.tech__feat:hover strong { color: var(--blue); }
.tech__note { display: flex; gap: 10px; align-items: start; font-size: .85rem; color: var(--mute); }
.tech__note .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--blue); }

.stage {
  grid-column: 7 / span 6; position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--alt); min-height: 640px; display: grid; place-items: center; padding: 48px 24px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
.stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(247,249,252,0) 0%, var(--alt) 100%); pointer-events: none; }
.stage__tag { position: absolute; z-index: 2; left: 20px; top: 18px; color: var(--mute); }
.stage__dim { position: absolute; z-index: 2; right: 20px; bottom: 18px; color: var(--mute); }
.phone {
  position: relative; z-index: 1; width: 300px; max-width: 100%; aspect-ratio: 300 / 620;
  border-radius: 46px; background: #0E0F12; padding: 11px;
  box-shadow: 0 0 0 1.5px #2A2C31, 0 50px 90px -40px rgba(17,17,17,.55), 0 20px 40px -30px rgba(43,76,255,.35);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: 20px; background: #0E0F12; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; font-size: 12px; line-height: 1.4; }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; height: 46px; font-weight: 600; font-size: 12px; }
.sbar i { display: inline-block; width: 22px; height: 10px; border: 1.2px solid var(--ink); border-radius: 3px; position: relative; }
.sbar i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--ink); border-radius: 1px; }
.apphead { padding: 14px 18px 12px; display: flex; justify-content: space-between; align-items: center; }
.apphead .logo__mark { width: 22px; }
.apphead small { display: block; color: var(--mute); font-size: 10.5px; }
.apphead b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--alt); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--mute); }
.appbody { flex: 1; padding: 4px 14px 10px; display: grid; gap: 10px; align-content: start; overflow: hidden; animation: screenIn .5s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.apptitle { font-size: 20px; font-weight: 600; letter-spacing: -.03em; padding: 2px 4px 2px; }
.acard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; background: var(--white); }
.acard--blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.acard--blue .am { color: rgba(255,255,255,.75); }
.am { color: var(--mute); font-size: 10.5px; }
.arow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chip { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; background: var(--alt); color: var(--ink); border: 1px solid var(--line); }
.chip--blue { background: var(--blue-wash); color: var(--blue); border-color: transparent; }
.chip--ok { background: #E8F6EE; color: #1B7A47; border-color: transparent; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days span { display: grid; place-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; font-size: 10px; color: var(--mute); }
.days span b { font-size: 13px; color: var(--ink); font-weight: 600; }
.days span.on { background: var(--ink); color: rgba(255,255,255,.7); }
.days span.on b { color: var(--white); }
.abtn { display: grid; place-items: center; height: 38px; border-radius: 12px; background: var(--blue); color: var(--white); font-weight: 600; font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.steps span { height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--blue); }
.photo-slot { height: 92px; border-radius: 12px; border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--mute); font-size: 11px; background: var(--alt); }
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); padding: 8px 6px 18px; }
.tabbar span { display: grid; place-items: center; gap: 3px; font-size: 9px; color: var(--mute); }
.tabbar span i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid currentColor; }
.tabbar span.on { color: var(--blue); }
.big { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.meter { height: 6px; border-radius: 6px; background: var(--alt); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.meter--thin { height: 4px; }
.meter--thin i { background: var(--blue-wash); box-shadow: inset 0 0 0 1px rgba(43,76,255,.25); }
.spend { display: grid; gap: 4px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.kpi b { font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.kpi .up { font-size: 10px; font-weight: 600; color: #1B7A47; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 74px; margin-top: 4px; }
.bars span { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; font-size: 9px; color: var(--mute); text-align: center; }
.bars i { display: block; border-radius: 4px 4px 2px 2px; background: var(--blue-wash); }
.bars span.on { color: var(--blue); font-weight: 600; }
.bars span.on i { background: var(--blue); }
.bubble { max-width: 84%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--alt); border: 1px solid var(--line); font-size: 11px; line-height: 1.4; }
.bubble--me { justify-self: end; background: var(--blue); border-color: var(--blue); color: var(--white); border-radius: 14px 14px 4px 14px; }
.bubble__cta { display: block; margin-top: 6px; color: var(--blue); font-weight: 600; }
.ainput { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 5px 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--mute); font-size: 11px; }
.ainput b { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: var(--white); display: grid; place-items: center; }
.ainput .ic { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .tech__text, .stage { grid-column: 1 / -1; }
  .stage { min-height: 560px; }
}
@media (max-width: 380px) { .phone { width: 260px; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--sky); color: var(--white); isolation: isolate; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: center 40%; transition: transform 2s var(--ease); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(1,30,66,.92) 0%, rgba(1,40,90,.72) 45%, rgba(1,40,90,.15) 100%); }
.cta__in { padding: clamp(48px, 8vw, 128px) clamp(24px, 6vw, 88px); display: grid; gap: 32px; max-width: 900px; }
.cta h2 { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.6rem); font-weight: 400; letter-spacing: -.035em; }
.cta p { color: rgba(255,255,255,.8); font-size: var(--fs-lead); max-width: 48ch; }
.cta:hover img { transform: scale(1.03); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); margin-top: var(--section); padding-block: 64px 32px; }
.footer__top { row-gap: 40px; }
.footer__brand { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.footer__brand p { color: var(--mute); max-width: 40ch; font-size: .95rem; }
.footer__col { grid-column: span 2; display: grid; gap: 12px; align-content: start; font-size: .95rem; }
.footer__col h4 { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.footer__col a { width: fit-content; transition: color .2s; }
.footer__col a:hover { color: var(--blue); }
.footer__col .pending { color: var(--mute); }
.footer__col--wide { grid-column: span 3; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .82rem; color: var(--mute); }
@media (max-width: 900px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 6; }
}

/* ---------- PAGE HEAD (interiores) ---------- */
.phead { padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 72px); }
.phead .grid12 { align-items: end; row-gap: 24px; }
.phead__title { grid-column: 1 / span 8; display: grid; gap: 24px; }
.phead h1 { font-size: var(--fs-h1); letter-spacing: -.04em; font-weight: 500; }
.phead h1 .serif { font-weight: 400; }
.phead__aside { grid-column: 9 / span 4; }
@media (max-width: 900px) { .phead__title, .phead__aside { grid-column: 1 / -1; } }

/* ---------- SERVICIOS (página) ---------- */
.catnav { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.catnav ul { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.catnav a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 500; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.catnav a .mono { color: var(--mute); }
.catnav a:hover { border-color: var(--ink); }
.catnav a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.catnav a.is-active .mono { color: rgba(255,255,255,.6); }

.cat { padding-block: clamp(56px, 7vw, 112px) 0; scroll-margin-top: 140px; }
.cat__head { align-items: end; row-gap: 16px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.cat__head .mono { grid-column: 1 / span 2; color: var(--blue); padding-bottom: 8px; }
.cat__head h2 { grid-column: 3 / span 6; font-size: var(--fs-h2); }
.cat__head p { grid-column: 9 / span 4; color: var(--mute); }
@media (max-width: 900px) { .cat__head .mono, .cat__head h2, .cat__head p { grid-column: 1 / -1; } }

.scards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); grid-auto-flow: dense; }
.scard {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-align: left;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); width: 100%;
  transition: border-color .3s, box-shadow .4s var(--ease);
}
.scard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--alt); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.scard__body { display: grid; gap: 14px; padding: clamp(22px, 2.4vw, 32px); align-content: start; }
.scard__body h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); letter-spacing: -.03em; }
.scard__body p { color: var(--mute); font-size: .95rem; line-height: 1.55; }
.scard__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.scard__plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.scard:hover { border-color: var(--line-strong); box-shadow: 0 28px 56px -38px rgba(17,17,17,.4); }
.scard:hover .scard__img img { transform: scale(1.045); }
.scard:hover .scard__plus { background: var(--blue); color: var(--white); border-color: var(--blue); transform: rotate(90deg); }
.scard--wide { grid-column: span 2; grid-template-columns: 1.45fr 1fr; grid-template-rows: none; }
.scard--wide .scard__img { aspect-ratio: auto; min-height: 380px; }
.scard--wide .scard__body { align-content: center; padding: clamp(28px, 3.6vw, 56px); }
.scard--wide .scard__body h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
@media (max-width: 860px) {
  .scards { grid-template-columns: minmax(0, 1fr); }
  .scard--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .scard--wide .scard__img { aspect-ratio: 16 / 10; min-height: 0; }
}

/* dialog */
dialog.sheet {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(17,17,17,.5); overflow: auto;
}
dialog.sheet::backdrop { background: rgba(10,14,28,.5); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: sheetIn .45s var(--ease) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet__img { aspect-ratio: 21 / 9; overflow: hidden; }
.sheet__img img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; }
.sheet__body h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -.03em; }
.sheet__body > p { color: var(--mute); }
.sheet__list { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.sheet__list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: .97rem; }
.sheet__list .ic { color: var(--blue); stroke-width: 2; width: 18px; height: 18px; margin-top: 2px; }
.sheet__note { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--alt); font-size: .88rem; color: #334155; }
.sheet__note .ic { color: var(--blue); width: 18px; height: 18px; margin-top: 1px; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.sheet__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(17,17,17,.15); z-index: 2; }
.sheet__close:hover { background: var(--white); }

/* ---------- CONTACTO ---------- */
.contact {
  min-height: calc(100dvh - var(--header-h));
  display: grid; place-items: center; padding-block: clamp(48px, 8vw, 112px);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--white);
  position: relative;
}
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 45%, var(--white) 40%, rgba(255,255,255,.6) 100%); pointer-events: none; }
.contact__card { position: relative; width: 100%; max-width: 520px; display: grid; gap: 28px; justify-items: center; text-align: center; }
.contact__logo { display: grid; justify-items: center; gap: 16px; }
.contact__logo .logo__mark { width: 64px; }
.contact__logo .logo__word { font-size: 1.15rem; }
.contact h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -.04em; }
.contact .lead { margin-inline: auto; font-size: 1.02rem; }
.clinks { width: 100%; display: grid; gap: 12px; text-align: left; }
.clink {
  display: grid; grid-template-columns: 48px 1fr 24px; gap: 16px; align-items: center; width: 100%;
  padding: 14px 18px 14px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white);
  transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.clink__ic { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); transition: background-color .25s, color .25s; }
.clink__ic .ic { width: 22px; height: 22px; }
.clink strong { display: block; font-weight: 500; font-size: 1.02rem; }
.clink small { display: block; color: var(--mute); font-size: .85rem; overflow-wrap: anywhere; }
.clink > .ic { color: var(--mute); transition: transform .35s var(--ease), color .25s; }
a.clink:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(43,76,255,.55); }
a.clink:hover .clink__ic { background: var(--blue); color: var(--white); }
a.clink:hover > .ic { color: var(--blue); transform: translate(2px, -2px); }
.clink[aria-disabled="true"] { cursor: default; background: var(--alt); }
.clink[aria-disabled="true"] .clink__ic { background: var(--white); color: var(--mute); border: 1px solid var(--line); }
.clink .tag { display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--white); border: 1px solid var(--line); color: var(--mute); vertical-align: 2px; }
.contact__foot { display: grid; gap: 6px; color: var(--mute); font-size: .85rem; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--r-md); font-size: .9rem;
  max-width: calc(100vw - 32px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { animation: none !important; }
}
