:root {
    --text-color: rgb(255, 255, 255);
    --title-color: rgb(195, 250, 44);
    --accent-color: rgba(255, 35, 122);
    --secondary-color: rgb(252, 254, 255);
    --title-font: "Oswald", sans-serif;
    --text-font: "adapter-mono-pe-variable", sans-serif;
}

html {
    font-size: 10px;
    /* 100% - 1rem */
    scroll-behavior: smooth;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--text-font);
    background-image: url("../img/foto-hero-editada.png");
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    font-variation-settings: "BORD" 300, "ital" 0, "slnt" 0, "wght" 200;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: inherit;
    font-family: var(--text-font);
    font-variation-settings: 'wdth' 500;
    font-weight: 100;


}

a:hover {
    color: var(--accent-color);
    font-variation-settings: 'wdth' 400;
}

h1,
h2,
h3,
h4 {
    font-family: var(--title-font);
    font-variation-settings: "wdth" 900;
    font-weight: 100;
    color: var(--secondary-color);
    padding: 2rem;
}

h1 {
    color: var(--title-color);
    font-size: 16vw;
    margin: 0 0 0.5rem;
    font-variation-settings: "wgth" 900;
    font-weight: 900;
    text-transform: uppercase;
    padding: 2rem;
}

h2 {

    font-size: clamp(1.6rem, 1.6vw + 1rem, 2.4rem);
    margin: 0 0 0.6rem;
    font-size: 4.0vw;
    color: var(--title-color);
    font-weight: 400;
    padding: 2rem;
    font-variation-settings: "wdth" 900;
}

h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
    padding: 2rem;
}

h4 {
    font-size: 1.2rem;
    padding: 2rem;
}

p,
li {
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-variation-settings: "wdth" 500;
    padding: 2rem;
}

a:hover {
    color: var(--accent-color);
}

.site-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem 8vw 2.5rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-content {
    padding: 2rem;
}

.logo {
    font-family: var(--tittle-font);
    font-size: 1.4rem;
    color: var(--accent-color);
}

footer {
    font-size: 1em;
}

footer#home-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.hero {
    display: grid;
    gap: 0.5rem;
}

.hero h1 {
    margin: 0;
    padding-bottom: 0.2rem;
    padding-top: 0;
    transform: translateY(-0.8rem);
}

.hero h2 {
    margin: 0;
    margin-top: -7rem;
    padding-top: 0;
    line-height: 1.15;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin: 0;
}

.lead {
    font-size: 1.5rem;
    color: rgb(255, 255, 255);
    padding: 2.5rem;
    background: rgba(53, 52, 52, 0.7);
    border-radius: 16px;
    font-family: var(--text-font);
}

.hero-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--accent-soft);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(230, 91, 27, 0.2);
}

main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 7rem;

}

.section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(18, 24, 30, 0.08);

}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.callout {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(42, 80, 100, 0.08);
    border-left: 4px solid var(--secondary-color);
}

ol,
ul {
    padding-left: 1.2rem;
}

footer {
    text-align: center;
    width: 100%;
    font-size: 3rem;

}

footer a {
    display: block;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
}

#home-footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 4.2rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

#home-footer a {
    position: relative;
    overflow: visible;
}

#home-footer a::before {
    content: "Leer documento";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.4rem);
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    font-size: 1.2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

footer a:hover,
footer a:active {
    background-color: white;
    color: var(--accent-color);
}

#home-footer a:hover::before,
#home-footer a:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

@media (max-width: 700px) {

    .site-header,
    main {
        padding: 1.5rem 6vw 2.5rem;
    }
}