/* Shortcode> Portfolio A */

.portfolio-a {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 15px;
    padding: 40px 15px 40px 15px;
}

.portfolio-grid-a .tarjeta { 
    min-height: 350px;
    background-size: cover;
    background-position: center center;
    
}

.portfolio-grid-a .tarjeta a {
    text-decoration: none;
}

.portfolio-grid-a .tarjeta h1 {
    margin-bottom: 0;
    font-size: 1.6rem;
    line-height: 100%;
}

.portfolio-grid-a .tarjeta p {
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}



.engrilla h1 {
    font-size: 2rem;
    line-height: 2.5rem;
    color: #ffffff;   
    text-align: center; 
}

.engrilla p {
    text-align: center;
    color: #ffffff;
}



.tarj-texto {
    background-color: rgba(168, 0, 0, 0.75);
    box-sizing: border-box;
   width: 100%;
   height: 100%;
    padding: 25px;
   /*  Aqui manejamos la opacidad */
    opacity: 0; 
    transition: opacity 450ms ease-out 100ms
}

.tarj-texto:hover {
    opacity: 1;
}

.tarj-texto {
    display: grid;     
}

.tarj-texto-titulo {   
    display: flex;
    align-items: flex-end;
    justify-content: center;

    opacity: 0;
    margin-bottom: -60px;
}

.portfolio-grid-a .tarj-texto-link {   
    display: flex;
    align-items: flex-end;
    justify-content: center;  
    margin-bottom: 0px;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Aqui empezamos a testear el Tarjetero que aparece y desaparece */

.mesaTarjeteros { 
    position: relative;
}

 .tarjetero {
    position: absolute;
    min-width: 100%;
    right: 50vw;
    transition: right 450ms;
    visibility: hidden;       
} 



.tarjeteroVisible {
    position: absolute;
    right: 0px;
    top: 0;
    transition: right 450ms;
    visibility: visible;
}

/* Aqui damos style al filtro y botones... que luego deberan ser por basic */

    /* centramos el contenedor */

    .portfolio-a-botonera {
        text-align: center;
        padding: 5px;
    }

    /* Ahora el codigo para el boton... es copiado*/

.filtro-portfolio-a {
    border: none;
    background: none;
   }

   .filtro-portfolio-a:hover {
       background-color: rgba(0,0,0,0);
   }
   
   .filtro-portfolio-a:focus {
    background-color: rgba(0,0,0,0);
}

   .filtro-portfolio-a span {
       font-family: var(--wp--preset--font-family--titulos-regular);
    padding: 0px 10px 7px 10px;
    letter-spacing: 4px;
    font-size: 10px;
    text-transform: uppercase;
   }

   
   .hover-underline-animation {
    position: relative;
    color: black;
    padding-bottom: 20px;
   }

   .hover-underline-animation:after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: #000000; 
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
   }


   .filtro-portfolio-a:hover .hover-underline-animation:after {
   transform: scaleX(1);
   transform-origin: bottom left;
   }

  /* Termina codigo copiado de boton */

/* Aqui empezamos a trabajar las animaciones que luego creo que iran al main css */



.fadedIn {
    opacity: 1;    
    margin-bottom: 0px;
    transition: opacity 450ms ease-out 100ms, margin-bottom 0.3s ease-out;
    transition-delay: 0.3s;
}


/* Aqui largamos con los media Query */

/* Pantallas de menos de 576 px */
    @media (max-width: 576px) {
        .portfolio-a {  grid-template-columns: 1fr;}
        .esconderTarjCelu { display: none;}

        /* Fallback para celulares y tablets donde no tenemos hover*/
        .tarj-texto {opacity: 1; 
            background: rgb(2,0,36);
            background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(0,0,0,0.3785889355742297) 40%, rgba(0,0,0,0.04805672268907568) 100%);
            }
        .tarj-texto-titulo {opacity: 1; margin-bottom: 0px;}
        .tarj-texto-link {display: none; }
       
        }

/* Pantallas de entre 576px y 992px */

@media (min-width: 576px) and (max-width: 992px) {
    .portfolio-a {  grid-template-columns: 1fr 1fr;}
    .esconderTarjTablet { display: none;}
    
    /* Fallback para celulares y tablets donde no tenemos hover*/
    .tarj-texto {opacity: 1; 
                background: rgb(2,0,36);
                background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(0,0,0,0.3785889355742297) 40%, rgba(0,0,0,0.04805672268907568) 100%);
            }
    .tarj-texto-titulo {opacity: 1; margin-bottom: 0px;}
    .tarj-texto-link {display: none; }

}

/* Pantallas de entre 992px y 1200px */

@media (min-width: 992px) and (max-width: 1200px) {
  
}

/* Pantallas de mas de 1200px */

@media (min-width: 1200px) {
    .portfolio-a {  grid-template-columns: 1fr 1fr 1fr 1fr;}
    
    }