/* ═══════════════════════════════════════════════════════════════════
   QUITOWEB° — prueba «Apple» (rama prueba-apple-design, 1-nov-2026)

   Solo la carga el home (body.ap), DESPUÉS de styles.css: reescribe los
   tokens y pisa cabecera, menú y pie; las secciones del <main> usan
   clases propias (ap-*). Si la prueba no convence, se borra este archivo
   y se revierte index.html; el resto del sitio no se entera.

   Dirección (skill apple-design, WWDC «Designing Fluid Interfaces»)
   Superficies  blanco #FFF y gris #F5F5F7; una sola zona negra (AndesIA)
   Tinta        #1D1D1F, gris #6E6E73
   Acción       bermellón QuitoWeb #C8452B en píldoras; enlaces en #B23A22
   Tipo         la fuente del sistema (SF Pro en Apple; Geist si no hay)
                titulares 600, tracking negativo según tamaño, leading corto
   Formas       baldosas de 28 px de radio, píldoras de 980 px
   Material     cabecera translúcida con blur + saturación; nada de bordes
   Movimiento   respuesta al presionar (scale .97 en pointer-down),
                entradas con curva de resorte críticamente amortiguado
                (sin rebote), nada que no se pueda interrumpir
   Accesible    reduce-motion = fundido sin desplazamiento;
                reduce-transparency = cabecera sólida; contraste alto = bordes
   ═══════════════════════════════════════════════════════════════════ */

body.ap {
  --ground: #FFFFFF;
  --surface: #F5F5F7;
  --surface-2: #E8E8ED;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --rule: rgba(0, 0, 0, .1);
  --rule-strong: rgba(0, 0, 0, .2);
  --accent: #C8452B;
  --accent-text: #B23A22;
  --accent-hover: #B23A22;

  --f-sys: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;  /* lo que no se pisa a propósito conserva la serif de la casa */
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;  /* la voz de la casa: logo, palabra viva, menú, marca de agua */
  --f-body: var(--f-sys);

  /* resortes traducidos a CSS: damping 1.0 (sin rebote), response ~.5 s */
  --spring: cubic-bezier(.22, 1, .36, 1);
  --press: 120ms;
  --r-tile: 28px;
  --r-small: 18px;
  --ap-max: 1120px;

  font-family: var(--f-body);
  font-size: 17px; line-height: 1.47; letter-spacing: -.022em;
  background: var(--ground); color: var(--text);
}
.ap ::selection { background: rgba(200, 69, 43, .18); color: inherit; }
.ap :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ap h1, .ap h2, .ap h3, .ap h4 { font-family: var(--f-sys); font-weight: 600; }
.ap em { font-style: normal; }

.ap-wrap { width: 100%; max-width: calc(var(--ap-max) + 2 * clamp(20px, 4vw, 44px)); margin-inline: auto; padding-inline: clamp(20px, 4vw, 44px); }

/* ── Tipografía: tracking y leading por tamaño ─────────────────── */
.ap-eyebrow {
  font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); font-weight: 600; letter-spacing: -.01em;
  color: var(--accent-text); line-height: 1.2;
}
.ap-hero-title, .ap-h1 {
  font-size: clamp(3rem, 1.6rem + 6.4vw, 6rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 700;
  text-wrap: balance;
}
.ap-h2 {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 700;
  text-wrap: balance;
}
.ap-h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; }
.ap-lead {
  font-size: clamp(1.15rem, 1.02rem + .55vw, 1.6rem); line-height: 1.38; letter-spacing: -.018em;
  color: var(--muted); font-weight: 400; text-wrap: pretty;
}
.ap-lead b, .ap-lead strong { color: var(--text); font-weight: 600; }
.ap-accent { color: var(--accent); }
.ap-center { text-align: center; margin-inline: auto; }
.ap-small { font-size: .82rem; line-height: 1.4; letter-spacing: -.01em; color: var(--muted); }

/* ── Botones: píldoras con respuesta en pointer-down ───────────── */
.ap .btn, .ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 48px; padding: 12px 24px; border-radius: 980px;
  font-family: var(--f-body); font-size: 1.02rem; font-weight: 500; letter-spacing: -.015em;
  border: 1px solid transparent;
  transition: background-color 200ms var(--spring), color 200ms var(--spring), border-color 200ms var(--spring), transform 240ms var(--spring);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ap .btn:active, .ap-btn:active, .ap-tile--link:active, .ap-pressable:active {
  transform: scale(.97); transition-duration: var(--press);
}
.ap .btn--gold, .ap-btn--fill { background: var(--accent); color: #fff; }
.ap .btn--gold:hover, .ap-btn--fill:hover { background: var(--accent-hover); }
.ap .btn--line, .ap-btn--ghost { background: transparent; color: var(--accent-text); border-color: currentColor; }
.ap .btn--line:hover, .ap-btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ap-btn--light { background: #fff; color: var(--text); }
.ap-btn--light:hover { background: #F5F5F7; }
.ap-btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.ap-btn--onDark:hover { background: #fff; color: #000; border-color: #fff; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ap-actions--center { justify-content: center; }

.ap-link {
  display: inline-flex; align-items: center; gap: .2em;
  color: var(--accent-text); font-weight: 400; font-size: 1.05rem; letter-spacing: -.015em;
}
.ap-link::after { content: "›"; font-size: 1.25em; line-height: 0; translate: 0 -.04em; transition: translate 240ms var(--spring); }
.ap-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ap-link:hover::after { translate: 3px -.04em; }
.ap-dark .ap-link { color: #FF8A65; }

/* ── Cabecera: material translúcido, el contenido pasa por debajo ── */
.ap .site-header {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none;
}
.ap .site-header::after {  /* borde de escena: aparece solo cuando hay contenido debajo */
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(0,0,0,.08);
  opacity: 0; transition: opacity 240ms var(--spring);
}
.ap .site-header.scrolled { background: rgba(255, 255, 255, .78); box-shadow: none; }
.ap .site-header.scrolled::after { opacity: 1; }
.ap .nav { height: 56px; gap: 1.5rem; max-width: calc(var(--ap-max) + 2 * clamp(20px, 4vw, 44px)); padding-inline: clamp(20px, 4vw, 44px); }
.ap .logo { font-family: var(--f-serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -.01em; }
.ap .logo .deg { color: var(--accent); }
.ap .nav-links { gap: clamp(1rem, 2vw, 1.8rem); }
.ap .nav-links a, .ap .nav-drop-btn { font-size: .8rem; letter-spacing: -.005em; color: rgba(0,0,0,.8); }
.ap .nav-links a:hover, .ap .nav-drop-btn:hover { color: var(--accent-text); }
.ap .nav-cta .btn { min-height: 34px; padding: 6px 15px; font-size: .8rem; }
.ap .lang-switch a { font-size: .78rem; }
.ap .nav-panel {
  border-radius: var(--r-small); border: 0;
  /* 2-nov-2026: fondo opaco. El panel vive dentro de la cabecera, que ya tiene backdrop-filter;
     en Chrome y Safari el blur anidado no toma el fondo de la página y el texto de atrás se leía. */
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05);
  transform-origin: top center;
}
.ap .nav-links .nav-panel a { border-radius: 12px; }
/* 8-nov-2026: el panel de Servicios tiene tres grupos (Atender y vender, Proyectos a medida, Presencia digital) */
.ap .nav-panel:has(> .nav-panel-col:nth-child(3)) { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.ap .nav-links .nav-panel a:hover { background: rgba(0,0,0,.045); }
.ap .nav-panel-tag { letter-spacing: 0; text-transform: none; font-size: .78rem; font-weight: 600; color: var(--muted); }

.ap .mobile-menu { background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.ap .mobile-menu nav { border-top: 0; }
.ap .mobile-menu nav a { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.015em; border-bottom: 0; font-size: clamp(1.9rem, 7.6vw, 2.7rem); }
.ap .mobile-menu nav a.mm-sub { font-size: clamp(1.5rem, 5.8vw, 2.1rem); padding-block: .3rem; }
.ap .mobile-menu nav .mm-tag { letter-spacing: 0; text-transform: none; font-size: .85rem; font-weight: 600; }

/* barra de promo: tira gris como la de apple.com */
.ap .promo-bar { background: #F5F5F7; color: var(--text); font-size: .82rem; letter-spacing: -.01em; }
.ap .promo-bar b { color: var(--accent-text); }
.ap .promo-bar .pb-go { color: var(--accent-text); text-decoration: none; }
.ap .promo-bar:hover .pb-go { text-decoration: underline; color: var(--accent-text); }

/* ── Entradas: resorte sin rebote, desde donde esté ────────────── */
html.js .ap [data-io] {
  opacity: 0; transform: translateY(28px) scale(.985);
  transition: opacity 700ms var(--spring), transform 900ms var(--spring);
  transition-delay: var(--d, 0s);
}
html.js .ap [data-io].in { opacity: 1; transform: none; }

/* ── Secciones ─────────────────────────────────────────────────── */
.ap-section { padding-block: clamp(80px, 11vw, 150px); }
.ap-section--tight { padding-block: clamp(56px, 7vw, 96px); }
.ap-gray { background: var(--surface); }
.ap-dark { background: #000; color: #F5F5F7; --muted: #A1A1A6; }
.ap-head { max-width: 860px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; display: grid; gap: 18px; justify-items: center; }
.ap-head .ap-lead { max-width: 40ch; }

/* ── Hero ──────────────────────────────────────────────────────── */
.ap-hero { padding-top: clamp(120px, 14vw, 170px); padding-bottom: 0; text-align: center; overflow: clip; }
.ap-hero .ap-tagline { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: -.01em; margin-bottom: 18px; }
.ap-hero .ap-hero-title { margin-inline: auto; max-width: 13ch; }
.ap-hero .ap-lead { max-width: 36ch; margin: 24px auto 0; }
.ap-hero .ap-actions { margin-top: 36px; justify-content: center; }
.ap-hero-note { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; text-align: left; max-width: 52ch; }
.ap-hero-note img { height: 34px; width: auto; flex: none; }

.ap-stage { position: relative; margin-top: clamp(56px, 7vw, 88px); display: grid; justify-items: center; }
.ap-stage::before {  /* luz suave detrás del teléfono */
  content: ""; position: absolute; z-index: 0; inset: 12% 10% -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(200, 69, 43, .16), rgba(224, 122, 63, .07) 45%, transparent 72%);
  filter: blur(10px);
}
.ap-phone {
  position: relative; z-index: 1; width: min(380px, 88vw);
  padding: 11px; border-radius: 56px; background: #1D1D1F;
  box-shadow: 0 0 0 1.5px #3A3A3C inset, 0 50px 100px -30px rgba(0,0,0,.45), 0 30px 60px -40px rgba(200,69,43,.5);
}
.ap-phone::before {  /* isla */
  content: ""; position: absolute; z-index: 3; top: 22px; left: 50%; translate: -50% 0;
  width: 110px; height: 30px; border-radius: 20px; background: #000;
}
.ap .ap-phone .chat-device { width: 100%; border: 0; border-radius: 46px; background: #0B0B0C; padding-top: 44px; min-height: 640px; }
.ap .ap-phone .chat-head { background: transparent; border-bottom-color: rgba(255,255,255,.08); }
.ap .ap-phone .chat-avatar { font-family: var(--f-sys); font-weight: 600; font-size: 1rem; }
.ap .ap-phone .msg { border-radius: 20px; font-size: .92rem; letter-spacing: -.01em; }
.ap .ap-phone .msg--in { background: #262628; border-bottom-left-radius: 6px; }
.ap .ap-phone .msg--out { background: #0A5C45; border: 0; border-bottom-right-radius: 6px; }
.ap .ap-phone .msg .meta { letter-spacing: 0; text-transform: none; font-size: .7rem; opacity: .8; }
.ap-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
  padding: 10px 16px; border-radius: 980px; font-size: .88rem; font-weight: 500; letter-spacing: -.01em;
  background: rgba(255,255,255,.7); color: var(--text);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.05);
}
.ap-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #30D158; }
.ap-chip--l { top: 22%; left: max(2%, calc(50% - 420px)); }
.ap-chip--r { top: 52%; right: max(2%, calc(50% - 420px)); }
@media (max-width: 720px) { .ap-chip { display: none; } }

/* ── Franja de clientes (sin marquesina) ───────────────────────── */
.ap-logos { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 72px); background: var(--surface); text-align: center; }
.ap-logos p { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.ap-logos ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.ap-logos li { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); font-weight: 600; letter-spacing: -.03em; color: #86868B; }

/* ── Baldosas ──────────────────────────────────────────────────── */
.ap-tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--ground); border-radius: var(--r-tile); padding: clamp(28px, 3.4vw, 44px);
  overflow: hidden; isolation: isolate;
  transition: transform 300ms var(--spring), box-shadow 300ms var(--spring);
}
.ap-gray .ap-tile { background: #fff; }
.ap-section:not(.ap-gray):not(.ap-dark) .ap-tile { background: var(--surface); }
.ap-tile--link { cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
  .ap-tile--link:hover { box-shadow: 0 22px 50px -20px rgba(0,0,0,.18); transform: translateY(-2px); }
}
.ap-tile--link:active { transform: scale(.985); transition-duration: var(--press); }
.ap-tile .ap-kicker { font-size: .82rem; font-weight: 600; color: var(--accent-text); letter-spacing: -.005em; }
.ap-tile h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.ap-tile p { color: var(--muted); line-height: 1.45; }
.ap-tile .ap-price { margin-top: auto; padding-top: 14px; color: var(--text); font-size: .95rem; line-height: 1.4; }
.ap-tile .ap-price b { display: block; font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; }
.ap-tile .ap-price span { color: var(--muted); }
.ap-tile .ap-link { margin-top: 6px; }

/* servicios: rejilla tipo bento */
.ap-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.ap-bento > * { grid-column: span 2; }
.ap-bento > .ap-span-3 { grid-column: span 3; }
.ap-bento > .ap-span-4 { grid-column: span 4; }
.ap-bento > .ap-span-6 { grid-column: span 6; }
@media (max-width: 1000px) {
  .ap-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-bento > *, .ap-bento > .ap-span-3 { grid-column: span 1; }
  .ap-bento > .ap-span-4, .ap-bento > .ap-span-6 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .ap-bento { grid-template-columns: 1fr; gap: 14px; }
  .ap-bento > *, .ap-bento > .ap-span-3, .ap-bento > .ap-span-4, .ap-bento > .ap-span-6 { grid-column: auto; }
}
.ap-tile--hero { min-height: 420px; justify-content: flex-start; color: #F5F5F7; background: #000 !important; }
.ap-tile--hero p { color: #A1A1A6; }
.ap-tile--hero .ap-price, .ap-tile--hero .ap-price b { color: #fff; }
.ap-tile--hero .ap-price span { color: #A1A1A6; }
.ap-tile--hero .ap-kicker { color: #FF8A65; }
.ap-tile--hero .ap-link { color: #FF8A65; }
.ap-tile--hero::after {
  content: ""; position: absolute; z-index: -1; right: -12%; bottom: -30%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(200,69,43,.55), rgba(224,122,63,.15) 60%, transparent);
  filter: blur(20px);
}
.ap-tile--hero h3 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); max-width: 16ch; }

/* ── Caso destacado ────────────────────────────────────────────── */
.ap-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .ap-feature { grid-template-columns: 1fr; } }
.ap-feature .ap-lead { margin-top: 18px; }
.ap-used { display: grid; gap: 10px; margin: 28px 0; }
.ap-used a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 18px; border-radius: var(--r-small); background: var(--surface);
  transition: background-color 200ms var(--spring), transform 240ms var(--spring);
}
.ap-used a:hover { background: var(--surface-2); }
.ap-used a:active { transform: scale(.98); transition-duration: var(--press); }
.ap-used b { font-weight: 600; letter-spacing: -.02em; }
.ap-used span { color: var(--muted); font-size: .92rem; text-align: right; }
.ap-shot {
  display: block; position: relative; border-radius: var(--r-tile); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  transition: transform 400ms var(--spring), box-shadow 400ms var(--spring);
}
.ap-shot img { width: 100%; }
@media (hover: hover) { .ap-shot:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -40px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06); } }
.ap-shot:active { transform: scale(.985); transition-duration: var(--press); }
.ap-shot-url {
  position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 980px;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  font-size: .85rem; font-weight: 500; color: var(--text);
}

/* ── AndesIA (zona negra) ──────────────────────────────────────── */
.ap-dark .ap-h2 em { color: #FF8A65; }
.ap-powers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .ap-powers { grid-template-columns: 1fr; gap: 14px; } }
.ap-power { background: #1C1C1E; border-radius: var(--r-tile); padding: clamp(28px, 3.2vw, 40px); display: grid; gap: 12px; align-content: start; }
.ap-power svg { width: 40px; height: 40px; color: #FF8A65; }
.ap-power h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); letter-spacing: -.03em; line-height: 1.15; color: #F5F5F7; }
.ap-power p { color: #A1A1A6; }
.ap-dark .ap-actions { margin-top: clamp(40px, 5vw, 60px); justify-content: center; }
.ap-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 22px; }

/* ── Responsa ──────────────────────────────────────────────────── */
.ap-responsa {
  border-radius: var(--r-tile); overflow: hidden; color: #fff; position: relative; isolation: isolate;
  background: linear-gradient(140deg, #0B1E5B 0%, #12308F 55%, #1D47C9 100%);
  padding: clamp(36px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: end;
}
@media (max-width: 900px) { .ap-responsa { grid-template-columns: 1fr; } }
.ap-responsa .ap-kicker { color: #A9C1FF; font-weight: 600; font-size: .95rem; }
.ap-responsa h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.04em; margin-top: 12px; }
.ap-responsa h2 em { color: #A9C1FF; }
.ap-responsa p { color: rgba(255,255,255,.78); margin-top: 18px; font-size: 1.1rem; line-height: 1.45; }
.ap-responsa p b { color: #fff; font-weight: 600; }
.ap-responsa-side {
  background: rgba(255,255,255,.1); border-radius: 22px; padding: 28px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.ap-responsa-side .fig { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-top: 6px; }
.ap-responsa-side .fig small { font-size: .4em; font-weight: 500; letter-spacing: -.01em; color: rgba(255,255,255,.7); }
.ap-responsa-side .lbl { font-size: .85rem; color: rgba(255,255,255,.7); }
.ap-responsa-side ul { margin: 20px 0 24px; display: grid; gap: 8px; font-size: .98rem; }
.ap-responsa-side li::before { content: "✓"; margin-right: .6em; color: #A9C1FF; }

/* ── Portafolio ────────────────────────────────────────────────── */
.ap-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .ap-work { grid-template-columns: 1fr; } }
.ap-work .ap-tile { padding: 0; gap: 0; }
.ap-work .ap-tile img { width: 100%; aspect-ratio: 1200 / 788; object-fit: cover; }
.ap-work-body { padding: 26px 30px 32px; display: grid; gap: 10px; }
.ap-work-body .ap-small { font-weight: 500; }
.ap-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-stack li { font-size: .78rem; padding: 4px 11px; border-radius: 980px; background: rgba(0,0,0,.05); color: var(--muted); }

/* ── Método ────────────────────────────────────────────────────── */
.ap-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: paso; }
@media (max-width: 1000px) { .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ap-steps { grid-template-columns: 1fr; } }
.ap-step .ap-dur { font-size: .82rem; font-weight: 600; color: var(--accent-text); }
.ap-step h3 { font-size: 1.45rem; }
.ap-note { margin-top: 36px; text-align: center; }
.ap-note a { color: var(--accent-text); }
.ap-note a:hover { text-decoration: underline; }

/* ── Cifras ────────────────────────────────────────────────────── */
.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
@media (max-width: 900px) { .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
.ap-stat-num {
  font-size: clamp(3.4rem, 2.4rem + 4vw, 6rem); font-weight: 700; letter-spacing: -.06em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ap-stat-num sup { font-size: .45em; vertical-align: .9em; letter-spacing: -.02em; margin-left: .04em; }
.ap-stat-label { margin: 14px auto 0; max-width: 24ch; color: var(--muted); font-size: 1rem; line-height: 1.4; }

/* ── Clientes ──────────────────────────────────────────────────── */
.ap-clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .ap-clients { grid-template-columns: 1fr; } }

/* ── Quito ─────────────────────────────────────────────────────── */
.ap-quito { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .ap-quito { grid-template-columns: 1fr; } }
.ap-quito figure { border-radius: var(--r-tile); overflow: hidden; position: relative; }
.ap-quito figure img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.ap-quito figcaption { position: absolute; inset: auto 14px 14px 14px; padding: 10px 14px; border-radius: 14px; font-size: .78rem; color: var(--text);
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.ap-quito figcaption a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Cierre ────────────────────────────────────────────────────── */
.ap-cta { text-align: center; }
.ap-cta-who { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; text-align: left; max-width: 46ch; color: var(--muted); }
.ap-cta-who img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.ap-cta-who b { color: var(--text); font-weight: 600; }
.ap-cta .ap-lead { max-width: 38ch; margin: 22px auto 0; }
.ap-cta .ap-actions { margin-top: 34px; justify-content: center; }
.ap-cta .ap-small { margin-top: 20px; }

/* ── Pie: gris claro y letra chica, como apple.com ─────────────── */
.ap .site-footer { background: var(--surface); border-top: 0; font-size: .78rem; }
.ap .site-footer .wrap { max-width: calc(var(--ap-max) + 2 * clamp(20px, 4vw, 44px)); padding-inline: clamp(20px, 4vw, 44px); }
.ap .footer-grid { padding-block: 44px 36px; }
.ap .footer-brand p { font-size: .82rem; }
.ap .footer-col h2 { letter-spacing: -.005em; text-transform: none; font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.ap .footer-col a { font-size: .78rem; color: #424245; }
.ap .footer-col a:hover { color: var(--text); text-decoration: underline; }
.ap .footer-extra, .ap .footer-bottom { border-top-color: rgba(0,0,0,.1); }
.ap .footer-bottom { font-size: .75rem; }
.ap .footer-watermark { font-family: var(--f-serif); color: rgba(0, 0, 0, .05); }

/* ── Accesibilidad: movimiento, transparencia, contraste ────────── */
@media (prefers-reduced-motion: reduce) {
  html.js .ap [data-io] { transform: none !important; transition: opacity 200ms ease; }
  .ap .btn:active, .ap-btn:active, .ap-tile--link:active, .ap-shot:active, .ap-used a:active { transform: none; }
  .ap-tile--link:hover, .ap-shot:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .ap .site-header, .ap .site-header.scrolled, .ap .nav-panel, .ap .mobile-menu { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ap-chip, .ap-shot-url, .ap-quito figcaption { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ap-responsa-side { background: #0B1E5B; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .ap .site-header { background: #fff; box-shadow: 0 1px 0 #000; }
  .ap-tile, .ap-power, .ap-used a { box-shadow: 0 0 0 1.5px currentColor; }
  body.ap { --muted: #3A3A3C; }
}

/* ajustes tras la primera captura */
.ap h1 em, .ap h2 em, .ap .ap-h2 em, .ap .ap-responsa h2 em { font-weight: inherit; }
.ap-responsa-side .fig { color: #fff; }
.ap-quito .ap-h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
.ap-tile--hero .ap-price b span { color: #fff; }

/* ── Lo propio de QuitoWeb° dentro de la dirección Apple (2.ª pasada) ──
   La cordillera al pie del hero: AndesIA sale de detrás del Cotopaxi.
   La serif de la casa vuelve en una sola palabra viva por titular. */
.ap-hero { --andes-h: max(200px, 21vw); position: relative; }
.ap-andes {
  position: relative; z-index: 3; height: var(--andes-h);
  margin-top: calc(var(--andes-h) * -.9);  /* tapa el pie del teléfono: la cordillera va delante */
  pointer-events: none;
}
.ap-andes .andes { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap .andes-ridge { stroke: #1D1D1F; stroke-width: 1.2; }
.ap .andes-equator { stroke: #86868B; }
.ap .ap-andes-label {
  position: absolute; right: clamp(20px, 4vw, 44px); bottom: 10px; z-index: 4;
  font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #86868B;
}
.ap .ap-stage { padding-bottom: 0; }

/* la palabra viva: Instrument Serif en bermellón, contra el sans del sistema */
.ap .ap-accent, .ap .ap-h2 em, .ap .ap-responsa h2 em, .ap .ap-quito .ap-h1 em {
  font-family: var(--f-serif); font-weight: 400; font-style: normal;
  font-size: 1.1em; letter-spacing: -.01em; line-height: 0;
}
.ap .ap-quito .ap-h1 em { color: var(--accent); }
.ap .ap-tagline { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ap .ap-andes-label { font-size: .62rem; letter-spacing: .08em; } }
/* el teléfono crece lo justo para que la cumbre quede bajo el último mensaje, en cualquier ancho */
.ap .ap-phone .chat-device { min-height: 0; padding-bottom: calc(var(--andes-h) * .85); }

/* ═══════════════════════════════════════════════════════════════════
   CAPA GLOBAL — todas las páginas con body.ap (1-nov-2026)
   Mismas clases de styles.css, piel Apple: titulares sans en negrita con
   la palabra viva (<em>) en Instrument Serif bermellón, rótulos sin
   mayúsculas espaciadas, baldosas redondeadas en lugar de reglas finas,
   secciones «raised» en gris, la zona oscura en negro.
   No toca: Responsa (empresas.css), el chat flotante (andesia-chat.css).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Titulares ───────────────────────────────────────────────────── */
.ap .display-1, .ap .display-2, .ap .display-3,
.ap h1:not(.mono-tag):not(.ap-tagline), .ap h2, .ap h3 { font-family: var(--f-sys); text-wrap: balance; }
.ap .display-1, .ap h1:not(.mono-tag):not(.ap-tagline) { font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.ap .hero--sub .display-1, .ap .hero--sub h1:not(.mono-tag) { line-height: 1.03; letter-spacing: -.045em; max-width: 17ch; }
.ap .display-2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.07; }
.ap .display-3, .ap h3 { font-weight: 600; letter-spacing: -.022em; line-height: 1.18; }
.ap h2:not([class]) { font-weight: 700; letter-spacing: -.03em; }
.ap :is(.display-1, .display-2, .display-3, h1, h2, h3, .plan-name, .faq-q, .error-code) em {
  font-family: var(--f-serif); font-weight: 400; font-style: normal; color: var(--accent);
  font-size: 1.1em; letter-spacing: -.01em; line-height: 0;
}
.ap .ground-ink :is(.display-1, .display-2, .display-3, h1, h2, h3) em, .ap .ap-dark :is(h1, h2, h3) em { color: #FF8A65; }
.ap .lead { color: var(--muted); letter-spacing: -.016em; line-height: 1.4; }
.ap .lead a, .ap .prose a, .ap .legal-body a, .ap .form-hint a { color: var(--accent-text); text-decoration: none; }
.ap .lead a:hover, .ap .prose a:hover, .ap .legal-body a:hover, .ap .form-hint a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* rótulos: de etiqueta impresa a «eyebrow» de Apple */
.ap .mono-tag {
  font-family: var(--f-sys); font-size: 1rem; font-weight: 600; letter-spacing: -.01em;
  text-transform: none; color: var(--accent-text);
}
.ap .ground-ink .mono-tag { color: #FF8A65; }
.ap .sec-head .mono-tag, .ap .case-lead-copy .mono-tag { border-top: 0; padding-top: 0; margin-bottom: 4px; }
.ap .hero .mono-tag { margin-bottom: 4px; }
.ap .crumb { letter-spacing: -.005em; text-transform: none; font-size: .88rem; font-weight: 500; }
.ap .crumb a { color: var(--accent-text); }
.ap .crumb a:hover { text-decoration: underline; color: var(--accent-text); }

/* ── Secciones ───────────────────────────────────────────────────── */
.ap .section + .section { border-top: 0; }
.ap .section--raised { background: var(--surface); }
.ap .section--paper { background: transparent; }
.ap .ground-ink {
  --ground: #000; --surface: #1C1C1E; --surface-2: #2C2C2E;
  --text: #F5F5F7; --muted: #A1A1A6; --rule: rgba(255,255,255,.14); --rule-strong: rgba(255,255,255,.3);
  --accent: #E0613F; --accent-text: #FF8A65;
  background: #000;
}
.ap .hero { padding-top: clamp(8rem, 15vh, 10.5rem); }
.ap .eq { background: transparent; height: 0; }
.ap .marquee { border-block: 0; background: var(--surface); }

/* ── Enlaces con flecha: azul de acción → bermellón, sin subrayado ─ */
.ap .link-arrow { color: var(--accent-text); text-decoration: none; font-weight: 400; letter-spacing: -.015em; }
.ap .link-arrow:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.ap .ground-ink .link-arrow { color: #FF8A65; }
.ap .btn--jade { color: var(--accent-text); border-color: currentColor; }
.ap .ground-ink .btn--line, .ap .ground-ink .btn--jade { color: #fff; border-color: rgba(255,255,255,.5); }
.ap .ground-ink .btn--line:hover, .ap .ground-ink .btn--jade:hover { background: #fff; color: #000; border-color: #fff; }

/* ── Baldosas: info, pasos, canales ──────────────────────────────── */
.ap .info-card, .ap .step, .ap .channel {
  border-top: 0; border-radius: 24px; background: var(--surface);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform 300ms var(--spring), box-shadow 300ms var(--spring);
}
.ap .section--raised :is(.info-card, .step, .channel) { background: #fff; }
.ap .ground-ink :is(.info-card, .step, .channel) { background: #1C1C1E; }
.ap .info-card h3, .ap .step h3 { font-size: clamp(1.3rem, 1.15rem + .55vw, 1.6rem); font-weight: 650; letter-spacing: -.025em; }
.ap .info-card > .icn { color: var(--accent); }
@media (hover: hover) {
  .ap a.info-card:hover, .ap a.channel:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -24px rgba(0,0,0,.2); }
}
.ap a.info-card:active, .ap a.channel:active { transform: scale(.985); transition-duration: var(--press); }
.ap a.info-card:hover h3 { color: var(--accent-text); }
.ap .card-grid { column-gap: 20px; row-gap: 20px; }
.ap .steps { border-top: 0; column-gap: 20px; row-gap: 20px; }
.ap .step .dur { letter-spacing: -.005em; text-transform: none; font-size: .85rem; font-weight: 600; color: var(--accent-text); }
.ap .channel .ch-kind { letter-spacing: 0; text-transform: none; font-size: .85rem; font-weight: 600; color: var(--accent-text); }
.ap .channel b { font-family: var(--f-sys); font-weight: 650; letter-spacing: -.025em; }

/* ── Planes ──────────────────────────────────────────────────────── */
.ap .plan-card {
  border-top: 0; border-radius: var(--r-tile); background: var(--surface);
  padding: 48px clamp(24px, 2.6vw, 34px) clamp(24px, 2.6vw, 34px);
}
.ap .section--raised .plan-card { background: #fff; }
.ap .plan-card--featured { border-top: 0; padding-top: 48px; box-shadow: 0 0 0 2px var(--accent), 0 30px 60px -36px rgba(200,69,43,.45); }
.ap .plan-flag {
  top: 16px; left: clamp(24px, 2.6vw, 34px); padding: 3px 10px; border-radius: 980px;
  background: var(--accent); color: #fff; letter-spacing: 0; text-transform: none; font-size: .75rem; font-weight: 600;
}
.ap .plan-kicker, .ap .plan-price-suffix { letter-spacing: -.005em; text-transform: none; font-size: .85rem; font-weight: 500; }
.ap .plan-kicker { color: var(--accent-text); font-weight: 600; }
.ap .plan-name { font-family: var(--f-sys); font-weight: 700; letter-spacing: -.035em; font-size: 2rem; }
.ap .plan-price-now { font-family: var(--f-sys); font-weight: 700; letter-spacing: -.05em; }
.ap .plan-save { border-bottom: 0; padding: 3px 10px; border-radius: 980px; background: rgba(200,69,43,.1); color: var(--accent-text); letter-spacing: 0; font-weight: 600; }
.ap .plan-feats { border-top-color: var(--rule); }
.ap .plan-feats li::before { content: "✓"; color: var(--accent); }
.ap .plan-feats--x li::before { content: "×"; color: var(--muted); }
.ap .plan-fine { letter-spacing: 0; border-top-color: var(--rule); }
.ap .card-grid--4 .plan-name { font-size: 1.8rem; }

/* ── Cifras ──────────────────────────────────────────────────────── */
.ap .stats { border-top: 0; column-gap: 20px; }
.ap .stat, .ap .stat + .stat { border-left: 0; padding: 0; }
.ap .stat-num { font-family: var(--f-sys); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.ap .stat-num sup { color: inherit; letter-spacing: -.02em; }

/* ── Preguntas frecuentes ────────────────────────────────────────── */
.ap .faq { border-top: 0; border-radius: var(--r-tile); background: var(--surface); padding: 6px clamp(20px, 2.4vw, 32px); }
.ap .section--raised .faq { background: #fff; }
.ap .faq-item:last-child { border-bottom: 0; }
.ap .faq-q { font-family: var(--f-sys); font-weight: 600; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); letter-spacing: -.02em; line-height: 1.3; }
.ap .faq-q .x { color: var(--accent); font-weight: 400; transition: transform 300ms var(--spring); }
.ap .faq-a { transition: grid-template-rows 400ms var(--spring); }

/* ── Tablas y comparativas ───────────────────────────────────────── */
.ap .spec-table { border-top: 0; }
.ap .spec-table thead th, .ap .versus-row--head > div { letter-spacing: -.005em; text-transform: none; font-size: .88rem; font-weight: 600; color: var(--text); }
.ap .versus { border-top: 0; }
@media (max-width: 760px) { .ap .versus-feat { letter-spacing: 0; text-transform: none; font-size: .9rem; color: var(--text); } }

/* ── Imágenes, casos y portafolio ────────────────────────────────── */
.ap .work-media, .ap .case-lead-media img, .ap .founder-media img, .ap .hero-photo img, .ap .place-photo img { border: 0; border-radius: 22px; overflow: hidden; }
.ap .work-media { box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); }
.ap .work-media .work-tag {
  top: 14px; left: 14px; border: 0; border-radius: 980px; padding: 6px 12px;
  background: rgba(255,255,255,.75); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  letter-spacing: 0; text-transform: none; font-size: .8rem; font-weight: 600;
}
.ap .work-info .mono-idx, .ap .case-lead-used-title, .ap .case-lead-url, .ap .founder-media figcaption span {
  border-top: 0; padding-top: 0; letter-spacing: 0; text-transform: none; font-size: .85rem; font-weight: 500;
}
.ap .work-info h3, .ap .founder-media figcaption b, .ap .svc-name, .ap .case-lead-used b { font-family: var(--f-sys); font-weight: 700; letter-spacing: -.035em; }
.ap .founder-media figcaption { border-top: 0; }
.ap .case-lead-used { border-top: 0; display: grid; gap: 10px; }
.ap .case-lead-used a { border-bottom: 0; padding: 14px 18px; border-radius: var(--r-small); background: var(--surface); }
.ap .case-lead-used b { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.ap .hero-photo figcaption { border-top: 0; letter-spacing: 0; }
.ap .badge-row { border-top: 0; }

/* ── Formularios ─────────────────────────────────────────────────── */
.ap .field label { letter-spacing: -.005em; text-transform: none; font-size: .9rem; font-weight: 600; color: var(--text); }
.ap .field input, .ap .field select, .ap .field textarea {
  background-color: var(--surface); border: 1px solid transparent; border-radius: 12px;
  transition: border-color 200ms var(--spring), box-shadow 200ms var(--spring), background-color 200ms var(--spring);
}
.ap .field input:focus, .ap .field select:focus, .ap .field textarea:focus {
  background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200,69,43,.14);
}
.ap .field input::placeholder, .ap .field textarea::placeholder { color: #8E8E93; }

/* ── Cierre (CTA) y servicios en fila ────────────────────────────── */
.ap .cta { border-top: 0; }
.ap .cta .display-1 { font-weight: 700; }
.ap .cta-who img { filter: none; }
.ap .svc-list { border-bottom: 0; }
.ap .svc { border-top: 1px solid var(--rule); }

/* ── Chat de demostración en páginas interiores ──────────────────── */
.ap .chat-device { border: 0; border-radius: 30px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.ap .chat-avatar { font-family: var(--f-serif); }
.ap .chat-note { letter-spacing: 0; text-transform: none; }

/* ── 404 y la cordillera fuera del home ──────────────────────────── */
.ap .error-code { font-family: var(--f-sys); font-weight: 700; letter-spacing: -.06em; }

/* ── Legal ───────────────────────────────────────────────────────── */
.ap .legal-body h3 { font-family: var(--f-sys); }

/* mismo ancho y margen que la cabecera en todas las páginas */
.ap .wrap { max-width: calc(var(--ap-max) + 2 * clamp(20px, 4vw, 44px)); padding-inline: clamp(20px, 4vw, 44px); }
.ap .wrap--narrow { max-width: calc(880px + 2 * clamp(20px, 4vw, 44px)); }
.ap .channel b { font-size: clamp(1.2rem, .95rem + .8vw, 1.55rem); overflow-wrap: anywhere; }

/* 8-nov-2026: franja hacia la versión de EE. UU. (/us/) en la portada de Ecuador (es y en) */
.ap-usband {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding: 22px 28px; border-radius: var(--r-small); background: #F5F5F7;
}
.ap-usband p { margin: 0; }
.ap-usband-t { font-weight: 600; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); letter-spacing: -.015em; color: #1D1D1F; }
.ap-usband-s { color: #6E6E73; font-size: .95rem; margin-top: 4px !important; }
