
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.header
{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    width: 100%;
    height: 100px;
    
    background: linear-gradient(
    180deg,
    var(--color--principal) 0%,
    #022a66 100%
);
}

.box
{
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 100px;
    border-bottom: var(--color--secondary) 1px solid;
}

.logoIcom
{
    width: clamp(6rem, 8vw, 7rem);
    aspect-ratio: 1 / 1;
    z-index: 100;

    padding: clamp(0.5rem, 2vw, 1rem) 0px;
    margin-left: clamp(0.5rem, 2vw, 2rem);
}

.imgFavicomLogo
{
    width: 100%;
    height: 100%;
    
    object-fit: contain; /* mejor para logos */
}

.menu-btn {
    width: clamp(1.8rem, 3vw, 4rem);
    aspect-ratio: 1;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: clamp(0.5rem, 2vw, 2rem);
    position: relative;

    border-radius: 0.5rem;
    border: none;

    font-size: var(--step--1);
    font-weight: 600;
    cursor: pointer;
}
.menu-btn span {
    position: absolute;

    width: 60%;
    height: 3px;
    left: 50%;

    background: var(--color--letter-black);
    transition: 0.5s ease;
}

.menu-btn span:nth-child(1) {
    transform: translate(-50%, -6px);
}

.menu-btn span:nth-child(2) {
    transform: translate(-50%, 0);
}

.menu-btn span:nth-child(3) {
    transform: translate(-50%, 6px);
}
.menu-btn.active span:nth-child(1) {
    transform: translate(-50%, 0) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translate(-50%, 0) rotate(-45deg);
}

.menu
{
    position: fixed;
    top: 0;
    right: 0;
    
    width: 100%;
    height: 100%;
    z-index: 999;
}

.navTop
{
    display: none;
}

.navTop.open
{
    position: fixed;
    top: 100px;
    left: 0;


    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    width: 100%;
    height: calc(100vh - 100px);
    gap: clamp(3rem,5vh,7rem);

    overflow-y: auto;
    scrollbar-width: none;

    background: linear-gradient(
    180deg,
    #022a66 0%,
    #000814 100%
);
    animation: faderight 0.6s ease forwards;
}

@keyframes faderight {
    from { transform: translateY(-10%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.contentList
{
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: clamp(5rem,7vh,8rem);
    width: 100%;

    gap: clamp(1.6rem, 3vw, 3rem);
    padding: 0;
}

.listContent
{
    padding: 0 clamp(1rem,2vw,3rem);
    list-style: none;
}

.listContent a
{
    display: flex;
    align-items: center;

    font-size: var(--step-0);
    font-family: var(--letter--type);
    font-weight: 400;
    color: var(--color--letter-white);

    text-decoration: none;

    padding: 0.6rem 0;

    cursor: pointer;
}

/*DATAILS*/

details[open] > summary {
    color: var(--color--letter-yellow);
}


details > summary {
    
    position: relative;
    padding-right: 20px;
    
    font-size: var(--step--1);
    font-family: var(--letter--type);
    font-weight: 600;
    list-style: none;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;

    color: var(--color--letter-white);
}

details > summary::after {
    content: "▼";
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

details[open] > summary::after {
    transform: rotate(180deg);
}

.subMenu {
    display: flex;
    flex-direction: column;

    gap: clamp(1rem, 2vw, 2rem); 
    margin-top: clamp(1.2rem, 3.2vw, 4.2rem);

    margin-left: 0.5rem;

    padding-left: 1rem;

    border-left: 2px solid rgba(255,255,255,0.15);

}

.subMenu a {

    color: var(--color--letter-white);
    font-size: var(--step--2);
    font-family: var(--letter--type);
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
}

.LinkSuelto
{
    font-size: var(--step--1);
    font-family: var(--letter--type);
    font-weight: 800;
    text-transform: uppercase;
    list-style: none;
    
    padding-left: clamp(1rem,2vw, 3.2rem);
}

.LinkSuelto a
{
    color: var(--color--letter-white);

    list-style: none;
    text-decoration: none;
}

.containerFavicom
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: clamp(4rem,7vh,9rem);
}

.listContainer
{
    
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.listContainer > ul 
{
    display: flex;
    gap: clamp(2rem,4vw,6rem);
    list-style: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--color--letter-yellow);
    outline-offset: 4px;
}

.caja-computadora,
.item-computadora {
    display: none;
}


@media (min-width: 1000px) {

    .box{
        justify-content: space-around;
    }
    
    

    .caja-computadora
    {
        display: flex;
        margin-right: clamp(2rem, 5vw, 8rem);
    }

    .item-computadora{
        
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: clamp(2rem,4vw,6rem);
        font-size: var(--step-0);
        font-family: var(--letter--type);
        font-weight: 400;
        color: var(--color--letter-white);

        text-decoration: none;

        padding: 0.6rem 0;

        cursor: pointer;
    }

    .link-computadora {
        
        list-style: none;
    }
    .link-computadora a
    {
        color: var(--color--letter-white);
        font-family: var(--letter--type);
        font-size: var(--step-0);
        text-decoration: none;
    }

    a:hover,
summary:hover {
    color: var(--color--letter-yellow);
}

}