:root {
    --blue: #0a3268;
    --blue-deep: #0a3268;
    --ink: #1a2332;
    --muted: #6b7280;
    --nav: #5f6772;
    --line: #e6e8ec;
    --page: #f5f6f8;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    --header-h: 72px;
    --max: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner,
.hero-inner,
.docs-inner,
.footer-inner {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    height: 52px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: var(--nav);
    font-size: 0.98rem;
    font-weight: 500;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--blue);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle span::before {
    top: -6px;
}

.menu-toggle span::after {
    top: 6px;
}

.hero {
    background-color: var(--blue);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    color: #fff;
}

.hero-inner {
    padding: 88px 0 96px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
    max-width: 16ch;
}

.hero p {
    margin-top: 22px;
    max-width: 34rem;
    font-size: 1.12rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

.action {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 56px 24px 28px;
}

.docs {
    padding: 28px 0 72px;
}

.docs-head {
    max-width: 40rem;
    margin-bottom: 22px;
}

.docs-head h2 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.docs-head p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
}

.docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.doc-card {
    background: var(--card);
    border: 1px solid #eceff3;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 20px 22px 18px;
}

.doc-card h3 {
    margin-top: 10px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.doc-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.45;
}

.doc-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef3f9;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.doc-card-food {
    grid-column: 1 / -1;
    border-color: #d5e0ee;
    background: #f8fafc;
}

.doc-card-food p + p {
    margin-top: 8px;
}

.doc-example {
    color: var(--ink);
}

.action-card {
    width: min(420px, 100%);
    background: var(--card);
    border: 1px solid #eceff3;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 42px 36px 36px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover,
.action-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
}

.action-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--blue);
    display: grid;
    place-items: center;
}

.action-icon svg {
    width: 30px;
    height: 30px;
}

.action-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.action-card p {
    color: #8b93a0;
    font-size: 0.98rem;
    line-height: 1.45;
}

.footer {
    background: #0a3268;
    color: #fff;
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1.1fr 0.9fr;
    gap: 32px 40px;
}

.footer h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.footer h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-brand p,
.footer-grid a,
.footer-grid p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-grid h2,
.footer-grid h3 {
    margin-bottom: 6px;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: #fff;
}

.hours {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.hours span:first-child {
    font-weight: 700;
    color: #fff;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
    line-height: 1.7;
}

@media (max-width: 860px) {
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0 12px;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 12px 24px;
    }

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

    .hero-inner {
        padding: 64px 0 72px;
    }

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

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal bloqueante: proceso cerrado */
.closed-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 26, 48, 0.72);
    backdrop-filter: blur(2px);
}

.closed-dialog {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.closed-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef3f9;
    color: var(--blue);
}

.closed-icon svg {
    width: 30px;
    height: 30px;
}

.closed-dialog h2 {
    color: var(--blue);
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.closed-dialog p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

body.closed-locked {
    overflow: hidden;
    touch-action: none;
}
