/* Las páginas de los links (c.html y enlace.html): la C2 de iOS/docs/invitaciones.md. Papel, tinta y coral como index.html;
   el widget siempre oscuro, como un widget de Warpy (P12). */
:root { color-scheme: light dark; --coral: #ff6b57; --ink: #14161c; --paper: #f6f4f1; --muted: rgba(20,22,28,.62);
  --line: rgba(20,22,28,.16); --about: #3d4049; --shadow: 0 12px 32px rgba(20,22,28,.16);
  --w-bg: #152036; --w-ink: #f3f6fb; --w-muted: rgba(243,246,251,.68); --w-panel: rgba(255,255,255,.08);
  --accent: rgba(243,246,251,.72); }
@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f0ed; --paper: #0e1016; --muted: rgba(242,240,237,.62); --line: rgba(242,240,237,.2);
    --about: rgba(242,240,237,.8); --shadow: 0 0 0 1px rgba(255,255,255,.08); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 -apple-system, "SF Pro Text", system-ui, Roboto, Helvetica, Arial, sans-serif; }
main { max-width: 30rem; margin: 0 auto; padding: max(1.25rem, env(safe-area-inset-top)) 16px 1rem; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Arriba: «Te compartieron un evento vía Warpy» y «Abrir Warpy». */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.via { flex: 1 1 auto; min-width: 0; font-size: .875rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.pill { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 600; white-space: nowrap; }

/* El widget. */
.widget { margin: 12px 0 16px; padding: 18px 18px 16px; border-radius: 24px; background: var(--w-bg); color: var(--w-ink);
  box-shadow: var(--shadow); overflow: hidden; }
.widget h1 { margin: 0; }
.w-title { font: 600 1.0625rem/1.3 -apple-system, "SF Pro Text", system-ui, Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: anywhere; }
.w-title span { unicode-bidi: isolate; }
.w-subtitle { margin-top: 3px; font-size: .875rem; line-height: 1.35; color: var(--w-muted); overflow-wrap: anywhere; unicode-bidi: isolate; }
.w-count { text-align: center; margin: 14px 0 16px; }
.w-number { font: 700 4.5rem/1 ui-rounded, "SF Pro Rounded", -apple-system, system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.w-number.word { font-size: 2.5rem; line-height: 1.1; letter-spacing: 0; }
.w-unit { margin-top: 4px; font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.w-clock { margin-top: 6px; font: 500 1.0625rem/1.3 ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  font-variant-numeric: tabular-nums; color: var(--w-muted); }
.w-clock.note { font: 500 .9375rem/1.3 -apple-system, "SF Pro Text", system-ui, Roboto, Helvetica, Arial, sans-serif; }
.w-panel { padding: 11px 14px 12px; border-radius: 16px; background: var(--w-panel); font-size: .9375rem; line-height: 1.4; }
.w-when b { font-weight: 700; }
.w-place { margin-top: 4px; font-size: .875rem; font-weight: 600; color: rgba(243,246,251,.86); overflow-wrap: anywhere; unicode-bidi: isolate; }
.w-address { font-size: .8125rem; color: var(--w-muted); overflow-wrap: anywhere; unicode-bidi: isolate; }
.widget.simple .w-count, .widget.simple .w-panel { display: none; }
.widget.simple .w-subtitle { margin-top: 6px; }
.problem h1 { font-size: 1.25rem; line-height: 1.25; }
.problem p { margin-top: 6px; color: var(--w-muted); font-size: .9375rem; }

/* «Agregar a mi calendario», las tres líneas y «Descargar Warpy». */
.secondary, .cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px;
  padding: 0 20px; border-radius: 999px; font: 600 1rem/1.2 -apple-system, "SF Pro Text", system-ui, Roboto, Helvetica, Arial, sans-serif;
  text-decoration: none; cursor: pointer; }
.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.cta { background: var(--coral); color: #fff; border: 0; }
.icon { flex: 0 0 auto; }
.about { margin: 22px 0 12px; text-align: center; font-size: .875rem; line-height: 1.45; color: var(--about); text-wrap: balance; }
.about > span { display: block; }
.about b { color: var(--ink); }
.pill:focus-visible, .secondary:focus-visible, .cta:focus-visible, footer a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
footer { max-width: 30rem; margin: 0 auto; padding: 1rem 16px max(2rem, env(safe-area-inset-bottom)); font-size: .8125rem; color: var(--muted); text-align: center; }
