@media screen {
  :root {
    --home-ink: #2e2151;
    --home-accent: #5034a5;
    --home-lilac: #eee8ff;
    --home-edge: #d7cdf2;
    --home-edge-hover: #a58ade;
    --home-raised: 0 17px 31px #38245b36, 0 4px 9px #38245b23;
    --home-control-hover: 0 7px 15px #38245b3a;
    --home-motion: .2s cubic-bezier(.2,.7,.25,1);
  }

  :is(.workspace,.legal) h1, .contact-intro h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
  .receipt-mast nav a { display: inline-flex; align-items: center; min-height: 41px; }
  .receipt-foot :focus-visible { outline-color: var(--home-accent); }
  .seo-crumb { width: min(1190px, calc(100% - 42px)); color: var(--muted); font-family: var(--body); }
  .seo-crumb a { text-decoration: underline; }
  .section-head > p { max-width: 35ch; border-color: var(--home-edge-hover); }
  .workspace-card { border-color: var(--home-edge); }
  :is(.receipt-form,.extra-panel,.contact-form) { background: linear-gradient(150deg, #fff 62%, #f8f4ff); }
  .form-head { align-items: flex-start; }
  .form-head > div { min-width: 0; }
  .workspace .form-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
  .field-grid label small { color: #5e5575; }
  :is(.field-grid,.contact-form) :is(input,textarea)::placeholder { color: #655b76; }
  :is(.field-grid,.contact-form) select, .history-layout select {
    background-image:
      linear-gradient(45deg, transparent 50%, #57468a 50%),
      linear-gradient(135deg, #57468a 50%, transparent 50%);
  }
  .form-message { color: #4a2d91; }
  .form-message.error { color: #982a22; }
  .workspace button.text-button {
    background: var(--home-lilac); padding: 6px 11px; border-radius: 10px;
    min-height: 41px; white-space: nowrap;
  }
  .file-box { border-color: #9e85d2; }
  .backup-box { border-color: var(--home-edge); }
  :is(.file-box,.backup-file) input[type=file] { min-width: 0; max-width: 100%; color: var(--home-ink); }
  input[type=file]::file-selector-button {
    font: 700 max(1rem,var(--copy-min))/1.3 var(--body);
    padding: 8px 11px; margin-inline-end: 8px; border: 1px solid var(--home-edge);
    border-radius: 9px; color: var(--home-ink); background: #fff; cursor: pointer;
  }
  .entry-list li, .empty-state { background: #fff; border-color: var(--home-edge); }
  .entry-list small { color: var(--muted); }
  .legal-grid { gap: clamp(13px, 2vw, 22px); }
  .legal article { padding: clamp(16px, 3vw, 26px); }
  :is(.legal article,.contact-intro,.contact-consent) a {
    color: var(--home-accent); text-decoration: underline; text-underline-offset: .23em;
  }
  .contact-page {
    --heading: Jakarta, DM, system-ui, sans-serif;
    --paper: #fff;
    --surface: #fff;
    --ink: #1c2140;
    --quiet: #505574;
    --line: var(--home-edge);
    --accent: var(--home-accent);
    background: radial-gradient(ellipse at 75% 4%, #eeebff 0, transparent 39rem), var(--cream);
    font-family: var(--body);
  }
  .contact-wrap { width: min(1190px, calc(100% - 42px)); }
  .contact-content { padding-block: clamp(28px,5vw,60px); }
  .contact-form :is(input:not([type=file]),textarea,select) {
    background-color: #f8f8fd; border-radius: 14px; font-weight: 500;
  }
  .contact-form button {
    min-height: 48px; border-radius: 15px; border-color: transparent;
    background: linear-gradient(130deg,#5546cb,#3b2ca2);
    box-shadow: 0 6px 12px #3325a637, inset 0 1px #ffffff38;
    font-family: var(--body);
  }
  .contact-feedback[data-state=success] { color: var(--home-accent); }
  .contact-page .receipt-mast :focus-visible { outline-color: #e8ddff; }
  .layout-options label:has(input:focus-visible) { outline-color: #e8ddff; }
  .layout-swatch { border-color: #b6a5d5; }
  .swatch-ticket { border-bottom-color: #8d5c74; }
  .swatch-classico { border-color: #bcace0; background: linear-gradient(#473475 0 36%, #fffdfa 36%); }
  :is(.preview,.receipt-example) .paper-details div:not(.paper-meta) {
    grid-template-columns: minmax(94px, 42%) minmax(0, 1fr);
  }
  .reading-nav strong, .use-cases-copy > p:not(.kicker), .use-cases-list dd { color: var(--muted); }
  .overview-heading > p, .feature-grid p { color: #efe7ff; }
  .overview :focus-visible { outline-color: #eee2ff; }
  .feature-grid article { background: #3a2d67; border-color: #76639f; }
  .feature-icon {
    --icon-tile: #e8dbff;
    width: 40px; height: 40px; padding: 2px;
    color: #382367; background: var(--icon-tile); border-radius: 12px;
  }
  .feature-icon::before, .feature-icon::after { margin: 2px; }
  .feature-icon.icon-paper::before { inset: 7px 10px; }
  :is(.icon-stack,.icon-print)::after { background: var(--icon-tile); }
  .feature-grid a {
    align-self: flex-start; color: #f0e2ff;
    text-decoration: underline; text-underline-offset: .22em; text-decoration-color: #b39ada;
  }
  .use-cases-list div {
    padding: 10px 12px; margin-block: 8px; border: 1px solid #e8e0f7;
    border-radius: 13px; background: #fcfaff;
  }
  .case-photo { background: #e9dff5; overflow: hidden; }
  .case-photo img { border-radius: 0; }
  :is(.guide-grid,.routine-grid) article, .example-copy {
    background: #fff; border: 1px solid var(--home-edge); border-radius: 20px;
  }
  .example-copy { box-shadow: var(--card-shadow); }
  .guide-icon { color: var(--home-accent); background: var(--home-lilac); }
  .receipt-example {
    padding: 9px; border-radius: 20px; border: 1px solid var(--home-edge);
    background: #fff; box-shadow: var(--card-shadow);
  }
  .example-mat {
    padding: clamp(17px, 4vw, 33px); border-radius: 13px;
    background: radial-gradient(circle, #c0a9eb 1px, transparent 1.3px) #eee6fa;
    background-size: 13px 13px;
  }
  .example-mat .paper { animation: none; box-shadow: 0 10px 24px #48336833; }
  .receipt-example figcaption { margin: 8px 6px 4px; }
  .check-list li::marker { color: var(--home-accent); }
  .editorial-note a, .faq a {
    color: var(--home-accent); text-decoration: underline; text-underline-offset: .23em;
  }
  .table-wrap {
    border-color: var(--home-edge); border-radius: 17px;
    box-shadow: var(--card-shadow);
  }
  .table-wrap th, .table-wrap td { border-color: #e6def4; }
  .table-wrap thead { background: #eae2fb; }
  .table-wrap thead th { color: var(--home-ink); }
  .table-wrap tbody tr:nth-child(even) { background: #faf7ff; }
  .csv-guide {
    color: var(--home-ink); border-color: #a88ddc; border-radius: 18px;
    background: #f0eaff; box-shadow: var(--card-shadow);
  }
  .csv-guide pre { color: #f3edff; background: #302154; border-radius: 12px; }
  .faq h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-wrap: balance; }
  .site-accordion, .faq .site-accordion { border: 1px solid #ccbeee; background: #fbf8ff; }
  .faq .site-accordion:first-child { border-top-color: #ccbeee; }
  .site-accordion[open], .faq .site-accordion[open] { background: #f3ebff; }
  .site-accordion > summary::marker { content: ''; }
  .site-accordion > summary::-webkit-details-marker { display: none; }
  .site-accordion > summary::after {
    content: ''; width: 28px; height: 28px; place-items: center;
    border: 0; border-radius: 100%; color: var(--home-accent); transform: none;
    background: linear-gradient(currentColor,currentColor) center / 12px 2px no-repeat,
      linear-gradient(currentColor,currentColor) center / 2px 12px no-repeat #ebe0ff;
  }
  .site-accordion[open] > summary::after {
    background-image: linear-gradient(currentColor,currentColor);
    background-size: 12px 2px;
    transform: none;
  }
  #blog .guide-grid article { padding: 0; }
  .home-guide-link {
    display: block; position: relative; height: 100%; min-height: 140px;
    padding: 16px 51px 19px 17px; border-radius: inherit;
  }
  .home-guide-link h3 { margin-top: 11px; }
  .home-guide-link::after {
    content: ''; position: absolute; inset: auto 21px 26px auto;
    width: 9px; height: 9px; color: var(--home-accent);
    border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .editorial-cta .button { background: #e6d9fc; color: #392362; }
  #blog > p > .button { gap: .45em; }
  .receipt-foot nav a { border-radius: 5px; }
  :is(.editorial-cta,.preview,.post-cta,.magazine-head,.pix-hero,.parcel-title) :focus-visible { outline-color: #e8ddff; }
  .blog-card > a:focus-visible { outline-offset: -5px; }
  .blog-card .blog-card-copy .button { min-height: 41px; }
  .post-related a { border-radius: 12px; }
  .post-cta .button { background: #e6d9fc; color: #392362; }
  .receipt-post .post-toc summary { padding: 0; }
  .receipt-post .post-toc .site-accordion {
    border: 0; padding: 4px; border-radius: 10px; background: none; box-shadow: none;
  }
  .receipt-post .post-toc .site-accordion > :not(summary) { padding: 0; margin-top: 12px; }
}

/* Preserve the selected paper style in the export and its live preview. */
:is(.preview,.receipt-example,#print-pages) .paper[data-layout=ticket] {
  color: #352c3b;
}
:is(.preview,.receipt-example,#print-pages) .paper[data-layout=ticket] :is(.paper-details dt,.paper-details dd,.paper-sign small) {
  color: #51454f;
}
:is(.preview,.receipt-example,#print-pages) .paper[data-layout=ticket] :is(.paper-head,.paper-price,.paper-sign span) {
  border-color: #9c8b96;
}
:is(.preview,.receipt-example,#print-pages) .paper[data-layout=ticket] .paper-price strong { color: #71341f; }
:is(.preview,.receipt-example,#print-pages) .paper-staple {
  border-color: #9c8b96;
  background: linear-gradient(0deg,#7d7181,#d4cbd0,#fdf7f0);
}
:is(.preview,.receipt-example,#print-pages) .paper-barcode {
  background: repeating-linear-gradient(90deg, #352c3b 0 1px, transparent 1px 3px, #352c3b 3px 6px, transparent 6px 8px, #352c3b 8px 9px, transparent 9px 12px, #352c3b 12px 14px, transparent 14px 16px);
}
:is(.preview,#print-pages) .paper[data-layout=classico] {
  color: #33254d; border-color: #b4a1cd; border-top-color: #473475;
}
:is(.preview,#print-pages) .paper[data-layout=classico] .paper-head { border-color: #b4a1cd; }
:is(.preview,#print-pages) .paper[data-layout=classico] .paper-price { background: #eee6f8; }
:is(.preview,#print-pages) .paper[data-layout=classico] .paper-price strong { color: #473475; }
:is(.preview,#print-pages) .paper[data-layout=classico] :is(.paper-details dt,.paper-details dd,.paper-sign small) {
  color: #514468;
}
:is(.preview,#print-pages) .paper[data-layout=classico] .paper-sign span { border-color: #9784af; }
:is(.preview,#print-pages) .paper[data-layout=minimalista] :is(.paper-details dt,.paper-details dd) { color: #3e3a41; }
:is(.preview,#print-pages) .paper[data-layout=minimalista] .paper-sign span { border-color: #929094; }

@media screen and (hover:hover) and (pointer:fine) {
  :is(.field-grid,.contact-form) :is(input,textarea,select):hover, .history-layout select:hover {
    border-color: var(--home-edge-hover);
  }
  .receipt-mast nav a:hover { background: #654d94; }
  .receipt-mast .receipt-brand:hover { color: #e6d9ff; }
  .receipt-foot .receipt-brand:hover { color: var(--home-accent); }
  :is(.receipt-mast,.receipt-foot) .receipt-brand-icon {
    background: url("/marca-recibo.svg") center / contain no-repeat;
    clip-path: none;
    font-size: 0;
  }
  :is(.receipt-mast,.receipt-foot) .receipt-brand:hover .receipt-brand-icon { filter: brightness(1.09); }
  .receipt-mast .receipt-quick:hover { background: #fff; color: #3e2971; }
  .receipt-foot nav a:hover { color: var(--home-accent); text-decoration-thickness: 2px; }
  .tabstrip a:hover { background: #ded2fc; border-color: var(--home-edge-hover); color: #2b185c; }
  .workspace button.text-button:hover, .button.secondary:hover { color: #321b66; background: #e2d5ff; }
  :is(.button.primary,.contact-form button):not(:disabled):hover { background: #332078; }
  input[type=file]::file-selector-button:hover { background: var(--home-lilac); border-color: var(--home-edge-hover); }
  .layout-options label:hover { background: #4b357c; border-color: #c4b0fa; }
  .layout-options label:has(input:checked):hover { background: #f9f4ff; border-color: #fff; }
  .reading-nav a:hover { background: #ddd1fb; }
  .feature-grid article:hover { background: #514080; border-color: #b39fdf; }
  .feature-grid a:hover { color: #fff; text-decoration-color: #fff; text-decoration-thickness: 2px; }
  .use-cases-list div:hover { background: #f1e9ff; border-color: var(--home-edge-hover); }
  .editorial :is(.guide-grid article,.routine-grid article,.example-copy,.receipt-example,.table-wrap,.use-cases,.csv-guide):hover {
    border-color: var(--home-edge-hover);
  }
  :is(.guide-grid article,.routine-grid article,.example-copy):hover { background: #fbf8ff; }
  .table-wrap tr:hover :is(th,td) { background: #f0e8fc; }
  .table-wrap thead tr:hover th { background: #e0d1f6; }
  .editorial-note a:hover, .faq a:hover { color: #3f237d; text-decoration-thickness: 2px; }
  .site-accordion:hover, .faq .site-accordion:hover, .faq .site-accordion:first-child:hover {
    background: #ece1ff; border-color: #ad96dd;
  }
  .site-accordion > summary:hover::after { background-color: #563a98; color: #fff; }
  .home-guide-link:hover { text-decoration: none; }
  :is(.editorial-cta,.post-cta) .button:hover { background: #fff; color: #3a2566; }
  :is(.blog-card,.contact-form,.file-box,.backup-box,.entry-list li,.legal article):hover {
    border-color: var(--home-edge-hover);
  }
  :is(.post-toc,.post-related) a:hover, .receipt-magazine .secondary:hover {
    background-color: #e6dcfc; color: var(--home-accent);
  }
}

@media screen and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  :is(.receipt-mast a,.receipt-foot a,.button,.text-button,.tabstrip a,.reading-nav a,.layout-options label,
      .use-cases-list div,.feature-icon,.guide-icon,.layout-swatch,.receipt-brand-icon,.contact-form button,.post-related a) {
    transition: translate var(--home-motion), scale var(--home-motion), rotate var(--home-motion),
      box-shadow var(--home-motion), background-color var(--home-motion), color var(--home-motion), border-color var(--home-motion);
  }
  :is(.feature-grid article,.use-cases,.guide-grid article,.routine-grid article,.csv-guide,
      .receipt-example,.example-copy,.table-wrap,.site-accordion,.editorial-cta,.blog-card,
      .post-cta,.legal article,.file-box,.backup-box,.entry-list li,.contact-form) {
    transition: translate var(--home-motion), scale var(--home-motion),
      box-shadow var(--home-motion), background-color var(--home-motion), border-color var(--home-motion);
  }
  .case-photo img, .site-accordion summary::after, .home-guide-link::after {
    transition: scale var(--home-motion), translate var(--home-motion), background-color var(--home-motion);
  }
  :is(.field-grid,.contact-form) :is(input,textarea,select) { transition: border-color var(--home-motion); }
  :is(.receipt-mast nav a,.receipt-quick,.button,.text-button,.reading-nav a,.layout-options label,
      .contact-form button,.post-related a):not(:disabled):hover {
    translate: 0 -3px; scale: 1.035; box-shadow: var(--home-control-hover);
  }
  .tabstrip a:hover { box-shadow: 0 3px 6px #44357031; }
  .button:hover, .button:active { transform: none; }
  :is(.button,.text-button,.receipt-quick,.layout-options label):active { translate: 0 0; scale: 1; }
  .receipt-foot nav a:hover { translate: 4px 0; }
  :is(.receipt-mast,.receipt-foot) .receipt-brand:hover .receipt-brand-icon { rotate: -9deg; scale: 1.11; }
  :is(.feature-grid article,.guide-grid article,.routine-grid article,.receipt-example,.example-copy,.site-accordion,
      .blog-card,.legal article):hover {
    translate: 0 -5px; scale: 1.015; box-shadow: var(--home-raised);
  }
  :is(.use-cases,.csv-guide,.table-wrap,.editorial-cta,.post-cta,.file-box,.backup-box,.entry-list li,.contact-form):hover {
    translate: 0 -4px; box-shadow: var(--home-raised);
  }
  .receipt-post .post-toc .site-accordion:hover { translate: none; scale: none; box-shadow: none; }
  .use-cases-list div:hover { translate: 3px 0; box-shadow: 0 4px 12px #38245b19; }
  .case-photo:hover img { scale: 1.035; }
  :is(.feature-grid article,.guide-grid article):hover :is(.feature-icon,.guide-icon),
  .layout-options label:hover .layout-swatch { rotate: -8deg; scale: 1.12; }
  .site-accordion > summary:hover::after { scale: 1.13; }
  .home-guide-link:hover::after { translate: 4px 0; }
}

@media screen and (max-width: 760px) {
  .single-grid { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 700px) {
  .seo-crumb, .contact-wrap { width: calc(100% - 28px); }
}
@media screen and (max-width: 420px) {
  .extra-panel .form-head { flex-wrap: wrap; }
  .receipt-mast nav { column-gap: 3px; }
}

@media screen and (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .workspace .paper { animation: none; }
  :is(.workspace,.editorial,.contact-content,.legal,.receipt-post,.receipt-magazine) *,
  :is(.workspace,.editorial,.receipt-post) summary::after { transition: none; }
  .button:hover { transform: none; }
}
