/*
Theme Name: MiTema2025
Author: the WordPress team
Author URI: https://github.com/dan-vc
Description: Descripción de mi tema 2025
Version: 1.0
*/


:root {
    --transition: 1.1s cubic-bezier(0.8, 0, 0, 1);
    --red: rgb(255, 68, 68)
}

html {
    color: #787878;
    font-size: 62.5%;
}

body {
    font-size: 1.8rem;
}

.h100vh {
    height: 100vh;
}

.rotate-90deg {
    rotate: 90deg;
}

.text-red {
    color: var(--red) !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 300;
}

h1 {
    font-size: 8.4rem;
}

h2 {
    font-size: 4.4rem;
}

h3 {
    font-size: 3.6rem;
}

h4 {
    font-size: 3rem;
}

h5 {
    font-size: 2.4rem;
}

ul {
    list-style: none;
    padding: 0;
}

::-webkit-scrollbar {
    background: transparent;
    display: none;
    height: 0;
    width: 0;
}

::selection {
    background: var(--red);
    color: white;
}

/* Navegación de la landing page inicial */
#mainNav {
    border: 1px solid #555;
    border-radius: 4px;
    width: fit-content;
    padding: 0;

    a {
        font-size: 14px;
        color: #a5a5a5 !important;
        border-radius: 0;
        padding: 2rem 3rem;

        &:not(:last-child) {
            border-bottom: 1px solid #555;
        }

        &:hover {
            background: #333;
        }
    }
}

/* Contenedor de las Pestañas */
#mainTab {
    max-width: 54rem;
}

#mainTabContent {
    position: relative;

    section {
        position: absolute;
        inset: 0;
    }
}

/* Contenedor de la Navegación horizontal */
#asideNavWrapper {
    width: 6rem;
}

/* Boton para cerrar las pestañas */
#closeMainTab {
    cursor: pointer;
}

/* Navegación horizontal */
#asideNav {
    border: none;
    height: 6rem;
    gap: 3.6rem;

    .nav-link {
        font-size: 14px;
        text-transform: uppercase;
        height: 100%;
        color: #999;
        background: none;
        border: none;
        display: flex;
        align-items: center;

        &:hover {
            color: #666;
        }

        &.active {
            color: #222;
            border-bottom: 1px solid red;
        }
    }
}


/* Animación para slide In */
.slide-in-animation {
    transform: translateX(100%);
    transition: all cubic-bezier(1, 0, 0, 1) .5s;

    &.active {
        transform: translateX(0%);
    }
}

.slide-in-animation2 {
    transform: translateX(0%);
    transition: all cubic-bezier(1, 0, 0, 1) .5s;

    &.active {
        transform: translateX(-100%);
    }
}

/* Contador de pestaña History */
.history-counter {
    font-size: 9rem;
    margin: 0;
}

/* Contador de pestaña History - Texto */
.history-counter__text {
    font-size: 4.4rem;
    text-align: right;
}

/* Contador de pestaña Companies */
.companies-counter {
    font-size: 18rem;
    font-weight: 300;
    margin: 0;
}


/* Contenido de las Pestañas Team, History y Companies */
#teamTab,
#companiesTab {
    padding: 6rem;
}

#historyTab {

    .intro,
    article {
        padding: 6rem;
    }
}


/* Pestaña Team */
#teamContentLinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;

    .nav-link {
        position: relative;

        img {
            filter: grayscale(1);
            transition: 1s cubic-bezier(0.8, 0, 0, 1);
            scale: 1.2;
        }

        &::before {
            content: "";
            z-index: 1;
            position: absolute;
            inset: 1.2rem;
            border-radius: 0.4rem;
            background: rgb(255, 68, 68);
            mix-blend-mode: multiply;
            transition: 1s cubic-bezier(0.8, 0, 0, 1);
        }

        &::after {
            content: "";
            position: absolute;
            z-index: 2;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 2.4rem;
            height: 2.4rem;
            background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMTEiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjIiIHRyYW5zZm9ybT0icm90YXRlKDkwIDEzIDApIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K");
            background-size: cover;
            background-position: center center;
            transition: 1s cubic-bezier(0.8, 0, 0, 1);
        }

        &:hover,
        &.active {
            img {
                scale: 1;
            }

            img:nth-child(2) {
                scale: 0;
            }
        }

        &.active::after {
            transform: translate(-50%, -50%) rotate(45deg);
        }

        &.active::before {
            inset: 0;
        }
    }

}

/* Pestaña Team Single */
#teamTabContent {
    section {
        padding: 6rem;
        overflow-y: scroll;
        position: absolute;
        width: 100%;
        height: 100%;
        inset: 0;
    }

    .tag {
        font-size: 16px;
        font-weight: 600;
        color: rgb(120, 120, 120);
        background: rgb(233, 233, 233);
        border-radius: 0.4rem;
        text-transform: uppercase;
        line-height: 1;
        letter-spacing: 1px;
        padding: 0.6rem 1.2rem 0.5rem;
    }
}


/* Pestaña Companies */
#companiesContentLinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 0.4rem;
    overflow: hidden;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(233, 233, 233);

    .nav-link {
        width: 100%;

        img {
            filter: grayscale(1);
        }

        &::before {
            content: "";
            z-index: 1;
            position: absolute;
            inset: 0;
            border-radius: 0.4rem;
            background: rgb(255, 68, 68);
            mix-blend-mode: multiply;
            transition: 1s cubic-bezier(0.8, 0, 0, 1);
        }

        &::after {
            content: "";
            position: absolute;
            z-index: 2;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 2.4rem;
            height: 2.4rem;
            background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMTEiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjIiIHRyYW5zZm9ybT0icm90YXRlKDkwIDEzIDApIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K");
            background-size: cover;
            background-position: center center;
            transition: 1s cubic-bezier(0.8, 0, 0, 1);
        }

        &::after,
        &::before {
            opacity: 0;
        }

        &:hover,
        &.active {

            &::after,
            &::before {
                opacity: 1;
            }

            &::before {
                inset: 1.2rem;
            }
        }

        &.active::after {
            transform: translate(-50%, -50%) rotate(45deg);
        }

        &.active::before {
            inset: 0;
        }
    }
}

/* Pestaña Companies Single*/
#companiesTabContent {
    section {
        padding: 6rem;
        overflow-y: scroll;
        position: absolute;
        width: 100%;
        height: 100%;
        inset: 0;
    }
}


/* Responsive Styles */
@media screen and (max-width:1200px) {
    #mainTab {
        max-width: 50rem;
    }

    body {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 6rem;
    }

    h2 {
        font-size: 4.4rem;
    }

    h3 {
        font-size: 3.6rem;
    }

    h4 {
        font-size: 3rem;
    }

    h5 {
        font-size: 2.4rem;
    }


}