@import url('https://fonts.googleapis.com/css2?family=Victor+Mono&display=swap');

/* CSS Variables */
:root {
    --primary-color: #2D3250;
    --bg-color: #ffffff;
    --bg-card-color: #e9e9e9;
    --bg-footer-color: #e9e9e9;
    --text-color-tog: #ffffff;
    --border-radius: 0.8em;
    --transition: color 0.1s ease-in-out, background-color 0.2s ease-in-out;
    --skills-bar-length: 0%;
    --left: 0px;
    --top: 0px;
}

/* CSS Reset */
* {
    box-sizing: border-box;
    font-family: 'Victor Mono', monospace;
    scroll-behavior: smooth;
}

/* CSS Global */
a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    display: block;
}

body {
    margin: 0%;
    padding: 0%;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.dark {
    --primary-color: #ffffff;
    --text-color-tog: #ffffff;
    --text-color: #50d890;
    --bg-color: #232931;
    --bg-card-color: #1d2127e1;
    --bg-footer-color: #1d2127e1;
    transition: var(--transition);
}

/* Para el scroll */
body::-webkit-scrollbar {
    width: 7px;
    /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
    background: var(--bg-card-color);
    /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: var(--primary-color);
    /* color of the scroll thumb */
    border-radius: 50px;
    /* roundness of the scroll thumb */
    border: 1px solid;
    /* creates padding around scroll thumb */
}

::selection {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* CSS Header que contiene la navegación sobre la página */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    padding: 0 1.5em;
    border: solid 0.5px;
    border-radius: 0 0 10px 10px;
    background-color: var(--bg-card-color);
    transition: var(--transition);
    overflow: hidden;
    z-index: 999;
}

/*Estilo para los switches que cambian el tema de la página*/
.switches {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toggle-theme_icon {
    margin-right: 0.5em;
    width: 20px;
    filter: invert(88%) sepia(28%) saturate(290%) hue-rotate(50deg) brightness(101%) contrast(95%);
}

.toggle-theme_text {
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.flags {
    width: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flags__item {
    width: 22px;
}

.flags__img {
    display: block;
    cursor: pointer;
    border-radius: 50%;
}

.colors {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    width: 75px;
}

.colors__item {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
}

.colors__item--Navy {
    background-color: #2D3250;
}

.colors__item--Orange {
    background-color: #FF8551;
}

.colors__item--Green {
    background-color: #50d890;
}

.main {
    display: grid;
    padding: 0.7em;
    gap: 0.7em;
    padding-top: 80px;
    padding-bottom: 20px;
}

@media screen and (min-width: 720px) {
    .main {
        grid-template-columns: min-content 1fr;
        padding-top: 90px;
    }
}

.column {
    display: grid;
    gap: 0.8em;
}


@media screen and (min-width: 720px) {
    .column--right {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, min-content);
    }
}


.card {
    padding: 1em;
    background-color: var(--bg-card-color);
    color: var(--text-color);
    transition: var(--transition);
    border: 0.5px solid;
    border-radius: var(--border-radius);
}

.shadowne {
    box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.card--container {
    display: grid;
    gap: 0.5em;
    /*haremos que este div sea scrolleable*/
    overflow-y: scroll;
    height: 755px;
    width: 100%;
    background-color: var(--bg-card-color);
    padding: 10px;
    grid-column: 1 / -1;
    border-radius: var(--border-radius);
}

/*damos estilos al scroll del div card--container*/
.card--container::-webkit-scrollbar {
    width: 4px;
    /* width of the entire scrollbar */
}

.card--container::-webkit-scrollbar-track {
    background: var(--bg-card-color);
    border-radius: var(--border-radius);
    /* color of the tracking area */
}

.card--container-on {
    display: block;
    gap: 0.5em;
    background-color: var(--bg-card-color);
    grid-column: 1 / -1;
    border-radius: var(--border-radius);
}

.card--container::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: var(--primary-color);
    /* color of the scroll thumb */
    border-radius: 50px;
    /* roundness of the scroll thumb */
    border: 1px solid;
    /* creates padding around scroll thumb */
}

@media screen and (min-width: 720px) {
    .card--project {
        display: grid;
        grid-template-columns: min-content 1fr;
        grid-column: 1 / -1;
    }

}

.card__image-container {
    display: inline-block;
    position: relative;
    min-width: 310px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card__image-container2 {
    display: flex;
    justify-content: center center;
    min-width: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.download-cv {
    display: flex;
    justify-content: center center;
    align-items: center;
    min-width: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* media query para download cv que se mantenga al centro sin margenes derechos ni izquierdos*/

@media screen and (max-width: 720px) {
    .download-cv {
        margin-left: 0;
        margin-right: 0;
    }
}

.card__image-container .download-cv a {
    position: absolute;
    bottom: 1em;
    left: 1em;
    right: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2d597734;
    border: var(--text-color-tog) solid 1px;
    border-radius: 20px;
    color: var(--text-color-tog);
    padding: 1em 1em;
    margin-top: 0;
    margin-bottom: 0;
}


.card__image-container .download-cv a:hover {
    border: var(--text-color) solid 1px;
    color: var(--text-color);
    background-color: var(--bg-card-color);
    transition: var(--transition);
}

.card__image-container .download-cv span {
    align-items: center;
}

/*media query para que el botón no se extienda de más en pantallas pequeñas*/

@media screen and (max-width: 720px) {
    .card__image-container .download-cv a {
        left: 15%;
        right: 15%;
    }
}


.card__header {
    padding: 1em 0;
}

.card__title {
    margin-bottom: 1em;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.card__subtitle {
    opacity: 0.8;
    font-size: 1rem;
}

.card__subtitle .profession {
    color: var(--primary-color);
}

.card__link {
    margin-bottom: 0.5em;
}

.card__link:hover {
    color: var(--primary-color);
    transition: var(--transition);
}

.link--text {
    color: var(--text-color);
    transition: var(--transition);
}

.link--text:hover {
    color: var(--primary-color);
    transition: var(--transition);
}

.card__text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.skills {
    padding: 1em 0;
}

.skills__header {
    display: flex;
    justify-content: space-between;
    width: 175px;
    margin-left: auto;
}

.skills__tech {
    margin: 0%;
    font-size: 0.7rem;
}

.skills__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.skills__bar,
.skills__bar::after {
    position: relative;
    width: 175px;
    height: 8px;
    background-color: #70707049;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.skills__bar::after {
    content: '';
    position: absolute;
    left: -175px;
    background-color: var(--primary-color);
    transition: var(--transition);
    animation: skills-bar-fill 2s ease-in-out forwards;
}

.skills__bar--10::after {
    --skills-bar-length: 10%;
}

.skills__bar--20::after {
    --skills-bar-length: 20%;
}

.skills__bar--30::after {
    --skills-bar-length: 30%;
}

.skills__bar--40::after {
    --skills-bar-length: 40%;
}

.skills__bar--50::after {
    --skills-bar-length: 50%;
}

.skills__bar--60::after {
    --skills-bar-length: 60%;
}

.skills__bar--70::after {
    --skills-bar-length: 70%;
}

.skills__bar--80::after {
    --skills-bar-length: 80%;
}

.skills__bar--90::after {
    --skills-bar-length: 90%;
}

.skills__bar--100::after {
    --skills-bar-length: 100%;
}

.experience {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    padding: 1em;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.experience__time {
    font-size: 0.8rem;
    margin-bottom: 0.5em;
}

.experience__description {
    font-size: 0.9rem;
    line-height: 1.5em;
}

.experience__job {
    margin: 0;
    margin-bottom: 0.5em;
    color: var(--primary-color);
    transition: var(--transition);
}

.project {
    position: relative;
}

@media screen and (min-width: 760px) {
    .project {
        margin-left: 2em;
    }
}

.icon {
    margin-right: 0.6em;
    margin-left: 0.6em;
}

.project__tags {
    display: flex;
    justify-content: space-between;
    margin: 0.5em 0;
    font-size: 0.6rem;
    width: 275px;
}

@media screen and (min-width: 760px) {
    .project__tags {
        width: 325px;
        font-size: 0.8rem;
    }
}

.project__tag {
    padding: 0.4em 0.8em;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}


@media screen and (min-width: 760px) {
    .buttons {
        position: relative;
        bottom: .3em;
    }
}



@media screen and (min-width: 720px) {
    .buttons {
        position: relative;
        bottom: .3em;
    }
}


.buttons {
    display: flex;
    justify-content: space-between;
    width: 225px;
}

.button {
    width: 100px;
    line-height: 2.5;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.button--primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.button--primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.button--ghost {
    background-color: transparent;
    color: var(--primary-color);
}

.button--ghost:hover {
    background-color: var(--primary-color);
    color: var(--bg-card-color);
}

.no-margin {
    margin: 0;
}

@keyframes skills-bar-fill {

    to {
        transform: translateX(var(--skills-bar-length));
    }

}

/* CSS Footer */

.footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    padding: 2em;
    border-top: var(--primary-color) solid 2px;
    background-color: var(--bg-footer-color);
    color: var(--text-color);
}

/*media query para que el contenido se forme en una sola columna*/

@media screen and (max-width: 720px) {
    .footer {
        width: 109%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.footer p {
    font-size: 1rem;
    text-align: center;
    margin: 0;
    left: 0;
    right: 0;
    margin-top: 0.5em;
    color: var(--text-color);
}

.footer .footer--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    gap: 0.5em;
}

.footer .footer--logo span {
    color: var(--primary-color);
    font-weight: bold;
}

.footer .links--container {
    display: flex;
    font-size: 23px;
    margin-right: 2.5em;
    margin-top: 15px;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

/*media query para quitar el margen derecho de los links en pantallas pequeñas*/

@media screen and (max-width: 720px) {
    .footer .links--container {
        margin-right: 0;
    }
}


.line {
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    width: 100%;
    margin-top: 15px;
}


/*estilo para el botón de volver arriba*/

.button--up {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 25%;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: var(--primary-color) solid 1px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.button--up_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/*para github*/

.button--up:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
    transition: var(--transition);
}

.button--up i {
    font-size: 1.5rem;
}

/*estilos para el modal*/

.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.805);
    z-index: 99999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog .border {
    width: 895px;
    position: relative;
    margin: 2% auto;
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    background: var(--bg-card-color);
}

.close {
    background: var(--bg-color);
    color: var(--primary-color);
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    box-shadow: 1px 1px 3px #000;
}

.close:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transition: var(--transition);
}

.modal__content {
    height: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mostrarpdf {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow-y: auto;
}

/*estilos para el scroll del modal*/

.mostrarpdf::-webkit-scrollbar {
    width: 4px;
    /* width of the entire scrollbar */
}

.mostrarpdf::-webkit-scrollbar-track {
    background: var(--bg-card-color);
    border-radius: var(--border-radius);
    /* color of the tracking area */
}

.mostrarpdf::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: var(--primary-color);
    /* color of the scroll thumb */
    border-radius: 50px;
    /* roundness of the scroll thumb */
    border: 1px solid;
    /* creates padding around scroll thumb */
}

/*estilos para sección descarga*/

.seccion__descarga{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 7px;
}
/*estilos para el botón de descarga del modal*/

.button--modal {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 190px;
    height: 50px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: var(--primary-color) solid 1px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.button--modal:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
    transition: var(--transition);
}

.button--modal i {
    font-size: 1.5rem;
}

/*media query para adaptar el modal a smartphones*/

@media screen and (max-width: 720px) {
    .modalDialog .border {
        width: 90%;
    }
}

/*media query para adaptar el modal a tablets*/

@media screen and (min-width: 720px) and (max-width: 1024px) {
    .modalDialog .border {
        width: 90%;
    }
}

/*contador de visitas*/

.visitas {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 7px;
}