@import url("@assets/css/pico.min.css") layer(picocss);
@import url("@assets/css/svgstyles.css");

/* General changes */
:root {
    --color-lines: #8790a115;
    --gradient-background: conic-gradient(from 90deg at 2px 2px, #0000 90deg, var(--color-lines) 0),
    conic-gradient(from 90deg at 1px 1px, #0000 90deg, var(--color-lines) 0),
    var(--pico-background-color);

    --size: 100px;
}

html{
    scroll-behavior: smooth;
}

body {
    position: relative;
}

body > main {
    padding-top: 0;
    overflow: hidden;
}

.full-height.not-navbar {
    height: calc(100vh - 102px);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.vertical-center {
    align-items: center;
}

.horizontal-center {
    display: flex;
    justify-content: center;
}

.text-center {
    text-align: center;
}

p {
    text-wrap: pretty;
}

p, h1, h2, h3, h4, h5, h6 {
    max-inline-size: 66ch;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

span {
    font-size: medium;
    line-height: 1;
}

.regular-font {
    font-weight: normal;
}

section {
    padding: 4rem 0;
}

.padding-vertical {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.margin-vertical {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.icons {
    width: 150px;
    height: 150px;
    color: var(--pico-primary);
}

.icons-social {
    background-color: var(--pico-primary);
    color: #fff;
    padding: .3rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.icons-social:hover {
    cursor: pointer;
}

img {
    object-fit: contain;
}

form input:not(input[type='submit']):invalid {
    border: 1px solid #911d1d;
}

#contact-form textarea {
    min-height: 300px;
    max-height: 300px;
}

/* Custom changes */

#change-theme {
    height: 0;
    width: 0;
    display: none;
}

label[for="change-theme"] {
    cursor: pointer;
    text-indent: -9999px;
    width: 3.5rem;
    height: 2rem;
    background: grey;
    display: block;
    border-radius: 100px;
    position: relative;
}

label[for="change-theme"]:after {
    content: '';
    position: absolute;
    top: 16%;
    left: 5px;
    width: 1.3rem;
    height: 1.3rem;
    background: var(--pico-color);
    border-radius: 90px;
    transition: 0.3s;
}

#change-theme:checked + label[for="change-theme"] {
    background: var(--pico-primary);
}

#change-theme:checked + label[for="change-theme"]:after {
    left: calc(100% - 0.313rem); /*5px*/
    transform: translateX(-100%);
    max-width: 8.125rem;
}

label[for="change-theme"]:active:after {
    width: 1.3rem; /*130px*/
}

.bg-pattern {
    background: var(--gradient-background);
    background-size: var(--size) var(--size), calc(var(--size) / 5) calc(var(--size) / 5);
    margin-bottom: 4rem;
    min-height: 100vh;
}

.hero svg {
    scale: 1.2;
}

article > footer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    & p {
        font-size: medium;
        margin-top: 0.5rem;
    }
}

.pswp-hidden-images {
    display: none;
}

.hero.grid {
    place-items: center;
    min-height: 100vh;
}

.alert {
    position: fixed;
    background-color: var(--pico-background-color);
    max-width: max-content;
    color: var(--pico-color);
    padding: 0.5rem 1rem;
    margin: 1rem;
    border-radius: 5px;
    font-family: "Segoe UI Emoji", sans-serif;
    box-shadow: -14px -5px 69px 4px #ffffff10;
    border: 1px solid #ccc;

    transform: translateX(-200%);
    transition: transform 0.5s ease-in-out;
}

.go-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
    position: fixed;
    background-color: var(--pico-primary);
    padding: .5rem;
    border-radius: 10px;

    & svg {
        color: #fff;
    }
}

.alert.active {
    transform: translateX(0);
}

.no-link {
    text-decoration: none;
}

@media (width <= 48rem) {
    /*  Celulares  */
    nav.container {
        padding-inline: 17px;
    }

    .container {
        padding: 0 2rem;
    }

    .hero div:nth-child(1) {
        margin-top: 118px;
        text-align: center;
    }

    .hero div:nth-child(2) {
        max-width: 100%;
        overflow: hidden;
    }

    .hero svg {
        scale: 1.5;
        padding: 3rem 0;
        height: 100%;
    }

    #contacto {
        margin-top: 4rem;
    }

    nav > ul:nth-child(2) > li:last-child {
        display: none;
    }
}
