/*Fuentes*/

@font-face {
  font-family: 'Fira Sans Regular';
  src: url("../fonts/Fira_Sans/FiraSans-Regular.ttf");
  font-style: normal;
}

@font-face {
  font-family: 'Fira Code';
  src: url("../fonts/Fira_Code/FiraCode-VariableFont_wght.ttf");
}


:root {
    --clr-principal: hsl(0, 0%, 8%);
    --clr-secundario: hsl(0, 0%, 95%);
    --clr-acento: hsl(277, 100%, 65%);
}

/*Estilos generales*/
body {
    margin: 0;
    color: var(--clr-principal);
    background-color: var(--clr-secundario);
    font-family: 'Fira Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body, 
main,
section,
footer {
    display: grid;
}

section {
    min-height: 100vh;
    width: 100%;
}

h1,
p {
    margin: 0;
    padding: 0;
}

/* Orden del body */
header {
    order: 2;
}

#bienvenida {
    order: 1;
}

#ux {
    order: 3;
}

#opensource {
    order: 4;
}

#ciber {
    order: 5;
}

#vision {
    order: 6;
}

footer {
    order: 7;
}

/* Scroll */
.scroll-watcher {
    background-color: var(--clr-acento);
    position: fixed;
    top: 0;
    z-index: 1000;
    height: 10px;
    width: 100%;
    scale: 0 1;
    transform-origin: left;
    animation: scroll-watcher linear;
    animation-timeline: scroll();
}

@keyframes scroll-watcher {
    to {scale: 1 1;}
}

#bienvenida {
    display: grid;
    justify-content: center;
    align-items: center;

    position: relative;

    overflow: hidden;
}

#bienvenida .presentacion {
    position: absolute;
}

#bienvenida .hola {
    position: absolute;
    background-color: rgba(239, 239, 239, 0.861);
    width: 100%;
    height: 100%;
}


/* header y nav */

header {
    min-height: 90px;
    padding: 10px 2rem 1rem;
    position: sticky;
    top: 0;
    background-color: var(--clr-secundario);

    display: grid;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a:link,
a:visited {
    font-family: 'Fira Code';
    text-decoration: none;
    color: var(--clr-principal);
    font-weight: 900;
    display: block;
    padding: 0.5rem 1rem;
}

a:hover,
a:active {
    font-family: 'Fira Code';
    background-color: var(--clr-acento);
    color: var(--clr-secundario);
    border-radius: 1rem;
}

/* Centrado */
nav,
footer ul {
    width: min(1136px, 100%);
    margin: 0 auto;
}

section {
    min-height: 100vh;
    justify-items: center;
    align-items: center;
    align-content: center;
    gap: 0.5rem;
}

section h1, 
section p {
    width: min(550px, 100%);
    font-size: 14px;
    font-family: 'Fira Code', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

section h1 {
    line-height: 1.1;
    font-weight: 900;
}

section p {
    line-height: 1.4;
    font-weight: 400;
}

/* Footer */

footer {
    background-color: var(--clr-principal);
    color: var(--clr-secundario);
    min-height: 120px;
}

footer ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}