/* dipos.it: coral sobre negro. El gesto de la marca es la tecla: se hunde al pulsarla. */
:root {
  --coral: #ff5a4e;
  --coral-deep: #b8342b;
  --bg: #121212;
  --surface: #1c1c1c;
  --line: #2e2e2e;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --ok: #22a06b;
  --on-coral: #141414;
  --coral-ink: #ff5a4e;
  --band: #0d0d0d;
  --key-base: #0a0a0a;
  --hover: #242424;
  --faint: #7a7a7a;
  --amber: #e5a93a;
  --nav: rgb(18 18 18 / 0.86);
  --glow: rgb(255 90 78 / 0.16);
  --shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
/* Modo claro: se elige con el botón de sol/luna y se guarda en el equipo. */
:root[data-theme="light"] {
  --bg: #f1efeb;
  --surface: #ffffff;
  --line: #e2dfd9;
  --text: #141414;
  --muted: #5f5c57;
  --coral-ink: #e5392c;
  --band: #ffffff;
  --key-base: #c9c5bd;
  --hover: #f6f5f2;
  --faint: #8a867f;
  --amber: #946200;
  --nav: rgb(241 239 235 / 0.88);
  --glow: rgb(255 90 78 / 0.2);
  --shadow: 0 30px 70px rgb(20 20 20 / 0.16);
  color-scheme: light;
}
.only-light { display: none; }
:root[data-theme="light"] .only-light { display: block; }
:root[data-theme="light"] .only-dark { display: none; }
.mode { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; flex-shrink: 0; }
.mode:hover { color: var(--coral-ink); border-color: var(--coral-ink); }
.mode .sun { display: block; }
.mode .moon { display: none; }
:root[data-theme="light"] .mode .sun { display: none; }
:root[data-theme="light"] .mode .moon { display: block; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.coral { color: var(--coral-ink); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--on-coral); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* Tecla: cara coral sobre base más oscura */
.key {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--coral); color: var(--on-coral); font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  text-decoration: none; border-radius: 14px; box-shadow: 0 6px 0 var(--coral-deep);
  transition: transform 0.09s ease, box-shadow 0.09s ease, background-color 0.15s;
}
.key:hover { background: #ff7065; }
.key:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--coral-deep); }
.key-sm { min-height: 40px; padding: 0 18px; font-size: 0.95rem; border-radius: 11px; box-shadow: 0 4px 0 var(--coral-deep); }
.key-sm:active { transform: translateY(3px); }
.key-ok { background: var(--ok); color: #06140d; box-shadow: 0 5px 0 #14633f; min-height: 44px; padding: 0 22px; }
.ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 0 8px; color: var(--text); text-underline-offset: 5px; text-decoration-color: var(--line); }
.ghost:hover { text-decoration-color: var(--coral-ink); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); }
.logo img { height: 32px; width: auto; }

/* Portada */
.hero { background: radial-gradient(900px 480px at 78% -10%, var(--glow), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-block: clamp(48px, 9vw, 110px); }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--coral-ink); margin-bottom: 18px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 34px; }

.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.ticket-head { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 1.15rem; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.ticket-head .mono { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.ticket ul { list-style: none; margin: 0; padding: 14px 0; display: grid; gap: 9px; font-size: 0.92rem; }
.ticket li { display: flex; justify-content: space-between; gap: 12px; }
.ticket-total { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 0; border-block: 1px dashed var(--line); font-weight: 600; }
.ticket-total .mono { display: grid; justify-items: end; }
.ticket-total strong { font-size: 2rem; color: var(--coral-ink); line-height: 1; }
.ticket-total small { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.ticket-pays { color: var(--muted); }
.ticket-pays em { font-style: normal; font-size: 0.78rem; color: var(--faint); margin-left: 4px; }
.ticket-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rate { font-size: 0.8rem; color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); border-radius: 999px; padding: 5px 12px; }
.ticket-note { font-size: 0.72rem; color: var(--faint); margin-top: 16px; text-align: center; }

/* Secciones */
.section { padding-block: clamp(56px, 8vw, 104px); }
.band { background: var(--band); border-block: 1px solid var(--line); padding-block: clamp(56px, 8vw, 104px); }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 44em; margin-top: 14px; }
.grid4, .grid3 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 40px; }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid4 article, .grid3 article { background: var(--bg); padding: 26px 22px; display: grid; gap: 10px; align-content: start; }
.grid4 p, .grid3 p { color: var(--muted); font-size: 0.96rem; }
.num { color: var(--coral-ink); font-size: 0.82rem; letter-spacing: 0.08em; }

/* Teclas de tipo de negocio */
.keys { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.keycap {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--text); cursor: pointer;
  min-height: 54px; padding: 0 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 6px 0 var(--key-base); transition: transform 0.09s ease, box-shadow 0.09s ease, background-color 0.15s, color 0.15s;
}
.keycap:hover { background: var(--hover); }
.keycap.is-on { background: var(--coral); border-color: var(--coral); color: var(--on-coral); box-shadow: 0 2px 0 var(--coral-deep); transform: translateY(4px); }
.panel { margin-top: 30px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.checks li { padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); color: var(--muted); position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 12px; border-radius: 4px; background: var(--coral); box-shadow: 0 3px 0 var(--coral-deep); }
.checks strong { color: var(--text); font-weight: 600; }

/* Pasos */
.steps ol { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.step { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--key-base); color: var(--coral-ink); font-weight: 600; font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: 0.97rem; margin-top: 6px; }

/* Preguntas */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 26px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-family: var(--display); font-weight: 600; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 1.4rem; color: var(--coral-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 46em; }

/* Cierre y pie */
.closing { display: grid; justify-items: center; gap: 26px; text-align: center; padding-block: clamp(64px, 10vw, 130px); }
.closing img { width: 72px; height: 72px; }
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 20px; padding-block: 26px; color: var(--muted); font-size: 0.9rem; }
.foot-in img { height: 20px; width: auto; }
.foot-in a { margin-left: auto; text-decoration: none; }
.foot-in a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .ticket { transform: none; max-width: 440px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav .mode { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .grid4, .grid3, .checks { grid-template-columns: 1fr; }
  .keycap { flex: 1 1 auto; padding: 0 16px; }
  .ticket { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .key, .keycap { transition: none; }
}
