:root {
    /* Neutros (superficies y texto) */
    --bg: #F0E9D8;
    --surface: #FBF6E9;
    --surface-2: #FFFDF6;
    --line: #D8CCB2;
    --ink: #2A2620;
    --muted: #7B7361;

    /* Acentos */
    --brand: #5E8A00;
    /* chartreuse profundo (CTA) */
    --baraja: #C85A12;
    /* naranja calabaza */
    --cacho: #138A4E;
    /* verde esmeralda */
    --cricri: #D63B3B;
    /* rojo vivo */
    --rey: #B5820A;
    /* oro / ámbar */
    --quien: #7C53D6;
    /* morado */
    --logo: #000000;

    /* Tipografía */
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-round: ui-rounded, "SF Pro Rounded", "Baloo 2", system-ui, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(circle at 15% -6%, rgba(94, 138, 0, 0.07), transparent 40rem),
        radial-gradient(circle at 92% 2%, rgba(200, 90, 18, 0.06), transparent 38rem),
        var(--bg);
    background-attachment: fixed;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 48px, 1080px);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 max(24px, calc((100vw - 1080px) / 2));
    background: rgba(240, 233, 216, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--ink);
    outline: none;
}

.brand-mini {
    font-family: var(--font-round);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ink);
    text-decoration: none;
}

/* Hero */
.hero {
    padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.wordmark {
    display: block;
    width: auto;
    height: clamp(54px, 11vw, 84px);
}

.hero h1 {
    font-family: var(--font-round);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.01em;
}

.hero h1 .accent {
    color: var(--brand);
}

.hero .tagline {
    max-width: 32rem;
    color: var(--muted);
    font-size: clamp(16px, 2.4vw, 20px);
    line-height: 1.45;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

/* Screenshots */
.shots {
    padding: clamp(8px, 3vw, 24px) 0 clamp(48px, 6vw, 80px);
}

.shots-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.shot {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shot img {
    width: 100%;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(42, 38, 32, 0.14);
}

.shot figcaption {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    line-height: 1.35;
}

.shot figcaption strong {
    display: block;
    font-family: var(--font-round);
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

/* Features */
.features {
    padding: clamp(40px, 6vw, 72px) 0;
    border-top: 1px solid var(--line);
}

.features h2 {
    font-family: var(--font-round);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: clamp(28px, 4vw, 44px);
    max-width: 18ch;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 14px;
    background: var(--surface);
}

.feature-card .ico {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 24px;
    margin-bottom: 16px;
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.feature-card:nth-child(1) {
    --accent: var(--baraja);
}

.feature-card:nth-child(2) {
    --accent: var(--cacho);
}

.feature-card:nth-child(3) {
    --accent: var(--rey);
}

.feature-card h3 {
    font-family: var(--font-round);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Legal links */
.legal {
    padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
    border-top: 1px solid var(--line);
}

.legal h2 {
    font-family: var(--font-round);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    margin-bottom: 20px;
}

.legal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Tercer bloque (impar) centrado en la última fila */
.legal-links a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 14px) / 2);
    justify-self: center;
}

.legal-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
    border-color: color-mix(in srgb, var(--brand) 50%, transparent);
    background: color-mix(in srgb, var(--brand) 7%, transparent);
    transform: translateY(-2px);
    outline: none;
}

.legal-links .label {
    font-size: 16px;
    font-weight: 700;
}

.legal-links .sub {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.legal-links .arrow {
    color: var(--brand);
    font-size: 18px;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-inner a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-inner a:hover {
    color: var(--ink);
}

@media (max-width: 880px) {
    .shots-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .legal-links {
        grid-template-columns: 1fr;
    }

    .legal-links a:last-child:nth-child(odd) {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 32px, 1080px);
    }

    .shots-track {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}
