:root {
    --s950: #16233B;
    --s900: #303E78;
    --s800: #524C81;
    --s700: #625CA3;
    --s600: #6664AC;
    --s200: #D3D5EA;
    --s100: #E6E7F3;
    --s50: #F4F5FA;
    --red: #EA3D41;
    --green: #46CA5A;
    --t24: 1.5rem;
    --t14: .875rem;
    --t12: .75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/fonts/worksans-semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/fonts/worksans-medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/fonts/worksans-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    color: var(--s950);
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem 1rem;
    font-size: .75rem;
    border-radius: 2rem;
    border: none;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.5rem;
}

.btn {
    background: var(--s50);
    color: var(--s950);
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--s600);
    color: var(--s50);
}

.btn2 {
    background: var(--s800);
    color: var(--s50);
    transition: all 0.2s ease;
}

.btn2:hover {
    background: var(--s900);
    color: var(--s50);
}

.btn3 {
    background: var(--s900);
    color: var(--s50);
    transition: all 0.2s ease;
}

.btn3:hover {
    background: var(--s950);
    color: var(--s50);
}

.btn4 {
    background: var(--s100);
    color: var(--s950);
    transition: all 0.2s ease;
}

.btn4:hover {
    background: var(--s800);
    color: var(--s50);
}

.btn5 {
    background: rgba(234, 61, 64, 0.24);
    color: var(--red);
    transition: all 0.2s ease;
}

.btn5:hover {
    background: var(--red);
    color: var(--s50);
}

/* Header */

header {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.08);
    padding: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    width: 148px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10;
}

/* Menú lateral */

.menu {
    position: fixed;
    top: 0;
    left: -64%;
    width: 64%;
    height: 100%;
    background: white;
    transition: left 0.2s ease;
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu.open {
    left: 0;
}

/* Encabezado del menú */

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

#openMenu {
    background: none;
    padding: 0;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#openMenu:hover {
    color: var(--s600);
}

.close-btn {
    color: var(--red);
    width: 2rem;
    background: none;
    border: none;
}

/* Enlaces del menú */

.menu-links {
    flex-grow: 1;
}

.menu-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1.5px solid var(--s100);
    color: var(--s950);
    font-size: var(--t14);
    font-weight: 600;
    transition: all 0.2s ease;
}

.menu-links a:hover {
    background: var(--s800);
    color: var(--s50);
}

.menu-links a svg {
    width: 2rem;
    color: var(--s600);
    transition: all 0.2s ease;
}

.menu-links a:hover svg {
    color: var(--s50);
}

  /* Texto de versión */

.menu-footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    font-size: var(--t12);
}

.menu-footer a {
    color: var(--s600);
}

/* Footer */

footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0 1rem;
}

footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    color: var(--s950);
    font-weight: 600;
    font-size: var(--t14);
    height: 100%;
    padding: 1rem 0;
}

footer a:hover {
    color: var(--s700);
}

footer a svg {
    width: 1.5rem;
    transition: all 0.2s ease;
}

@media (max-width: 416px) {
    html {
        font-size: 14px;
    }
}