@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("/fuentes/Atkinson_Hyperlegible/AtkinsonHyperlegible-Regular.ttf") format("truetype");
    font-weight:normal;
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("/fuentes/Atkinson_Hyperlegible/AtkinsonHyperlegible-Bold.ttf") format("truetype");
    font-weight: bold;
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("/fuentes/Atkinson_Hyperlegible/AtkinsonHyperlegible-Italic.ttf") format("truetype");
    font-style: italic;
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("/fuentes/Atkinson_Hyperlegible/AtkinsonHyperlegible-BoldItalic.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
}
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}
body{
    margin: 0;
    font-family: "Atkinson Hyperlegible";
    background-image: url(papel.jpg);
    background-size: auto;
    background-repeat: repeat;
    background-position: center;
    background-blend-mode: normal;
    gap: 20px;
}
main{
    position: fixed;
    top: 0;
    left: 140px;
    width: calc(100vw - 140px);
    height: 100vh;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    
}
 
header{
    display: flex;
    flex-direction: column;
    height: calc(100vh - 20px);
    background-color: black;
    position: fixed;
    left: 0;
    top: 0;
    width: 130px;
    padding-top: 20px;
    padding-left: 10px;
    z-index: 10;
    font-family: monospace;
    a{
        text-decoration: none;
        color: white;
        font-weight: medium;

    }
    a:hover{
        color: red;
        transition: all 0.3s;
    }

}

.vcontent{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 700px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 15px;
    box-sizing: border-box;

}

.hola {
    height: 300px;
    background-color: aquamarine;
    background-image: 
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.57) 100%),
        url(BGHOLA.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: calc(100% - 20px);
    margin: 0 10px;
    z-index: 6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: flex-end;
    position: relative;
    gap: 0;
    border: 0.3px solid rgba(0, 0, 0, 0.186);
    box-sizing: border-box;
    max-width: 100%;
    overflow: visible;

    h1, h2{
        margin:0;
        padding: 0px;
        margin-left: 10px;
    }
}

.card{
    background-color: rgb(255, 255, 255);
    overflow: visible;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 0 10px;
    box-sizing: border-box;
    padding: 20px 0;
    display: flex;
    border: 0.3px solid rgba(0, 0, 0, 0.186);
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    justify-content: space-around;
        transition: all 0.3s;

    
    div{
        width: calc(100% - 120px);
        display: flex;
        flex-direction: column;
        align-items: left;
        overflow: visible;

        justify-content: center;

    }
}
.card:hover{
    transform: scale(0.99);
    transition: all 0.3s;
    background-color:rgba(242, 242, 242, 0.673)
}
.card-info{
    background-color: rgb(255, 255, 255);
    overflow: visible;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 0 10px;
    box-sizing: border-box;
    padding: 20px 0;
    display: flex;
    border: 0.3px solid rgba(0, 0, 0, 0.186);
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    
    div{
        width: calc(100% - 120px);
        display: flex;
        flex-direction: column;
        align-items: left;
        overflow: visible;

        justify-content: center;

    }
}

.muestrario {
    background-color: #9e9e9e;
    background-position: center;
    background-size: cover;
    overflow:hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    border: 0.3px solid rgba(0, 0, 0, 0.186);
    flex-direction: column;
    align-items:start;
    cursor: pointer;
    justify-content:end;
    aspect-ratio: 1/1;
    padding: 20px;
    position: relative;

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: inherit;
        background-position: center;
        background-size: cover;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 0;
        will-change: transform;
    }

    &::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: linear-gradient(180deg, 
            rgba(255,255,255,0) 40%, 
            rgba(255,255,255,1) 100%);
        pointer-events: none;
        z-index: 1;
        transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: background;
    }

    .titlePr{
        display: block;
        margin: 20px;
        text-align: center;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        width: calc(100% - 40px);
        opacity: 1;
        transition: opacity 0.3s ease;
        will-change: opacity;
    }
    .descPr{
        display: block;
        margin: 20px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
        text-align: left;
        width: calc(100% - 40px);
        font-family: 'Atkinson Hyperlegible', sans-serif;
        font-weight: 600;
        color: white;
        opacity: 0;
        transition: opacity 0.3s ease;
        will-change: opacity;
    }
}

.muestrario:hover{
    justify-content: start;

    &::after {
        transform: scale(1.15);
    }

    .titlePr{
        opacity: 0;
    }
    .descPr{
        opacity: 1;
    }
    
    &::before {
        background: #000000b9;
        backdrop-filter: blur(12px);
    }
}

#tarContent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 10px;
    width: calc(100% - 20px);
    margin: 0 10px;
}

#bView {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 20;
    display: none;
    backdrop-filter: blur(8px);
    opacity: 1;
}

.gigaView {
    position: fixed;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden !important;
    will-change: transform, width, height, top, left, bottom, right, border-radius;
    z-index: 30;
}

.bClose {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: rgb(0, 0, 0);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border: 0.1px solid black;
    height: 48px;
    width: 48px;
    cursor: pointer;
    z-index: 25;
    display: flex;
    justify-content: center;
    align-items: center;
}


h1{
    font-family: monospace;
    font-size: 2.5em;
    font-weight: 300;
}
h2{
    font-family: monospace;
    font-size: 1.2em;
    font-weight: 300;
}
h3{
    font-family: monospace;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
    padding-bottom: 12px;
}
h4{
    font-family: 'Atkinson Hyperlegible';
    font-size: 1em;
    font-weight: 300;
    margin: 0;
}
#bFrame {
    height: 100% !important;
    width: 100% !important;
    margin: 0px !important;
    border: none !important;
    overflow: hidden !important;
}

@media screen and (max-width: 800px) {
    header{
        position: fixed;
        width: 100vw;
        height: 40px;
        top: auto;
        bottom: 0 !important;
        left: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 40px;
        margin: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        z-index: 10;
        text-transform: uppercase;

    }
    main{
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 600px;
        height: calc(100vh - 40px);
        margin: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 0;

        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .vcontent{
        width: calc(100% - 8px);
        padding: 0px;
        box-sizing: border-box;
    }


    #bView .gigaView {
        position: fixed !important;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 30 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

}

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

    #bView .gigaView {
        max-width: 1100px !important;
        max-height: calc(100vh - 30px) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 30 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    main{
        overflow-y: hidden;
        overflow-x: auto;
        position: fixed;
        top: 0;
        left: 140px;
        width: calc(100vw - 140px);
        height: 100vh;
        z-index: 5;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;                
    }
    
    .vcontent{
        flex-direction: row;
        display: flex;
        height: 100%;
        width: max-content;
        overflow-y: visible;
        overflow-x: visible;
        margin: 0;
        padding: 20px;
        gap: 20px;
        align-items: start;
        justify-content: flex-start;
    }
    
    .hola {
        height: 100%;
        width: 420px;
        flex-shrink: 0;
        margin: 0;
    }

    #tarContent {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-template-rows: repeat(2, calc(50% - 10px));
        gap: 20px;
        width: max-content;
        height: 100%;
        margin: 0;
    }
    
    .muestrario {
        height: 100%;
        aspect-ratio: 1/1;
        flex-shrink: 1;
        min-width: 0;
    }
}

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

       #tarContent {
        grid-template-columns: repeat(2, 1fr);
    }

    
}
