/* ArtPrograms Studio · home
   Claro por defecto, oscuro si el visitante lo prefiere. Tipografía del sistema (sin fuentes externas).
   Motion: solo opacity y transform, ease-out, menos de 300 ms en la interfaz. */
:root {
  --bg:        #ffffff;
  --band:      #f5f5f7;
  --text:      #1d1d1f;
  --text-2:    #6e6e73;
  --line:      #d2d2d7;
  --accent:    #0066cc;
  --accent-bg: #0071e3;
  --accent-bg-hover: #0077ed;
  --tile-dark: #1d1d1f;
  --tile-dark-text: #f5f5f7;
  --warm:      #fbf3ea;
  --ink:       #1d1d1f;
  --ok:        #1d8348;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --pad-y: clamp(52px, 7vw, 92px);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg:        #000000;
  --band:      #111113;
  --text:      #f5f5f7;
  --text-2:    #a1a1a6;
  --line:      #2c2c2e;
  --accent:    #2997ff;
  --accent-bg: #0a84ff;
  --accent-bg-hover: #409cff;
  --tile-dark: #1c1c1e;
  --tile-dark-text: #f5f5f7;
  --warm:      #261e16;
  --ink:       #1c1c1e;
  --ok:        #30d158;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--accent-bg); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-bg); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent-bg); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--pad-y) 0; }
.section--band { background: var(--band); }
.section-tight { padding: 0 0 var(--pad-y); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* tipografía */
.h1 { text-wrap: balance; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.h2 { text-wrap: balance; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.sub { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4; color: var(--text-2); letter-spacing: -0.015em; }
.sec-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.sec-head .sub { margin-top: 14px; }
.small { font-size: 14px; color: var(--text-2); }

/* botones y links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 980px; font-size: 17px; border: 1px solid transparent; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--fill { background: var(--accent-bg); color: #fff; }
.btn--line { border-color: var(--accent); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .btn--fill:hover { background: var(--accent-bg-hover); }
  .btn--line:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
}
.more { color: var(--accent); font-size: 17px; }
.more::after { content: " \203A"; }
@media (hover: hover) and (pointer: fine) { .more:hover { text-decoration: underline; text-underline-offset: 3px; } }
.u-link { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .u-link:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 48px; display: flex; align-items: center; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.brand { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: 12px; color: var(--text); opacity: .8; transition: opacity 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { opacity: 1; } }
.nav__right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--band); } }
.burger { display: none; }
.mnav { position: fixed; inset: 48px 0 0 0; z-index: 49; background: var(--bg); padding: 12px var(--gutter) 40px; display: none; flex-direction: column; overflow-y: auto; }
.mnav.open { display: flex; }
.mnav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

/* hero */
.hero { padding: clamp(96px, 13vw, 144px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero .sub { max-width: 640px; margin: 20px auto 0; }
.hero__place { margin-top: 22px; }
.group-title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 22px; }
.tiles + .group-title, .list + .group-title { margin-top: 84px; }
.group-note { margin: -10px 0 18px; font-size: 15px; }
.about { max-width: 720px; margin: 0 auto; text-align: center; }
.about .sub { margin-top: 14px; }
.about p + p { margin-top: 14px; }
.survey .small { margin-bottom: 10px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* tiles de producto */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: 32px; padding: clamp(32px, 4.5vw, 56px) clamp(22px, 3vw, 40px) 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; min-height: 640px; }
.tile--warm { background: var(--warm); }
.tile--dark { background: var(--tile-dark); color: var(--tile-dark-text); }
.tile h3 { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.tile__lead { margin-top: 10px; font-size: 19px; line-height: 1.35; max-width: 30ch; }
.tile--warm .tile__lead { color: var(--text-2); }
.tile--dark .tile__lead { color: #a1a1a6; }
.tile__links { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.tile--dark .more, .tile--dark .u-link { color: #2997ff; }
.tile__facts { margin-top: 14px; font-size: 13px; line-height: 1.5; max-width: 38ch; }
.tile--warm .tile__facts { color: var(--text-2); }
.tile--dark .tile__facts { color: #a1a1a6; }
.tile__visual { margin-top: auto; padding-top: 28px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.example { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.tile--warm .example { color: var(--text-2); }
.tile--dark .example { color: #a1a1a6; }

/* dispositivos de ejemplo (marco tipo iPhone / Android) */
.device { position: relative; width: min(290px, 100%); height: 330px; background: #0b0b0c; border-radius: 48px 48px 0 0; padding: 9px 9px 0; box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 30px 60px -24px rgba(0,0,0,.45); }
.device__screen { position: relative; height: 100%; border-radius: 40px 40px 0 0; overflow: hidden; display: flex; flex-direction: column; }
.device__island { position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: #000; border-radius: 14px; z-index: 2; }
.device--android .device__island { top: 13px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.device__status { position: absolute; top: 13px; left: 24px; right: 22px; z-index: 3; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #fff; }
.device__bat { position: relative; width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 4px; }
.device__bat::after { content: ""; position: absolute; inset: 1.5px; width: 70%; background: currentColor; border-radius: 1.5px; }
.phone__screen { background: #efe7dc; }
.phone__bar { background: #075e54; color: #fff; padding: 46px 18px 14px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.phone__chat { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.35; letter-spacing: 0; color: #111; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 16px; }
.bubble--in { align-self: flex-end; background: #d9fdd3; border-bottom-right-radius: 4px; }
.bubble--out { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.stats__screen { background: #2c2c2e; color: #f5f5f7; }
.stats__head { padding: 46px 20px 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.stats__body { padding: 0 20px; }
.stats__row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #3a3a3c; font-size: 15px; letter-spacing: 0; }
.stats__row b { font-weight: 600; font-variant-numeric: tabular-nums; color: #2997ff; }
.stats__bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 18px; }
.stats__bars i { flex: 1; background: #0a84ff; opacity: .85; border-radius: 4px 4px 0 0; }
.stats__bars i:nth-child(1) { height: 38%; } .stats__bars i:nth-child(2) { height: 62%; } .stats__bars i:nth-child(3) { height: 48%; }
.stats__bars i:nth-child(4) { height: 80%; } .stats__bars i:nth-child(5) { height: 56%; } .stats__bars i:nth-child(6) { height: 92%; } .stats__bars i:nth-child(7) { height: 70%; }

/* encuesta */
.survey { max-width: 760px; margin: 0 auto; }
.survey .h2 { margin-bottom: 24px; }
.facts { border-top: 1px solid var(--line); margin-top: 8px; }
.facts > div { display: grid; grid-template-columns: 190px 1fr; gap: 12px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--text-2); }
.facts a { color: var(--accent); }
.survey__cta { margin-top: 28px; }
.survey__wait { color: var(--text-2); font-size: 15px; }
.survey__cta [hidden] { display: none; }

/* listas (código, servicios, proceso) */
.list { border-top: 1px solid var(--line); }
.row { display: grid; gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.row p { color: var(--text-2); }
.row--repo { grid-template-columns: 230px minmax(0, 1fr) auto; }
.row--repo h3 { font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.row--repo .meta { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.row--svc { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 150px; padding: 30px 0; align-items: center; }
.row--svc h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.025em; }
.row--svc p { font-size: 17px; }
.row--svc .price { text-align: right; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; white-space: nowrap; }
.row--svc .price small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }
.steps { counter-reset: s; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 44px minmax(0, 220px) minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step::before { counter-increment: s; content: counter(s); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.step p { color: var(--text-2); }
.note { margin-top: 18px; }

/* capítulo oscuro */
.section--ink { background: var(--ink); color: #f5f5f7; }
.section--ink .sub { color: #a1a1a6; }
.section--ink .steps { border-top: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.section--ink .step { display: block; border-bottom: 0; padding: 0; }
.section--ink .step::before { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; color: #424245; margin-bottom: 14px; }
.section--ink .step h3 { color: #f5f5f7; font-size: 19px; margin-bottom: 8px; }
.section--ink .step p { color: #a1a1a6; font-size: 15px; }

/* reserva y contacto */
.booking__box { max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: 24px; padding: 10px; min-height: 540px; overflow: hidden; background: var(--bg); }
.booking__embed { width: 100%; height: 100%; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact .sub { margin-top: 14px; }
.mail { display: inline-block; margin-top: 22px; font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); word-break: break-all; }
@media (hover: hover) and (pointer: fine) { .mail:hover { text-decoration: underline; text-underline-offset: 4px; } }
.contact__links { margin-top: 18px; display: flex; gap: 20px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6e6e73; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bg) 22%, transparent); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.sent { padding: 32px 0; }
.sent[hidden] { display: none; }
.sent h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.sent p { color: var(--text-2); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 10px); background: var(--tile-dark); color: var(--tile-dark-text); padding: 12px 20px; border-radius: 14px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms var(--ease-out); z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.footer { background: var(--band); padding: 40px 0 28px; font-size: 12px; color: var(--text-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.footer li { margin-bottom: 7px; }
.footer a { color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { text-decoration: underline; } }
.footer__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; }
.footer__bot nav { display: flex; gap: 18px; }

/* reveal suave, solo con JS */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 300ms ease-out, transform 300ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 200ms ease; }
  .btn { transition-property: background-color, border-color; }
}

/* responsive */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: inline-flex; }
  .tiles, .contact { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .row--repo { grid-template-columns: minmax(0, 1fr); }
  .row--repo .meta { white-space: normal; }
  .row--svc { grid-template-columns: minmax(0, 1fr) auto; }
  .row--svc p { grid-column: 1 / -1; grid-row: 2; }
  .step { grid-template-columns: 32px minmax(0, 1fr); }
  .step p { grid-column: 2; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .section--ink .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .section--ink .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { width: 100%; }
}
