.sobre-mi-popup {
  font-family: 'Cascadia Code', 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  max-width: 96vw;
  height: 550px;
  max-height: 90vh;
  background: transparent;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* La ventana no scrollea, scrollea el body */
  pointer-events: auto;
}

/* HEADER Y FOOTER */
.sobre-mi-header,
.sobre-mi-footer {
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 0;
  position: relative;
}

.sobre-mi-img-header,
.sobre-mi-img-footer {
  width: 100%;
  display: block;
}

/* SOBREESCRITURA DE HEADER PARA SOBRE MÍ */
.sobre-mi-popup .web-link-display {
  top: 20px;
  left: 10px;
  font-size: 18px;
  font-weight: bold;
}


.sobre-mi-popup .window-controls-group {
  position: absolute;
  top: 20px;
  right: 10px;
}

/* BOTÓN CERRAR */
.sobre-mi-cerrar {
  position: absolute;
  top: 0px;
  right: 37px;
  width: 37px;
  height: 37px;
  cursor: pointer;
  z-index: 2;
}


.sobre-mi-body {
  display: flex;
  flex-direction: column;
  background: white;
  flex: 1;
  overflow-y: auto;
  /* IMPORTANTE: Habilitar scroll aquí */
  margin: 0;
  padding: 20px;
}

/* Scrollbar personalizado Sobre Mí */
.sobre-mi-body::-webkit-scrollbar {
  width: 8px;
}

.sobre-mi-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sobre-mi-body::-webkit-scrollbar-thumb {
  background: #6B6788;
  border-radius: 10px;
}

.lore-texto {
  color: #6B6788;
  font-family: 'Cascadia Code', monospace;
  font-size: 10px;
  margin-bottom: 20px;
}

.foto-sobre-mi {
  text-align: center;
  margin-bottom: 20px;
}

.foto-sobre-mi img {
  width: 200px;
  border-radius: 8px;
}

.botones-sobre-mi {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.botones-sobre-mi button {
  padding: 10px 20px;
  background-color: #3a36c2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.botones-sobre-mi button:hover {
  background-color: #2214a0;
}

/* CONTENEDOR PRINCIPAL */
.sobre-mi-contenedor {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 55px;
  padding: 9px 0px;
  /* Menos espacio arriba */
  font-family: 'Cascadia Code', 'Fira Mono', 'Consolas', monospace;
  background: transparent;
}

/* COLUMNA IZQUIERDA */
.sobre-mi-izquierda {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex: 2;
}

.sobre-mi-circulo {
  width: 100px;
  height: 100px;
  margin-left: -30px;
  margin-right: -20px;
  margin-top: -13px;
  /* O incluso un valor negativo mayor si quieres subirlo más */
  flex-shrink: 0;
}

.sobre-mi-texto p {
  font-size: 1.10em;
  color: #6B6788;
  margin: 0 0 25px 0;
  white-space: pre-line;
  font-family: 'Cascadia Code', 'Fira Mono', 'Consolas', monospace;
  background: transparent;
}

.oculto {
  background: #b7b7d1;
  color: #b7b7d1;
  border-radius: 3px;
  padding: 0 6px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* BOTONES ESTILO GUESTBOOK (MSN) */
.sobre-mi-botones {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-bottom: 20px;
}

.sobre-mi-botones button {
  background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
  border: 1px solid #999;
  color: #333;
  padding: 8px 25px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  min-width: 140px;
  transition: background 0.2s;
}

.sobre-mi-botones button:hover {
  background: #f8f8f8;
  border-color: #666;
  transform: none;
}

.sobre-mi-botones button:active {
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* COLUMNA DERECHA */
.sobre-mi-derecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}



.sobre-mi-foto {
  width: 170px;
  border-radius: 8px;
  display: block;
}

/* LÍNEA DEL TIEMPO */
.timeline-container {
  margin-top: -20px;
  margin-bottom: 30px;
  background: rgba(107, 103, 136, 0.05);
  /* Color suave del tema */
  padding: 15px;
  border-radius: 8px;
  border: 1px dashed #6B6788;
}

.timeline-title {
  color: #6B6788;
  font-size: 1.25em;
  margin-top: 30px;
  /* Subido más arriba */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  /* Centrado vertical del texto con la imagen */
  gap: 0px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 35px;
  bottom: -20px;
  width: 2px;
  background: #6B6788;
  opacity: 0.3;
}

.timeline-viñeta {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content {
  font-family: inherit;
}

.timeline-date {
  font-weight: bold;
  color: #6B6788;
  font-size: 0.9em;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9em !important;
  margin: 0 0 10px 0 !important;
  color: #555 !important;
  line-height: 1.4 !important;
}

.timeline-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  transition: transform 0.3s;
  cursor: pointer;
}

.timeline-img:hover {
  transform: scale(1.05);
}

/* Ajustes para la foto marco */
.sobre-mi-foto-marco {
  margin-top: 15px;
  /* Subido más arriba */
}

.sobre-mi-nombre {
  margin-top: 0px;
  font-size: 1.1em;
  color: #55677D;
  text-align: center;
  font-family: 'Cascadia Code', 'Fira Mono', 'Consolas', monospace;
}

/* Ajustes para responsividad */
@media (max-width: 700px) {
  .sobre-mi-contenedor {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 8px;
  }

  .sobre-mi-derecha {
    margin-top: 18px;
  }
}