*,::before, ::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --0:#fff;
    --50:#ecf7ff;
    --100:#d4eaff;
    --200:#b2ddff;
    --300:#7dc8ff;
    --400:#40a8ff;
    --500:#1481ff;
    --600:#005dff;
    --700:#0045ff;
    --800:#0034c2;
    --900:#0834a0;
    --950:#0a2161;
    --black:#000;
    --height-nav:70px;
    --align-title:center;
    --padding: 80px 0;

}

body{
    background-color: var(--300);
}

.container{
    width:90%;
    max-width:1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding);
}

.nav{
    background: var(--300);
    height: var(--height-nav);
    color:var(--950);
}

.nav__container{
    height: 100%;
  
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav__links {
    display: flex;
}


.nav_link{
    color: var(--950);
    text-decoration: none;
    margin-left: 1em;
}


.nav_link{
    position: relative;
    display: flex;
    text-decoration: none;
}
.navs_links::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color:var(--950);
    border-radius: 4px;
    scale: 0 1;
    transform-origin: left;
    transition: scale 0.25s;
  }
  .navs_links:hover::before{
    scale:1;
  }





.img__menu{
    width: auto;
    height: 9rem;
}

/*************galeria******************/
.title {
    font-size: 2rem;
    border-bottom: 6px solid var(--400);
    padding-bottom: .5em;
    margin-bottom:1.5em;
    }
.title__text{
     display: flexbox;
    align-items: center;
    justify-content: center;
 
}
.container_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 1rem;
    justify-content: center;
}
.card-body{
  background-color: var(--400);
}

.card-text{
 color: var(--black);
}
.card-title{
  color: var(--black) !important;
}


/* .cards{
    margin-top: 15vh;
    width:  60vh;
    height: 60vh;
    background-color: var(--500);
    display:inline-block;
    margin: 34px;
    /* background-color: #101e4b; */
  
/*} */

.cards {
  margin-top: 15vh;
  width: 60vh;
  height: auto; /* ← cambia esto si quieres que el alto se ajuste al contenido */
  background-color: var(--500);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* separa info/tecnos/botón */
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  overflow: hidden; /* evita que se desborde */
}





img{
    height: 200px;
  width: 100%;
  overflow: hidden;
}

.info{
    font-size: 16px;
    color:var(--100);
    text-align:left;
    justify-content: center;
    
}
.title_cards{
  color: var(--100);
  text-align: center;
}
.tecnologias{

  width: auto;
 
}

.imgtecnologias {
  display: flex;
  padding:1.5rem;
height: 5em;
}

.tecnosvg{
  
  height: 2.5rem;
}

/*****************************************Boton de ver****************************************************************************/

/* .verprojecto{
  display: flex;
    align-items: center;
    justify-content: center;
    right: -8rem;
    width: 103px;
    height: 34px;
    top: 34px;
    position: relative;
    transition: border 1s linear; 
    border-image: linear-gradient(var(--angle), #fff, var(--800)) 1;
    background-color: transparent;
   animation: 5s rotate linear infinite;
   border-radius: 5px;
} */

.verprojecto {
  margin-top: 1rem;
  width: 100px;
  height: 34px;
  border: 1px solid #fff;
  background-color: transparent;
  border-radius: 5px;
  transition: 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border 1s linear; 
    border-image: linear-gradient(var(--angle), #fff, var(--800)) 1;
    background-color: transparent;
   animation: 5s rotate linear infinite;
}



.verprojecto:hover {
  border-image: linear-gradient(var(--angle), #fff, #fff) 1;
    background-color:  #fff;
    cursor: pointer;
   

  }
  .verprojecto:hover .boton-span {
    color: #191c32;
      
  }
 

  .boton-span{
color: aliceblue;  

}
  
.referencia{
  text-decoration: none;
  color: aliceblue;
}





/**********************************************tenologias*********************************************************************/

/* .tecnologiasusada{
  display: flex;
      align-items: center;
      justify-content: center;
        position: relative;
    top: .5rem;
} */

.tecnologiasusada {
  display: flex;
  flex-wrap: wrap; /* por si no caben todas en una línea */
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  position: static; /* ← importante */
}





.tecnoimg{
  width: 5rem;
  height: 1.9rem;
}








@keyframes rotate {
    to {
      --angle: -360deg;
    }
  }
  
  @property --angle {
    syntax: '<angle>';
    initial-value: 360deg;
    inherits: false;
  }



@media screen and (max-width: 400px) {

    .gallery{
        grid-template-columns:1fr;
    }

    .show__close{
        right: -10px;
    }
}


@media screen and (max-width: 768px) {
    .nav__container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .img__menu {
        height: 6rem;
    }

    .cards {
        margin-top: 2rem;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    .cards {
        padding: 0.5rem;
    }

    .info {
        font-size: 14px;
    }

    .tecnoimg {
        width: 3rem;
        height: 1.5rem;
    }

    .verprojecto {
        width: 80px;
        height: 30px;
        font-size: 0.8rem;
    }
}
