/* GENERAL */

:root {
    --line-border: 2px solid black;
    --title-box: 30px;
    --title-color: white;
    --bck-color: #ffffff;
    --line-color: black;
    --box-space: 20px;
    --box-margin: 10px;
    --box-bck: linear-gradient(#ffffff66, #ffffff66);
    --box-corner: url(img/corner.png);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Roboto Mono, sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    justify-content: center;
    background-color: var(--bck-color);
    background-image: url(img/grid_10.png);
}

a {
    all: unset;
    text-decoration: underline;
    color: var(--line-color);
}

a:hover {
    text-decoration: none;
    background-color: var(--line-color);
    color: var(--title-color);
    cursor: pointer;
    /* TRANSITIONS */
    -webkit-transition: background-color 250ms linear;
    -ms-transition: background-color 250ms linear;
    transition: background-color 250ms linear;
    -webkit-transition: background-color 100ms linear;
    -ms-transition: background-color 100ms linear;
    transition: background-color 100ms linear;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 1200px;
    height: 100%;
    padding: 0 100px;
}

.box {
    margin: var(--box-margin);
    padding: var(--box-space);
    border: var(--line-border);
    border-top: 30px solid var(--line-color);
    border-radius: 5px;
    background-color: var(--bck-color);
    background-image: var(--box-bck);
    filter: drop-shadow(10px 10px 0px rgba(0, 0, 0, .05));   
}

.box:after {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
    margin-right: 5px;
    transform-origin: right bottom;
    transform: scale(.15);
    opacity: .3;
    background-image: var(--box-corner);
    content: "";
}

.title {
    position: absolute;
    top: -25px;
    color: var(--title-color);
}

hr {
    all: unset;
    margin: 10px 0;
    border-bottom: 1px solid var(--line-color);
}

/* HELLO */

#container-hello {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

#hello {
    margin: auto auto;
}

#im {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--line-color);
}

/* CONTACT */

#main-info {
    display: none;
    margin-top: -100px; 
    width: calc(100% - (var(--box-margin))*2);
    min-height: 230px;
    opacity: 0;
    z-index: 0;
}

#name {
    min-height: 32px;
    font-size: 24px;
    font-weight: bold;
    line-height: 32px;
    color: var(--line-color);
}

.line-dotted {
    margin: 15px 0;
    padding: 1px;
    background-image: linear-gradient(to right, var(--line-color) 33%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 5px 5px;
    background-repeat: repeat-x;
}

.contact-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 20px;
    height: 30px;
    color: var(--line-color);
}

.contact-line > a, .contact-line p {
    padding: 0 10px;
    border-radius: 20px;
}

.contact-line svg {
    margin-right: 10px;
    fill: var(--line-color);
}

/* TOOLS */

#works {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    width: calc(100% - (var(--box-margin))*2);
    padding: var(--box-space);
    margin-bottom: 300px;
    z-index: -3;
}

#tools {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    width: calc(100% - (var(--box-margin))*2);
    z-index: -1;
}

.tooltip-container {
    width: 80%;
    height: 80%;
    margin: auto;
    grid-column: 1fr;
}

#tools-grafico {
    display: none;
    width: calc(50% - (var(--box-margin)));
    min-height: 400px;
    opacity: 0;
    z-index: -1;
}

#tools-grafico-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
}

#tools-grafico-grid svg {
    width: 100%;
    height: auto;
    opacity: 0;
}

#tools-grafico-grid svg path {
    fill: var(--line-color);
}

#tools-web-code {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: calc(50% - (var(--box-margin)));
}

#tools-code {
    display: none;
    width: 100%;
    opacity: 0;
    z-index: -1;
}

#tools-code-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
}

#tools-code-grid svg {
    width: 100%;
    height: 100%;
    margin: auto;
    opacity: 0;
    transform: scale(0);
}

#tools-code-grid svg path {
    fill: var(--line-color);
}

#tools-web {
    display: none;
    width: 100%;
    opacity: 0;
    z-index: -2;
}

#tools-web-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
}

#tools-web-grid svg {
    width: 100%;
    height: 100%;
    margin: auto;
    opacity: 0;
    transform: scale(0);
}

#tools-web-grid svg path {
    fill: var(--line-color);
}

.tooltipText {
    display: none;
    position: absolute;
    width: 120px;
    padding: 5px 0;
    color: #fff;
    text-align: center;
    background-color: black;
    z-index: 10;
}

.tooltip:hover > .tooltipText {
    display: block;
}

/* WORKS */

#works {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    width: calc(100% - (var(--box-margin))*2);
    padding: var(--box-space);
    margin-bottom: 300px;
    z-index: -3;
}

#works-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.works-line {
    display: flex;
    align-items: center;
    width: 100%;
    opacity: 0;
}

.works-line img {
    width: 75px;
    height: auto;
    margin-right: 20px;
    padding: 3px;
    border: 1px solid var(--line-color);
    filter: grayscale(100%);
    box-shadow: 3px 3px 0px  var(--line-color);
}

.works-line p {
    padding: 5px 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
    color: var(--line-color);
}

.works-line:hover {
    cursor: pointer;
}

.works-line:hover > p {
    cursor: pointer;
    border-radius: 20px;
    background-color: var(--line-color);
    color: var(--title-color);
    text-decoration: none;
    /* TRANSITIONS */
    -webkit-transition: background-color 250ms linear, color 100ms linear;
    -ms-transition: background-color 250ms linear, color 100ms linear;
    transition: background-color 250ms linear, color 100ms linear;
}

.works-line:hover > img {
    filter: grayscale(20%);
    /* TRANSITIONS */
    -webkit-transition: filter 250ms linear;
    -ms-transition: filter 250ms linear;
    transition: filter 250ms linear;
}

.works-line div {
    position: absolute;
    right: 0;
}

.works-line svg {
    width: 30px;
    height: 30px;
}

.works-line svg path {
    fill: var(--line-color);
}

.works-line #svg-fi {
    width: 27px;
    height: 27px;
    margin-left: -2px;
    margin-bottom: 2px;
}

.works-text-short {
    display: none;
}

/* POP-UP */

.pop-up {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: var(--line-border);
    border-top: 30px solid var(--line-color);
    border-radius: 10px;
    background-color: var(--bck-color);
    filter: drop-shadow(10px 10px 0px rgba(0, 0, 0, .1));
    z-index: 10;   
}

.pop-up-title {
    margin-left: var(--box-space);
}

.pop-up-close {
    position: absolute;
    top: -30px;
    right: 0;
    width: 30px;
    height: 30px;
}

.pop-up-close svg {
    stroke: var(--title-color);
}

.pop-up-close:hover {
    cursor: pointer;
}

.pop-up-text-container {
    color: var(--line-color);
    padding: var(--box-space) calc(var(--box-space)*1.5);
}

.pop-up-text-producto {
    font-size: 30px;
    font-weight: bold;
}

.pop-up-text-marca {
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
}

.pop-up-text-icons {
    display: flex;
    margin-top: 10px;
    margin-left: -3px;
}

.pop-up-text-icons svg path {
    fill: var(--line-color);
}

.pop-up-icons-1 {
    width: 25px;
    height: 25px;
}

.pop-up-icons-2 {
    width: 22px;
    height: 22px;
    margin-left: 1px;
    margin-top: .5px;
}

.pop-up-icons-3 {
    width: 20px;
    height: 20px;
    margin: 2px 2px 0 2px;
}

.pop-up-text-desc {
    font-size: 14px;
    text-align: left;
}

#pop-up-img {
    display: none;
    flex-direction: row;
    width: 75vw;
    height: 90vh;
    background-image: var(--box-bck);
}

#pop-up-img-img-container {
    display: flex;
    flex-wrap: wrap;
    width: 60%;
}

#pop-up-img-1 {
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center center;
}

#pop-up-img-2, #pop-up-img-3 {
    width: 50%;
    height: 50%;
    background-size: cover;
    background-position: center center;
}

#pop-up-img-text-container {
    margin: 0;
    width: 40%;
}

#pop-up-img-text-container .pop-up-text-company {
    margin-bottom: 20px;
}

#pop-up-img-text-visit {
    all: unset;
    display: flex;
    width: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 5px 25px;
    border: var(--line-border);
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    background-color: var(--line-color);
    color: var(--bck-color);
    z-index: 1;
    cursor: pointer;
}

#pop-up-img-text-visit:hover {
    background-color: var(--bck-color);;
    color: var(--line-color);
}

#pop-up-vid {
    display: none;
    flex-direction: column;
    width: 60vw;
    height: auto;
    background-image: var(--box-bck);
}

#pop-up-vid-vid-container {
    display: flex;
    width: 100%;
    height: auto;
    background-color: black;
}

#pop-up-vid-vid-container iframe {
    all: unset;
    border: none;
    width: 100%;
    aspect-ratio: 16 / 9;
}

#pop-up-vid-text-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 100%;
    margin-bottom: var(--box-space);
}

#pop-up-vid-text-container-1 {
    width: 100%;
}

#pop-up-vid-text-container-2 {
    width: 100%;
    height: 100%;
}

#pop-up-vid-text-container .pop-up-text-company {
    margin-bottom: 20px;
}

#pop-up-vid-text-container > p {
    color: var(--line-color)
}

.pop-up-line-dotted {
    margin: 10px 0;
    padding: 1px;
    background-image: linear-gradient(to right, var(--line-color) 33%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 5px 5px;
    background-repeat: repeat-x;
}

/* BUTTON */

#btn-0 {
    display: flex;
    margin: auto 0;
    font-size: 30px;
    padding: 10px 40px;
}

#btn-1 {
    display: none;
    position: relative;
    top: 220px;
    font-size: 14px;
    padding: 5px 20px;
    opacity: 0;
    }

#btn-2 {
    display: none;
    position: relative;
    top: 220px;
    font-size: 14px;
    padding: 5px 20px;
    opacity: 0;
}

.more {
    all: unset;
    display: flex;
    margin: 0 auto;
    margin-bottom: 300px;
    padding: 5px 20px;
    border: var(--line-border);
    border-radius: 50px;
    font-size: 10px;
    font-weight: bold;
    background-color: var(--bck-color);
    background-image: var(--box-bck);
    color: var(--line-color);
    z-index: 1;
    cursor: pointer;
}

.more:hover {
    background-color: var(--line-color);
    background-image: none;
    color: var(--bck-color);
}


#modo-noche {
    all: unset;
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 30px;
    height: 30px;
    padding: 10px;
    border: 2px solid var(--line-color);
    border-radius: 50px;
    background-color: black;
    box-shadow: 3px 3px 0 #00000077;
    z-index: 4;
}

.modo-color {
    all: unset;
    position: fixed;
    right: 20px;
    width: 14px;
    height: 14px;
    padding: 10px;
    border: 2px solid var(--line-color);
    border-radius: 50px;
    z-index: 4;
}

#modo-color-blanco {
    bottom: 28px;
    background-color: #ffffff;
}

#modo-color-azul {
    bottom: 78px;
    background-color: #e0ecd8;
}

#modo-color-verde {
    bottom: 128px;
    background-color: #c0ffb8;
}

#modo-color-azul-oscuro {
    bottom: 178px;
    background-color: #2c4555;
}

#modo-noche:hover {
    cursor: pointer;
}

/* MEDIA QUERIES */

@media screen and (max-width: 1400px) {

    #container {
        padding: 0 75px;
    }

    #tools-grafico {
        min-height: 0;
    }

    #pop-up-vid {
        width: 75vw;
        height: auto;
    }

    #pop-up-vid-text-container-1, #pop-up-vid-text-container-2 {
        width: 100%;
        margin-top: 0;
        padding-right: 0;
    }

    #pop-up-vid-text-container-1 .pop-up-text-producto {
        font-size: 30px;
    }

    #pop-up-vid-text-container-1 {
        height: auto;
    }

    #pop-up-img {
        flex-wrap: wrap;
        width: 90vw;
    }

    #pop-up-img-img-container {
        width: 100%;
        height: 50%;
    }

    #pop-up-img-1 {
        height: 100%;
        width: 50%;
    }

    #pop-up-img-2 {
        height: 100%;
        width: 25%;
    }

    #pop-up-img-3 {
        height: 100%;
        width: 25%;
    }

    #pop-up-img-text-container {
        width: 100%;
        height: 50%;
    }

    #pop-up-img-2 {
        width: 50%;
    }

    #pop-up-img-3 {
        display: none;
    }
}

@media screen and (max-width: 768px) {

    #container {
        padding: 0 20px;
    }

    #main-info {
        min-height: 0;
        height: auto;
        margin-top: -150px;
    }

    #tools .box {
        padding: calc(var(--box-space)/2);
    }

    #tools-grafico {
        min-width: calc(100% - (var(--box-margin))*2);
        min-height: 0;
    }

    #tools-grafico-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        width: 100%;
    }

    #tools-grafico-grid svg {
        width: 100%;
    }

    #tools-web-code {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    #tools-code, #tools-web {
        width: calc(50% - (var(--box-margin))*2);
    }

    #tools-code-grid, #tools-web-grid {
        margin: 10px auto;
    }

    #tools-code-grid svg, #tools-web-grid svg{
        min-height: 0;
        margin: auto;
    }

    #name {
        font-size: 20px;
        min-height: 35px;
    }

    .title {
        font-size: 14px;
    }

    #works {
        margin-bottom: 250px;
    }

    .works-line img {
        width: 60px;
    }
    
    .works-line p {
        font-size: 14px;
    }

    .works-text-large {
        display: none;
    }

    .works-text-short {
        display: block;
    }

    .works-line div {
        display: none;
    }

    #pop-up-vid {
        width: 85vw;
        height: auto;
    }

    #pop-up-vid-text-container {
        display: none;
    }

    #pop-up-img {
        width: 90vw;
    }

    #pop-up-img-img-container {
        height: 40%;
        margin-bottom: -50px;
    }

    #pop-up-img-text-container .pop-up-text-producto {
        font-size: 20px;
    }

    #pop-up-img-1 {
        display: none;
    }

    #pop-up-img-2 {
        width: 100%;
    }
}

@media screen and (max-width: 415px) {

    #container {
        padding: 0 15px;
    }

    .box {
        margin: var(--box-margin) 0 0 0;
    }

    #main-info {
        width: 100%;
        min-height: 230px;
    }

    #email {
        font-size: 16px;
        font-weight: 500;
    }

    #tools-grafico {
        min-width: 100%;
        min-height: 0;
    }

    #tools {
        width: 100%;
    }

    #tools-grafico-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
    }

    #tools-grafico-grid svg {
        width: 100%;
    }

    #tools-web-code {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    #tools-code, #tools-web {
        width: 100%;
    }

    #tools-code-grid svg, #tools-web-grid svg{
        min-height: 0;
        margin: auto;
    }

    #name {
        font-size: 20px;
    }

    .title {
        font-size: 14px;
    }

    #works {
        width: 100%;
    }

    .works-line img {
        width: 50px;
    }

    .works-line p {
        font-size: 12px;
        padding-right: 0px;
    }

    #modo-color {
        width: 20px;
        height: 20px;
        left: 10px;
        bottom: 10px;
    }

    #pop-up-vid {
        width: 90vw;
        height: auto;
    }

    #pop-up-vid-text-desc {
        display: block;
    }

    #pop-up-vid-text-container-1, #pop-up-vid-text-container-2 {
        width: 100%;
        padding-right: 0;
    }

    #pop-up-vid-text-container-1 .pop-up-text-producto {
        font-size: 20px;
    }

    #pop-up-vid-text-container-1 {
        height: auto;
    }

    #pop-up-img {
        width: 95vw;
        height: 90vh;
    }

    #pop-up-img-img-container {
        height: 40%;

    }

    #pop-up-img-text-container .pop-up-text-producto {
        font-size: 20px;
    }

    #pop-up-img-1 {
        display: none;
    }

    #pop-up-img-2 {
        width: 100%;
    }

    .pop-up-text-desc {
        display: none;
    }

    #pop-up-img-text-visit {
        margin-top: 15px;
    }
}

@media screen and (max-height: 1000px) {
    .pop-up-text-icons {
        margin-top: 5px;
    }
}

@media screen and (max-height: 415px) and (max-width: 1000px) {
    
    #pop-up-img-img-container {
        height: 100%;
    }
    
    #pop-up-img .pop-up-text-desc, #pop-up-img .pop-up-text-producto, #pop-up-img .pop-up-text-marca, #pop-up-img .pop-up-text-icons, #pop-up-img .pop-up-line-dotted {
        display: none;
    }

    #pop-up-img-text-container, #pop-up-img-text-visit {
        position: absolute;
        bottom: 0;
        right: 20px;
    }

    #pop-up-vid {
        width: 70vw;
        height: auto;
        margin:  0;
        background-color: var(--line-color);
    }

    #pop-up-vid #pop-up-vid-text-container {
        display: none;
    }
}

