/* AtomCheck: sitio público de ventas (landing).
   Navy y azul del logo, papel frío. La pieza memorable es la tableta con la
   tarjeta de asistencia sellada encima; lo demás se mantiene sobrio. */

:root {
    --ink: #002144;          /* navy del logo: titulares, botones */
    --ink-deep: #001833;     /* hover y fondos oscuros */
    --paper: #f6f7fa;        /* fondo general */
    --white: #ffffff;
    --seal: #0a6fc0;         /* azul del sello (texto y bordes, 5:1 sobre blanco) */
    --brand: #0a82de;        /* azul del logo (decorativo) */
    --text: #20242c;         /* texto principal */
    --muted: #535a68;        /* texto secundario (7:1 sobre blanco) */
    --line: #d5d9e2;
    --tint: #eceff6;         /* secciones alternas */
    --radius: 10px;
    --wrap: 72rem;
    --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --clock: "Martian Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-variation-settings: "wdth" 100;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 10;
    background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }

/* ---- Type scale (1.25) -------------------------------------------- */
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
h1 {
    font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem);
    font-weight: 800;
    font-variation-settings: "wdth" 112;
    letter-spacing: -0.015em;
    max-width: 22ch;
}
h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.45rem);
    font-weight: 750;
    font-variation-settings: "wdth" 108;
    letter-spacing: -0.01em;
}
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.lede { font-size: 1.2rem; max-width: 60ch; margin-top: 1.25rem; }
.muted { color: var(--muted); }

/* ---- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3rem; padding: .75rem 1.4rem;
    background: var(--ink); color: var(--white);
    border: 2px solid var(--ink); border-radius: var(--radius);
    font-weight: 650; font-size: 1.05rem; text-decoration: none;
}
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--white); color: var(--ink); }
.btn-small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--tint); border-color: var(--tint); }
.btn-light-quiet { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-light-quiet:hover { background: rgba(255, 255, 255, .12); }
[hidden] { display: none !important; }

/* ---- Header ------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--ink); text-decoration: none;
    font-weight: 800; font-size: 1.3rem; font-variation-settings: "wdth" 112;
}
.brand-mark { width: 2.1rem; height: 2.1rem; }
.wordmark { font-weight: 750; font-variation-settings: "wdth" 100; letter-spacing: -.03em; font-size: 1.45rem; }
.wm-accent { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 52rem) {
    .site-nav a:not(.btn) { display: none; }
}

/* ---- Hero --------------------------------------------------------- */
.hero { overflow-x: clip; padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem); }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.eyebrow { color: var(--seal); font-weight: 650; font-size: .98rem; margin-bottom: 1rem; }
.eyebrow-light { color: #8fc8f5; }

/* Tableta con la terminal y la tarjeta sellada encima. */
.hero-visual { position: relative; padding-bottom: 10rem; }
.tablet {
    margin: 0; padding: .7rem; border-radius: 1.6rem;
    background: #0d1626;
    box-shadow: 0 0 0 1px #2a3550 inset, 0 30px 60px -30px rgba(0, 33, 68, .55);
}
.tablet img { width: 100%; height: auto; border-radius: 1rem; }
.hero-visual .card { position: absolute; right: -1rem; bottom: 0; width: min(19rem, 60%); padding: 1rem 1rem .9rem; font-size: .9rem; }
.hero-visual .card-table { font-size: .85rem; }
.hero-visual .card-table td, .hero-visual .card-table th { padding: .4rem .2rem; }
.hero-visual .stamp { bottom: 1.2rem; right: -1.2rem; font-size: 1.1rem; }
@media (max-width: 40rem) {
    .hero-visual { padding-bottom: 0; }
    .hero-visual .card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 1.25rem; }
    .hero-visual .stamp { right: .4rem; }
}

/* Franja de garantías */
.proof { border-block: 1px solid var(--line); background: var(--white); }
.proof-row { display: grid; gap: 1.25rem 2rem; padding: 1.75rem 0; }
@media (min-width: 52rem) { .proof-row { grid-template-columns: repeat(4, 1fr); } }
.proof p { color: var(--muted); font-size: .98rem; line-height: 1.45; }
.proof strong { display: block; color: var(--ink); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.countdown { margin-top: 1.5rem; color: var(--muted); }
.countdown strong { color: var(--seal); }

/* The time card: the one memorable element. */
.card {
    position: relative; margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 6px solid var(--ink);   /* the printed header strip of a time card */
    border-radius: 0;                    /* square paper */
    padding: 1.4rem 1.4rem 1.2rem;
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(29, 47, 99, .45);
    transform: rotate(-1.2deg);
    max-width: 30rem; justify-self: center; width: 100%;
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: .9rem; border-bottom: 2px solid var(--ink); }
.card-title { font-weight: 800; color: var(--ink); font-variation-settings: "wdth" 115; font-size: 1.05rem; }
.card-who { text-align: right; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.card-table { width: 100%; border-collapse: collapse; margin-top: .4rem; font-size: .95rem; }
.card-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .85rem; padding: .55rem .25rem; }
.card-table td { padding: .6rem .25rem; border-top: 1px dashed var(--line); }
.card-table .t { font-family: var(--clock); color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.card-table .h { font-family: var(--clock); font-size: .78rem; color: var(--muted); }
.card figcaption { margin-top: .9rem; font-size: .85rem; color: var(--muted); }
.stamp {
    position: absolute; right: -.6rem; bottom: 5.4rem;   /* over the open Friday row, clear of the caption */
    display: grid; justify-items: center;
    padding: .55rem 1rem .45rem;
    color: var(--seal);
    border: 3px solid var(--seal); border-radius: 8px;
    outline: 1.5px solid var(--seal); outline-offset: 3px;
    font-weight: 800; font-size: 1.35rem; line-height: 1;
    font-variation-settings: "wdth" 120;
    letter-spacing: .04em;
    transform: rotate(-11deg);
    opacity: .88;
    mix-blend-mode: multiply;
    background: rgba(10, 111, 192, .04);
}
.stamp small { font-size: .7rem; font-weight: 600; letter-spacing: .02em; margin-top: .25rem; }
@media (prefers-reduced-motion: no-preference) {
    .stamp { animation: stamp-in .5s cubic-bezier(.22, 1, .36, 1) .7s both; }
    @keyframes stamp-in {
        from { opacity: 0; transform: rotate(-11deg) scale(1.8); }
        to   { opacity: .88; transform: rotate(-11deg) scale(1); }
    }
}
@media (max-width: 30rem) { .stamp { right: .2rem; bottom: 5.8rem; font-size: 1.15rem; } }

/* ---- Sections ----------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--tint); }

.law { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .law { grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: start; } }
.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; max-width: 60ch; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: .45rem;
    width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.fine {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: grid; gap: .75rem;
}
.fine h3 { font-size: 1.05rem; color: var(--text); font-weight: 650; }
.fine-amount { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; color: var(--ink); line-height: 1.15; font-variation-settings: "wdth" 110; }
.fine .source { font-size: .85rem; color: var(--muted); }

.steps { list-style: none; counter-reset: paso; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }
.steps li { counter-increment: paso; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before {
    content: "Paso " counter(paso);
    display: block; margin-bottom: .35rem;
    color: var(--seal); font-weight: 650; font-size: .95rem;
}
.steps p { margin-top: .5rem; color: var(--muted); }

/* Capturas del producto */
.screens { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 62rem) { .screens { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.screen { margin: 0; }
.screen > img, .screen-bar {
    display: block; width: 100%;
    border: 1px solid var(--line); border-top: 0;
}
.screen > img { height: auto; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 24px 48px -32px rgba(0, 33, 68, .45); }
.screen-bar {
    display: flex; gap: .35rem; align-items: center;
    height: 1.6rem; padding: 0 .7rem;
    background: var(--white); border-top: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
}
.screen-bar span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line); }
.screen figcaption { margin-top: 1rem; color: var(--muted); max-width: 60ch; }
.screen figcaption strong { color: var(--ink); }

/* Para despachos contables */
.accountants { background: var(--ink); color: var(--white); }
.accountants h2 { color: var(--white); }
.accountants .lede { color: #c5d3e6; }
.accountants-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .accountants-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.checks-light li { color: #dbe4f0; }
.checks-light strong { color: var(--white); }
.checks-light li::before { background-color: var(--brand); }
.screen-dark .screen-bar { background: #0e2c52; border-color: #1d3d66; }
.screen-dark .screen-bar span { background: #2b4d78; }
.screen-dark > img { border-color: #1d3d66; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.screen-dark figcaption { color: #c5d3e6; }

.features { display: grid; gap: 2.5rem 3rem; margin-top: 2.5rem; }
@media (min-width: 52rem) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature ul { margin: .9rem 0 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.feature li::marker { color: var(--seal); }

.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
    font-weight: 650; color: var(--ink); font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
    font-size: 1.6rem; font-weight: 400; color: var(--seal);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.25rem; max-width: 62ch; color: var(--text); }

/* ---- Contact ------------------------------------------------------ */
.contact { background: var(--ink-deep); color: var(--white); }
.contact h2 { color: var(--white); }
.contact .lede { color: #dfe4f2; }
.contact-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1.3fr .7fr; } }
.contact-actions { display: grid; gap: .75rem; justify-items: stretch; }
@media (min-width: 62rem) { .contact-actions { justify-items: start; } }
.link-light { color: var(--white); text-underline-offset: 4px; }
.contact-missing { color: #dfe4f2; }

/* ---- Footer ------------------------------------------------------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 2rem 0; font-size: .95rem; }
.footer-row { display: grid; gap: .4rem; }
