/* diseño del sobre me */
.hoja{
  position: relative;
  height: 50px;
  margin-bottom: 50px;
}
.person2 {
  position: absolute;
  width: 250px;
  bottom: 0; /* Ajusta según sea necesario */
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}
.cv {
  font-size: 24px;
  padding: 10px;
  position: absolute;
  width: 250px;
  bottom: -45px; /* Ajusta según sea necesario */
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  cursor: pointer;
  border-radius: 30px;
}

article {
  display: flex; /* Establecer el contenedor como flex */
  flex-direction: column; /* Alinear elementos en columna */
  align-items: center; /* Alinear horizontalmente al centro */
  margin-bottom: 50px;
}
.descripcion span{
  font-size: 28px;
}

/*   TIMELINE___________________________________ */

.cd-container {

  width: 100%;
  margin: 0 auto;
  background: #1f0a31;
  padding: 0 10%;
  border-radius: 10px;
}
.cd-container::after {
  content: "";
  display: table;
  clear: both;
}

/* -------------------------------- 
  
  Main components 
  
  -------------------------------- */

#cd-timeline {
  position: relative;
  padding: 2em 0;
  margin-bottom: 2em;
}
#cd-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  height: 100%;
  width: 4px;
  background: #7e57c2;
}
@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-bottom: 3em;
  }
  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}

.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}
.cd-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-block:first-child {
  margin-top: 0;
}
.cd-timeline-block:last-child {
  margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 4em 0;
  }
  .cd-timeline-block:first-child {
    margin-top: 0;
  }
  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}

.cd-timeline-img {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #7e57c2, inset 0 2px 0 rgba(0, 0, 0, 0.08),
    0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.cd-timeline-img {
  background: #673ab7;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-img {
    width: 30px;
    height: 30px;
    left: 50%;
    margin-left: -15px;
    margin-top: 15px;
  }
}

.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  margin-right: 30px;
  background: #333c42;
  border-radius: 2px;
  padding: 1em;
  transition: transform 0.3s ease; /* Animación de escala */
  opacity: 0.9;

  .timeline-content-info {
    background: #2b343a;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    i {
      margin-right: 5px;
    }
    .timeline-content-info-title,
    .timeline-content-info-date {
      width: calc(50% - 2px);
      display: inline-block;
    }
    @media (max-width: 500px) {
      .timeline-content-info-title,
      .timeline-content-info-date {
        display: block;
        width: 100%;
      }
    }
  }
  .content-skills {
    font-size: 12px;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    li {
      background: #40484d;
      border-radius: 2px;
      display: inline-block;
      padding: 2px 10px;
      color: rgba(255, 255, 255, 0.7);
      margin: 3px 2px;
      text-align: center;
      flex-grow: 1;
    }
  }
}

.cd-timeline-content:hover{
transform:scale(1.02);
opacity: 1;

}
.cd-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-content h2 {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
  margin-bottom: 5px;
}
.cd-timeline-content p,
.cd-timeline-content .cd-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-size: 0.8125rem;
}
.cd-timeline-content .cd-date {
  display: inline-block;
}
.cd-timeline-content p {
  margin: 1em 0;
  line-height: 1.6;
}

.cd-timeline-content::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #333c42;
}

@media only screen and (min-width: 768px) {
  .cd-timeline-content h2 {
    font-size: 20px;
    font-size: 1.25rem;
  }
  .cd-timeline-content p {
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-content .cd-read-more,
  .cd-timeline-content .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
  }
}
@media only screen and (min-width: 1170px) {

  .cd-timeline-content {
    color: white;
    margin-left: 0;
    padding: 1.6em;
    width: 36%;
    margin: 0 5%;
  }
  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: #333c42;
  }
  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #333c42;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
}

/* Estilos para la tabla */
.habilidades {
  margin-top: 20px;
  border-radius: 10px;
  overflow-x: auto; /* Agregamos desplazamiento horizontal en pantallas pequeñas */
  border: 1px solid #f0f0f0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  color: #1F0A31;
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

th {
  background-color: #f8f8f8;
}

/* Reglas de medios para hacer la tabla responsive en dispositivos móviles */
@media only screen and (max-width: 768px) {
  /* Ocultar la primera fila en dispositivos móviles */
  .habilidades table tr:first-child {
    display: none;
  }
  
  /* Ajustar la disposición de las celdas en dispositivos móviles */
  .habilidades table tr {
    display: block;
    margin-bottom: 20px; /* Agregar espacio entre habilidades */
    border-bottom: 1px solid #ccc; /* Agregar línea sutil entre habilidades */
    padding-bottom: 20px; /* Agregar espacio debajo de cada habilidad */
  }
  
  /* Ajustar el estilo de las celdas en dispositivos móviles */
  .habilidades table td {
    display: block;
    padding: 10px;
    border: none; /* Eliminar bordes entre celdas */
  }

  /* Resaltar el nombre de la habilidad */
  .habilidades table td.habilidad {
    font-weight: bold;
  }

  /* Estilo adicional para descripción */
  .habilidades table td.descripcion {
    margin-top: 10px; /* Agregar espacio entre nombre de habilidad y descripción */
    font-style: italic; /* Cambiar estilo de la descripción */
  }

  /* Estilo adicional para herramientas */
  .habilidades table td.herramientas {
    margin-top: 10px; /* Agregar espacio entre descripción y herramientas */
  }
}



