:root {
    color-scheme: light;
    color: #111111;
    background: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111111;
    text-rendering: optimizeLegibility;
}

header,
main,
footer {
    width: min(96%, 64rem);
    margin: 0 auto;
    padding: 1.5rem 0;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
}

article {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

article header {
    margin-bottom: 1.5rem;
}

.breadcrumbs {
    margin: 1rem 0 0;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #4d4d4d;
    font-size: 0.95rem;
}

.breadcrumbs li::after {
    content: "/";
    margin-left: 0.5rem;
    color: #b3b3b3;
}

.breadcrumbs li:last-child::after {
    content: "";
}

nav[aria-label="Menu principal"],
footer nav[aria-label="Footer navigation"] {
    width: 100%;
}

nav[aria-label="Menu principal"] ul,
footer nav[aria-label="Footer navigation"] ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

nav a,
footer a,
.breadcrumbs a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible,
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: #000000;
    outline: none;
}

p {
    margin: 0 0 1.25rem;
    font-size: clamp(1rem, 1.1vw, 1.05rem);
}

p:last-child {
    margin-bottom: 0;
}

p strong,
strong {
    color: #000000;
}

:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 3px;
}

footer {
    border-top: 1px solid #e6e6e6;
    padding: 1.5rem 0 2rem;
}

footer p {
    margin: 1rem 0 0;
    color: #4d4d4d;
    font-size: 0.95rem;
}

footer nav[aria-label="Footer navigation"] {
    margin-top: 0.75rem;
}

@media (max-width: 48rem) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header,
    main,
    footer {
        padding: 1rem;
    }

    article {
        padding: 1.5rem;
    }

    nav[aria-label="Menu principal"] ul,
    footer nav[aria-label="Footer navigation"] ul {
        gap: 0.75rem;
    }
}