/* Additional CSS added to template post download */

/* Portfolio Page CSS
.row {
    margin: 8px -16px;
  } */

.row {
    display: flex;
    gap: 20px;              /* espacio entre cards */
    padding: 0 25px;        /* espacio lateral (CLAVE) */
    margin: 0;              /* elimina márgenes negativos */
    box-sizing: border-box;
}
  
  /* Add padding BETWEEN each column */
  .row,
  .row > .column {
    padding: 8px;
  }
  
  /* Creating two equal columns for current projects section  */
  .currentColumn {
    float:left;
    width: 49%;
    margin-left: .5%;
    margin-right: .5%;
  }

  /* Creating three equal columns for Top projects section  */
  .topColumn {
    float:left;
    width: 32%;
    margin-left: .5%;
    margin-right: .5%;
  }


  /* Create four equal columns that floats next to each other */
  .otherColumn {
    float: left;
    width: 24%;
    margin-left: .5%;
    margin-right: .5%;
     flex: 1;
    min-width: 0; /* evita desbordes raros */
  }
  
  .otherRow {
    width: 99%; /* Ocupa casi todo el ancho */
    margin: 1rem auto;
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: rgba(255,255,255,0.1); /* Un fondo sutil para la card */
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    align-items: center; /* Centra verticalmente los elementos */
  }

  /* Responsividad para móviles */
  @media (max-width: 768px) {
      .otherRow {
          flex-direction: column;
          text-align: center;
      }
  }
  /* Clear floats after rows */ 
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* outline */
  .outline {
    outline-style: auto;
    outline-width: 2px;
    outline-color: grey;
    padding: 10px;
  }
 
.cardTitle {
    text-align: center;
}

.portfoliop { 
  text-indent: 20px;
  margin-left: 7px;
}

.currentButtonCentered {
  margin-left: 28%;
}

.topButtonCentered {
  display: flex;
  justify-content: center;
}

.otherButtonCentered {
  display: flex;
  justify-content: center;
}

.cardImg {
  width: 95%;
  max-height: 95%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3px;
}

.introPic {
    max-width: 200px;
    max-height: 275px;
    border-radius: 4px;
    float: left;
    margin-right: 10px
}

.aboutMe {
    padding-left: 20px;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 1200px) {

  .currentButtonCentered, .topButtonCentered, .otherButtonCentered{
    display: flex;
      flex-direction: column;  
      justify-content: space-evenly; 
      
  }

}
@media screen and (max-width: 900px) {
  .currentColumn, .topColumn, .otherColumn {
    width: 50%;
   }
  .currentButtonCentered, .topButtonCentered, .otherButtonCentered{
    display: flex;
      flex-direction: column;  
      justify-content: space-evenly; 
      
  }
  .portfoliop { 
    text-indent: 10px;
    margin-left: 5px;
  }
}
  
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .currentColumn, .topColumn, .otherColumn {
    width: 100%;
    }
  .rHeader {
    font-size: 80%;
  }
  .currentButtonCentered, .topButtonCentered, .otherButtonCentered{
    display: flex;
    flex-direction: column;  
    justify-content: space-evenly;  
      
  }
  .portfoliop { 
    text-indent: 10px;
    margin-left: 5px;
  }
}

.card-destacada:hover {
    transform: translateY(-8px);
    border-color: #ceab6b !important;
    background: rgba(206, 171, 107, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-destacada i {
    transition: transform 0.5s ease;
}

.card-destacada:hover i {
    transform: scale(1.1);
    opacity: 1 !important;
}

.cert-item {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.cert-item:hover {
    background: rgba(206, 171, 107, 0.08) !important;
    border-left: 3px solid #ceab6b;
    padding-left: 20px !important;
}

article#portfolio {
    max-height: 80vh; /* Limita el alto para que no se pierda el botón de cierre */
    overflow-y: auto; /* Activa el scroll vertical */
    padding-right: 15px; /* Evita que el scroll tape el contenido */
}

/* Personalizar la barra de scroll para que combine con tu diseño dorado */
article#portfolio::-webkit-scrollbar {
    width: 6px;
}

article#portfolio::-webkit-scrollbar-thumb {
    background-color: #ceab6b;
    border-radius: 10px;
}

article#portfolio::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

article {
    -webkit-overflow-scrolling: touch;
}

.card-academica,
.experience-card,
.certificaciones-card {
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

.social-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;  /* Ajusta según el tamaño que desees */
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2); /* O el color de tu borde */
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    border-color: #ceab6b;
    background: rgba(206, 171, 107, 0.1);
}