.contenido-principal {
  padding-top: 0.5rem;
  margin-top: 150px;
  margin-right: 10%;
  margin-left: 10%;
}

.diploma-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;

  .diploma-nombre {
    margin: 0;
    font-weight: 700;
  }

  .diploma-imagen {
    width: 48px;
    height: auto;
    flex-shrink: 0;
    border-radius: var(--borde-radio-grande);
    box-shadow: 0 1px 6px #0001;
  }

  .visor-imagen {
    height: 100%;
    display: flex;
    align-items: center;
  }
}

.proyectos-lista {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;

  h2 {
    margin-bottom: 0.2rem;
  }
}

.intro-proyectos {
  margin-top: 0;
  padding-top: 0;
}

.visor-imagen {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;

  &:hover,
  &:focus {
    transform: scale(1.08);
    box-shadow: 0 0 12px #0006;
    z-index: 2;
  }
}

.tarjeta {
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(167, 139, 250, 0.1);
  cursor: pointer;
  margin-bottom: 2.5rem;
  border-radius: var(--borde-radio-grande);
  padding: 2rem 5%;
  background: var(--rosa-muy-claro);

  h3 {
    margin-bottom: 2rem;
  }

  &:hover,
  &:focus-within,
  &:focus-visible {
    transform: scale(1.03) translateY(-4px);
    box-shadow:
      0 8px 32px 0 rgba(167, 139, 250, 0.25),
      0 1.5px 8px 0 rgba(244, 114, 182, 0.15);
    z-index: 2;
  }
}

.btn-mailto {
  font-size: clamp(1.2rem, 4vw, 4rem);
  padding: 2rem 8rem;
  display: block;
  text-align: center;
  margin-top: 6rem;
  border-radius: var(--borde-radio-grande);
}

.documentacion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tabla-responsive {
  overflow-x: auto;
  width: 100%;


  table {
    min-width: 400px;
    width: 100%;
  }
}

.fila {
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  margin-bottom: 6rem;

  .texto {
    flex: 1 1 0;
    max-width: 100%;
  }

  .imagen {
    margin-top: 40px;
    flex: 1 1 150px;
    max-width: 600px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 100%;
      height: auto;
      max-width: 100%;
      border-radius: var(--borde-radio-grande);
    }
  }
}

#contenido-desarrolladores {
  details {
    margin: 5rem 0;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;

    pre,
    code {
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: anywhere;
      color: var(--code-color);
    }

    summary::after {
      content: none;
    }
  }

  section,
  details,
  article {
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
  }

  section:not(:last-child),
  details:not(:last-child),
  article:not(:last-child) {
    border-bottom: 1px solid var(--rosita, #e58df1);
    padding-bottom: 2rem;
  }

  h3,
  h4,
  summary {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 769px) {
  .fila {
    flex-direction: column;
    gap: 0;
  }

  .fila .texto {
    order: 1;
  }

  .fila .imagen {
    order: 2;
  }

  .fila .texto,
  .fila .imagen {
    max-width: 100%;
  }
}

@media (min-width: 768px) {

  /* Alterna el orden visual en filas pares */
  .fila:nth-child(even) {
    flex-direction: row-reverse;
  }
}